Skip to content

Commit 2e5fde3

Browse files
feat: [dialogflow-cx] added GitIntegrationSettings to the Agent (#9624)
* feat: added GitIntegrationSettings to the Agent PiperOrigin-RevId: 546355900 Source-Link: googleapis/googleapis@dc3d3a2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2480a9f8bfbc7987f583d70e199584a46b52133f Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiIyNDgwYTlmOGJmYmM3OTg3ZjU4M2Q3MGUxOTk1ODRhNDZiNTIxMzNmIn0= * 🦉 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 3ac3050 commit 2e5fde3

File tree

20 files changed

+5806
-153
lines changed

20 files changed

+5806
-153
lines changed

java-dialogflow-cx/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.17.0</version>
26+
<version>26.18.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.30.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.31.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ public final UnaryCallable<DeleteAgentRequest, Empty> deleteAgentCallable() {
841841
* .setEnvironment(
842842
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
843843
* .toString())
844+
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
844845
* .setIncludeBigqueryExportSettings(true)
845846
* .build();
846847
* ExportAgentResponse response = agentsClient.exportAgentAsync(request).get();
@@ -883,6 +884,7 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(
883884
* .setEnvironment(
884885
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
885886
* .toString())
887+
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
886888
* .setIncludeBigqueryExportSettings(true)
887889
* .build();
888890
* OperationFuture<ExportAgentResponse, Struct> future =
@@ -925,6 +927,7 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(
925927
* .setEnvironment(
926928
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
927929
* .toString())
930+
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
928931
* .setIncludeBigqueryExportSettings(true)
929932
* .build();
930933
* ApiFuture<Operation> future = agentsClient.exportAgentCallable().futureCall(request);

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

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

13491349
// AUTO-GENERATED DOCUMENTATION AND METHOD.
13501350
/**
1351-
* Fetches a list of results for a given test case.
1351+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1352+
* each test case.
13521353
*
13531354
* <p>Sample code:
13541355
*
@@ -1382,7 +1383,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(TestCaseName p
13821383

13831384
// AUTO-GENERATED DOCUMENTATION AND METHOD.
13841385
/**
1385-
* Fetches a list of results for a given test case.
1386+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1387+
* each test case.
13861388
*
13871389
* <p>Sample code:
13881390
*
@@ -1415,7 +1417,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(String parent)
14151417

14161418
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14171419
/**
1418-
* Fetches a list of results for a given test case.
1420+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1421+
* each test case.
14191422
*
14201423
* <p>Sample code:
14211424
*
@@ -1450,7 +1453,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
14501453

14511454
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14521455
/**
1453-
* Fetches a list of results for a given test case.
1456+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1457+
* each test case.
14541458
*
14551459
* <p>Sample code:
14561460
*
@@ -1485,7 +1489,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
14851489

14861490
// AUTO-GENERATED DOCUMENTATION AND METHOD.
14871491
/**
1488-
* Fetches a list of results for a given test case.
1492+
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
1493+
* each test case.
14891494
*
14901495
* <p>Sample code:
14911496
*

java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/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/v3beta1/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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,8 @@ default void exportTestCases(
820820
*
821821
*
822822
* <pre>
823-
* Fetches a list of results for a given test case.
823+
* Fetches the list of run results for the given test case. A maximum of 100
824+
* results are kept for each test case.
824825
* </pre>
825826
*/
826827
default void listTestCaseResults(
@@ -1085,7 +1086,8 @@ public void exportTestCases(
10851086
*
10861087
*
10871088
* <pre>
1088-
* Fetches a list of results for a given test case.
1089+
* Fetches the list of run results for the given test case. A maximum of 100
1090+
* results are kept for each test case.
10891091
* </pre>
10901092
*/
10911093
public void listTestCaseResults(
@@ -1303,7 +1305,8 @@ public com.google.longrunning.Operation exportTestCases(
13031305
*
13041306
*
13051307
* <pre>
1306-
* Fetches a list of results for a given test case.
1308+
* Fetches the list of run results for the given test case. A maximum of 100
1309+
* results are kept for each test case.
13071310
* </pre>
13081311
*/
13091312
public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse listTestCaseResults(
@@ -1517,7 +1520,8 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
15171520
*
15181521
*
15191522
* <pre>
1520-
* Fetches a list of results for a given test case.
1523+
* Fetches the list of run results for the given test case. A maximum of 100
1524+
* results are kept for each test case.
15211525
* </pre>
15221526
*/
15231527
public com.google.common.util.concurrent.ListenableFuture<

0 commit comments

Comments
 (0)