Skip to content

Commit

Permalink
feat: [dialogflow-cx] added GitIntegrationSettings to the Agent (#9624)
Browse files Browse the repository at this point in the history
* feat: added GitIntegrationSettings to the Agent

PiperOrigin-RevId: 546355900

Source-Link: googleapis/googleapis@dc3d3a2

Source-Link: googleapis/googleapis-gen@2480a9f
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jul 10, 2023
1 parent 3ac3050 commit 2e5fde3
Show file tree
Hide file tree
Showing 20 changed files with 5,806 additions and 153 deletions.
4 changes: 2 additions & 2 deletions java-dialogflow-cx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.17.0</version>
<version>26.18.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.30.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.31.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ public final UnaryCallable<DeleteAgentRequest, Empty> deleteAgentCallable() {
* .setEnvironment(
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
* .toString())
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
* .setIncludeBigqueryExportSettings(true)
* .build();
* ExportAgentResponse response = agentsClient.exportAgentAsync(request).get();
Expand Down Expand Up @@ -883,6 +884,7 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(
* .setEnvironment(
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
* .toString())
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
* .setIncludeBigqueryExportSettings(true)
* .build();
* OperationFuture<ExportAgentResponse, Struct> future =
Expand Down Expand Up @@ -925,6 +927,7 @@ public final OperationFuture<ExportAgentResponse, Struct> exportAgentAsync(
* .setEnvironment(
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
* .toString())
* .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
* .setIncludeBigqueryExportSettings(true)
* .build();
* ApiFuture<Operation> future = agentsClient.exportAgentCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,8 @@ public final UnaryCallable<ExportTestCasesRequest, Operation> exportTestCasesCal

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

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Fetches a list of results for a given test case.
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
* each test case.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1415,7 +1417,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(String parent)

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Fetches a list of results for a given test case.
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
* each test case.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1450,7 +1453,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Fetches a list of results for a given test case.
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
* each test case.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -1485,7 +1489,8 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Fetches a list of results for a given test case.
* Fetches the list of run results for the given test case. A maximum of 100 results are kept for
* each test case.
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public void getAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -266,6 +267,7 @@ public void getAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -326,6 +328,7 @@ public void createAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -388,6 +391,7 @@ public void createAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -450,6 +454,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);
Expand All @@ -472,6 +477,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
Expand Down Expand Up @@ -520,6 +526,7 @@ public void updateAgentExceptionTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
Expand Down Expand Up @@ -628,6 +635,7 @@ public void exportAgentTest() throws Exception {
.setEnvironment(
EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
.toString())
.setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
.setIncludeBigqueryExportSettings(true)
.build();

Expand Down Expand Up @@ -664,6 +672,7 @@ public void exportAgentExceptionTest() throws Exception {
.setEnvironment(
EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
.toString())
.setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
.setIncludeBigqueryExportSettings(true)
.build();
client.exportAgentAsync(request).get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public void getAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);
Expand Down Expand Up @@ -256,6 +257,7 @@ public void getAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);
Expand Down Expand Up @@ -310,6 +312,7 @@ public void createAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);
Expand Down Expand Up @@ -367,6 +370,7 @@ public void createAgentTest2() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);
Expand Down Expand Up @@ -424,6 +428,7 @@ public void updateAgentTest() throws Exception {
.setEnableSpellCorrection(true)
.setLocked(true)
.setAdvancedSettings(AdvancedSettings.newBuilder().build())
.setGitIntegrationSettings(Agent.GitIntegrationSettings.newBuilder().build())
.setTextToSpeechSettings(TextToSpeechSettings.newBuilder().build())
.build();
mockAgents.addResponse(expectedResponse);
Expand Down Expand Up @@ -547,6 +552,7 @@ public void exportAgentTest() throws Exception {
.setEnvironment(
EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
.toString())
.setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
.setIncludeBigqueryExportSettings(true)
.build();

Expand All @@ -561,6 +567,7 @@ public void exportAgentTest() throws Exception {
Assert.assertEquals(request.getAgentUri(), actualRequest.getAgentUri());
Assert.assertEquals(request.getDataFormat(), actualRequest.getDataFormat());
Assert.assertEquals(request.getEnvironment(), actualRequest.getEnvironment());
Assert.assertEquals(request.getGitDestination(), actualRequest.getGitDestination());
Assert.assertEquals(
request.getIncludeBigqueryExportSettings(),
actualRequest.getIncludeBigqueryExportSettings());
Expand All @@ -583,6 +590,7 @@ public void exportAgentExceptionTest() throws Exception {
.setEnvironment(
EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
.toString())
.setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build())
.setIncludeBigqueryExportSettings(true)
.build();
client.exportAgentAsync(request).get();
Expand Down Expand Up @@ -619,6 +627,7 @@ public void restoreAgentTest() throws Exception {
Assert.assertEquals(request.getName(), actualRequest.getName());
Assert.assertEquals(request.getAgentUri(), actualRequest.getAgentUri());
Assert.assertEquals(request.getAgentContent(), actualRequest.getAgentContent());
Assert.assertEquals(request.getGitSource(), actualRequest.getGitSource());
Assert.assertEquals(request.getRestoreOption(), actualRequest.getRestoreOption());
Assert.assertTrue(
channelProvider.isHeaderSent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ default void exportTestCases(
*
*
* <pre>
* Fetches a list of results for a given test case.
* Fetches the list of run results for the given test case. A maximum of 100
* results are kept for each test case.
* </pre>
*/
default void listTestCaseResults(
Expand Down Expand Up @@ -1085,7 +1086,8 @@ public void exportTestCases(
*
*
* <pre>
* Fetches a list of results for a given test case.
* Fetches the list of run results for the given test case. A maximum of 100
* results are kept for each test case.
* </pre>
*/
public void listTestCaseResults(
Expand Down Expand Up @@ -1303,7 +1305,8 @@ public com.google.longrunning.Operation exportTestCases(
*
*
* <pre>
* Fetches a list of results for a given test case.
* Fetches the list of run results for the given test case. A maximum of 100
* results are kept for each test case.
* </pre>
*/
public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse listTestCaseResults(
Expand Down Expand Up @@ -1517,7 +1520,8 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
*
*
* <pre>
* Fetches a list of results for a given test case.
* Fetches the list of run results for the given test case. A maximum of 100
* results are kept for each test case.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<
Expand Down
Loading

0 comments on commit 2e5fde3

Please sign in to comment.