From 2e5fde30b7d72ce6d7a2ba11a0472714c3c6519f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 Jul 2023 09:57:20 -0400 Subject: [PATCH] feat: [dialogflow-cx] added GitIntegrationSettings to the Agent (#9624) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added GitIntegrationSettings to the Agent PiperOrigin-RevId: 546355900 Source-Link: https://github.com/googleapis/googleapis/commit/dc3d3a2bf6b082b22fefa27119caaaf74e2fce8e 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 --- java-dialogflow-cx/README.md | 4 +- .../dialogflow/cx/v3beta1/AgentsClient.java | 3 + .../cx/v3beta1/TestCasesClient.java | 15 +- .../cx/v3beta1/AgentsClientHttpJsonTest.java | 9 + .../cx/v3beta1/AgentsClientTest.java | 9 + .../dialogflow/cx/v3beta1/TestCasesGrpc.java | 12 +- .../cloud/dialogflow/cx/v3beta1/Agent.java | 2924 ++++++++++++++++- .../dialogflow/cx/v3beta1/AgentOrBuilder.java | 44 +- .../dialogflow/cx/v3beta1/AgentProto.java | 300 +- .../cx/v3beta1/ExportAgentRequest.java | 1183 ++++++- .../v3beta1/ExportAgentRequestOrBuilder.java | 42 + .../cx/v3beta1/ExportAgentResponse.java | 276 +- .../v3beta1/ExportAgentResponseOrBuilder.java | 51 +- .../cx/v3beta1/RestoreAgentRequest.java | 984 +++++- .../v3beta1/RestoreAgentRequestOrBuilder.java | 36 + .../cloud/dialogflow/cx/v3beta1/agent.proto | 61 +- .../dialogflow/cx/v3beta1/test_case.proto | 3 +- .../agents/exportagent/AsyncExportAgent.java | 1 + .../exportagent/AsyncExportAgentLRO.java | 1 + .../agents/exportagent/SyncExportAgent.java | 1 + 20 files changed, 5806 insertions(+), 153 deletions(-) diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 8a6f978b4a35..67e9b8d15f48 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.17.0 + 26.18.0 pom import @@ -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 diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java index 8fa9d959182c..abcd2a45ebcb 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java @@ -841,6 +841,7 @@ public final UnaryCallable deleteAgentCallable() { * .setEnvironment( * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") * .toString()) + * .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build()) * .setIncludeBigqueryExportSettings(true) * .build(); * ExportAgentResponse response = agentsClient.exportAgentAsync(request).get(); @@ -883,6 +884,7 @@ public final OperationFuture exportAgentAsync( * .setEnvironment( * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") * .toString()) + * .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build()) * .setIncludeBigqueryExportSettings(true) * .build(); * OperationFuture future = @@ -925,6 +927,7 @@ public final OperationFuture exportAgentAsync( * .setEnvironment( * EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") * .toString()) + * .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build()) * .setIncludeBigqueryExportSettings(true) * .build(); * ApiFuture future = agentsClient.exportAgentCallable().futureCall(request); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java index ff11d98d6faa..92a049cad425 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java @@ -1348,7 +1348,8 @@ public final UnaryCallable 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. * *

Sample code: * @@ -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. * *

Sample code: * @@ -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. * *

Sample code: * @@ -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. * *

Sample code: * @@ -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. * *

Sample code: * diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientHttpJsonTest.java index 5be6bc5a27a9..fb7173d37fad 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientHttpJsonTest.java @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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(); @@ -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(); @@ -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(); @@ -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(); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java index 7b04d9a386b8..4086acbc4bbe 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -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(); @@ -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()); @@ -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(); @@ -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( diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java index 2102e86232d3..2c1baf5c52e4 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java @@ -820,7 +820,8 @@ default void exportTestCases( * * *

-     * 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.
      * 
*/ default void listTestCaseResults( @@ -1085,7 +1086,8 @@ public void exportTestCases( * * *
-     * 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.
      * 
*/ public void listTestCaseResults( @@ -1303,7 +1305,8 @@ public com.google.longrunning.Operation exportTestCases( * * *
-     * 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.
      * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse listTestCaseResults( @@ -1517,7 +1520,8 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
-     * 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.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java index 2d58845239b2..990904aab96b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java @@ -81,6 +81,2598 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.Agent.Builder.class); } + public interface GitIntegrationSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * GitHub settings.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + * + * @return Whether the githubSettings field is set. + */ + boolean hasGithubSettings(); + /** + * + * + *
+     * GitHub settings.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + * + * @return The githubSettings. + */ + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + getGithubSettings(); + /** + * + * + *
+     * GitHub settings.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettingsOrBuilder + getGithubSettingsOrBuilder(); + + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GitSettingsCase + getGitSettingsCase(); + } + /** + * + * + *
+   * Settings for connecting to Git repository for an agent.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} + */ + public static final class GitIntegrationSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) + GitIntegrationSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitIntegrationSettings.newBuilder() to construct. + private GitIntegrationSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitIntegrationSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitIntegrationSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.class, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.Builder.class); + } + + public interface GithubSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The unique repository display name for the GitHub repository.
+       * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+       * The unique repository display name for the GitHub repository.
+       * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+       * The GitHub repository URI related to the agent.
+       * 
+ * + * string repository_uri = 2; + * + * @return The repositoryUri. + */ + java.lang.String getRepositoryUri(); + /** + * + * + *
+       * The GitHub repository URI related to the agent.
+       * 
+ * + * string repository_uri = 2; + * + * @return The bytes for repositoryUri. + */ + com.google.protobuf.ByteString getRepositoryUriBytes(); + + /** + * + * + *
+       * The branch of the GitHub repository tracked for this agent.
+       * 
+ * + * string tracking_branch = 3; + * + * @return The trackingBranch. + */ + java.lang.String getTrackingBranch(); + /** + * + * + *
+       * The branch of the GitHub repository tracked for this agent.
+       * 
+ * + * string tracking_branch = 3; + * + * @return The bytes for trackingBranch. + */ + com.google.protobuf.ByteString getTrackingBranchBytes(); + + /** + * + * + *
+       * The access token used to authenticate the access to the GitHub
+       * repository.
+       * 
+ * + * string access_token = 4; + * + * @return The accessToken. + */ + java.lang.String getAccessToken(); + /** + * + * + *
+       * The access token used to authenticate the access to the GitHub
+       * repository.
+       * 
+ * + * string access_token = 4; + * + * @return The bytes for accessToken. + */ + com.google.protobuf.ByteString getAccessTokenBytes(); + + /** + * + * + *
+       * A list of branches configured to be used from Dialogflow.
+       * 
+ * + * repeated string branches = 5; + * + * @return A list containing the branches. + */ + java.util.List getBranchesList(); + /** + * + * + *
+       * A list of branches configured to be used from Dialogflow.
+       * 
+ * + * repeated string branches = 5; + * + * @return The count of branches. + */ + int getBranchesCount(); + /** + * + * + *
+       * A list of branches configured to be used from Dialogflow.
+       * 
+ * + * repeated string branches = 5; + * + * @param index The index of the element to return. + * @return The branches at the given index. + */ + java.lang.String getBranches(int index); + /** + * + * + *
+       * A list of branches configured to be used from Dialogflow.
+       * 
+ * + * repeated string branches = 5; + * + * @param index The index of the value to return. + * @return The bytes of the branches at the given index. + */ + com.google.protobuf.ByteString getBranchesBytes(int index); + } + /** + * + * + *
+     * Settings of integration with GitHub.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} + */ + public static final class GithubSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + GithubSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GithubSettings.newBuilder() to construct. + private GithubSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GithubSettings() { + displayName_ = ""; + repositoryUri_ = ""; + trackingBranch_ = ""; + accessToken_ = ""; + branches_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GithubSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .class, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+       * The unique repository display name for the GitHub repository.
+       * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+       * The unique repository display name for the GitHub repository.
+       * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object repositoryUri_ = ""; + /** + * + * + *
+       * The GitHub repository URI related to the agent.
+       * 
+ * + * string repository_uri = 2; + * + * @return The repositoryUri. + */ + @java.lang.Override + public java.lang.String getRepositoryUri() { + java.lang.Object ref = repositoryUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryUri_ = s; + return s; + } + } + /** + * + * + *
+       * The GitHub repository URI related to the agent.
+       * 
+ * + * string repository_uri = 2; + * + * @return The bytes for repositoryUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryUriBytes() { + java.lang.Object ref = repositoryUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repositoryUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRACKING_BRANCH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object trackingBranch_ = ""; + /** + * + * + *
+       * The branch of the GitHub repository tracked for this agent.
+       * 
+ * + * string tracking_branch = 3; + * + * @return The trackingBranch. + */ + @java.lang.Override + public java.lang.String getTrackingBranch() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trackingBranch_ = s; + return s; + } + } + /** + * + * + *
+       * The branch of the GitHub repository tracked for this agent.
+       * 
+ * + * string tracking_branch = 3; + * + * @return The bytes for trackingBranch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrackingBranchBytes() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trackingBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object accessToken_ = ""; + /** + * + * + *
+       * The access token used to authenticate the access to the GitHub
+       * repository.
+       * 
+ * + * string access_token = 4; + * + * @return The accessToken. + */ + @java.lang.Override + public java.lang.String getAccessToken() { + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } + } + /** + * + * + *
+       * The access token used to authenticate the access to the GitHub
+       * repository.
+       * 
+ * + * string access_token = 4; + * + * @return The bytes for accessToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccessTokenBytes() { + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BRANCHES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList branches_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * A list of branches configured to be used from Dialogflow.
+       * 
+ * + * repeated string branches = 5; + * + * @return A list containing the branches. + */ + public com.google.protobuf.ProtocolStringList getBranchesList() { + return branches_; + } + /** + * + * + *
+       * A list of branches configured to be used from Dialogflow.
+       * 
+ * + * repeated string branches = 5; + * + * @return The count of branches. + */ + public int getBranchesCount() { + return branches_.size(); + } + /** + * + * + *
+       * A list of branches configured to be used from Dialogflow.
+       * 
+ * + * repeated string branches = 5; + * + * @param index The index of the element to return. + * @return The branches at the given index. + */ + public java.lang.String getBranches(int index) { + return branches_.get(index); + } + /** + * + * + *
+       * A list of branches configured to be used from Dialogflow.
+       * 
+ * + * repeated string branches = 5; + * + * @param index The index of the value to return. + * @return The bytes of the branches at the given index. + */ + public com.google.protobuf.ByteString getBranchesBytes(int index) { + return branches_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, repositoryUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingBranch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, trackingBranch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, accessToken_); + } + for (int i = 0; i < branches_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, branches_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repositoryUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, repositoryUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingBranch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, trackingBranch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, accessToken_); + } + { + int dataSize = 0; + for (int i = 0; i < branches_.size(); i++) { + dataSize += computeStringSizeNoTag(branches_.getRaw(i)); + } + size += dataSize; + size += 1 * getBranchesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings other = + (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRepositoryUri().equals(other.getRepositoryUri())) return false; + if (!getTrackingBranch().equals(other.getTrackingBranch())) return false; + if (!getAccessToken().equals(other.getAccessToken())) return false; + if (!getBranchesList().equals(other.getBranchesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + REPOSITORY_URI_FIELD_NUMBER; + hash = (53 * hash) + getRepositoryUri().hashCode(); + hash = (37 * hash) + TRACKING_BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getTrackingBranch().hashCode(); + hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAccessToken().hashCode(); + if (getBranchesCount() > 0) { + hash = (37 * hash) + BRANCHES_FIELD_NUMBER; + hash = (53 * hash) + getBranchesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Settings of integration with GitHub.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .class, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + repositoryUri_ = ""; + trackingBranch_ = ""; + accessToken_ = ""; + branches_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + build() { + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + result = + new com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.repositoryUri_ = repositoryUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trackingBranch_ = trackingBranch_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.accessToken_ = accessToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + branches_.makeImmutable(); + result.branches_ = branches_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRepositoryUri().isEmpty()) { + repositoryUri_ = other.repositoryUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTrackingBranch().isEmpty()) { + trackingBranch_ = other.trackingBranch_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAccessToken().isEmpty()) { + accessToken_ = other.accessToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.branches_.isEmpty()) { + if (branches_.isEmpty()) { + branches_ = other.branches_; + bitField0_ |= 0x00000010; + } else { + ensureBranchesIsMutable(); + branches_.addAll(other.branches_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + repositoryUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + trackingBranch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBranchesIsMutable(); + branches_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+         * The unique repository display name for the GitHub repository.
+         * 
+ * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The unique repository display name for the GitHub repository.
+         * 
+ * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The unique repository display name for the GitHub repository.
+         * 
+ * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The unique repository display name for the GitHub repository.
+         * 
+ * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * The unique repository display name for the GitHub repository.
+         * 
+ * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object repositoryUri_ = ""; + /** + * + * + *
+         * The GitHub repository URI related to the agent.
+         * 
+ * + * string repository_uri = 2; + * + * @return The repositoryUri. + */ + public java.lang.String getRepositoryUri() { + java.lang.Object ref = repositoryUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repositoryUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The GitHub repository URI related to the agent.
+         * 
+ * + * string repository_uri = 2; + * + * @return The bytes for repositoryUri. + */ + public com.google.protobuf.ByteString getRepositoryUriBytes() { + java.lang.Object ref = repositoryUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repositoryUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The GitHub repository URI related to the agent.
+         * 
+ * + * string repository_uri = 2; + * + * @param value The repositoryUri to set. + * @return This builder for chaining. + */ + public Builder setRepositoryUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repositoryUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * The GitHub repository URI related to the agent.
+         * 
+ * + * string repository_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearRepositoryUri() { + repositoryUri_ = getDefaultInstance().getRepositoryUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+         * The GitHub repository URI related to the agent.
+         * 
+ * + * string repository_uri = 2; + * + * @param value The bytes for repositoryUri to set. + * @return This builder for chaining. + */ + public Builder setRepositoryUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repositoryUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object trackingBranch_ = ""; + /** + * + * + *
+         * The branch of the GitHub repository tracked for this agent.
+         * 
+ * + * string tracking_branch = 3; + * + * @return The trackingBranch. + */ + public java.lang.String getTrackingBranch() { + java.lang.Object ref = trackingBranch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trackingBranch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The branch of the GitHub repository tracked for this agent.
+         * 
+ * + * string tracking_branch = 3; + * + * @return The bytes for trackingBranch. + */ + public com.google.protobuf.ByteString getTrackingBranchBytes() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trackingBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The branch of the GitHub repository tracked for this agent.
+         * 
+ * + * string tracking_branch = 3; + * + * @param value The trackingBranch to set. + * @return This builder for chaining. + */ + public Builder setTrackingBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trackingBranch_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * The branch of the GitHub repository tracked for this agent.
+         * 
+ * + * string tracking_branch = 3; + * + * @return This builder for chaining. + */ + public Builder clearTrackingBranch() { + trackingBranch_ = getDefaultInstance().getTrackingBranch(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+         * The branch of the GitHub repository tracked for this agent.
+         * 
+ * + * string tracking_branch = 3; + * + * @param value The bytes for trackingBranch to set. + * @return This builder for chaining. + */ + public Builder setTrackingBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingBranch_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object accessToken_ = ""; + /** + * + * + *
+         * The access token used to authenticate the access to the GitHub
+         * repository.
+         * 
+ * + * string access_token = 4; + * + * @return The accessToken. + */ + public java.lang.String getAccessToken() { + java.lang.Object ref = accessToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The access token used to authenticate the access to the GitHub
+         * repository.
+         * 
+ * + * string access_token = 4; + * + * @return The bytes for accessToken. + */ + public com.google.protobuf.ByteString getAccessTokenBytes() { + java.lang.Object ref = accessToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The access token used to authenticate the access to the GitHub
+         * repository.
+         * 
+ * + * string access_token = 4; + * + * @param value The accessToken to set. + * @return This builder for chaining. + */ + public Builder setAccessToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accessToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+         * The access token used to authenticate the access to the GitHub
+         * repository.
+         * 
+ * + * string access_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearAccessToken() { + accessToken_ = getDefaultInstance().getAccessToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+         * The access token used to authenticate the access to the GitHub
+         * repository.
+         * 
+ * + * string access_token = 4; + * + * @param value The bytes for accessToken to set. + * @return This builder for chaining. + */ + public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList branches_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBranchesIsMutable() { + if (!branches_.isModifiable()) { + branches_ = new com.google.protobuf.LazyStringArrayList(branches_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @return A list containing the branches. + */ + public com.google.protobuf.ProtocolStringList getBranchesList() { + branches_.makeImmutable(); + return branches_; + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @return The count of branches. + */ + public int getBranchesCount() { + return branches_.size(); + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @param index The index of the element to return. + * @return The branches at the given index. + */ + public java.lang.String getBranches(int index) { + return branches_.get(index); + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @param index The index of the value to return. + * @return The bytes of the branches at the given index. + */ + public com.google.protobuf.ByteString getBranchesBytes(int index) { + return branches_.getByteString(index); + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @param index The index to set the value at. + * @param value The branches to set. + * @return This builder for chaining. + */ + public Builder setBranches(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBranchesIsMutable(); + branches_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @param value The branches to add. + * @return This builder for chaining. + */ + public Builder addBranches(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBranchesIsMutable(); + branches_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @param values The branches to add. + * @return This builder for chaining. + */ + public Builder addAllBranches(java.lang.Iterable values) { + ensureBranchesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, branches_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @return This builder for chaining. + */ + public Builder clearBranches() { + branches_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * A list of branches configured to be used from Dialogflow.
+         * 
+ * + * repeated string branches = 5; + * + * @param value The bytes of the branches to add. + * @return This builder for chaining. + */ + public Builder addBranchesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBranchesIsMutable(); + branches_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + private static final com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GithubSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int gitSettingsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object gitSettings_; + + public enum GitSettingsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GITHUB_SETTINGS(1), + GITSETTINGS_NOT_SET(0); + private final int value; + + private GitSettingsCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GitSettingsCase valueOf(int value) { + return forNumber(value); + } + + public static GitSettingsCase forNumber(int value) { + switch (value) { + case 1: + return GITHUB_SETTINGS; + case 0: + return GITSETTINGS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public GitSettingsCase getGitSettingsCase() { + return GitSettingsCase.forNumber(gitSettingsCase_); + } + + public static final int GITHUB_SETTINGS_FIELD_NUMBER = 1; + /** + * + * + *
+     * GitHub settings.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + * + * @return Whether the githubSettings field is set. + */ + @java.lang.Override + public boolean hasGithubSettings() { + return gitSettingsCase_ == 1; + } + /** + * + * + *
+     * GitHub settings.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + * + * @return The githubSettings. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + getGithubSettings() { + if (gitSettingsCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + gitSettings_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .getDefaultInstance(); + } + /** + * + * + *
+     * GitHub settings.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettingsOrBuilder + getGithubSettingsOrBuilder() { + if (gitSettingsCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + gitSettings_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gitSettingsCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + gitSettings_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gitSettingsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings) + gitSettings_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings other = + (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) obj; + + if (!getGitSettingsCase().equals(other.getGitSettingsCase())) return false; + switch (gitSettingsCase_) { + case 1: + if (!getGithubSettings().equals(other.getGithubSettings())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (gitSettingsCase_) { + case 1: + hash = (37 * hash) + GITHUB_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGithubSettings().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Settings for connecting to Git repository for an agent.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.class, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (githubSettingsBuilder_ != null) { + githubSettingsBuilder_.clear(); + } + gitSettingsCase_ = 0; + gitSettings_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings build() { + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings result = + new com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings result) { + result.gitSettingsCase_ = gitSettingsCase_; + result.gitSettings_ = this.gitSettings_; + if (gitSettingsCase_ == 1 && githubSettingsBuilder_ != null) { + result.gitSettings_ = githubSettingsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .getDefaultInstance()) return this; + switch (other.getGitSettingsCase()) { + case GITHUB_SETTINGS: + { + mergeGithubSettings(other.getGithubSettings()); + break; + } + case GITSETTINGS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getGithubSettingsFieldBuilder().getBuilder(), extensionRegistry); + gitSettingsCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int gitSettingsCase_ = 0; + private java.lang.Object gitSettings_; + + public GitSettingsCase getGitSettingsCase() { + return GitSettingsCase.forNumber(gitSettingsCase_); + } + + public Builder clearGitSettings() { + gitSettingsCase_ = 0; + gitSettings_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .Builder, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettingsOrBuilder> + githubSettingsBuilder_; + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + * + * @return Whether the githubSettings field is set. + */ + @java.lang.Override + public boolean hasGithubSettings() { + return gitSettingsCase_ == 1; + } + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + * + * @return The githubSettings. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + getGithubSettings() { + if (githubSettingsBuilder_ == null) { + if (gitSettingsCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings) + gitSettings_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .getDefaultInstance(); + } else { + if (gitSettingsCase_ == 1) { + return githubSettingsBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .getDefaultInstance(); + } + } + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + public Builder setGithubSettings( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + value) { + if (githubSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gitSettings_ = value; + onChanged(); + } else { + githubSettingsBuilder_.setMessage(value); + } + gitSettingsCase_ = 1; + return this; + } + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + public Builder setGithubSettings( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings.Builder + builderForValue) { + if (githubSettingsBuilder_ == null) { + gitSettings_ = builderForValue.build(); + onChanged(); + } else { + githubSettingsBuilder_.setMessage(builderForValue.build()); + } + gitSettingsCase_ = 1; + return this; + } + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + public Builder mergeGithubSettings( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + value) { + if (githubSettingsBuilder_ == null) { + if (gitSettingsCase_ == 1 + && gitSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings.getDefaultInstance()) { + gitSettings_ = + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings) + gitSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + gitSettings_ = value; + } + onChanged(); + } else { + if (gitSettingsCase_ == 1) { + githubSettingsBuilder_.mergeFrom(value); + } else { + githubSettingsBuilder_.setMessage(value); + } + } + gitSettingsCase_ = 1; + return this; + } + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + public Builder clearGithubSettings() { + if (githubSettingsBuilder_ == null) { + if (gitSettingsCase_ == 1) { + gitSettingsCase_ = 0; + gitSettings_ = null; + onChanged(); + } + } else { + if (gitSettingsCase_ == 1) { + gitSettingsCase_ = 0; + gitSettings_ = null; + } + githubSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .Builder + getGithubSettingsBuilder() { + return getGithubSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettingsOrBuilder + getGithubSettingsOrBuilder() { + if ((gitSettingsCase_ == 1) && (githubSettingsBuilder_ != null)) { + return githubSettingsBuilder_.getMessageOrBuilder(); + } else { + if (gitSettingsCase_ == 1) { + return (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings) + gitSettings_; + } + return com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .getDefaultInstance(); + } + } + /** + * + * + *
+       * GitHub settings.
+       * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings github_settings = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .Builder, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettingsOrBuilder> + getGithubSettingsFieldBuilder() { + if (githubSettingsBuilder_ == null) { + if (!(gitSettingsCase_ == 1)) { + gitSettings_ = + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .getDefaultInstance(); + } + githubSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.GithubSettings + .Builder, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettingsOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .GithubSettings) + gitSettings_, + getParentForChildren(), + isClean()); + gitSettings_ = null; + } + gitSettingsCase_ = 1; + onChanged(); + return githubSettingsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings) + private static final com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitIntegrationSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -682,7 +3274,7 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is deprecated. - * See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=257 + * See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=285 * @return The enableStackdriverLogging. */ @java.lang.Override @@ -783,6 +3375,65 @@ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettin : advancedSettings_; } + public static final int GIT_INTEGRATION_SETTINGS_FIELD_NUMBER = 30; + private com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + gitIntegrationSettings_; + /** + * + * + *
+   * Git integration settings for this agent.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + * + * @return Whether the gitIntegrationSettings field is set. + */ + @java.lang.Override + public boolean hasGitIntegrationSettings() { + return gitIntegrationSettings_ != null; + } + /** + * + * + *
+   * Git integration settings for this agent.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + * + * @return The gitIntegrationSettings. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + getGitIntegrationSettings() { + return gitIntegrationSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.getDefaultInstance() + : gitIntegrationSettings_; + } + /** + * + * + *
+   * Git integration settings for this agent.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettingsOrBuilder + getGitIntegrationSettingsOrBuilder() { + return gitIntegrationSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.getDefaultInstance() + : gitIntegrationSettings_; + } + public static final int TEXT_TO_SPEECH_SETTINGS_FIELD_NUMBER = 31; private com.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings textToSpeechSettings_; /** @@ -897,6 +3548,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (locked_ != false) { output.writeBool(27, locked_); } + if (gitIntegrationSettings_ != null) { + output.writeMessage(30, getGitIntegrationSettings()); + } if (textToSpeechSettings_ != null) { output.writeMessage(31, getTextToSpeechSettings()); } @@ -957,6 +3611,10 @@ public int getSerializedSize() { if (locked_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, locked_); } + if (gitIntegrationSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(30, getGitIntegrationSettings()); + } if (textToSpeechSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getTextToSpeechSettings()); @@ -998,6 +3656,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAdvancedSettings()) { if (!getAdvancedSettings().equals(other.getAdvancedSettings())) return false; } + if (hasGitIntegrationSettings() != other.hasGitIntegrationSettings()) return false; + if (hasGitIntegrationSettings()) { + if (!getGitIntegrationSettings().equals(other.getGitIntegrationSettings())) return false; + } if (hasTextToSpeechSettings() != other.hasTextToSpeechSettings()) return false; if (hasTextToSpeechSettings()) { if (!getTextToSpeechSettings().equals(other.getTextToSpeechSettings())) return false; @@ -1047,6 +3709,10 @@ public int hashCode() { hash = (37 * hash) + ADVANCED_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getAdvancedSettings().hashCode(); } + if (hasGitIntegrationSettings()) { + hash = (37 * hash) + GIT_INTEGRATION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGitIntegrationSettings().hashCode(); + } if (hasTextToSpeechSettings()) { hash = (37 * hash) + TEXT_TO_SPEECH_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getTextToSpeechSettings().hashCode(); @@ -1223,6 +3889,11 @@ public Builder clear() { advancedSettingsBuilder_.dispose(); advancedSettingsBuilder_ = null; } + gitIntegrationSettings_ = null; + if (gitIntegrationSettingsBuilder_ != null) { + gitIntegrationSettingsBuilder_.dispose(); + gitIntegrationSettingsBuilder_ = null; + } textToSpeechSettings_ = null; if (textToSpeechSettingsBuilder_ != null) { textToSpeechSettingsBuilder_.dispose(); @@ -1312,6 +3983,12 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Agent result) advancedSettingsBuilder_ == null ? advancedSettings_ : advancedSettingsBuilder_.build(); } if (((from_bitField0_ & 0x00004000) != 0)) { + result.gitIntegrationSettings_ = + gitIntegrationSettingsBuilder_ == null + ? gitIntegrationSettings_ + : gitIntegrationSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { result.textToSpeechSettings_ = textToSpeechSettingsBuilder_ == null ? textToSpeechSettings_ @@ -1429,6 +4106,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Agent other) { if (other.hasAdvancedSettings()) { mergeAdvancedSettings(other.getAdvancedSettings()); } + if (other.hasGitIntegrationSettings()) { + mergeGitIntegrationSettings(other.getGitIntegrationSettings()); + } if (other.hasTextToSpeechSettings()) { mergeTextToSpeechSettings(other.getTextToSpeechSettings()); } @@ -1545,11 +4225,18 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 216 + case 242: + { + input.readMessage( + getGitIntegrationSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 242 case 250: { input.readMessage( getTextToSpeechSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 250 default: @@ -2956,7 +5643,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=257 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=285 * @return The enableStackdriverLogging. */ @java.lang.Override @@ -2977,7 +5664,7 @@ public boolean getEnableStackdriverLogging() { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=257 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=285 * @param value The enableStackdriverLogging to set. * @return This builder for chaining. */ @@ -3002,7 +5689,7 @@ public Builder setEnableStackdriverLogging(boolean value) { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=257 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=285 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3323,6 +6010,219 @@ public Builder clearAdvancedSettings() { return advancedSettingsBuilder_; } + private com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + gitIntegrationSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettingsOrBuilder> + gitIntegrationSettingsBuilder_; + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + * + * @return Whether the gitIntegrationSettings field is set. + */ + public boolean hasGitIntegrationSettings() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + * + * @return The gitIntegrationSettings. + */ + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + getGitIntegrationSettings() { + if (gitIntegrationSettingsBuilder_ == null) { + return gitIntegrationSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .getDefaultInstance() + : gitIntegrationSettings_; + } else { + return gitIntegrationSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + public Builder setGitIntegrationSettings( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings value) { + if (gitIntegrationSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gitIntegrationSettings_ = value; + } else { + gitIntegrationSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + public Builder setGitIntegrationSettings( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.Builder + builderForValue) { + if (gitIntegrationSettingsBuilder_ == null) { + gitIntegrationSettings_ = builderForValue.build(); + } else { + gitIntegrationSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + public Builder mergeGitIntegrationSettings( + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings value) { + if (gitIntegrationSettingsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && gitIntegrationSettings_ != null + && gitIntegrationSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .getDefaultInstance()) { + getGitIntegrationSettingsBuilder().mergeFrom(value); + } else { + gitIntegrationSettings_ = value; + } + } else { + gitIntegrationSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + public Builder clearGitIntegrationSettings() { + bitField0_ = (bitField0_ & ~0x00004000); + gitIntegrationSettings_ = null; + if (gitIntegrationSettingsBuilder_ != null) { + gitIntegrationSettingsBuilder_.dispose(); + gitIntegrationSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.Builder + getGitIntegrationSettingsBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getGitIntegrationSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettingsOrBuilder + getGitIntegrationSettingsOrBuilder() { + if (gitIntegrationSettingsBuilder_ != null) { + return gitIntegrationSettingsBuilder_.getMessageOrBuilder(); + } else { + return gitIntegrationSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings + .getDefaultInstance() + : gitIntegrationSettings_; + } + } + /** + * + * + *
+     * Git integration settings for this agent.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettingsOrBuilder> + getGitIntegrationSettingsFieldBuilder() { + if (gitIntegrationSettingsBuilder_ == null) { + gitIntegrationSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettingsOrBuilder>( + getGitIntegrationSettings(), getParentForChildren(), isClean()); + gitIntegrationSettings_ = null; + } + return gitIntegrationSettingsBuilder_; + } + private com.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings textToSpeechSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings, @@ -3343,7 +6243,7 @@ public Builder clearAdvancedSettings() { * @return Whether the textToSpeechSettings field is set. */ public boolean hasTextToSpeechSettings() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -3388,7 +6288,7 @@ public Builder setTextToSpeechSettings( } else { textToSpeechSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3410,7 +6310,7 @@ public Builder setTextToSpeechSettings( } else { textToSpeechSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3428,7 +6328,7 @@ public Builder setTextToSpeechSettings( public Builder mergeTextToSpeechSettings( com.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings value) { if (textToSpeechSettingsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && textToSpeechSettings_ != null && textToSpeechSettings_ != com.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings @@ -3440,7 +6340,7 @@ public Builder mergeTextToSpeechSettings( } else { textToSpeechSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3456,7 +6356,7 @@ public Builder mergeTextToSpeechSettings( * */ public Builder clearTextToSpeechSettings() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); textToSpeechSettings_ = null; if (textToSpeechSettingsBuilder_ != null) { textToSpeechSettingsBuilder_.dispose(); @@ -3478,7 +6378,7 @@ public Builder clearTextToSpeechSettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.Builder getTextToSpeechSettingsBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getTextToSpeechSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java index e64dcf50f9f1..8131ec60fccd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java @@ -386,7 +386,7 @@ public interface AgentOrBuilder * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is deprecated. - * See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=257 + * See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=285 * @return The enableStackdriverLogging. */ @java.lang.Deprecated @@ -458,6 +458,48 @@ public interface AgentOrBuilder */ com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder(); + /** + * + * + *
+   * Git integration settings for this agent.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + * + * @return Whether the gitIntegrationSettings field is set. + */ + boolean hasGitIntegrationSettings(); + /** + * + * + *
+   * Git integration settings for this agent.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + * + * @return The gitIntegrationSettings. + */ + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings getGitIntegrationSettings(); + /** + * + * + *
+   * Git integration settings for this agent.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettings git_integration_settings = 30; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.Agent.GitIntegrationSettingsOrBuilder + getGitIntegrationSettingsOrBuilder(); + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java index 1ce348164c38..075d3de8dcab 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java @@ -35,6 +35,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_ListAgentsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -63,6 +71,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -71,6 +83,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_ValidateAgentRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -105,7 +121,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/protobuf/empty.proto\032 google/prot" + "obuf/field_mask.proto\032\034google/protobuf/s" + "truct.proto\"8\n\024SpeechToTextSettings\022 \n\030e" - + "nable_speech_adaptation\030\001 \001(\010\"\202\006\n\005Agent\022" + + "nable_speech_adaptation\030\001 \001(\010\"\376\010\n\005Agent\022" + "\014\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001" + "\002\022$\n\025default_language_code\030\003 \001(\tB\005\342A\002\002\005\022" + " \n\030supported_language_codes\030\004 \003(\t\022\027\n\ttim" @@ -120,113 +136,131 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\010B\002\030\001\022\037\n\027enable_spell_correction\030\024 \001(\010" + "\022\016\n\006locked\030\033 \001(\010\022O\n\021advanced_settings\030\026 " + "\001(\01324.google.cloud.dialogflow.cx.v3beta1" - + ".AdvancedSettings\022Y\n\027text_to_speech_sett" - + "ings\030\037 \001(\01328.google.cloud.dialogflow.cx." - + "v3beta1.TextToSpeechSettings:\\\352AY\n\037dialo" - + "gflow.googleapis.com/Agent\0226projects/{pr" - + "oject}/locations/{location}/agents/{agen" - + "t}\"t\n\021ListAgentsRequest\0228\n\006parent\030\001 \001(\tB" - + "(\342A\001\002\372A!\022\037dialogflow.googleapis.com/Agen" - + "t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" - + "\"h\n\022ListAgentsResponse\0229\n\006agents\030\001 \003(\0132)" - + ".google.cloud.dialogflow.cx.v3beta1.Agen" - + "t\022\027\n\017next_page_token\030\002 \001(\t\"I\n\017GetAgentRe" - + "quest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037dialogflow" - + ".googleapis.com/Agent\"\216\001\n\022CreateAgentReq" - + "uest\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\022\037dialogflo" - + "w.googleapis.com/Agent\022>\n\005agent\030\002 \001(\0132)." - + "google.cloud.dialogflow.cx.v3beta1.Agent" - + "B\004\342A\001\002\"\205\001\n\022UpdateAgentRequest\022>\n\005agent\030\001" - + " \001(\0132).google.cloud.dialogflow.cx.v3beta" - + "1.AgentB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMask\"L\n\022DeleteAgentReq" - + "uest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037dialogflow." - + "googleapis.com/Agent\"\377\002\n\022ExportAgentRequ" - + "est\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037dialogflow.g" - + "oogleapis.com/Agent\022\027\n\tagent_uri\030\002 \001(\tB\004" - + "\342A\001\001\022\\\n\013data_format\030\003 \001(\0162A.google.cloud" - + ".dialogflow.cx.v3beta1.ExportAgentReques" - + "t.DataFormatB\004\342A\001\001\022C\n\013environment\030\005 \001(\tB" - + ".\342A\001\001\372A\'\n%dialogflow.googleapis.com/Envi" - + "ronment\022.\n include_bigquery_export_setti" - + "ngs\030\007 \001(\010B\004\342A\001\001\"E\n\nDataFormat\022\033\n\027DATA_FO" - + "RMAT_UNSPECIFIED\020\000\022\010\n\004BLOB\020\001\022\020\n\014JSON_PAC" - + "KAGE\020\004\"L\n\023ExportAgentResponse\022\023\n\tagent_u" - + "ri\030\001 \001(\tH\000\022\027\n\ragent_content\030\002 \001(\014H\000B\007\n\005a" - + "gent\"\254\002\n\023RestoreAgentRequest\0226\n\004name\030\001 \001" - + "(\tB(\342A\001\002\372A!\n\037dialogflow.googleapis.com/A" - + "gent\022\023\n\tagent_uri\030\002 \001(\tH\000\022\027\n\ragent_conte" - + "nt\030\003 \001(\014H\000\022]\n\016restore_option\030\005 \001(\0162E.goo" - + "gle.cloud.dialogflow.cx.v3beta1.RestoreA" - + "gentRequest.RestoreOption\"G\n\rRestoreOpti" - + "on\022\036\n\032RESTORE_OPTION_UNSPECIFIED\020\000\022\010\n\004KE" - + "EP\020\001\022\014\n\010FALLBACK\020\002B\007\n\005agent\"e\n\024ValidateA" - + "gentRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037dial" - + "ogflow.googleapis.com/Agent\022\025\n\rlanguage_" - + "code\030\002 \001(\t\"\200\001\n\037GetAgentValidationResultR" - + "equest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/dialogflo" - + "w.googleapis.com/AgentValidationResult\022\025" - + "\n\rlanguage_code\030\002 \001(\t\"\377\001\n\025AgentValidatio" - + "nResult\022\014\n\004name\030\001 \001(\t\022Y\n\027flow_validation" - + "_results\030\002 \003(\01328.google.cloud.dialogflow" - + ".cx.v3beta1.FlowValidationResult:}\352Az\n/d" - + "ialogflow.googleapis.com/AgentValidation" - + "Result\022Gprojects/{project}/locations/{lo" - + "cation}/agents/{agent}/validationResult2" - + "\221\017\n\006Agents\022\275\001\n\nListAgents\0225.google.cloud" - + ".dialogflow.cx.v3beta1.ListAgentsRequest" - + "\0326.google.cloud.dialogflow.cx.v3beta1.Li" - + "stAgentsResponse\"@\332A\006parent\202\323\344\223\0021\022//v3be" - + "ta1/{parent=projects/*/locations/*}/agen" - + "ts\022\252\001\n\010GetAgent\0223.google.cloud.dialogflo" - + "w.cx.v3beta1.GetAgentRequest\032).google.cl" - + "oud.dialogflow.cx.v3beta1.Agent\">\332A\004name" - + "\202\323\344\223\0021\022//v3beta1/{name=projects/*/locati" - + "ons/*/agents/*}\022\277\001\n\013CreateAgent\0226.google" - + ".cloud.dialogflow.cx.v3beta1.CreateAgent" - + "Request\032).google.cloud.dialogflow.cx.v3b" - + "eta1.Agent\"M\332A\014parent,agent\202\323\344\223\0028\"//v3be" - + "ta1/{parent=projects/*/locations/*}/agen" - + "ts:\005agent\022\312\001\n\013UpdateAgent\0226.google.cloud" - + ".dialogflow.cx.v3beta1.UpdateAgentReques" - + "t\032).google.cloud.dialogflow.cx.v3beta1.A" - + "gent\"X\332A\021agent,update_mask\202\323\344\223\002>25/v3bet" - + "a1/{agent.name=projects/*/locations/*/ag" - + "ents/*}:\005agent\022\235\001\n\013DeleteAgent\0226.google." - + "cloud.dialogflow.cx.v3beta1.DeleteAgentR" - + "equest\032\026.google.protobuf.Empty\">\332A\004name\202" - + "\323\344\223\0021*//v3beta1/{name=projects/*/locatio" - + "ns/*/agents/*}\022\327\001\n\013ExportAgent\0226.google." - + "cloud.dialogflow.cx.v3beta1.ExportAgentR" - + "equest\032\035.google.longrunning.Operation\"q\312" - + "A-\n\023ExportAgentResponse\022\026google.protobuf" - + ".Struct\202\323\344\223\002;\"6/v3beta1/{name=projects/*" - + "/locations/*/agents/*}:export:\001*\022\334\001\n\014Res" - + "toreAgent\0227.google.cloud.dialogflow.cx.v" - + "3beta1.RestoreAgentRequest\032\035.google.long" - + "running.Operation\"t\312A/\n\025google.protobuf." - + "Empty\022\026google.protobuf.Struct\202\323\344\223\002<\"7/v3" - + "beta1/{name=projects/*/locations/*/agent" - + "s/*}:restore:\001*\022\311\001\n\rValidateAgent\0228.goog" - + "le.cloud.dialogflow.cx.v3beta1.ValidateA" - + "gentRequest\0329.google.cloud.dialogflow.cx" - + ".v3beta1.AgentValidationResult\"C\202\323\344\223\002=\"8" - + "/v3beta1/{name=projects/*/locations/*/ag" - + "ents/*}:validate:\001*\022\353\001\n\030GetAgentValidati" - + "onResult\022C.google.cloud.dialogflow.cx.v3" - + "beta1.GetAgentValidationResultRequest\0329." - + "google.cloud.dialogflow.cx.v3beta1.Agent" - + "ValidationResult\"O\332A\004name\202\323\344\223\002B\022@/v3beta" - + "1/{name=projects/*/locations/*/agents/*/" - + "validationResult}\032x\312A\031dialogflow.googlea" - + "pis.com\322AYhttps://www.googleapis.com/aut" - + "h/cloud-platform,https://www.googleapis." - + "com/auth/dialogflowB\304\001\n&com.google.cloud" - + ".dialogflow.cx.v3beta1B\nAgentProtoP\001Z6cl" - + "oud.google.com/go/dialogflow/cx/apiv3bet" - + "a1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dial" - + "ogflow.Cx.V3Beta1\352\002&Google::Cloud::Dialo" - + "gflow::CX::V3beta1b\006proto3" + + ".AdvancedSettings\022b\n\030git_integration_set" + + "tings\030\036 \001(\0132@.google.cloud.dialogflow.cx" + + ".v3beta1.Agent.GitIntegrationSettings\022Y\n" + + "\027text_to_speech_settings\030\037 \001(\01328.google." + + "cloud.dialogflow.cx.v3beta1.TextToSpeech" + + "Settings\032\225\002\n\026GitIntegrationSettings\022j\n\017g" + + "ithub_settings\030\001 \001(\0132O.google.cloud.dial" + + "ogflow.cx.v3beta1.Agent.GitIntegrationSe" + + "ttings.GithubSettingsH\000\032\177\n\016GithubSetting" + + "s\022\024\n\014display_name\030\001 \001(\t\022\026\n\016repository_ur" + + "i\030\002 \001(\t\022\027\n\017tracking_branch\030\003 \001(\t\022\024\n\014acce" + + "ss_token\030\004 \001(\t\022\020\n\010branches\030\005 \003(\tB\016\n\014git_" + + "settings:\\\352AY\n\037dialogflow.googleapis.com" + + "/Agent\0226projects/{project}/locations/{lo" + + "cation}/agents/{agent}\"t\n\021ListAgentsRequ" + + "est\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\022\037dialogflow" + + ".googleapis.com/Agent\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\"h\n\022ListAgentsRespon" + + "se\0229\n\006agents\030\001 \003(\0132).google.cloud.dialog" + + "flow.cx.v3beta1.Agent\022\027\n\017next_page_token" + + "\030\002 \001(\t\"I\n\017GetAgentRequest\0226\n\004name\030\001 \001(\tB" + + "(\342A\001\002\372A!\n\037dialogflow.googleapis.com/Agen" + + "t\"\216\001\n\022CreateAgentRequest\0228\n\006parent\030\001 \001(\t" + + "B(\342A\001\002\372A!\022\037dialogflow.googleapis.com/Age" + + "nt\022>\n\005agent\030\002 \001(\0132).google.cloud.dialogf" + + "low.cx.v3beta1.AgentB\004\342A\001\002\"\205\001\n\022UpdateAge" + + "ntRequest\022>\n\005agent\030\001 \001(\0132).google.cloud." + + "dialogflow.cx.v3beta1.AgentB\004\342A\001\002\022/\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "sk\"L\n\022DeleteAgentRequest\0226\n\004name\030\001 \001(\tB(" + + "\342A\001\002\372A!\n\037dialogflow.googleapis.com/Agent" + + "\"\250\004\n\022ExportAgentRequest\0226\n\004name\030\001 \001(\tB(\342" + + "A\001\002\372A!\n\037dialogflow.googleapis.com/Agent\022" + + "\027\n\tagent_uri\030\002 \001(\tB\004\342A\001\001\022\\\n\013data_format\030" + + "\003 \001(\0162A.google.cloud.dialogflow.cx.v3bet" + + "a1.ExportAgentRequest.DataFormatB\004\342A\001\001\022C" + + "\n\013environment\030\005 \001(\tB.\342A\001\001\372A\'\n%dialogflow" + + ".googleapis.com/Environment\022d\n\017git_desti" + + "nation\030\006 \001(\0132E.google.cloud.dialogflow.c" + + "x.v3beta1.ExportAgentRequest.GitDestinat" + + "ionB\004\342A\001\001\022.\n include_bigquery_export_set" + + "tings\030\007 \001(\010B\004\342A\001\001\032A\n\016GitDestination\022\027\n\017t" + + "racking_branch\030\001 \001(\t\022\026\n\016commit_message\030\002" + + " \001(\t\"E\n\nDataFormat\022\033\n\027DATA_FORMAT_UNSPEC" + + "IFIED\020\000\022\010\n\004BLOB\020\001\022\020\n\014JSON_PACKAGE\020\004\"b\n\023E" + + "xportAgentResponse\022\023\n\tagent_uri\030\001 \001(\tH\000\022" + + "\027\n\ragent_content\030\002 \001(\014H\000\022\024\n\ncommit_sha\030\003" + + " \001(\tH\000B\007\n\005agent\"\253\003\n\023RestoreAgentRequest\022" + + "6\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n\037dialogflow.googl" + + "eapis.com/Agent\022\023\n\tagent_uri\030\002 \001(\tH\000\022\027\n\r" + + "agent_content\030\003 \001(\014H\000\022W\n\ngit_source\030\006 \001(" + + "\0132A.google.cloud.dialogflow.cx.v3beta1.R" + + "estoreAgentRequest.GitSourceH\000\022]\n\016restor" + + "e_option\030\005 \001(\0162E.google.cloud.dialogflow" + + ".cx.v3beta1.RestoreAgentRequest.RestoreO" + + "ption\032$\n\tGitSource\022\027\n\017tracking_branch\030\001 " + + "\001(\t\"G\n\rRestoreOption\022\036\n\032RESTORE_OPTION_U" + + "NSPECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\007\n\005" + + "agent\"e\n\024ValidateAgentRequest\0226\n\004name\030\001 " + + "\001(\tB(\342A\001\002\372A!\n\037dialogflow.googleapis.com/" + + "Agent\022\025\n\rlanguage_code\030\002 \001(\t\"\200\001\n\037GetAgen" + + "tValidationResultRequest\022F\n\004name\030\001 \001(\tB8" + + "\342A\001\002\372A1\n/dialogflow.googleapis.com/Agent" + + "ValidationResult\022\025\n\rlanguage_code\030\002 \001(\t\"" + + "\377\001\n\025AgentValidationResult\022\014\n\004name\030\001 \001(\t\022" + + "Y\n\027flow_validation_results\030\002 \003(\01328.googl" + + "e.cloud.dialogflow.cx.v3beta1.FlowValida" + + "tionResult:}\352Az\n/dialogflow.googleapis.c" + + "om/AgentValidationResult\022Gprojects/{proj" + + "ect}/locations/{location}/agents/{agent}" + + "/validationResult2\221\017\n\006Agents\022\275\001\n\nListAge" + + "nts\0225.google.cloud.dialogflow.cx.v3beta1" + + ".ListAgentsRequest\0326.google.cloud.dialog" + + "flow.cx.v3beta1.ListAgentsResponse\"@\332A\006p" + + "arent\202\323\344\223\0021\022//v3beta1/{parent=projects/*" + + "/locations/*}/agents\022\252\001\n\010GetAgent\0223.goog" + + "le.cloud.dialogflow.cx.v3beta1.GetAgentR" + + "equest\032).google.cloud.dialogflow.cx.v3be" + + "ta1.Agent\">\332A\004name\202\323\344\223\0021\022//v3beta1/{name" + + "=projects/*/locations/*/agents/*}\022\277\001\n\013Cr" + + "eateAgent\0226.google.cloud.dialogflow.cx.v" + + "3beta1.CreateAgentRequest\032).google.cloud" + + ".dialogflow.cx.v3beta1.Agent\"M\332A\014parent," + + "agent\202\323\344\223\0028\"//v3beta1/{parent=projects/*" + + "/locations/*}/agents:\005agent\022\312\001\n\013UpdateAg" + + "ent\0226.google.cloud.dialogflow.cx.v3beta1" + + ".UpdateAgentRequest\032).google.cloud.dialo" + + "gflow.cx.v3beta1.Agent\"X\332A\021agent,update_" + + "mask\202\323\344\223\002>25/v3beta1/{agent.name=project" + + "s/*/locations/*/agents/*}:\005agent\022\235\001\n\013Del" + + "eteAgent\0226.google.cloud.dialogflow.cx.v3" + + "beta1.DeleteAgentRequest\032\026.google.protob" + + "uf.Empty\">\332A\004name\202\323\344\223\0021*//v3beta1/{name=" + + "projects/*/locations/*/agents/*}\022\327\001\n\013Exp" + + "ortAgent\0226.google.cloud.dialogflow.cx.v3" + + "beta1.ExportAgentRequest\032\035.google.longru" + + "nning.Operation\"q\312A-\n\023ExportAgentRespons" + + "e\022\026google.protobuf.Struct\202\323\344\223\002;\"6/v3beta" + + "1/{name=projects/*/locations/*/agents/*}" + + ":export:\001*\022\334\001\n\014RestoreAgent\0227.google.clo" + + "ud.dialogflow.cx.v3beta1.RestoreAgentReq" + + "uest\032\035.google.longrunning.Operation\"t\312A/" + + "\n\025google.protobuf.Empty\022\026google.protobuf" + + ".Struct\202\323\344\223\002<\"7/v3beta1/{name=projects/*" + + "/locations/*/agents/*}:restore:\001*\022\311\001\n\rVa" + + "lidateAgent\0228.google.cloud.dialogflow.cx" + + ".v3beta1.ValidateAgentRequest\0329.google.c" + + "loud.dialogflow.cx.v3beta1.AgentValidati" + + "onResult\"C\202\323\344\223\002=\"8/v3beta1/{name=project" + + "s/*/locations/*/agents/*}:validate:\001*\022\353\001" + + "\n\030GetAgentValidationResult\022C.google.clou" + + "d.dialogflow.cx.v3beta1.GetAgentValidati" + + "onResultRequest\0329.google.cloud.dialogflo" + + "w.cx.v3beta1.AgentValidationResult\"O\332A\004n" + + "ame\202\323\344\223\002B\022@/v3beta1/{name=projects/*/loc" + + "ations/*/agents/*/validationResult}\032x\312A\031" + + "dialogflow.googleapis.com\322AYhttps://www." + + "googleapis.com/auth/cloud-platform,https" + + "://www.googleapis.com/auth/dialogflowB\304\001" + + "\n&com.google.cloud.dialogflow.cx.v3beta1" + + "B\nAgentProtoP\001Z6cloud.google.com/go/dial" + + "ogflow/cx/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002" + + "\"Google.Cloud.Dialogflow.Cx.V3Beta1\352\002&Go" + + "ogle::Cloud::Dialogflow::CX::V3beta1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -272,8 +306,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSpellCorrection", "Locked", "AdvancedSettings", + "GitIntegrationSettings", "TextToSpeechSettings", }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_descriptor, + new java.lang.String[] { + "GithubSettings", "GitSettings", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_GithubSettings_descriptor, + new java.lang.String[] { + "DisplayName", "RepositoryUri", "TrackingBranch", "AccessToken", "Branches", + }); internal_static_google_cloud_dialogflow_cx_v3beta1_ListAgentsRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_dialogflow_cx_v3beta1_ListAgentsRequest_fieldAccessorTable = @@ -328,7 +381,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_descriptor, new java.lang.String[] { - "Name", "AgentUri", "DataFormat", "Environment", "IncludeBigqueryExportSettings", + "Name", + "AgentUri", + "DataFormat", + "Environment", + "GitDestination", + "IncludeBigqueryExportSettings", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_descriptor, + new java.lang.String[] { + "TrackingBranch", "CommitMessage", }); internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentResponse_descriptor = getDescriptor().getMessageTypes().get(9); @@ -336,7 +404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentResponse_descriptor, new java.lang.String[] { - "AgentUri", "AgentContent", "Agent", + "AgentUri", "AgentContent", "CommitSha", "Agent", }); internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_descriptor = getDescriptor().getMessageTypes().get(10); @@ -344,7 +412,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_descriptor, new java.lang.String[] { - "Name", "AgentUri", "AgentContent", "RestoreOption", "Agent", + "Name", "AgentUri", "AgentContent", "GitSource", "RestoreOption", "Agent", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_descriptor, + new java.lang.String[] { + "TrackingBranch", }); internal_static_google_cloud_dialogflow_cx_v3beta1_ValidateAgentRequest_descriptor = getDescriptor().getMessageTypes().get(11); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java index 53c364c47374..296c7c9ed10a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java @@ -225,6 +225,878 @@ private DataFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat) } + public interface GitDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Tracking branch for the git push.
+     * 
+ * + * string tracking_branch = 1; + * + * @return The trackingBranch. + */ + java.lang.String getTrackingBranch(); + /** + * + * + *
+     * Tracking branch for the git push.
+     * 
+ * + * string tracking_branch = 1; + * + * @return The bytes for trackingBranch. + */ + com.google.protobuf.ByteString getTrackingBranchBytes(); + + /** + * + * + *
+     * Commit message for the git push.
+     * 
+ * + * string commit_message = 2; + * + * @return The commitMessage. + */ + java.lang.String getCommitMessage(); + /** + * + * + *
+     * Commit message for the git push.
+     * 
+ * + * string commit_message = 2; + * + * @return The bytes for commitMessage. + */ + com.google.protobuf.ByteString getCommitMessageBytes(); + } + /** + * + * + *
+   * Settings for exporting to a git branch.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} + */ + public static final class GitDestination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) + GitDestinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitDestination.newBuilder() to construct. + private GitDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitDestination() { + trackingBranch_ = ""; + commitMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitDestination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.class, + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.Builder + .class); + } + + public static final int TRACKING_BRANCH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object trackingBranch_ = ""; + /** + * + * + *
+     * Tracking branch for the git push.
+     * 
+ * + * string tracking_branch = 1; + * + * @return The trackingBranch. + */ + @java.lang.Override + public java.lang.String getTrackingBranch() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trackingBranch_ = s; + return s; + } + } + /** + * + * + *
+     * Tracking branch for the git push.
+     * 
+ * + * string tracking_branch = 1; + * + * @return The bytes for trackingBranch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrackingBranchBytes() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trackingBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMIT_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commitMessage_ = ""; + /** + * + * + *
+     * Commit message for the git push.
+     * 
+ * + * string commit_message = 2; + * + * @return The commitMessage. + */ + @java.lang.Override + public java.lang.String getCommitMessage() { + java.lang.Object ref = commitMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitMessage_ = s; + return s; + } + } + /** + * + * + *
+     * Commit message for the git push.
+     * 
+ * + * string commit_message = 2; + * + * @return The bytes for commitMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitMessageBytes() { + java.lang.Object ref = commitMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingBranch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trackingBranch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commitMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingBranch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trackingBranch_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commitMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commitMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination other = + (com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) obj; + + if (!getTrackingBranch().equals(other.getTrackingBranch())) return false; + if (!getCommitMessage().equals(other.getCommitMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TRACKING_BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getTrackingBranch().hashCode(); + hash = (37 * hash) + COMMIT_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getCommitMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Settings for exporting to a git branch.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.class, + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trackingBranch_ = ""; + commitMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ExportAgentRequest_GitDestination_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination build() { + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination result = + new com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trackingBranch_ = trackingBranch_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commitMessage_ = commitMessage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + .getDefaultInstance()) return this; + if (!other.getTrackingBranch().isEmpty()) { + trackingBranch_ = other.trackingBranch_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommitMessage().isEmpty()) { + commitMessage_ = other.commitMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + trackingBranch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commitMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object trackingBranch_ = ""; + /** + * + * + *
+       * Tracking branch for the git push.
+       * 
+ * + * string tracking_branch = 1; + * + * @return The trackingBranch. + */ + public java.lang.String getTrackingBranch() { + java.lang.Object ref = trackingBranch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trackingBranch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Tracking branch for the git push.
+       * 
+ * + * string tracking_branch = 1; + * + * @return The bytes for trackingBranch. + */ + public com.google.protobuf.ByteString getTrackingBranchBytes() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trackingBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Tracking branch for the git push.
+       * 
+ * + * string tracking_branch = 1; + * + * @param value The trackingBranch to set. + * @return This builder for chaining. + */ + public Builder setTrackingBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trackingBranch_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Tracking branch for the git push.
+       * 
+ * + * string tracking_branch = 1; + * + * @return This builder for chaining. + */ + public Builder clearTrackingBranch() { + trackingBranch_ = getDefaultInstance().getTrackingBranch(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Tracking branch for the git push.
+       * 
+ * + * string tracking_branch = 1; + * + * @param value The bytes for trackingBranch to set. + * @return This builder for chaining. + */ + public Builder setTrackingBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingBranch_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commitMessage_ = ""; + /** + * + * + *
+       * Commit message for the git push.
+       * 
+ * + * string commit_message = 2; + * + * @return The commitMessage. + */ + public java.lang.String getCommitMessage() { + java.lang.Object ref = commitMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commitMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Commit message for the git push.
+       * 
+ * + * string commit_message = 2; + * + * @return The bytes for commitMessage. + */ + public com.google.protobuf.ByteString getCommitMessageBytes() { + java.lang.Object ref = commitMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commitMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Commit message for the git push.
+       * 
+ * + * string commit_message = 2; + * + * @param value The commitMessage to set. + * @return This builder for chaining. + */ + public Builder setCommitMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commitMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Commit message for the git push.
+       * 
+ * + * string commit_message = 2; + * + * @return This builder for chaining. + */ + public Builder clearCommitMessage() { + commitMessage_ = getDefaultInstance().getCommitMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Commit message for the git push.
+       * 
+ * + * string commit_message = 2; + * + * @param value The bytes for commitMessage to set. + * @return This builder for chaining. + */ + public Builder setCommitMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commitMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination) + private static final com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -453,6 +1325,66 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { } } + public static final int GIT_DESTINATION_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination gitDestination_; + /** + * + * + *
+   * Optional. The Git branch to export the agent to.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitDestination field is set. + */ + @java.lang.Override + public boolean hasGitDestination() { + return gitDestination_ != null; + } + /** + * + * + *
+   * Optional. The Git branch to export the agent to.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitDestination. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + getGitDestination() { + return gitDestination_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + .getDefaultInstance() + : gitDestination_; + } + /** + * + * + *
+   * Optional. The Git branch to export the agent to.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestinationOrBuilder + getGitDestinationOrBuilder() { + return gitDestination_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + .getDefaultInstance() + : gitDestination_; + } + public static final int INCLUDE_BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER = 7; private boolean includeBigqueryExportSettings_ = false; /** @@ -501,6 +1433,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, environment_); } + if (gitDestination_ != null) { + output.writeMessage(6, getGitDestination()); + } if (includeBigqueryExportSettings_ != false) { output.writeBool(7, includeBigqueryExportSettings_); } @@ -528,6 +1463,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, environment_); } + if (gitDestination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getGitDestination()); + } if (includeBigqueryExportSettings_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, includeBigqueryExportSettings_); @@ -552,6 +1490,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAgentUri().equals(other.getAgentUri())) return false; if (dataFormat_ != other.dataFormat_) return false; if (!getEnvironment().equals(other.getEnvironment())) return false; + if (hasGitDestination() != other.hasGitDestination()) return false; + if (hasGitDestination()) { + if (!getGitDestination().equals(other.getGitDestination())) return false; + } if (getIncludeBigqueryExportSettings() != other.getIncludeBigqueryExportSettings()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -573,6 +1515,10 @@ public int hashCode() { hash = (53 * hash) + dataFormat_; hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; hash = (53 * hash) + getEnvironment().hashCode(); + if (hasGitDestination()) { + hash = (37 * hash) + GIT_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getGitDestination().hashCode(); + } hash = (37 * hash) + INCLUDE_BIGQUERY_EXPORT_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeBigqueryExportSettings()); @@ -721,6 +1667,11 @@ public Builder clear() { agentUri_ = ""; dataFormat_ = 0; environment_ = ""; + gitDestination_ = null; + if (gitDestinationBuilder_ != null) { + gitDestinationBuilder_.dispose(); + gitDestinationBuilder_ = null; + } includeBigqueryExportSettings_ = false; return this; } @@ -771,6 +1722,10 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ExportAgentReq result.environment_ = environment_; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.gitDestination_ = + gitDestinationBuilder_ == null ? gitDestination_ : gitDestinationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.includeBigqueryExportSettings_ = includeBigqueryExportSettings_; } } @@ -839,6 +1794,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportAgentReque bitField0_ |= 0x00000008; onChanged(); } + if (other.hasGitDestination()) { + mergeGitDestination(other.getGitDestination()); + } if (other.getIncludeBigqueryExportSettings() != false) { setIncludeBigqueryExportSettings(other.getIncludeBigqueryExportSettings()); } @@ -892,10 +1850,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 50: + { + input.readMessage(getGitDestinationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 case 56: { includeBigqueryExportSettings_ = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 56 default: @@ -1424,6 +2388,219 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + gitDestination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination, + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestinationOrBuilder> + gitDestinationBuilder_; + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitDestination field is set. + */ + public boolean hasGitDestination() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitDestination. + */ + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + getGitDestination() { + if (gitDestinationBuilder_ == null) { + return gitDestination_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + .getDefaultInstance() + : gitDestination_; + } else { + return gitDestinationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitDestination( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination value) { + if (gitDestinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gitDestination_ = value; + } else { + gitDestinationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGitDestination( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.Builder + builderForValue) { + if (gitDestinationBuilder_ == null) { + gitDestination_ = builderForValue.build(); + } else { + gitDestinationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGitDestination( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination value) { + if (gitDestinationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && gitDestination_ != null + && gitDestination_ + != com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + .getDefaultInstance()) { + getGitDestinationBuilder().mergeFrom(value); + } else { + gitDestination_ = value; + } + } else { + gitDestinationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGitDestination() { + bitField0_ = (bitField0_ & ~0x00000010); + gitDestination_ = null; + if (gitDestinationBuilder_ != null) { + gitDestinationBuilder_.dispose(); + gitDestinationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.Builder + getGitDestinationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getGitDestinationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestinationOrBuilder + getGitDestinationOrBuilder() { + if (gitDestinationBuilder_ != null) { + return gitDestinationBuilder_.getMessageOrBuilder(); + } else { + return gitDestination_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination + .getDefaultInstance() + : gitDestination_; + } + } + /** + * + * + *
+     * Optional. The Git branch to export the agent to.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination, + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestinationOrBuilder> + getGitDestinationFieldBuilder() { + if (gitDestinationBuilder_ == null) { + gitDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination, + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestinationOrBuilder>( + getGitDestination(), getParentForChildren(), isClean()); + gitDestination_ = null; + } + return gitDestinationBuilder_; + } + private boolean includeBigqueryExportSettings_; /** * @@ -1457,7 +2634,7 @@ public boolean getIncludeBigqueryExportSettings() { public Builder setIncludeBigqueryExportSettings(boolean value) { includeBigqueryExportSettings_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1474,7 +2651,7 @@ public Builder setIncludeBigqueryExportSettings(boolean value) { * @return This builder for chaining. */ public Builder clearIncludeBigqueryExportSettings() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); includeBigqueryExportSettings_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequestOrBuilder.java index 9a05a1de7be1..90c5987f727b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequestOrBuilder.java @@ -161,6 +161,48 @@ public interface ExportAgentRequestOrBuilder */ com.google.protobuf.ByteString getEnvironmentBytes(); + /** + * + * + *
+   * Optional. The Git branch to export the agent to.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gitDestination field is set. + */ + boolean hasGitDestination(); + /** + * + * + *
+   * Optional. The Git branch to export the agent to.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gitDestination. + */ + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination getGitDestination(); + /** + * + * + *
+   * Optional. The Git branch to export the agent to.
+   * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestinationOrBuilder + getGitDestinationOrBuilder(); + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponse.java index 2ef5562f3858..b15132abace2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponse.java @@ -72,6 +72,7 @@ public enum AgentCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { AGENT_URI(1), AGENT_CONTENT(2), + COMMIT_SHA(3), AGENT_NOT_SET(0); private final int value; @@ -94,6 +95,8 @@ public static AgentCase forNumber(int value) { return AGENT_URI; case 2: return AGENT_CONTENT; + case 3: + return COMMIT_SHA; case 0: return AGENT_NOT_SET; default: @@ -191,7 +194,9 @@ public com.google.protobuf.ByteString getAgentUriBytes() { * * *
-   * Uncompressed raw byte content for agent.
+   * Uncompressed raw byte content for agent. This field is populated
+   * if none of `agent_uri` and `git_destination` are specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
    * 
* * bytes agent_content = 2; @@ -206,7 +211,9 @@ public boolean hasAgentContent() { * * *
-   * Uncompressed raw byte content for agent.
+   * Uncompressed raw byte content for agent. This field is populated
+   * if none of `agent_uri` and `git_destination` are specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
    * 
* * bytes agent_content = 2; @@ -221,6 +228,82 @@ public com.google.protobuf.ByteString getAgentContent() { return com.google.protobuf.ByteString.EMPTY; } + public static final int COMMIT_SHA_FIELD_NUMBER = 3; + /** + * + * + *
+   * Commit SHA of the git push. This field is populated if
+   * `git_destination` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+   * 
+ * + * string commit_sha = 3; + * + * @return Whether the commitSha field is set. + */ + public boolean hasCommitSha() { + return agentCase_ == 3; + } + /** + * + * + *
+   * Commit SHA of the git push. This field is populated if
+   * `git_destination` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+   * 
+ * + * string commit_sha = 3; + * + * @return The commitSha. + */ + public java.lang.String getCommitSha() { + java.lang.Object ref = ""; + if (agentCase_ == 3) { + ref = agent_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (agentCase_ == 3) { + agent_ = s; + } + return s; + } + } + /** + * + * + *
+   * Commit SHA of the git push. This field is populated if
+   * `git_destination` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+   * 
+ * + * string commit_sha = 3; + * + * @return The bytes for commitSha. + */ + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = ""; + if (agentCase_ == 3) { + ref = agent_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (agentCase_ == 3) { + agent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -241,6 +324,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (agentCase_ == 2) { output.writeBytes(2, (com.google.protobuf.ByteString) agent_); } + if (agentCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, agent_); + } getUnknownFields().writeTo(output); } @@ -258,6 +344,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeBytesSize( 2, (com.google.protobuf.ByteString) agent_); } + if (agentCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, agent_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -282,6 +371,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getAgentContent().equals(other.getAgentContent())) return false; break; + case 3: + if (!getCommitSha().equals(other.getCommitSha())) return false; + break; case 0: default: } @@ -305,6 +397,10 @@ public int hashCode() { hash = (37 * hash) + AGENT_CONTENT_FIELD_NUMBER; hash = (53 * hash) + getAgentContent().hashCode(); break; + case 3: + hash = (37 * hash) + COMMIT_SHA_FIELD_NUMBER; + hash = (53 * hash) + getCommitSha().hashCode(); + break; case 0: default: } @@ -555,6 +651,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRespo setAgentContent(other.getAgentContent()); break; } + case COMMIT_SHA: + { + agentCase_ = 3; + agent_ = other.agent_; + onChanged(); + break; + } case AGENT_NOT_SET: { break; @@ -599,6 +702,13 @@ public Builder mergeFrom( agentCase_ = 2; break; } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + agentCase_ = 3; + agent_ = s; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -782,7 +892,9 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { * * *
-     * Uncompressed raw byte content for agent.
+     * Uncompressed raw byte content for agent. This field is populated
+     * if none of `agent_uri` and `git_destination` are specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
      * 
* * bytes agent_content = 2; @@ -796,7 +908,9 @@ public boolean hasAgentContent() { * * *
-     * Uncompressed raw byte content for agent.
+     * Uncompressed raw byte content for agent. This field is populated
+     * if none of `agent_uri` and `git_destination` are specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
      * 
* * bytes agent_content = 2; @@ -813,7 +927,9 @@ public com.google.protobuf.ByteString getAgentContent() { * * *
-     * Uncompressed raw byte content for agent.
+     * Uncompressed raw byte content for agent. This field is populated
+     * if none of `agent_uri` and `git_destination` are specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
      * 
* * bytes agent_content = 2; @@ -834,7 +950,9 @@ public Builder setAgentContent(com.google.protobuf.ByteString value) { * * *
-     * Uncompressed raw byte content for agent.
+     * Uncompressed raw byte content for agent. This field is populated
+     * if none of `agent_uri` and `git_destination` are specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
      * 
* * bytes agent_content = 2; @@ -850,6 +968,152 @@ public Builder clearAgentContent() { return this; } + /** + * + * + *
+     * Commit SHA of the git push. This field is populated if
+     * `git_destination` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+     * 
+ * + * string commit_sha = 3; + * + * @return Whether the commitSha field is set. + */ + @java.lang.Override + public boolean hasCommitSha() { + return agentCase_ == 3; + } + /** + * + * + *
+     * Commit SHA of the git push. This field is populated if
+     * `git_destination` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+     * 
+ * + * string commit_sha = 3; + * + * @return The commitSha. + */ + @java.lang.Override + public java.lang.String getCommitSha() { + java.lang.Object ref = ""; + if (agentCase_ == 3) { + ref = agent_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (agentCase_ == 3) { + agent_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Commit SHA of the git push. This field is populated if
+     * `git_destination` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+     * 
+ * + * string commit_sha = 3; + * + * @return The bytes for commitSha. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommitShaBytes() { + java.lang.Object ref = ""; + if (agentCase_ == 3) { + ref = agent_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (agentCase_ == 3) { + agent_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Commit SHA of the git push. This field is populated if
+     * `git_destination` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+     * 
+ * + * string commit_sha = 3; + * + * @param value The commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitSha(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentCase_ = 3; + agent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Commit SHA of the git push. This field is populated if
+     * `git_destination` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+     * 
+ * + * string commit_sha = 3; + * + * @return This builder for chaining. + */ + public Builder clearCommitSha() { + if (agentCase_ == 3) { + agentCase_ = 0; + agent_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Commit SHA of the git push. This field is populated if
+     * `git_destination` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+     * 
+ * + * string commit_sha = 3; + * + * @param value The bytes for commitSha to set. + * @return This builder for chaining. + */ + public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentCase_ = 3; + agent_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponseOrBuilder.java index b2dc4e04cc28..9b8546f43476 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponseOrBuilder.java @@ -70,7 +70,9 @@ public interface ExportAgentResponseOrBuilder * * *
-   * Uncompressed raw byte content for agent.
+   * Uncompressed raw byte content for agent. This field is populated
+   * if none of `agent_uri` and `git_destination` are specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
    * 
* * bytes agent_content = 2; @@ -82,7 +84,9 @@ public interface ExportAgentResponseOrBuilder * * *
-   * Uncompressed raw byte content for agent.
+   * Uncompressed raw byte content for agent. This field is populated
+   * if none of `agent_uri` and `git_destination` are specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
    * 
* * bytes agent_content = 2; @@ -91,5 +95,48 @@ public interface ExportAgentResponseOrBuilder */ com.google.protobuf.ByteString getAgentContent(); + /** + * + * + *
+   * Commit SHA of the git push. This field is populated if
+   * `git_destination` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+   * 
+ * + * string commit_sha = 3; + * + * @return Whether the commitSha field is set. + */ + boolean hasCommitSha(); + /** + * + * + *
+   * Commit SHA of the git push. This field is populated if
+   * `git_destination` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+   * 
+ * + * string commit_sha = 3; + * + * @return The commitSha. + */ + java.lang.String getCommitSha(); + /** + * + * + *
+   * Commit SHA of the git push. This field is populated if
+   * `git_destination` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
+   * 
+ * + * string commit_sha = 3; + * + * @return The bytes for commitSha. + */ + com.google.protobuf.ByteString getCommitShaBytes(); + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.AgentCase getAgentCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java index b3ec3ccd1e26..4e17e165f10e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java @@ -229,6 +229,660 @@ private RestoreOption(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption) } + public interface GitSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * tracking branch for the git pull
+     * 
+ * + * string tracking_branch = 1; + * + * @return The trackingBranch. + */ + java.lang.String getTrackingBranch(); + /** + * + * + *
+     * tracking branch for the git pull
+     * 
+ * + * string tracking_branch = 1; + * + * @return The bytes for trackingBranch. + */ + com.google.protobuf.ByteString getTrackingBranchBytes(); + } + /** + * + * + *
+   * Settings for restoring from a git branch
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} + */ + public static final class GitSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) + GitSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GitSource.newBuilder() to construct. + private GitSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GitSource() { + trackingBranch_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GitSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.class, + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.Builder.class); + } + + public static final int TRACKING_BRANCH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object trackingBranch_ = ""; + /** + * + * + *
+     * tracking branch for the git pull
+     * 
+ * + * string tracking_branch = 1; + * + * @return The trackingBranch. + */ + @java.lang.Override + public java.lang.String getTrackingBranch() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trackingBranch_ = s; + return s; + } + } + /** + * + * + *
+     * tracking branch for the git pull
+     * 
+ * + * string tracking_branch = 1; + * + * @return The bytes for trackingBranch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrackingBranchBytes() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trackingBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingBranch_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, trackingBranch_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trackingBranch_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, trackingBranch_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource other = + (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) obj; + + if (!getTrackingBranch().equals(other.getTrackingBranch())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TRACKING_BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getTrackingBranch().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Settings for restoring from a git branch
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.class, + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trackingBranch_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.AgentProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_RestoreAgentRequest_GitSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource build() { + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource result = + new com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trackingBranch_ = trackingBranch_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance()) return this; + if (!other.getTrackingBranch().isEmpty()) { + trackingBranch_ = other.trackingBranch_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + trackingBranch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object trackingBranch_ = ""; + /** + * + * + *
+       * tracking branch for the git pull
+       * 
+ * + * string tracking_branch = 1; + * + * @return The trackingBranch. + */ + public java.lang.String getTrackingBranch() { + java.lang.Object ref = trackingBranch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trackingBranch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * tracking branch for the git pull
+       * 
+ * + * string tracking_branch = 1; + * + * @return The bytes for trackingBranch. + */ + public com.google.protobuf.ByteString getTrackingBranchBytes() { + java.lang.Object ref = trackingBranch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trackingBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * tracking branch for the git pull
+       * 
+ * + * string tracking_branch = 1; + * + * @param value The trackingBranch to set. + * @return This builder for chaining. + */ + public Builder setTrackingBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trackingBranch_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * tracking branch for the git pull
+       * 
+ * + * string tracking_branch = 1; + * + * @return This builder for chaining. + */ + public Builder clearTrackingBranch() { + trackingBranch_ = getDefaultInstance().getTrackingBranch(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * tracking branch for the git pull
+       * 
+ * + * string tracking_branch = 1; + * + * @param value The bytes for trackingBranch to set. + * @return This builder for chaining. + */ + public Builder setTrackingBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trackingBranch_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) + private static final com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int agentCase_ = 0; @SuppressWarnings("serial") @@ -240,6 +894,7 @@ public enum AgentCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { AGENT_URI(2), AGENT_CONTENT(3), + GIT_SOURCE(6), AGENT_NOT_SET(0); private final int value; @@ -262,6 +917,8 @@ public static AgentCase forNumber(int value) { return AGENT_URI; case 3: return AGENT_CONTENT; + case 6: + return GIT_SOURCE; case 0: return AGENT_NOT_SET; default: @@ -464,6 +1121,60 @@ public com.google.protobuf.ByteString getAgentContent() { return com.google.protobuf.ByteString.EMPTY; } + public static final int GIT_SOURCE_FIELD_NUMBER = 6; + /** + * + * + *
+   * Setting for restoring from a git branch
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return agentCase_ == 6; + } + /** + * + * + *
+   * Setting for restoring from a git branch
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource getGitSource() { + if (agentCase_ == 6) { + return (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) agent_; + } + return com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance(); + } + /** + * + * + *
+   * Setting for restoring from a git branch
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSourceOrBuilder + getGitSourceOrBuilder() { + if (agentCase_ == 6) { + return (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) agent_; + } + return com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance(); + } + public static final int RESTORE_OPTION_FIELD_NUMBER = 5; private int restoreOption_ = 0; /** @@ -534,6 +1245,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(5, restoreOption_); } + if (agentCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) agent_); + } getUnknownFields().writeTo(output); } @@ -560,6 +1275,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, restoreOption_); } + if (agentCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) agent_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -586,6 +1306,9 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getAgentContent().equals(other.getAgentContent())) return false; break; + case 6: + if (!getGitSource().equals(other.getGitSource())) return false; + break; case 0: default: } @@ -613,6 +1336,10 @@ public int hashCode() { hash = (37 * hash) + AGENT_CONTENT_FIELD_NUMBER; hash = (53 * hash) + getAgentContent().hashCode(); break; + case 6: + hash = (37 * hash) + GIT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGitSource().hashCode(); + break; case 0: default: } @@ -758,6 +1485,9 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + if (gitSourceBuilder_ != null) { + gitSourceBuilder_.clear(); + } restoreOption_ = 0; agentCase_ = 0; agent_ = null; @@ -801,7 +1531,7 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRe if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.restoreOption_ = restoreOption_; } } @@ -810,6 +1540,9 @@ private void buildPartialOneofs( com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest result) { result.agentCase_ = agentCase_; result.agent_ = this.agent_; + if (agentCase_ == 6 && gitSourceBuilder_ != null) { + result.agent_ = gitSourceBuilder_.build(); + } } @java.lang.Override @@ -879,6 +1612,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequ setAgentContent(other.getAgentContent()); break; } + case GIT_SOURCE: + { + mergeGitSource(other.getGitSource()); + break; + } case AGENT_NOT_SET: { break; @@ -932,9 +1670,15 @@ public Builder mergeFrom( case 40: { restoreOption_ = input.readEnum(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 40 + case 50: + { + input.readMessage(getGitSourceFieldBuilder().getBuilder(), extensionRegistry); + agentCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1343,6 +2087,236 @@ public Builder clearAgentContent() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource, + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.Builder, + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSourceOrBuilder> + gitSourceBuilder_; + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + * + * @return Whether the gitSource field is set. + */ + @java.lang.Override + public boolean hasGitSource() { + return agentCase_ == 6; + } + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + * + * @return The gitSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource getGitSource() { + if (gitSourceBuilder_ == null) { + if (agentCase_ == 6) { + return (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) agent_; + } + return com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance(); + } else { + if (agentCase_ == 6) { + return gitSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + */ + public Builder setGitSource( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource value) { + if (gitSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agent_ = value; + onChanged(); + } else { + gitSourceBuilder_.setMessage(value); + } + agentCase_ = 6; + return this; + } + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + */ + public Builder setGitSource( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.Builder + builderForValue) { + if (gitSourceBuilder_ == null) { + agent_ = builderForValue.build(); + onChanged(); + } else { + gitSourceBuilder_.setMessage(builderForValue.build()); + } + agentCase_ = 6; + return this; + } + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + */ + public Builder mergeGitSource( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource value) { + if (gitSourceBuilder_ == null) { + if (agentCase_ == 6 + && agent_ + != com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance()) { + agent_ = + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) agent_) + .mergeFrom(value) + .buildPartial(); + } else { + agent_ = value; + } + onChanged(); + } else { + if (agentCase_ == 6) { + gitSourceBuilder_.mergeFrom(value); + } else { + gitSourceBuilder_.setMessage(value); + } + } + agentCase_ = 6; + return this; + } + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + */ + public Builder clearGitSource() { + if (gitSourceBuilder_ == null) { + if (agentCase_ == 6) { + agentCase_ = 0; + agent_ = null; + onChanged(); + } + } else { + if (agentCase_ == 6) { + agentCase_ = 0; + agent_ = null; + } + gitSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + */ + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.Builder + getGitSourceBuilder() { + return getGitSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSourceOrBuilder + getGitSourceOrBuilder() { + if ((agentCase_ == 6) && (gitSourceBuilder_ != null)) { + return gitSourceBuilder_.getMessageOrBuilder(); + } else { + if (agentCase_ == 6) { + return (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) agent_; + } + return com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Setting for restoring from a git branch
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource, + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.Builder, + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSourceOrBuilder> + getGitSourceFieldBuilder() { + if (gitSourceBuilder_ == null) { + if (!(agentCase_ == 6)) { + agent_ = + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource + .getDefaultInstance(); + } + gitSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource, + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource.Builder, + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSourceOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource) agent_, + getParentForChildren(), + isClean()); + agent_ = null; + } + agentCase_ = 6; + onChanged(); + return gitSourceBuilder_; + } + private int restoreOption_ = 0; /** * @@ -1377,7 +2351,7 @@ public int getRestoreOptionValue() { */ public Builder setRestoreOptionValue(int value) { restoreOption_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1423,7 +2397,7 @@ public Builder setRestoreOption( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; restoreOption_ = value.getNumber(); onChanged(); return this; @@ -1442,7 +2416,7 @@ public Builder setRestoreOption( * @return This builder for chaining. */ public Builder clearRestoreOption() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); restoreOption_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequestOrBuilder.java index f0f83cdaedab..71609ea1d14e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequestOrBuilder.java @@ -140,6 +140,42 @@ public interface RestoreAgentRequestOrBuilder */ com.google.protobuf.ByteString getAgentContent(); + /** + * + * + *
+   * Setting for restoring from a git branch
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + * @return Whether the gitSource field is set. + */ + boolean hasGitSource(); + /** + * + * + *
+   * Setting for restoring from a git branch
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + * + * @return The gitSource. + */ + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource getGitSource(); + /** + * + * + *
+   * Setting for restoring from a git branch
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource git_source = 6; + */ + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSourceOrBuilder + getGitSourceOrBuilder(); + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto index 42b27051d0b7..c9208341a93f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -188,6 +188,34 @@ message Agent { pattern: "projects/{project}/locations/{location}/agents/{agent}" }; + // Settings for connecting to Git repository for an agent. + message GitIntegrationSettings { + // Settings of integration with GitHub. + message GithubSettings { + // The unique repository display name for the GitHub repository. + string display_name = 1; + + // The GitHub repository URI related to the agent. + string repository_uri = 2; + + // The branch of the GitHub repository tracked for this agent. + string tracking_branch = 3; + + // The access token used to authenticate the access to the GitHub + // repository. + string access_token = 4; + + // A list of branches configured to be used from Dialogflow. + repeated string branches = 5; + } + + // The git settings to specific systems. + oneof git_settings { + // GitHub settings. + GithubSettings github_settings = 1; + } + } + // The unique identifier of the agent. // Required for the // [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] @@ -269,6 +297,9 @@ message Agent { // lower level overrides the settings exposed at the higher level. AdvancedSettings advanced_settings = 22; + // Git integration settings for this agent. + GitIntegrationSettings git_integration_settings = 30; + // Settings on instructing the speech synthesizer on how to generate the // output audio content. TextToSpeechSettings text_to_speech_settings = 31; @@ -374,6 +405,15 @@ message ExportAgentRequest { JSON_PACKAGE = 4; } + // Settings for exporting to a git branch. + message GitDestination { + // Tracking branch for the git push. + string tracking_branch = 1; + + // Commit message for the git push. + string commit_message = 2; + } + // Required. The name of the agent to export. // Format: `projects//locations//agents/`. string name = 1 [ @@ -409,6 +449,9 @@ message ExportAgentRequest { } ]; + // Optional. The Git branch to export the agent to. + GitDestination git_destination = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Whether to include BigQuery Export setting. bool include_bigquery_export_settings = 7 [(google.api.field_behavior) = OPTIONAL]; @@ -424,14 +467,27 @@ message ExportAgentResponse { // [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest]. string agent_uri = 1; - // Uncompressed raw byte content for agent. + // Uncompressed raw byte content for agent. This field is populated + // if none of `agent_uri` and `git_destination` are specified in + // [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest]. bytes agent_content = 2; + + // Commit SHA of the git push. This field is populated if + // `git_destination` is specified in + // [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest]. + string commit_sha = 3; } } // The request message for // [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent]. message RestoreAgentRequest { + // Settings for restoring from a git branch + message GitSource { + // tracking branch for the git pull + string tracking_branch = 1; + } + // Restore option. enum RestoreOption { // Unspecified. Treated as KEEP. @@ -471,6 +527,9 @@ message RestoreAgentRequest { // Uncompressed raw byte content for agent. bytes agent_content = 3; + + // Setting for restoring from a git branch + GitSource git_source = 6; } // Agent restore mode. If not specified, `KEEP` is assumed. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto index 6f2d256100b3..d61676b704bb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto @@ -193,7 +193,8 @@ service TestCases { }; } - // 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. rpc ListTestCaseResults(ListTestCaseResultsRequest) returns (ListTestCaseResultsResponse) { option (google.api.http) = { diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/AsyncExportAgent.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/AsyncExportAgent.java index 518bd33d2f8a..284de45e4862 100644 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/AsyncExportAgent.java +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/AsyncExportAgent.java @@ -44,6 +44,7 @@ public static void asyncExportAgent() throws Exception { .setEnvironment( EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") .toString()) + .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build()) .setIncludeBigqueryExportSettings(true) .build(); ApiFuture future = agentsClient.exportAgentCallable().futureCall(request); diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/AsyncExportAgentLRO.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/AsyncExportAgentLRO.java index 1eb951a39904..b3793df07d49 100644 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/AsyncExportAgentLRO.java +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/AsyncExportAgentLRO.java @@ -45,6 +45,7 @@ public static void asyncExportAgentLRO() throws Exception { .setEnvironment( EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") .toString()) + .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build()) .setIncludeBigqueryExportSettings(true) .build(); OperationFuture future = diff --git a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/SyncExportAgent.java b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/SyncExportAgent.java index 1f261f640332..e7e85b4790b8 100644 --- a/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/SyncExportAgent.java +++ b/java-dialogflow-cx/samples/snippets/generated/com/google/cloud/dialogflow/cx/v3beta1/agents/exportagent/SyncExportAgent.java @@ -43,6 +43,7 @@ public static void syncExportAgent() throws Exception { .setEnvironment( EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") .toString()) + .setGitDestination(ExportAgentRequest.GitDestination.newBuilder().build()) .setIncludeBigqueryExportSettings(true) .build(); ExportAgentResponse response = agentsClient.exportAgentAsync(request).get();