Skip to content

Commit 68b12a0

Browse files
feat: [dialogflow-cx] added GitIntegrationSettings to the Agent (#9631)
* feat: added GitIntegrationSettings to the Agent PiperOrigin-RevId: 546946304 Source-Link: googleapis/googleapis@5cfc6d1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/734b6e53fdf976b33d1cab2c7b5bce0999e97fcd Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI3MzRiNmU1M2ZkZjk3NmIzM2QxY2FiMmM3YjViY2UwOTk5ZTk3ZmNkIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 16d930f commit 68b12a0

File tree

21 files changed

+5753
-179
lines changed

21 files changed

+5753
-179
lines changed

java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ public final UnaryCallable<DeleteAgentRequest, Empty> deleteAgentCallable() {
840840
* .setEnvironment(
841841
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
842842
* .toString())
843+
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
843844
* .setIncludeBigqueryExportSettings(true)
844845
* .build();
845846
* ExportAgentResponse response = agentsClient.exportAgentAsync(request).get();
@@ -882,6 +883,7 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(
882883
* .setEnvironment(
883884
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
884885
* .toString())
886+
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
885887
* .setIncludeBigqueryExportSettings(true)
886888
* .build();
887889
* OperationFuture<ExportAgentResponse, Struct> future =
@@ -924,6 +926,7 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(
924926
* .setEnvironment(
925927
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
926928
* .toString())
929+
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
927930
* .setIncludeBigqueryExportSettings(true)
928931
* .build();
929932
* ApiFuture<Operation> future = agentsClient.exportAgentCallable().futureCall(request);

java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,8 @@ public final UnaryCallable<ExportTestCasesRequest, Operation> exportTestCasesCal
13401340

13411341
// AUTO-GENERATED DOCUMENTATION AND METHOD.
13421342
/**
1343-
* Fetches a list of results for a given test case.
1343+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1344+
* each test case.
13441345
*
13451346
* <p>Sample code:
13461347
*
@@ -1374,7 +1375,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(TestCaseName p
13741375

13751376
// AUTO-GENERATED DOCUMENTATION AND METHOD.
13761377
/**
1377-
* Fetches a list of results for a given test case.
1378+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1379+
* each test case.
13781380
*
13791381
* <p>Sample code:
13801382
*
@@ -1407,7 +1409,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(String parent)
14071409

14081410
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14091411
/**
1410-
* Fetches a list of results for a given test case.
1412+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1413+
* each test case.
14111414
*
14121415
* <p>Sample code:
14131416
*
@@ -1442,7 +1445,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
14421445

14431446
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14441447
/**
1445-
* Fetches a list of results for a given test case.
1448+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1449+
* each test case.
14461450
*
14471451
* <p>Sample code:
14481452
*
@@ -1477,7 +1481,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
14771481

14781482
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14791483
/**
1480-
* Fetches a list of results for a given test case.
1484+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1485+
* each test case.
14811486
*
14821487
* <p>Sample code:
14831488
*

java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientHttpJsonTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ public void getAgentTest() throws Exception {
206206
.setEnableSpellCorrection(true)
207207
.setLocked(true)
208208
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
209+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
209210
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
210211
.build();
211212
mockService.addResponse(expectedResponse);
@@ -266,6 +267,7 @@ public void getAgentTest2() throws Exception {
266267
.setEnableSpellCorrection(true)
267268
.setLocked(true)
268269
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
270+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
269271
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
270272
.build();
271273
mockService.addResponse(expectedResponse);
@@ -326,6 +328,7 @@ public void createAgentTest() throws Exception {
326328
.setEnableSpellCorrection(true)
327329
.setLocked(true)
328330
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
331+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
329332
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
330333
.build();
331334
mockService.addResponse(expectedResponse);
@@ -388,6 +391,7 @@ public void createAgentTest2() throws Exception {
388391
.setEnableSpellCorrection(true)
389392
.setLocked(true)
390393
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
394+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
391395
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
392396
.build();
393397
mockService.addResponse(expectedResponse);
@@ -450,6 +454,7 @@ public void updateAgentTest() throws Exception {
450454
.setEnableSpellCorrection(true)
451455
.setLocked(true)
452456
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
457+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
453458
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
454459
.build();
455460
mockService.addResponse(expectedResponse);
@@ -472,6 +477,7 @@ public void updateAgentTest() throws Exception {
472477
.setEnableSpellCorrection(true)
473478
.setLocked(true)
474479
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
480+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
475481
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
476482
.build();
477483
FieldMask updateMask = FieldMask.newBuilder().build();
@@ -520,6 +526,7 @@ public void updateAgentExceptionTest() throws Exception {
520526
.setEnableSpellCorrection(true)
521527
.setLocked(true)
522528
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
529+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
523530
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
524531
.build();
525532
FieldMask updateMask = FieldMask.newBuilder().build();
@@ -628,6 +635,7 @@ public void exportAgentTest() throws Exception {
628635
.setEnvironment(
629636
EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
630637
.toString())
638+
.setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
631639
.setIncludeBigqueryExportSettings(true)
632640
.build();
633641

@@ -664,6 +672,7 @@ public void exportAgentExceptionTest() throws Exception {
664672
.setEnvironment(
665673
EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
666674
.toString())
675+
.setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
667676
.setIncludeBigqueryExportSettings(true)
668677
.build();
669678
client.exportAgentAsync(request).get();

java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ public void getAgentTest() throws Exception {
202202
.setEnableSpellCorrection(true)
203203
.setLocked(true)
204204
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
205+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
205206
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
206207
.build();
207208
mockAgents.addResponse(expectedResponse);
@@ -256,6 +257,7 @@ public void getAgentTest2() throws Exception {
256257
.setEnableSpellCorrection(true)
257258
.setLocked(true)
258259
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
260+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
259261
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
260262
.build();
261263
mockAgents.addResponse(expectedResponse);
@@ -310,6 +312,7 @@ public void createAgentTest() throws Exception {
310312
.setEnableSpellCorrection(true)
311313
.setLocked(true)
312314
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
315+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
313316
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
314317
.build();
315318
mockAgents.addResponse(expectedResponse);
@@ -367,6 +370,7 @@ public void createAgentTest2() throws Exception {
367370
.setEnableSpellCorrection(true)
368371
.setLocked(true)
369372
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
373+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
370374
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
371375
.build();
372376
mockAgents.addResponse(expectedResponse);
@@ -424,6 +428,7 @@ public void updateAgentTest() throws Exception {
424428
.setEnableSpellCorrection(true)
425429
.setLocked(true)
426430
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
431+
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
427432
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
428433
.build();
429434
mockAgents.addResponse(expectedResponse);
@@ -547,6 +552,7 @@ public void exportAgentTest() throws Exception {
547552
.setEnvironment(
548553
EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
549554
.toString())
555+
.setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
550556
.setIncludeBigqueryExportSettings(true)
551557
.build();
552558

@@ -561,6 +567,7 @@ public void exportAgentTest() throws Exception {
561567
Assert.assertEquals(request.getAgentUri(), actualRequest.getAgentUri());
562568
Assert.assertEquals(request.getDataFormat(), actualRequest.getDataFormat());
563569
Assert.assertEquals(request.getEnvironment(), actualRequest.getEnvironment());
570+
Assert.assertEquals(request.getGitDestination(), actualRequest.getGitDestination());
564571
Assert.assertEquals(
565572
request.getIncludeBigqueryExportSettings(),
566573
actualRequest.getIncludeBigqueryExportSettings());
@@ -583,6 +590,7 @@ public void exportAgentExceptionTest() throws Exception {
583590
.setEnvironment(
584591
EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
585592
.toString())
593+
.setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
586594
.setIncludeBigqueryExportSettings(true)
587595
.build();
588596
client.exportAgentAsync(request).get();
@@ -619,6 +627,7 @@ public void restoreAgentTest() throws Exception {
619627
Assert.assertEquals(request.getName(), actualRequest.getName());
620628
Assert.assertEquals(request.getAgentUri(), actualRequest.getAgentUri());
621629
Assert.assertEquals(request.getAgentContent(), actualRequest.getAgentContent());
630+
Assert.assertEquals(request.getGitSource(), actualRequest.getGitSource());
622631
Assert.assertEquals(request.getRestoreOption(), actualRequest.getRestoreOption());
623632
Assert.assertTrue(
624633
channelProvider.isHeaderSent(

java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,8 @@ default void exportTestCases(
809809
*
810810
*
811811
* <pre>
812-
* Fetches a list of results for a given test case.
812+
* Fetches the list of run results for the given test case. A maximum of 100
813+
* results are kept for each test case.
813814
* </pre>
814815
*/
815816
default void listTestCaseResults(
@@ -1067,7 +1068,8 @@ public void exportTestCases(
10671068
*
10681069
*
10691070
* <pre>
1070-
* Fetches a list of results for a given test case.
1071+
* Fetches the list of run results for the given test case. A maximum of 100
1072+
* results are kept for each test case.
10711073
* </pre>
10721074
*/
10731075
public void listTestCaseResults(
@@ -1283,7 +1285,8 @@ public com.google.longrunning.Operation exportTestCases(
12831285
*
12841286
*
12851287
* <pre>
1286-
* Fetches a list of results for a given test case.
1288+
* Fetches the list of run results for the given test case. A maximum of 100
1289+
* results are kept for each test case.
12871290
* </pre>
12881291
*/
12891292
public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse listTestCaseResults(
@@ -1496,7 +1499,8 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
14961499
*
14971500
*
14981501
* <pre>
1499-
* Fetches a list of results for a given test case.
1502+
* Fetches the list of run results for the given test case. A maximum of 100
1503+
* results are kept for each test case.
15001504
* </pre>
15011505
*/
15021506
public com.google.common.util.concurrent.ListenableFuture<

0 commit comments

Comments
 (0)