From c7cd77f0e13ca6092448c632b29558d94e2d27b7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 31 May 2021 18:14:08 +0000 Subject: [PATCH 01/23] chore: release 0.7.1-SNAPSHOT (#224) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-dialogflow-cx-bom/pom.xml | 12 ++++++------ google-cloud-dialogflow-cx/pom.xml | 4 ++-- grpc-google-cloud-dialogflow-cx-v3/pom.xml | 4 ++-- grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-dialogflow-cx-v3/pom.xml | 4 ++-- proto-google-cloud-dialogflow-cx-v3beta1/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-cloud-dialogflow-cx-bom/pom.xml b/google-cloud-dialogflow-cx-bom/pom.xml index c4cdfb4d8..0b0329b7c 100644 --- a/google-cloud-dialogflow-cx-bom/pom.xml +++ b/google-cloud-dialogflow-cx-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx-bom - 0.7.0 + 0.7.1-SNAPSHOT pom com.google.cloud @@ -68,27 +68,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.7.0 + 0.7.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.7.0 + 0.7.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.7.0 + 0.7.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.7.0 + 0.7.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.7.0 + 0.7.1-SNAPSHOT diff --git a/google-cloud-dialogflow-cx/pom.xml b/google-cloud-dialogflow-cx/pom.xml index 0f3825f25..e2cda3eee 100644 --- a/google-cloud-dialogflow-cx/pom.xml +++ b/google-cloud-dialogflow-cx/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx - 0.7.0 + 0.7.1-SNAPSHOT jar Google Dialogflow CX https://github.com/googleapis/java-dialogflow-cx @@ -11,7 +11,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent - 0.7.0 + 0.7.1-SNAPSHOT google-cloud-dialogflow-cx diff --git a/grpc-google-cloud-dialogflow-cx-v3/pom.xml b/grpc-google-cloud-dialogflow-cx-v3/pom.xml index 1a6627f06..661060baf 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/pom.xml +++ b/grpc-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.7.0 + 0.7.1-SNAPSHOT grpc-google-cloud-dialogflow-cx-v3 GRPC library for grpc-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.7.0 + 0.7.1-SNAPSHOT diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml b/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml index 7ccf88557..881b06435 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.7.0 + 0.7.1-SNAPSHOT grpc-google-cloud-dialogflow-cx-v3beta1 GRPC library for grpc-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.7.0 + 0.7.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index a18f13580..ca02a3083 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent pom - 0.7.0 + 0.7.1-SNAPSHOT Google Dialogflow CX Parent https://github.com/googleapis/java-dialogflow-cx @@ -70,27 +70,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.7.0 + 0.7.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.7.0 + 0.7.1-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.7.0 + 0.7.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.7.0 + 0.7.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.7.0 + 0.7.1-SNAPSHOT diff --git a/proto-google-cloud-dialogflow-cx-v3/pom.xml b/proto-google-cloud-dialogflow-cx-v3/pom.xml index 78fed9837..e9afb5013 100644 --- a/proto-google-cloud-dialogflow-cx-v3/pom.xml +++ b/proto-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.7.0 + 0.7.1-SNAPSHOT proto-google-cloud-dialogflow-cx-v3 PROTO library for proto-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.7.0 + 0.7.1-SNAPSHOT diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml b/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml index 5ed644ca9..ecdb5483f 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.7.0 + 0.7.1-SNAPSHOT proto-google-cloud-dialogflow-cx-v3beta1 PROTO library for proto-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.7.0 + 0.7.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d1bab9f5b..bd116f626 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-dialogflow-cx - 0.7.0 + 0.7.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 44e3f0e35..6012246b6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-dialogflow-cx:0.7.0:0.7.0 -proto-google-cloud-dialogflow-cx-v3beta1:0.7.0:0.7.0 -proto-google-cloud-dialogflow-cx-v3:0.7.0:0.7.0 -grpc-google-cloud-dialogflow-cx-v3beta1:0.7.0:0.7.0 -grpc-google-cloud-dialogflow-cx-v3:0.7.0:0.7.0 +google-cloud-dialogflow-cx:0.7.0:0.7.1-SNAPSHOT +proto-google-cloud-dialogflow-cx-v3beta1:0.7.0:0.7.1-SNAPSHOT +proto-google-cloud-dialogflow-cx-v3:0.7.0:0.7.1-SNAPSHOT +grpc-google-cloud-dialogflow-cx-v3beta1:0.7.0:0.7.1-SNAPSHOT +grpc-google-cloud-dialogflow-cx-v3:0.7.0:0.7.1-SNAPSHOT From 97f71abf7b6ffc6ea89dfdfdf1e7a7a0c79a0590 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 1 Jun 2021 13:20:04 -0700 Subject: [PATCH 02/23] feat: added API for running continuous test (#226) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ca91ffb7-3354-4e53-a8ea-3fb5ff6aea86/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 375809988 Source-Link: https://github.com/googleapis/googleapis/commit/b2c4b3d62150a73507cbd3aa816fc0f177873556 --- .../dialogflow/cx/v3/EnvironmentsClient.java | 358 ++++ .../cx/v3/EnvironmentsSettings.java | 44 + .../dialogflow/cx/v3/gapic_metadata.json | 6 + .../cx/v3/stub/EnvironmentsStub.java | 28 + .../cx/v3/stub/EnvironmentsStubSettings.java | 201 ++- .../cx/v3/stub/GrpcEnvironmentsStub.java | 112 ++ .../cx/v3/EnvironmentsClientTest.java | 151 ++ .../cx/v3/MockEnvironmentsImpl.java | 43 + .../dialogflow/cx/v3/EnvironmentsGrpc.java | 245 +++ .../cx/v3/ContinuousTestResult.java | 1554 +++++++++++++++++ .../cx/v3/ContinuousTestResultName.java | 306 ++++ .../cx/v3/ContinuousTestResultOrBuilder.java | 171 ++ .../dialogflow/cx/v3/EnvironmentProto.java | 197 ++- .../v3/ListContinuousTestResultsRequest.java | 950 ++++++++++ ...ContinuousTestResultsRequestOrBuilder.java | 97 + .../v3/ListContinuousTestResultsResponse.java | 1215 +++++++++++++ ...ontinuousTestResultsResponseOrBuilder.java | 111 ++ .../cx/v3/RunContinuousTestMetadata.java | 952 ++++++++++ .../RunContinuousTestMetadataOrBuilder.java | 77 + .../cx/v3/RunContinuousTestRequest.java | 658 +++++++ .../v3/RunContinuousTestRequestOrBuilder.java | 56 + .../cx/v3/RunContinuousTestResponse.java | 743 ++++++++ .../RunContinuousTestResponseOrBuilder.java | 61 + .../cloud/dialogflow/cx/v3/audio_config.proto | 50 +- .../cloud/dialogflow/cx/v3/environment.proto | 113 ++ synth.metadata | 23 +- 26 files changed, 8448 insertions(+), 74 deletions(-) create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequestOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponseOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadataOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponseOrBuilder.java diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java index f7cf75bca..b0fd8bc9c 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java @@ -922,6 +922,262 @@ public final LookupEnvironmentHistoryPagedResponse lookupEnvironmentHistory( return stub.lookupEnvironmentHistoryCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Kicks off a continuous test under the specified + * [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   RunContinuousTestRequest request =
+   *       RunContinuousTestRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .build();
+   *   RunContinuousTestResponse response = environmentsClient.runContinuousTestAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + runContinuousTestAsync(RunContinuousTestRequest request) { + return runContinuousTestOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Kicks off a continuous test under the specified + * [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   RunContinuousTestRequest request =
+   *       RunContinuousTestRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       environmentsClient.runContinuousTestOperationCallable().futureCall(request);
+   *   // Do something.
+   *   RunContinuousTestResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationCallable() { + return stub.runContinuousTestOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Kicks off a continuous test under the specified + * [Environment][google.cloud.dialogflow.cx.v3.Environment]. + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   RunContinuousTestRequest request =
+   *       RunContinuousTestRequest.newBuilder()
+   *           .setEnvironment(
+   *               EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       environmentsClient.runContinuousTestCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable runContinuousTestCallable() { + return stub.runContinuousTestCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of continuous test results for a given environment. + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   EnvironmentName parent =
+   *       EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]");
+   *   for (ContinuousTestResult element :
+   *       environmentsClient.listContinuousTestResults(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The environment to list results for. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/ environments/<Environment + * ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContinuousTestResultsPagedResponse listContinuousTestResults( + EnvironmentName parent) { + ListContinuousTestResultsRequest request = + ListContinuousTestResultsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listContinuousTestResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of continuous test results for a given environment. + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   String parent =
+   *       ContinuousTestResultName.of(
+   *               "[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[CONTINUOUS_TEST_RESULT]")
+   *           .toString();
+   *   for (ContinuousTestResult element :
+   *       environmentsClient.listContinuousTestResults(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The environment to list results for. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/ environments/<Environment + * ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContinuousTestResultsPagedResponse listContinuousTestResults(String parent) { + ListContinuousTestResultsRequest request = + ListContinuousTestResultsRequest.newBuilder().setParent(parent).build(); + return listContinuousTestResults(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of continuous test results for a given environment. + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   ListContinuousTestResultsRequest request =
+   *       ListContinuousTestResultsRequest.newBuilder()
+   *           .setParent(
+   *               ContinuousTestResultName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[AGENT]",
+   *                       "[ENVIRONMENT]",
+   *                       "[CONTINUOUS_TEST_RESULT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ContinuousTestResult element :
+   *       environmentsClient.listContinuousTestResults(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListContinuousTestResultsPagedResponse listContinuousTestResults( + ListContinuousTestResultsRequest request) { + return listContinuousTestResultsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of continuous test results for a given environment. + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   ListContinuousTestResultsRequest request =
+   *       ListContinuousTestResultsRequest.newBuilder()
+   *           .setParent(
+   *               ContinuousTestResultName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[AGENT]",
+   *                       "[ENVIRONMENT]",
+   *                       "[CONTINUOUS_TEST_RESULT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       environmentsClient.listContinuousTestResultsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ContinuousTestResult element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListContinuousTestResultsRequest, ListContinuousTestResultsPagedResponse> + listContinuousTestResultsPagedCallable() { + return stub.listContinuousTestResultsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches a list of continuous test results for a given environment. + * + *

Sample code: + * + *

{@code
+   * try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
+   *   ListContinuousTestResultsRequest request =
+   *       ListContinuousTestResultsRequest.newBuilder()
+   *           .setParent(
+   *               ContinuousTestResultName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[AGENT]",
+   *                       "[ENVIRONMENT]",
+   *                       "[CONTINUOUS_TEST_RESULT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListContinuousTestResultsResponse response =
+   *         environmentsClient.listContinuousTestResultsCallable().call(request);
+   *     for (ContinuousTestResult element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listContinuousTestResultsCallable() { + return stub.listContinuousTestResultsCallable(); + } + @Override public final void close() { stub.close(); @@ -1122,4 +1378,106 @@ protected LookupEnvironmentHistoryFixedSizeCollection createCollection( return new LookupEnvironmentHistoryFixedSizeCollection(pages, collectionSize); } } + + public static class ListContinuousTestResultsPagedResponse + extends AbstractPagedListResponse< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult, + ListContinuousTestResultsPage, + ListContinuousTestResultsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListContinuousTestResultsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListContinuousTestResultsPagedResponse apply( + ListContinuousTestResultsPage input) { + return new ListContinuousTestResultsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListContinuousTestResultsPagedResponse(ListContinuousTestResultsPage page) { + super(page, ListContinuousTestResultsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListContinuousTestResultsPage + extends AbstractPage< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult, + ListContinuousTestResultsPage> { + + private ListContinuousTestResultsPage( + PageContext< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult> + context, + ListContinuousTestResultsResponse response) { + super(context, response); + } + + private static ListContinuousTestResultsPage createEmptyPage() { + return new ListContinuousTestResultsPage(null, null); + } + + @Override + protected ListContinuousTestResultsPage createPage( + PageContext< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult> + context, + ListContinuousTestResultsResponse response) { + return new ListContinuousTestResultsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListContinuousTestResultsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult, + ListContinuousTestResultsPage, + ListContinuousTestResultsFixedSizeCollection> { + + private ListContinuousTestResultsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListContinuousTestResultsFixedSizeCollection createEmptyCollection() { + return new ListContinuousTestResultsFixedSizeCollection(null, 0); + } + + @Override + protected ListContinuousTestResultsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListContinuousTestResultsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java index 7542b41d4..16248bcd0 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.dialogflow.cx.v3; +import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListContinuousTestResultsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListEnvironmentsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.LookupEnvironmentHistoryPagedResponse; @@ -121,6 +122,27 @@ public UnaryCallSettings deleteEnvironmentSetti return ((EnvironmentsStubSettings) getStubSettings()).lookupEnvironmentHistorySettings(); } + /** Returns the object with the settings used for calls to runContinuousTest. */ + public UnaryCallSettings runContinuousTestSettings() { + return ((EnvironmentsStubSettings) getStubSettings()).runContinuousTestSettings(); + } + + /** Returns the object with the settings used for calls to runContinuousTest. */ + public OperationCallSettings< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationSettings() { + return ((EnvironmentsStubSettings) getStubSettings()).runContinuousTestOperationSettings(); + } + + /** Returns the object with the settings used for calls to listContinuousTestResults. */ + public PagedCallSettings< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ListContinuousTestResultsPagedResponse> + listContinuousTestResultsSettings() { + return ((EnvironmentsStubSettings) getStubSettings()).listContinuousTestResultsSettings(); + } + public static final EnvironmentsSettings create(EnvironmentsStubSettings stub) throws IOException { return new EnvironmentsSettings.Builder(stub.toBuilder()).build(); @@ -269,6 +291,28 @@ public UnaryCallSettings.Builder deleteEnvironm return getStubSettingsBuilder().lookupEnvironmentHistorySettings(); } + /** Returns the builder for the settings used for calls to runContinuousTest. */ + public UnaryCallSettings.Builder + runContinuousTestSettings() { + return getStubSettingsBuilder().runContinuousTestSettings(); + } + + /** Returns the builder for the settings used for calls to runContinuousTest. */ + public OperationCallSettings.Builder< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationSettings() { + return getStubSettingsBuilder().runContinuousTestOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listContinuousTestResults. */ + public PagedCallSettings.Builder< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ListContinuousTestResultsPagedResponse> + listContinuousTestResultsSettings() { + return getStubSettingsBuilder().listContinuousTestResultsSettings(); + } + @Override public EnvironmentsSettings build() throws IOException { return new EnvironmentsSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json index 0f02c3f2c..683008f78 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json @@ -79,12 +79,18 @@ "GetEnvironment": { "methods": ["getEnvironment", "getEnvironment", "getEnvironment", "getEnvironmentCallable"] }, + "ListContinuousTestResults": { + "methods": ["listContinuousTestResults", "listContinuousTestResults", "listContinuousTestResults", "listContinuousTestResultsPagedCallable", "listContinuousTestResultsCallable"] + }, "ListEnvironments": { "methods": ["listEnvironments", "listEnvironments", "listEnvironments", "listEnvironmentsPagedCallable", "listEnvironmentsCallable"] }, "LookupEnvironmentHistory": { "methods": ["lookupEnvironmentHistory", "lookupEnvironmentHistory", "lookupEnvironmentHistory", "lookupEnvironmentHistoryPagedCallable", "lookupEnvironmentHistoryCallable"] }, + "RunContinuousTest": { + "methods": ["runContinuousTestAsync", "runContinuousTestOperationCallable", "runContinuousTestCallable"] + }, "UpdateEnvironment": { "methods": ["updateEnvironmentAsync", "updateEnvironmentAsync", "updateEnvironmentOperationCallable", "updateEnvironmentCallable"] } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java index 431b1151f..6766b4a6d 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStub.java @@ -16,6 +16,7 @@ package com.google.cloud.dialogflow.cx.v3.stub; +import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListContinuousTestResultsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListEnvironmentsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.LookupEnvironmentHistoryPagedResponse; @@ -26,10 +27,15 @@ import com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.Environment; import com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; +import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; import com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; import com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; import com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; import com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; import com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -99,6 +105,28 @@ public UnaryCallable deleteEnvironmentCallable( throw new UnsupportedOperationException("Not implemented: lookupEnvironmentHistoryCallable()"); } + public OperationCallable< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: runContinuousTestOperationCallable()"); + } + + public UnaryCallable runContinuousTestCallable() { + throw new UnsupportedOperationException("Not implemented: runContinuousTestCallable()"); + } + + public UnaryCallable + listContinuousTestResultsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listContinuousTestResultsPagedCallable()"); + } + + public UnaryCallable + listContinuousTestResultsCallable() { + throw new UnsupportedOperationException("Not implemented: listContinuousTestResultsCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java index b6e0e141f..b63e93398 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.dialogflow.cx.v3.stub; +import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListContinuousTestResultsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListEnvironmentsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.LookupEnvironmentHistoryPagedResponse; @@ -45,14 +46,20 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.dialogflow.cx.v3.ContinuousTestResult; import com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.Environment; import com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; +import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; import com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; import com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; import com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; import com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; import com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -123,6 +130,15 @@ public class EnvironmentsStubSettings extends StubSettings lookupEnvironmentHistorySettings; + private final UnaryCallSettings runContinuousTestSettings; + private final OperationCallSettings< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationSettings; + private final PagedCallSettings< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ListContinuousTestResultsPagedResponse> + listContinuousTestResultsSettings; private static final PagedListDescriptor< ListEnvironmentsRequest, ListEnvironmentsResponse, Environment> @@ -209,6 +225,53 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListContinuousTestResultsRequest, ListContinuousTestResultsResponse, ContinuousTestResult> + LIST_CONTINUOUS_TEST_RESULTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListContinuousTestResultsRequest injectToken( + ListContinuousTestResultsRequest payload, String token) { + return ListContinuousTestResultsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListContinuousTestResultsRequest injectPageSize( + ListContinuousTestResultsRequest payload, int pageSize) { + return ListContinuousTestResultsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListContinuousTestResultsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListContinuousTestResultsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListContinuousTestResultsResponse payload) { + return payload.getContinuousTestResultsList() == null + ? ImmutableList.of() + : payload.getContinuousTestResultsList(); + } + }; + private static final PagedListResponseFactory< ListEnvironmentsRequest, ListEnvironmentsResponse, ListEnvironmentsPagedResponse> LIST_ENVIRONMENTS_PAGE_STR_FACT = @@ -255,6 +318,34 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ListContinuousTestResultsPagedResponse> + LIST_CONTINUOUS_TEST_RESULTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ListContinuousTestResultsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListContinuousTestResultsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ContinuousTestResult> + pageContext = + PageContext.create( + callable, LIST_CONTINUOUS_TEST_RESULTS_PAGE_STR_DESC, request, context); + return ListContinuousTestResultsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listEnvironments. */ public PagedCallSettings< ListEnvironmentsRequest, ListEnvironmentsResponse, ListEnvironmentsPagedResponse> @@ -303,6 +394,27 @@ public UnaryCallSettings deleteEnvironmentSetti return lookupEnvironmentHistorySettings; } + /** Returns the object with the settings used for calls to runContinuousTest. */ + public UnaryCallSettings runContinuousTestSettings() { + return runContinuousTestSettings; + } + + /** Returns the object with the settings used for calls to runContinuousTest. */ + public OperationCallSettings< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationSettings() { + return runContinuousTestOperationSettings; + } + + /** Returns the object with the settings used for calls to listContinuousTestResults. */ + public PagedCallSettings< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ListContinuousTestResultsPagedResponse> + listContinuousTestResultsSettings() { + return listContinuousTestResultsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public EnvironmentsStub createStub() throws IOException { if (getTransportChannelProvider() @@ -382,6 +494,10 @@ protected EnvironmentsStubSettings(Builder settingsBuilder) throws IOException { settingsBuilder.updateEnvironmentOperationSettings().build(); deleteEnvironmentSettings = settingsBuilder.deleteEnvironmentSettings().build(); lookupEnvironmentHistorySettings = settingsBuilder.lookupEnvironmentHistorySettings().build(); + runContinuousTestSettings = settingsBuilder.runContinuousTestSettings().build(); + runContinuousTestOperationSettings = + settingsBuilder.runContinuousTestOperationSettings().build(); + listContinuousTestResultsSettings = settingsBuilder.listContinuousTestResultsSettings().build(); } /** Builder for EnvironmentsStubSettings. */ @@ -407,6 +523,16 @@ public static class Builder extends StubSettings.Builder lookupEnvironmentHistorySettings; + private final UnaryCallSettings.Builder + runContinuousTestSettings; + private final OperationCallSettings.Builder< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationSettings; + private final PagedCallSettings.Builder< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ListContinuousTestResultsPagedResponse> + listContinuousTestResultsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -454,6 +580,10 @@ protected Builder(ClientContext clientContext) { deleteEnvironmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); lookupEnvironmentHistorySettings = PagedCallSettings.newBuilder(LOOKUP_ENVIRONMENT_HISTORY_PAGE_STR_FACT); + runContinuousTestSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + runContinuousTestOperationSettings = OperationCallSettings.newBuilder(); + listContinuousTestResultsSettings = + PagedCallSettings.newBuilder(LIST_CONTINUOUS_TEST_RESULTS_PAGE_STR_FACT); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -462,7 +592,9 @@ protected Builder(ClientContext clientContext) { createEnvironmentSettings, updateEnvironmentSettings, deleteEnvironmentSettings, - lookupEnvironmentHistorySettings); + lookupEnvironmentHistorySettings, + runContinuousTestSettings, + listContinuousTestResultsSettings); initDefaults(this); } @@ -477,6 +609,9 @@ protected Builder(EnvironmentsStubSettings settings) { updateEnvironmentOperationSettings = settings.updateEnvironmentOperationSettings.toBuilder(); deleteEnvironmentSettings = settings.deleteEnvironmentSettings.toBuilder(); lookupEnvironmentHistorySettings = settings.lookupEnvironmentHistorySettings.toBuilder(); + runContinuousTestSettings = settings.runContinuousTestSettings.toBuilder(); + runContinuousTestOperationSettings = settings.runContinuousTestOperationSettings.toBuilder(); + listContinuousTestResultsSettings = settings.listContinuousTestResultsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -485,7 +620,9 @@ protected Builder(EnvironmentsStubSettings settings) { createEnvironmentSettings, updateEnvironmentSettings, deleteEnvironmentSettings, - lookupEnvironmentHistorySettings); + lookupEnvironmentHistorySettings, + runContinuousTestSettings, + listContinuousTestResultsSettings); } private static Builder createDefault() { @@ -530,6 +667,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .runContinuousTestSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listContinuousTestResultsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createEnvironmentOperationSettings() .setInitialCallSettings( @@ -578,6 +725,32 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .runContinuousTestOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + RunContinuousTestResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + RunContinuousTestMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -651,6 +824,30 @@ public UnaryCallSettings.Builder deleteEnvironm return lookupEnvironmentHistorySettings; } + /** Returns the builder for the settings used for calls to runContinuousTest. */ + public UnaryCallSettings.Builder + runContinuousTestSettings() { + return runContinuousTestSettings; + } + + /** Returns the builder for the settings used for calls to runContinuousTest. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationSettings() { + return runContinuousTestOperationSettings; + } + + /** Returns the builder for the settings used for calls to listContinuousTestResults. */ + public PagedCallSettings.Builder< + ListContinuousTestResultsRequest, + ListContinuousTestResultsResponse, + ListContinuousTestResultsPagedResponse> + listContinuousTestResultsSettings() { + return listContinuousTestResultsSettings; + } + @Override public EnvironmentsStubSettings build() throws IOException { return new EnvironmentsStubSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java index 74bc43146..ee08f9e83 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEnvironmentsStub.java @@ -16,6 +16,7 @@ package com.google.cloud.dialogflow.cx.v3.stub; +import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListContinuousTestResultsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListEnvironmentsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.LookupEnvironmentHistoryPagedResponse; @@ -31,10 +32,15 @@ import com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; import com.google.cloud.dialogflow.cx.v3.Environment; import com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; +import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest; +import com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse; import com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; import com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; import com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; import com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest; +import com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse; import com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -121,6 +127,30 @@ public class GrpcEnvironmentsStub extends EnvironmentsStub { ProtoUtils.marshaller(LookupEnvironmentHistoryResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + runContinuousTestMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3.Environments/RunContinuousTest") + .setRequestMarshaller( + ProtoUtils.marshaller(RunContinuousTestRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListContinuousTestResultsRequest, ListContinuousTestResultsResponse> + listContinuousTestResultsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dialogflow.cx.v3.Environments/ListContinuousTestResults") + .setRequestMarshaller( + ProtoUtils.marshaller(ListContinuousTestResultsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListContinuousTestResultsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable listEnvironmentsCallable; private final UnaryCallable @@ -138,6 +168,15 @@ public class GrpcEnvironmentsStub extends EnvironmentsStub { private final UnaryCallable< LookupEnvironmentHistoryRequest, LookupEnvironmentHistoryPagedResponse> lookupEnvironmentHistoryPagedCallable; + private final UnaryCallable runContinuousTestCallable; + private final OperationCallable< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationCallable; + private final UnaryCallable + listContinuousTestResultsCallable; + private final UnaryCallable< + ListContinuousTestResultsRequest, ListContinuousTestResultsPagedResponse> + listContinuousTestResultsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -263,6 +302,34 @@ public Map extract(LookupEnvironmentHistoryRequest request) { } }) .build(); + GrpcCallSettings runContinuousTestTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runContinuousTestMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(RunContinuousTestRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("environment", String.valueOf(request.getEnvironment())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listContinuousTestResultsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listContinuousTestResultsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListContinuousTestResultsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); this.listEnvironmentsCallable = callableFactory.createUnaryCallable( @@ -310,6 +377,27 @@ public Map extract(LookupEnvironmentHistoryRequest request) { lookupEnvironmentHistoryTransportSettings, settings.lookupEnvironmentHistorySettings(), clientContext); + this.runContinuousTestCallable = + callableFactory.createUnaryCallable( + runContinuousTestTransportSettings, + settings.runContinuousTestSettings(), + clientContext); + this.runContinuousTestOperationCallable = + callableFactory.createOperationCallable( + runContinuousTestTransportSettings, + settings.runContinuousTestOperationSettings(), + clientContext, + operationsStub); + this.listContinuousTestResultsCallable = + callableFactory.createUnaryCallable( + listContinuousTestResultsTransportSettings, + settings.listContinuousTestResultsSettings(), + clientContext); + this.listContinuousTestResultsPagedCallable = + callableFactory.createPagedCallable( + listContinuousTestResultsTransportSettings, + settings.listContinuousTestResultsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -375,6 +463,30 @@ public UnaryCallable deleteEnvironmentCallable( return lookupEnvironmentHistoryPagedCallable; } + @Override + public UnaryCallable runContinuousTestCallable() { + return runContinuousTestCallable; + } + + @Override + public OperationCallable< + RunContinuousTestRequest, RunContinuousTestResponse, RunContinuousTestMetadata> + runContinuousTestOperationCallable() { + return runContinuousTestOperationCallable; + } + + @Override + public UnaryCallable + listContinuousTestResultsCallable() { + return listContinuousTestResultsCallable; + } + + @Override + public UnaryCallable + listContinuousTestResultsPagedCallable() { + return listContinuousTestResultsPagedCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java index 9ebe56163..c6c923e94 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.dialogflow.cx.v3; +import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListContinuousTestResultsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.ListEnvironmentsPagedResponse; import static com.google.cloud.dialogflow.cx.v3.EnvironmentsClient.LookupEnvironmentHistoryPagedResponse; @@ -591,4 +592,154 @@ public void lookupEnvironmentHistoryExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void runContinuousTestTest() throws Exception { + RunContinuousTestResponse expectedResponse = + RunContinuousTestResponse.newBuilder() + .setContinuousTestResult(ContinuousTestResult.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("runContinuousTestTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEnvironments.addResponse(resultOperation); + + RunContinuousTestRequest request = + RunContinuousTestRequest.newBuilder() + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .build(); + + RunContinuousTestResponse actualResponse = client.runContinuousTestAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEnvironments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunContinuousTestRequest actualRequest = ((RunContinuousTestRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getEnvironment(), actualRequest.getEnvironment()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runContinuousTestExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnvironments.addException(exception); + + try { + RunContinuousTestRequest request = + RunContinuousTestRequest.newBuilder() + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .build(); + client.runContinuousTestAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listContinuousTestResultsTest() throws Exception { + ContinuousTestResult responsesElement = ContinuousTestResult.newBuilder().build(); + ListContinuousTestResultsResponse expectedResponse = + ListContinuousTestResultsResponse.newBuilder() + .setNextPageToken("") + .addAllContinuousTestResults(Arrays.asList(responsesElement)) + .build(); + mockEnvironments.addResponse(expectedResponse); + + EnvironmentName parent = + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); + + ListContinuousTestResultsPagedResponse pagedListResponse = + client.listContinuousTestResults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContinuousTestResultsList().get(0), resources.get(0)); + + List actualRequests = mockEnvironments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListContinuousTestResultsRequest actualRequest = + ((ListContinuousTestResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listContinuousTestResultsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnvironments.addException(exception); + + try { + EnvironmentName parent = + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]"); + client.listContinuousTestResults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContinuousTestResultsTest2() throws Exception { + ContinuousTestResult responsesElement = ContinuousTestResult.newBuilder().build(); + ListContinuousTestResultsResponse expectedResponse = + ListContinuousTestResultsResponse.newBuilder() + .setNextPageToken("") + .addAllContinuousTestResults(Arrays.asList(responsesElement)) + .build(); + mockEnvironments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListContinuousTestResultsPagedResponse pagedListResponse = + client.listContinuousTestResults(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContinuousTestResultsList().get(0), resources.get(0)); + + List actualRequests = mockEnvironments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListContinuousTestResultsRequest actualRequest = + ((ListContinuousTestResultsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listContinuousTestResultsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEnvironments.addException(exception); + + try { + String parent = "parent-995424086"; + client.listContinuousTestResults(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockEnvironmentsImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockEnvironmentsImpl.java index 456cb9177..c557bbf91 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockEnvironmentsImpl.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockEnvironmentsImpl.java @@ -186,4 +186,47 @@ public void lookupEnvironmentHistory( Exception.class.getName()))); } } + + @Override + public void runContinuousTest( + RunContinuousTestRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RunContinuousTest, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listContinuousTestResults( + ListContinuousTestResultsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListContinuousTestResultsResponse) { + requests.add(request); + responseObserver.onNext(((ListContinuousTestResultsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListContinuousTestResults, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListContinuousTestResultsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java index d6e05a3b5..ea9640717 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java @@ -312,6 +312,103 @@ private EnvironmentsGrpc() {} return getLookupEnvironmentHistoryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest, + com.google.longrunning.Operation> + getRunContinuousTestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunContinuousTest", + requestType = com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest, + com.google.longrunning.Operation> + getRunContinuousTestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest, + com.google.longrunning.Operation> + getRunContinuousTestMethod; + if ((getRunContinuousTestMethod = EnvironmentsGrpc.getRunContinuousTestMethod) == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getRunContinuousTestMethod = EnvironmentsGrpc.getRunContinuousTestMethod) == null) { + EnvironmentsGrpc.getRunContinuousTestMethod = + getRunContinuousTestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunContinuousTest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new EnvironmentsMethodDescriptorSupplier("RunContinuousTest")) + .build(); + } + } + } + return getRunContinuousTestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse> + getListContinuousTestResultsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListContinuousTestResults", + requestType = com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse> + getListContinuousTestResultsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse> + getListContinuousTestResultsMethod; + if ((getListContinuousTestResultsMethod = EnvironmentsGrpc.getListContinuousTestResultsMethod) + == null) { + synchronized (EnvironmentsGrpc.class) { + if ((getListContinuousTestResultsMethod = + EnvironmentsGrpc.getListContinuousTestResultsMethod) + == null) { + EnvironmentsGrpc.getListContinuousTestResultsMethod = + getListContinuousTestResultsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListContinuousTestResults")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EnvironmentsMethodDescriptorSupplier("ListContinuousTestResults")) + .build(); + } + } + } + return getListContinuousTestResultsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EnvironmentsStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -450,6 +547,36 @@ public void lookupEnvironmentHistory( getLookupEnvironmentHistoryMethod(), responseObserver); } + /** + * + * + *
+     * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * 
+ */ + public void runContinuousTest( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunContinuousTestMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches a list of continuous test results for a given environment.
+     * 
+ */ + public void listContinuousTestResults( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListContinuousTestResultsMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -492,6 +619,19 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest, com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse>( this, METHODID_LOOKUP_ENVIRONMENT_HISTORY))) + .addMethod( + getRunContinuousTestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest, + com.google.longrunning.Operation>(this, METHODID_RUN_CONTINUOUS_TEST))) + .addMethod( + getListContinuousTestResultsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest, + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse>( + this, METHODID_LIST_CONTINUOUS_TEST_RESULTS))) .build(); } } @@ -613,6 +753,40 @@ public void lookupEnvironmentHistory( request, responseObserver); } + + /** + * + * + *
+     * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * 
+ */ + public void runContinuousTest( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunContinuousTestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches a list of continuous test results for a given environment.
+     * 
+ */ + public void listContinuousTestResults( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListContinuousTestResultsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -712,6 +886,33 @@ public com.google.protobuf.Empty deleteEnvironment( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getLookupEnvironmentHistoryMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * 
+ */ + public com.google.longrunning.Operation runContinuousTest( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunContinuousTestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches a list of continuous test results for a given environment.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + listContinuousTestResults( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListContinuousTestResultsMethod(), getCallOptions(), request); + } } /** @@ -814,6 +1015,34 @@ protected EnvironmentsFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLookupEnvironmentHistoryMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + runContinuousTest(com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunContinuousTestMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Fetches a list of continuous test results for a given environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse> + listContinuousTestResults( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListContinuousTestResultsMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_ENVIRONMENTS = 0; @@ -822,6 +1051,8 @@ protected EnvironmentsFutureStub build( private static final int METHODID_UPDATE_ENVIRONMENT = 3; private static final int METHODID_DELETE_ENVIRONMENT = 4; private static final int METHODID_LOOKUP_ENVIRONMENT_HISTORY = 5; + private static final int METHODID_RUN_CONTINUOUS_TEST = 6; + private static final int METHODID_LIST_CONTINUOUS_TEST_RESULTS = 7; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -875,6 +1106,18 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse>) responseObserver); break; + case METHODID_RUN_CONTINUOUS_TEST: + serviceImpl.runContinuousTest( + (com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONTINUOUS_TEST_RESULTS: + serviceImpl.listContinuousTestResults( + (com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -945,6 +1188,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateEnvironmentMethod()) .addMethod(getDeleteEnvironmentMethod()) .addMethod(getLookupEnvironmentHistoryMethod()) + .addMethod(getRunContinuousTestMethod()) + .addMethod(getListContinuousTestResultsMethod()) .build(); } } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java new file mode 100644 index 000000000..ef9a7696a --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java @@ -0,0 +1,1554 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * Represents a result from running a test case in an agent environment.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ContinuousTestResult} + */ +public final class ContinuousTestResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ContinuousTestResult) + ContinuousTestResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContinuousTestResult.newBuilder() to construct. + private ContinuousTestResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContinuousTestResult() { + name_ = ""; + result_ = 0; + testCaseResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContinuousTestResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ContinuousTestResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + result_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + testCaseResults_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + testCaseResults_.add(s); + break; + } + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (runTime_ != null) { + subBuilder = runTime_.toBuilder(); + } + runTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(runTime_); + runTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + testCaseResults_ = testCaseResults_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.class, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder.class); + } + + /** + * + * + *
+   * The overall result for a continuous test run in an agent environment.
+   * 
+ * + * Protobuf enum {@code google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult} + */ + public enum AggregatedTestResult implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified. Should never be used.
+     * 
+ * + * AGGREGATED_TEST_RESULT_UNSPECIFIED = 0; + */ + AGGREGATED_TEST_RESULT_UNSPECIFIED(0), + /** + * + * + *
+     * All the tests passed.
+     * 
+ * + * PASSED = 1; + */ + PASSED(1), + /** + * + * + *
+     * At least one test did not pass.
+     * 
+ * + * FAILED = 2; + */ + FAILED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified. Should never be used.
+     * 
+ * + * AGGREGATED_TEST_RESULT_UNSPECIFIED = 0; + */ + public static final int AGGREGATED_TEST_RESULT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * All the tests passed.
+     * 
+ * + * PASSED = 1; + */ + public static final int PASSED_VALUE = 1; + /** + * + * + *
+     * At least one test did not pass.
+     * 
+ * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AggregatedTestResult valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AggregatedTestResult forNumber(int value) { + switch (value) { + case 0: + return AGGREGATED_TEST_RESULT_UNSPECIFIED; + case 1: + return PASSED; + case 2: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AggregatedTestResult findValueByNumber(int number) { + return AggregatedTestResult.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AggregatedTestResult[] VALUES = values(); + + public static AggregatedTestResult valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AggregatedTestResult(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The resource name for the continuous test result. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment
+   * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The resource name for the continuous test result. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment
+   * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESULT_FIELD_NUMBER = 2; + private int result_; + /** + * + * + *
+   * The result of this continuous test run, i.e. whether all the tests in this
+   * continuous test run pass or not.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + /** + * + * + *
+   * The result of this continuous test run, i.e. whether all the tests in this
+   * continuous test run pass or not.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult getResult() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.valueOf( + result_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.UNRECOGNIZED + : result; + } + + public static final int TEST_CASE_RESULTS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList testCaseResults_; + /** + * + * + *
+   * A list of individual test case results names in this continuous test run.
+   * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the testCaseResults. + */ + public com.google.protobuf.ProtocolStringList getTestCaseResultsList() { + return testCaseResults_; + } + /** + * + * + *
+   * A list of individual test case results names in this continuous test run.
+   * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * @return The count of testCaseResults. + */ + public int getTestCaseResultsCount() { + return testCaseResults_.size(); + } + /** + * + * + *
+   * A list of individual test case results names in this continuous test run.
+   * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The testCaseResults at the given index. + */ + public java.lang.String getTestCaseResults(int index) { + return testCaseResults_.get(index); + } + /** + * + * + *
+   * A list of individual test case results names in this continuous test run.
+   * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the testCaseResults at the given index. + */ + public com.google.protobuf.ByteString getTestCaseResultsBytes(int index) { + return testCaseResults_.getByteString(index); + } + + public static final int RUN_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp runTime_; + /** + * + * + *
+   * Time when the continuous testing run starts.
+   * 
+ * + * .google.protobuf.Timestamp run_time = 4; + * + * @return Whether the runTime field is set. + */ + @java.lang.Override + public boolean hasRunTime() { + return runTime_ != null; + } + /** + * + * + *
+   * Time when the continuous testing run starts.
+   * 
+ * + * .google.protobuf.Timestamp run_time = 4; + * + * @return The runTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRunTime() { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } + /** + * + * + *
+   * Time when the continuous testing run starts.
+   * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { + return getRunTime(); + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (result_ + != com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult + .AGGREGATED_TEST_RESULT_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, result_); + } + for (int i = 0; i < testCaseResults_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, testCaseResults_.getRaw(i)); + } + if (runTime_ != null) { + output.writeMessage(4, getRunTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (result_ + != com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult + .AGGREGATED_TEST_RESULT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, result_); + } + { + int dataSize = 0; + for (int i = 0; i < testCaseResults_.size(); i++) { + dataSize += computeStringSizeNoTag(testCaseResults_.getRaw(i)); + } + size += dataSize; + size += 1 * getTestCaseResultsList().size(); + } + if (runTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRunTime()); + } + size += unknownFields.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.v3.ContinuousTestResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult other = + (com.google.cloud.dialogflow.cx.v3.ContinuousTestResult) obj; + + if (!getName().equals(other.getName())) return false; + if (result_ != other.result_) return false; + if (!getTestCaseResultsList().equals(other.getTestCaseResultsList())) return false; + if (hasRunTime() != other.hasRunTime()) return false; + if (hasRunTime()) { + if (!getRunTime().equals(other.getRunTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + RESULT_FIELD_NUMBER; + hash = (53 * hash) + result_; + if (getTestCaseResultsCount() > 0) { + hash = (37 * hash) + TEST_CASE_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getTestCaseResultsList().hashCode(); + } + if (hasRunTime()) { + hash = (37 * hash) + RUN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRunTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.ContinuousTestResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ContinuousTestResult 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.v3.ContinuousTestResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ContinuousTestResult 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.v3.ContinuousTestResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ContinuousTestResult 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.v3.ContinuousTestResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ContinuousTestResult 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.v3.ContinuousTestResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ContinuousTestResult 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.v3.ContinuousTestResult 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.v3.ContinuousTestResult 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.v3.ContinuousTestResult 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; + } + /** + * + * + *
+   * Represents a result from running a test case in an agent environment.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ContinuousTestResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ContinuousTestResult) + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.class, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + result_ = 0; + + testCaseResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (runTimeBuilder_ == null) { + runTime_ = null; + } else { + runTime_ = null; + runTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult build() { + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult buildPartial() { + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult result = + new com.google.cloud.dialogflow.cx.v3.ContinuousTestResult(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.result_ = result_; + if (((bitField0_ & 0x00000001) != 0)) { + testCaseResults_ = testCaseResults_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.testCaseResults_ = testCaseResults_; + if (runTimeBuilder_ == null) { + result.runTime_ = runTime_; + } else { + result.runTime_ = runTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @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.v3.ContinuousTestResult) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.ContinuousTestResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ContinuousTestResult other) { + if (other == com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.result_ != 0) { + setResultValue(other.getResultValue()); + } + if (!other.testCaseResults_.isEmpty()) { + if (testCaseResults_.isEmpty()) { + testCaseResults_ = other.testCaseResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTestCaseResultsIsMutable(); + testCaseResults_.addAll(other.testCaseResults_); + } + onChanged(); + } + if (other.hasRunTime()) { + mergeRunTime(other.getRunTime()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.ContinuousTestResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The resource name for the continuous test result. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment
+     * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name for the continuous test result. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment
+     * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The resource name for the continuous test result. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment
+     * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name for the continuous test result. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment
+     * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name for the continuous test result. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment
+     * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int result_ = 0; + /** + * + * + *
+     * The result of this continuous test run, i.e. whether all the tests in this
+     * continuous test run pass or not.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @return The enum numeric value on the wire for result. + */ + @java.lang.Override + public int getResultValue() { + return result_; + } + /** + * + * + *
+     * The result of this continuous test run, i.e. whether all the tests in this
+     * continuous test run pass or not.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @param value The enum numeric value on the wire for result to set. + * @return This builder for chaining. + */ + public Builder setResultValue(int value) { + + result_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The result of this continuous test run, i.e. whether all the tests in this
+     * continuous test run pass or not.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @return The result. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult getResult() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.valueOf( + result_); + return result == null + ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The result of this continuous test run, i.e. whether all the tests in this
+     * continuous test run pass or not.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @param value The result to set. + * @return This builder for chaining. + */ + public Builder setResult( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult value) { + if (value == null) { + throw new NullPointerException(); + } + + result_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The result of this continuous test run, i.e. whether all the tests in this
+     * continuous test run pass or not.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearResult() { + + result_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList testCaseResults_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTestCaseResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + testCaseResults_ = new com.google.protobuf.LazyStringArrayList(testCaseResults_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the testCaseResults. + */ + public com.google.protobuf.ProtocolStringList getTestCaseResultsList() { + return testCaseResults_.getUnmodifiableView(); + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of testCaseResults. + */ + public int getTestCaseResultsCount() { + return testCaseResults_.size(); + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The testCaseResults at the given index. + */ + public java.lang.String getTestCaseResults(int index) { + return testCaseResults_.get(index); + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the testCaseResults at the given index. + */ + public com.google.protobuf.ByteString getTestCaseResultsBytes(int index) { + return testCaseResults_.getByteString(index); + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The testCaseResults to set. + * @return This builder for chaining. + */ + public Builder setTestCaseResults(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestCaseResultsIsMutable(); + testCaseResults_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param value The testCaseResults to add. + * @return This builder for chaining. + */ + public Builder addTestCaseResults(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTestCaseResultsIsMutable(); + testCaseResults_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param values The testCaseResults to add. + * @return This builder for chaining. + */ + public Builder addAllTestCaseResults(java.lang.Iterable values) { + ensureTestCaseResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, testCaseResults_); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTestCaseResults() { + testCaseResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * A list of individual test case results names in this continuous test run.
+     * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the testCaseResults to add. + * @return This builder for chaining. + */ + public Builder addTestCaseResultsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTestCaseResultsIsMutable(); + testCaseResults_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp runTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + runTimeBuilder_; + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + * + * @return Whether the runTime field is set. + */ + public boolean hasRunTime() { + return runTimeBuilder_ != null || runTime_ != null; + } + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + * + * @return The runTime. + */ + public com.google.protobuf.Timestamp getRunTime() { + if (runTimeBuilder_ == null) { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } else { + return runTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + public Builder setRunTime(com.google.protobuf.Timestamp value) { + if (runTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + runTime_ = value; + onChanged(); + } else { + runTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (runTimeBuilder_ == null) { + runTime_ = builderForValue.build(); + onChanged(); + } else { + runTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + public Builder mergeRunTime(com.google.protobuf.Timestamp value) { + if (runTimeBuilder_ == null) { + if (runTime_ != null) { + runTime_ = + com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial(); + } else { + runTime_ = value; + } + onChanged(); + } else { + runTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + public Builder clearRunTime() { + if (runTimeBuilder_ == null) { + runTime_ = null; + onChanged(); + } else { + runTime_ = null; + runTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() { + + onChanged(); + return getRunTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { + if (runTimeBuilder_ != null) { + return runTimeBuilder_.getMessageOrBuilder(); + } else { + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; + } + } + /** + * + * + *
+     * Time when the continuous testing run starts.
+     * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRunTimeFieldBuilder() { + if (runTimeBuilder_ == null) { + runTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRunTime(), getParentForChildren(), isClean()); + runTime_ = null; + } + return runTimeBuilder_; + } + + @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.v3.ContinuousTestResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ContinuousTestResult) + private static final com.google.cloud.dialogflow.cx.v3.ContinuousTestResult DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ContinuousTestResult(); + } + + public static com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContinuousTestResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ContinuousTestResult(input, extensionRegistry); + } + }; + + 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.v3.ContinuousTestResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java new file mode 100644 index 000000000..6c3c43557 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java @@ -0,0 +1,306 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dialogflow.cx.v3; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ContinuousTestResultName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AGENT_ENVIRONMENT_CONTINUOUS_TEST_RESULT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/continuousTestResults/{continuous_test_result}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String agent; + private final String environment; + private final String continuousTestResult; + + @Deprecated + protected ContinuousTestResultName() { + project = null; + location = null; + agent = null; + environment = null; + continuousTestResult = null; + } + + private ContinuousTestResultName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + agent = Preconditions.checkNotNull(builder.getAgent()); + environment = Preconditions.checkNotNull(builder.getEnvironment()); + continuousTestResult = Preconditions.checkNotNull(builder.getContinuousTestResult()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + public String getEnvironment() { + return environment; + } + + public String getContinuousTestResult() { + return continuousTestResult; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ContinuousTestResultName of( + String project, + String location, + String agent, + String environment, + String continuousTestResult) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setEnvironment(environment) + .setContinuousTestResult(continuousTestResult) + .build(); + } + + public static String format( + String project, + String location, + String agent, + String environment, + String continuousTestResult) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .setEnvironment(environment) + .setContinuousTestResult(continuousTestResult) + .build() + .toString(); + } + + public static ContinuousTestResultName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AGENT_ENVIRONMENT_CONTINUOUS_TEST_RESULT.validatedMatch( + formattedString, "ContinuousTestResultName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("agent"), + matchMap.get("environment"), + matchMap.get("continuous_test_result")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ContinuousTestResultName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AGENT_ENVIRONMENT_CONTINUOUS_TEST_RESULT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (agent != null) { + fieldMapBuilder.put("agent", agent); + } + if (environment != null) { + fieldMapBuilder.put("environment", environment); + } + if (continuousTestResult != null) { + fieldMapBuilder.put("continuous_test_result", continuousTestResult); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AGENT_ENVIRONMENT_CONTINUOUS_TEST_RESULT.instantiate( + "project", + project, + "location", + location, + "agent", + agent, + "environment", + environment, + "continuous_test_result", + continuousTestResult); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ContinuousTestResultName that = ((ContinuousTestResultName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.agent, that.agent) + && Objects.equals(this.environment, that.environment) + && Objects.equals(this.continuousTestResult, that.continuousTestResult); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(agent); + h *= 1000003; + h ^= Objects.hashCode(environment); + h *= 1000003; + h ^= Objects.hashCode(continuousTestResult); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/continuousTestResults/{continuous_test_result}. + */ + public static class Builder { + private String project; + private String location; + private String agent; + private String environment; + private String continuousTestResult; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + public String getEnvironment() { + return environment; + } + + public String getContinuousTestResult() { + return continuousTestResult; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAgent(String agent) { + this.agent = agent; + return this; + } + + public Builder setEnvironment(String environment) { + this.environment = environment; + return this; + } + + public Builder setContinuousTestResult(String continuousTestResult) { + this.continuousTestResult = continuousTestResult; + return this; + } + + private Builder(ContinuousTestResultName continuousTestResultName) { + project = continuousTestResultName.project; + location = continuousTestResultName.location; + agent = continuousTestResultName.agent; + environment = continuousTestResultName.environment; + continuousTestResult = continuousTestResultName.continuousTestResult; + } + + public ContinuousTestResultName build() { + return new ContinuousTestResultName(this); + } + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultOrBuilder.java new file mode 100644 index 000000000..d00828099 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultOrBuilder.java @@ -0,0 +1,171 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface ContinuousTestResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ContinuousTestResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resource name for the continuous test result. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment
+   * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The resource name for the continuous test result. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment
+   * ID>/continuousTestResults/<ContinuousTestResult ID>`.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The result of this continuous test run, i.e. whether all the tests in this
+   * continuous test run pass or not.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @return The enum numeric value on the wire for result. + */ + int getResultValue(); + /** + * + * + *
+   * The result of this continuous test run, i.e. whether all the tests in this
+   * continuous test run pass or not.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2; + * + * + * @return The result. + */ + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult getResult(); + + /** + * + * + *
+   * A list of individual test case results names in this continuous test run.
+   * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the testCaseResults. + */ + java.util.List getTestCaseResultsList(); + /** + * + * + *
+   * A list of individual test case results names in this continuous test run.
+   * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * @return The count of testCaseResults. + */ + int getTestCaseResultsCount(); + /** + * + * + *
+   * A list of individual test case results names in this continuous test run.
+   * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The testCaseResults at the given index. + */ + java.lang.String getTestCaseResults(int index); + /** + * + * + *
+   * A list of individual test case results names in this continuous test run.
+   * 
+ * + * repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the testCaseResults at the given index. + */ + com.google.protobuf.ByteString getTestCaseResultsBytes(int index); + + /** + * + * + *
+   * Time when the continuous testing run starts.
+   * 
+ * + * .google.protobuf.Timestamp run_time = 4; + * + * @return Whether the runTime field is set. + */ + boolean hasRunTime(); + /** + * + * + *
+   * Time when the continuous testing run starts.
+   * 
+ * + * .google.protobuf.Timestamp run_time = 4; + * + * @return The runTime. + */ + com.google.protobuf.Timestamp getRunTime(); + /** + * + * + *
+   * Time when the continuous testing run starts.
+   * 
+ * + * .google.protobuf.Timestamp run_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java index d11f3027f..044dc9d96 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java @@ -67,6 +67,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_LookupEnvironmentHistoryResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_LookupEnvironmentHistoryResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -121,48 +145,89 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "kupEnvironmentHistoryResponse\022@\n\014environ" + "ments\030\001 \003(\0132*.google.cloud.dialogflow.cx" + ".v3.Environment\022\027\n\017next_page_token\030\002 \001(\t" - + "2\324\013\n\014Environments\022\317\001\n\020ListEnvironments\0226" - + ".google.cloud.dialogflow.cx.v3.ListEnvir" - + "onmentsRequest\0327.google.cloud.dialogflow" - + ".cx.v3.ListEnvironmentsResponse\"J\202\323\344\223\002;\022" - + "9/v3/{parent=projects/*/locations/*/agen" - + "ts/*}/environments\332A\006parent\022\274\001\n\016GetEnvir" - + "onment\0224.google.cloud.dialogflow.cx.v3.G" - + "etEnvironmentRequest\032*.google.cloud.dial" - + "ogflow.cx.v3.Environment\"H\202\323\344\223\002;\0229/v3/{n" - + "ame=projects/*/locations/*/agents/*/envi" - + "ronments/*}\332A\004name\022\371\001\n\021CreateEnvironment" - + "\0227.google.cloud.dialogflow.cx.v3.CreateE" - + "nvironmentRequest\032\035.google.longrunning.O" - + "peration\"\213\001\202\323\344\223\002H\"9/v3/{parent=projects/" - + "*/locations/*/agents/*}/environments:\013en" - + "vironment\332A\022parent,environment\312A%\n\013Envir" - + "onment\022\026google.protobuf.Struct\022\212\002\n\021Updat" - + "eEnvironment\0227.google.cloud.dialogflow.c" - + "x.v3.UpdateEnvironmentRequest\032\035.google.l" - + "ongrunning.Operation\"\234\001\202\323\344\223\002T2E/v3/{envi" - + "ronment.name=projects/*/locations/*/agen" - + "ts/*/environments/*}:\013environment\332A\027envi" - + "ronment,update_mask\312A%\n\013Environment\022\026goo" - + "gle.protobuf.Struct\022\256\001\n\021DeleteEnvironmen" - + "t\0227.google.cloud.dialogflow.cx.v3.Delete" - + "EnvironmentRequest\032\026.google.protobuf.Emp" - + "ty\"H\202\323\344\223\002;*9/v3/{name=projects/*/locatio" - + "ns/*/agents/*/environments/*}\332A\004name\022\376\001\n" - + "\030LookupEnvironmentHistory\022>.google.cloud" - + ".dialogflow.cx.v3.LookupEnvironmentHisto" - + "ryRequest\032?.google.cloud.dialogflow.cx.v" - + "3.LookupEnvironmentHistoryResponse\"a\202\323\344\223" - + "\002T\022R/v3/{name=projects/*/locations/*/age" - + "nts/*/environments/*}:lookupEnvironmentH" - + "istory\332A\004name\032x\312A\031dialogflow.googleapis." - + "com\322AYhttps://www.googleapis.com/auth/cl" - + "oud-platform,https://www.googleapis.com/" - + "auth/dialogflowB\240\001\n!com.google.cloud.dia" - + "logflow.cx.v3B\020EnvironmentProtoP\001Z?googl" - + "e.golang.org/genproto/googleapis/cloud/d" - + "ialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Clou" - + "d.Dialogflow.Cx.V3b\006proto3" + + "\"\210\004\n\024ContinuousTestResult\022\014\n\004name\030\001 \001(\t\022" + + "X\n\006result\030\002 \001(\0162H.google.cloud.dialogflo" + + "w.cx.v3.ContinuousTestResult.AggregatedT" + + "estResult\022H\n\021test_case_results\030\003 \003(\tB-\372A" + + "*\n(dialogflow.googleapis.com/TestCaseRes" + + "ult\022,\n\010run_time\030\004 \001(\0132\032.google.protobuf." + + "Timestamp\"V\n\024AggregatedTestResult\022&\n\"AGG" + + "REGATED_TEST_RESULT_UNSPECIFIED\020\000\022\n\n\006PAS" + + "SED\020\001\022\n\n\006FAILED\020\002:\267\001\352A\263\001\n.dialogflow.goo" + + "gleapis.com/ContinuousTestResult\022\200\001proje" + + "cts/{project}/locations/{location}/agent" + + "s/{agent}/environments/{environment}/con" + + "tinuousTestResults/{continuous_test_resu" + + "lt}\"^\n\030RunContinuousTestRequest\022B\n\013envir" + + "onment\030\001 \001(\tB-\340A\002\372A\'\n%dialogflow.googlea" + + "pis.com/Environment\"p\n\031RunContinuousTest" + + "Response\022S\n\026continuous_test_result\030\001 \001(\013" + + "23.google.cloud.dialogflow.cx.v3.Continu" + + "ousTestResult\"U\n\031RunContinuousTestMetada" + + "ta\0228\n\006errors\030\001 \003(\0132(.google.cloud.dialog" + + "flow.cx.v3.TestError\"\221\001\n ListContinuousT" + + "estResultsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A" + + "0\022.dialogflow.googleapis.com/ContinuousT" + + "estResult\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"\222\001\n!ListContinuousTestResultsRe" + + "sponse\022T\n\027continuous_test_results\030\001 \003(\0132" + + "3.google.cloud.dialogflow.cx.v3.Continuo" + + "usTestResult\022\027\n\017next_page_token\030\002 \001(\t2\340\017" + + "\n\014Environments\022\317\001\n\020ListEnvironments\0226.go" + + "ogle.cloud.dialogflow.cx.v3.ListEnvironm" + + "entsRequest\0327.google.cloud.dialogflow.cx" + + ".v3.ListEnvironmentsResponse\"J\202\323\344\223\002;\0229/v" + + "3/{parent=projects/*/locations/*/agents/" + + "*}/environments\332A\006parent\022\274\001\n\016GetEnvironm" + + "ent\0224.google.cloud.dialogflow.cx.v3.GetE" + + "nvironmentRequest\032*.google.cloud.dialogf" + + "low.cx.v3.Environment\"H\202\323\344\223\002;\0229/v3/{name" + + "=projects/*/locations/*/agents/*/environ" + + "ments/*}\332A\004name\022\371\001\n\021CreateEnvironment\0227." + + "google.cloud.dialogflow.cx.v3.CreateEnvi" + + "ronmentRequest\032\035.google.longrunning.Oper" + + "ation\"\213\001\202\323\344\223\002H\"9/v3/{parent=projects/*/l" + + "ocations/*/agents/*}/environments:\013envir" + + "onment\332A\022parent,environment\312A%\n\013Environm" + + "ent\022\026google.protobuf.Struct\022\212\002\n\021UpdateEn" + + "vironment\0227.google.cloud.dialogflow.cx.v" + + "3.UpdateEnvironmentRequest\032\035.google.long" + + "running.Operation\"\234\001\202\323\344\223\002T2E/v3/{environ" + + "ment.name=projects/*/locations/*/agents/" + + "*/environments/*}:\013environment\332A\027environ" + + "ment,update_mask\312A%\n\013Environment\022\026google" + + ".protobuf.Struct\022\256\001\n\021DeleteEnvironment\0227" + + ".google.cloud.dialogflow.cx.v3.DeleteEnv" + + "ironmentRequest\032\026.google.protobuf.Empty\"" + + "H\202\323\344\223\002;*9/v3/{name=projects/*/locations/" + + "*/agents/*/environments/*}\332A\004name\022\376\001\n\030Lo" + + "okupEnvironmentHistory\022>.google.cloud.di" + + "alogflow.cx.v3.LookupEnvironmentHistoryR" + + "equest\032?.google.cloud.dialogflow.cx.v3.L" + + "ookupEnvironmentHistoryResponse\"a\202\323\344\223\002T\022" + + "R/v3/{name=projects/*/locations/*/agents" + + "/*/environments/*}:lookupEnvironmentHist" + + "ory\332A\004name\022\204\002\n\021RunContinuousTest\0227.googl" + + "e.cloud.dialogflow.cx.v3.RunContinuousTe" + + "stRequest\032\035.google.longrunning.Operation" + + "\"\226\001\202\323\344\223\002W\"R/v3/{environment=projects/*/l" + + "ocations/*/agents/*/environments/*}:runC" + + "ontinuousTest:\001*\312A6\n\031RunContinuousTestRe" + + "sponse\022\031RunContinuousTestMetadata\022\202\002\n\031Li" + + "stContinuousTestResults\022?.google.cloud.d" + + "ialogflow.cx.v3.ListContinuousTestResult" + + "sRequest\032@.google.cloud.dialogflow.cx.v3" + + ".ListContinuousTestResultsResponse\"b\202\323\344\223" + + "\002S\022Q/v3/{parent=projects/*/locations/*/a" + + "gents/*/environments/*}/continuousTestRe" + + "sults\332A\006parent\032x\312A\031dialogflow.googleapis" + + ".com\322AYhttps://www.googleapis.com/auth/c" + + "loud-platform,https://www.googleapis.com" + + "/auth/dialogflowB\240\001\n!com.google.cloud.di" + + "alogflow.cx.v3B\020EnvironmentProtoP\001Z?goog" + + "le.golang.org/genproto/googleapis/cloud/" + + "dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Clo" + + "ud.Dialogflow.Cx.V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -260,6 +325,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Environments", "NextPageToken", }); + internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_ContinuousTestResult_descriptor, + new java.lang.String[] { + "Name", "Result", "TestCaseResults", "RunTime", + }); + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_descriptor, + new java.lang.String[] { + "Environment", + }); + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_descriptor, + new java.lang.String[] { + "ContinuousTestResult", + }); + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_descriptor, + new java.lang.String[] { + "Errors", + }); + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_descriptor, + new java.lang.String[] { + "ContinuousTestResults", "NextPageToken", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java new file mode 100644 index 000000000..2eddaa28f --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} + */ +public final class ListContinuousTestResultsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) + ListContinuousTestResultsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListContinuousTestResultsRequest.newBuilder() to construct. + private ListContinuousTestResultsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContinuousTestResultsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContinuousTestResultsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListContinuousTestResultsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.class, + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The environment to list results for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The environment to list results for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of items to return in a single page. By default 100 and
+   * at most 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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 (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.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.v3.ListContinuousTestResultsRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest other = + (com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest 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.v3.ListContinuousTestResultsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest 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.v3.ListContinuousTestResultsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest 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.v3.ListContinuousTestResultsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest 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.v3.ListContinuousTestResultsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + 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.v3.ListContinuousTestResultsRequest 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.v3.ListContinuousTestResultsRequest 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.v3.ListContinuousTestResultsRequest 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; + } + /** + * + * + *
+   * The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.class, + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest build() { + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest result = + new com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @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.v3.ListContinuousTestResultsRequest) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest other) { + if (other + == com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The environment to list results for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The environment to list results for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The environment to list results for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The environment to list results for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The environment to list results for.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * environments/<Environment ID>`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of items to return in a single page. By default 100 and
+     * at most 1000.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * The next_page_token value returned from a previous list request.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + 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.v3.ListContinuousTestResultsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) + private static final com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContinuousTestResultsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListContinuousTestResultsRequest(input, extensionRegistry); + } + }; + + 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.v3.ListContinuousTestResultsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequestOrBuilder.java new file mode 100644 index 000000000..2902e0c15 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface ListContinuousTestResultsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The environment to list results for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The environment to list results for.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * environments/<Environment ID>`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of items to return in a single page. By default 100 and
+   * at most 1000.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * The next_page_token value returned from a previous list request.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java new file mode 100644 index 000000000..7e1d06d96 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java @@ -0,0 +1,1215 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The response message for [Environments.ListTestCaseResults][].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} + */ +public final class ListContinuousTestResultsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) + ListContinuousTestResultsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListContinuousTestResultsResponse.newBuilder() to construct. + private ListContinuousTestResultsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListContinuousTestResultsResponse() { + continuousTestResults_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListContinuousTestResultsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListContinuousTestResultsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + continuousTestResults_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult>(); + mutable_bitField0_ |= 0x00000001; + } + continuousTestResults_.add( + input.readMessage( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + continuousTestResults_ = java.util.Collections.unmodifiableList(continuousTestResults_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.class, + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.Builder.class); + } + + public static final int CONTINUOUS_TEST_RESULTS_FIELD_NUMBER = 1; + private java.util.List + continuousTestResults_; + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + @java.lang.Override + public java.util.List + getContinuousTestResultsList() { + return continuousTestResults_; + } + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + @java.lang.Override + public java.util.List + getContinuousTestResultsOrBuilderList() { + return continuousTestResults_; + } + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + @java.lang.Override + public int getContinuousTestResultsCount() { + return continuousTestResults_.size(); + } + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestResults( + int index) { + return continuousTestResults_.get(index); + } + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder + getContinuousTestResultsOrBuilder(int index) { + return continuousTestResults_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < continuousTestResults_.size(); i++) { + output.writeMessage(1, continuousTestResults_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < continuousTestResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, continuousTestResults_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.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.v3.ListContinuousTestResultsResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse other = + (com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) obj; + + if (!getContinuousTestResultsList().equals(other.getContinuousTestResultsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getContinuousTestResultsCount() > 0) { + hash = (37 * hash) + CONTINUOUS_TEST_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getContinuousTestResultsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse 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.v3.ListContinuousTestResultsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse 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.v3.ListContinuousTestResultsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse 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.v3.ListContinuousTestResultsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse 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.v3.ListContinuousTestResultsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + 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.v3.ListContinuousTestResultsResponse 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.v3.ListContinuousTestResultsResponse 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.v3.ListContinuousTestResultsResponse 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; + } + /** + * + * + *
+   * The response message for [Environments.ListTestCaseResults][].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.class, + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContinuousTestResultsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (continuousTestResultsBuilder_ == null) { + continuousTestResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + continuousTestResultsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_ListContinuousTestResultsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse build() { + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse result = + new com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse(this); + int from_bitField0_ = bitField0_; + if (continuousTestResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + continuousTestResults_ = java.util.Collections.unmodifiableList(continuousTestResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.continuousTestResults_ = continuousTestResults_; + } else { + result.continuousTestResults_ = continuousTestResultsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @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.v3.ListContinuousTestResultsResponse) { + return mergeFrom( + (com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse other) { + if (other + == com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + .getDefaultInstance()) return this; + if (continuousTestResultsBuilder_ == null) { + if (!other.continuousTestResults_.isEmpty()) { + if (continuousTestResults_.isEmpty()) { + continuousTestResults_ = other.continuousTestResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContinuousTestResultsIsMutable(); + continuousTestResults_.addAll(other.continuousTestResults_); + } + onChanged(); + } + } else { + if (!other.continuousTestResults_.isEmpty()) { + if (continuousTestResultsBuilder_.isEmpty()) { + continuousTestResultsBuilder_.dispose(); + continuousTestResultsBuilder_ = null; + continuousTestResults_ = other.continuousTestResults_; + bitField0_ = (bitField0_ & ~0x00000001); + continuousTestResultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContinuousTestResultsFieldBuilder() + : null; + } else { + continuousTestResultsBuilder_.addAllMessages(other.continuousTestResults_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + continuousTestResults_ = java.util.Collections.emptyList(); + + private void ensureContinuousTestResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + continuousTestResults_ = + new java.util.ArrayList( + continuousTestResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder> + continuousTestResultsBuilder_; + + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public java.util.List + getContinuousTestResultsList() { + if (continuousTestResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(continuousTestResults_); + } else { + return continuousTestResultsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public int getContinuousTestResultsCount() { + if (continuousTestResultsBuilder_ == null) { + return continuousTestResults_.size(); + } else { + return continuousTestResultsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestResults( + int index) { + if (continuousTestResultsBuilder_ == null) { + return continuousTestResults_.get(index); + } else { + return continuousTestResultsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder setContinuousTestResults( + int index, com.google.cloud.dialogflow.cx.v3.ContinuousTestResult value) { + if (continuousTestResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContinuousTestResultsIsMutable(); + continuousTestResults_.set(index, value); + onChanged(); + } else { + continuousTestResultsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder setContinuousTestResults( + int index, com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder builderForValue) { + if (continuousTestResultsBuilder_ == null) { + ensureContinuousTestResultsIsMutable(); + continuousTestResults_.set(index, builderForValue.build()); + onChanged(); + } else { + continuousTestResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder addContinuousTestResults( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult value) { + if (continuousTestResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContinuousTestResultsIsMutable(); + continuousTestResults_.add(value); + onChanged(); + } else { + continuousTestResultsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder addContinuousTestResults( + int index, com.google.cloud.dialogflow.cx.v3.ContinuousTestResult value) { + if (continuousTestResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContinuousTestResultsIsMutable(); + continuousTestResults_.add(index, value); + onChanged(); + } else { + continuousTestResultsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder addContinuousTestResults( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder builderForValue) { + if (continuousTestResultsBuilder_ == null) { + ensureContinuousTestResultsIsMutable(); + continuousTestResults_.add(builderForValue.build()); + onChanged(); + } else { + continuousTestResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder addContinuousTestResults( + int index, com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder builderForValue) { + if (continuousTestResultsBuilder_ == null) { + ensureContinuousTestResultsIsMutable(); + continuousTestResults_.add(index, builderForValue.build()); + onChanged(); + } else { + continuousTestResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder addAllContinuousTestResults( + java.lang.Iterable + values) { + if (continuousTestResultsBuilder_ == null) { + ensureContinuousTestResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, continuousTestResults_); + onChanged(); + } else { + continuousTestResultsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder clearContinuousTestResults() { + if (continuousTestResultsBuilder_ == null) { + continuousTestResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + continuousTestResultsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public Builder removeContinuousTestResults(int index) { + if (continuousTestResultsBuilder_ == null) { + ensureContinuousTestResultsIsMutable(); + continuousTestResults_.remove(index); + onChanged(); + } else { + continuousTestResultsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder + getContinuousTestResultsBuilder(int index) { + return getContinuousTestResultsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder + getContinuousTestResultsOrBuilder(int index) { + if (continuousTestResultsBuilder_ == null) { + return continuousTestResults_.get(index); + } else { + return continuousTestResultsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public java.util.List + getContinuousTestResultsOrBuilderList() { + if (continuousTestResultsBuilder_ != null) { + return continuousTestResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(continuousTestResults_); + } + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder + addContinuousTestResultsBuilder() { + return getContinuousTestResultsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance()); + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder + addContinuousTestResultsBuilder(int index) { + return getContinuousTestResultsFieldBuilder() + .addBuilder( + index, com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance()); + } + /** + * + * + *
+     * The list of continuous test results.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + public java.util.List + getContinuousTestResultsBuilderList() { + return getContinuousTestResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder> + getContinuousTestResultsFieldBuilder() { + if (continuousTestResultsBuilder_ == null) { + continuousTestResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder>( + continuousTestResults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + continuousTestResults_ = null; + } + return continuousTestResultsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Token to retrieve the next page of results, or empty if there are no more
+     * results in the list.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + 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.v3.ListContinuousTestResultsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) + private static final com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContinuousTestResultsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListContinuousTestResultsResponse(input, extensionRegistry); + } + }; + + 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.v3.ListContinuousTestResultsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponseOrBuilder.java new file mode 100644 index 000000000..877f7075a --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface ListContinuousTestResultsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + java.util.List + getContinuousTestResultsList(); + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestResults(int index); + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + int getContinuousTestResultsCount(); + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + java.util.List + getContinuousTestResultsOrBuilderList(); + /** + * + * + *
+   * The list of continuous test results.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_results = 1; + * + */ + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder getContinuousTestResultsOrBuilder( + int index); + + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * Token to retrieve the next page of results, or empty if there are no more
+   * results in the list.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java new file mode 100644 index 000000000..d2d13c27e --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java @@ -0,0 +1,952 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running
+ * operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} + */ +public final class RunContinuousTestMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) + RunContinuousTestMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunContinuousTestMetadata.newBuilder() to construct. + private RunContinuousTestMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunContinuousTestMetadata() { + errors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunContinuousTestMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunContinuousTestMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.dialogflow.cx.v3.TestError.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.class, + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.Builder.class); + } + + public static final int ERRORS_FIELD_NUMBER = 1; + private java.util.List errors_; + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TestError getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder getErrorsOrBuilder(int index) { + return errors_.get(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 { + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(1, errors_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errors_.get(i)); + } + size += unknownFields.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.v3.RunContinuousTestMetadata)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata other = + (com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) obj; + + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata 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.v3.RunContinuousTestMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata 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.v3.RunContinuousTestMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata 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.v3.RunContinuousTestMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata 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.v3.RunContinuousTestMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata 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.v3.RunContinuousTestMetadata 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.v3.RunContinuousTestMetadata 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.v3.RunContinuousTestMetadata 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; + } + /** + * + * + *
+   * Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running
+   * operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.class, + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + errorsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata build() { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata buildPartial() { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata result = + new com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata(this); + int from_bitField0_ = bitField0_; + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + onBuilt(); + return result; + } + + @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.v3.RunContinuousTestMetadata) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata other) { + if (other == com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata.getDefaultInstance()) + return this; + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(errors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.TestError, + com.google.cloud.dialogflow.cx.v3.TestError.Builder, + com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder setErrors(int index, com.google.cloud.dialogflow.cx.v3.TestError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder setErrors( + int index, com.google.cloud.dialogflow.cx.v3.TestError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder addErrors(com.google.cloud.dialogflow.cx.v3.TestError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder addErrors(int index, com.google.cloud.dialogflow.cx.v3.TestError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder addErrors(com.google.cloud.dialogflow.cx.v3.TestError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder addErrors( + int index, com.google.cloud.dialogflow.cx.v3.TestError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestError.Builder getErrorsBuilder(int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3.TestError.getDefaultInstance()); + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public com.google.cloud.dialogflow.cx.v3.TestError.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.dialogflow.cx.v3.TestError.getDefaultInstance()); + } + /** + * + * + *
+     * The test errors.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + public java.util.List + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.TestError, + com.google.cloud.dialogflow.cx.v3.TestError.Builder, + com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.TestError, + com.google.cloud.dialogflow.cx.v3.TestError.Builder, + com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + @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.v3.RunContinuousTestMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) + private static final com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata(); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunContinuousTestMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunContinuousTestMetadata(input, extensionRegistry); + } + }; + + 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.v3.RunContinuousTestMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadataOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadataOrBuilder.java new file mode 100644 index 000000000..9bec12e32 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadataOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface RunContinuousTestMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + java.util.List getErrorsList(); + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + com.google.cloud.dialogflow.cx.v3.TestError getErrors(int index); + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + int getErrorsCount(); + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + java.util.List + getErrorsOrBuilderList(); + /** + * + * + *
+   * The test errors.
+   * 
+ * + * repeated .google.cloud.dialogflow.cx.v3.TestError errors = 1; + */ + com.google.cloud.dialogflow.cx.v3.TestErrorOrBuilder getErrorsOrBuilder(int index); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java new file mode 100644 index 000000000..21f599852 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} + */ +public final class RunContinuousTestRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) + RunContinuousTestRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunContinuousTestRequest.newBuilder() to construct. + private RunContinuousTestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunContinuousTestRequest() { + environment_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunContinuousTestRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunContinuousTestRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + environment_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.class, + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.Builder.class); + } + + public static final int ENVIRONMENT_FIELD_NUMBER = 1; + private volatile java.lang.Object environment_; + /** + * + * + *
+   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + @java.lang.Override + public java.lang.String getEnvironment() { + java.lang.Object ref = environment_; + 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(); + environment_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEnvironmentBytes() { + java.lang.Object ref = environment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environment_ = 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 (!getEnvironmentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environment_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getEnvironmentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environment_); + } + size += unknownFields.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.v3.RunContinuousTestRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest other = + (com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) obj; + + if (!getEnvironment().equals(other.getEnvironment())) return false; + if (!unknownFields.equals(other.unknownFields)) 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) + ENVIRONMENT_FIELD_NUMBER; + hash = (53 * hash) + getEnvironment().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest 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.v3.RunContinuousTestRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest 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.v3.RunContinuousTestRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest 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.v3.RunContinuousTestRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest 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.v3.RunContinuousTestRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest 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.v3.RunContinuousTestRequest 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.v3.RunContinuousTestRequest 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.v3.RunContinuousTestRequest 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; + } + /** + * + * + *
+   * The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.class, + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + environment_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest build() { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest result = + new com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest(this); + result.environment_ = environment_; + onBuilt(); + return result; + } + + @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.v3.RunContinuousTestRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest.getDefaultInstance()) + return this; + if (!other.getEnvironment().isEmpty()) { + environment_ = other.environment_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object environment_ = ""; + /** + * + * + *
+     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + public java.lang.String getEnvironment() { + java.lang.Object ref = environment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + public com.google.protobuf.ByteString getEnvironmentBytes() { + java.lang.Object ref = environment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + environment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + environment_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEnvironment() { + + environment_ = getDefaultInstance().getEnvironment(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
+     * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for environment to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + environment_ = value; + 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.v3.RunContinuousTestRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) + private static final com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunContinuousTestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunContinuousTestRequest(input, extensionRegistry); + } + }; + + 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.v3.RunContinuousTestRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java new file mode 100644 index 000000000..e4e56e653 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface RunContinuousTestRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.RunContinuousTestRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The environment. + */ + java.lang.String getEnvironment(); + /** + * + * + *
+   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
+   * 
+ * + * + * string environment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for environment. + */ + com.google.protobuf.ByteString getEnvironmentBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java new file mode 100644 index 000000000..d577f7311 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java @@ -0,0 +1,743 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} + */ +public final class RunContinuousTestResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) + RunContinuousTestResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunContinuousTestResponse.newBuilder() to construct. + private RunContinuousTestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunContinuousTestResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunContinuousTestResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunContinuousTestResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder subBuilder = null; + if (continuousTestResult_ != null) { + subBuilder = continuousTestResult_.toBuilder(); + } + continuousTestResult_ = + input.readMessage( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(continuousTestResult_); + continuousTestResult_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.class, + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.Builder.class); + } + + public static final int CONTINUOUS_TEST_RESULT_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.cx.v3.ContinuousTestResult continuousTestResult_; + /** + * + * + *
+   * The result for a continuous test run.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + * + * @return Whether the continuousTestResult field is set. + */ + @java.lang.Override + public boolean hasContinuousTestResult() { + return continuousTestResult_ != null; + } + /** + * + * + *
+   * The result for a continuous test run.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + * + * @return The continuousTestResult. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestResult() { + return continuousTestResult_ == null + ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance() + : continuousTestResult_; + } + /** + * + * + *
+   * The result for a continuous test run.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder + getContinuousTestResultOrBuilder() { + return getContinuousTestResult(); + } + + 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 (continuousTestResult_ != null) { + output.writeMessage(1, getContinuousTestResult()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (continuousTestResult_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getContinuousTestResult()); + } + size += unknownFields.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.v3.RunContinuousTestResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse other = + (com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) obj; + + if (hasContinuousTestResult() != other.hasContinuousTestResult()) return false; + if (hasContinuousTestResult()) { + if (!getContinuousTestResult().equals(other.getContinuousTestResult())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasContinuousTestResult()) { + hash = (37 * hash) + CONTINUOUS_TEST_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getContinuousTestResult().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse 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.v3.RunContinuousTestResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse 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.v3.RunContinuousTestResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse 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.v3.RunContinuousTestResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse 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.v3.RunContinuousTestResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse 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.v3.RunContinuousTestResponse 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.v3.RunContinuousTestResponse 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.v3.RunContinuousTestResponse 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; + } + /** + * + * + *
+   * The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.class, + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (continuousTestResultBuilder_ == null) { + continuousTestResult_ = null; + } else { + continuousTestResult_ = null; + continuousTestResultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.EnvironmentProto + .internal_static_google_cloud_dialogflow_cx_v3_RunContinuousTestResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse build() { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse buildPartial() { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse result = + new com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse(this); + if (continuousTestResultBuilder_ == null) { + result.continuousTestResult_ = continuousTestResult_; + } else { + result.continuousTestResult_ = continuousTestResultBuilder_.build(); + } + onBuilt(); + return result; + } + + @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.v3.RunContinuousTestResponse) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse other) { + if (other == com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse.getDefaultInstance()) + return this; + if (other.hasContinuousTestResult()) { + mergeContinuousTestResult(other.getContinuousTestResult()); + } + this.mergeUnknownFields(other.unknownFields); + 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 { + com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.dialogflow.cx.v3.ContinuousTestResult continuousTestResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder> + continuousTestResultBuilder_; + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + * + * @return Whether the continuousTestResult field is set. + */ + public boolean hasContinuousTestResult() { + return continuousTestResultBuilder_ != null || continuousTestResult_ != null; + } + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + * + * @return The continuousTestResult. + */ + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestResult() { + if (continuousTestResultBuilder_ == null) { + return continuousTestResult_ == null + ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance() + : continuousTestResult_; + } else { + return continuousTestResultBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + public Builder setContinuousTestResult( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult value) { + if (continuousTestResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + continuousTestResult_ = value; + onChanged(); + } else { + continuousTestResultBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + public Builder setContinuousTestResult( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder builderForValue) { + if (continuousTestResultBuilder_ == null) { + continuousTestResult_ = builderForValue.build(); + onChanged(); + } else { + continuousTestResultBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + public Builder mergeContinuousTestResult( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult value) { + if (continuousTestResultBuilder_ == null) { + if (continuousTestResult_ != null) { + continuousTestResult_ = + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.newBuilder( + continuousTestResult_) + .mergeFrom(value) + .buildPartial(); + } else { + continuousTestResult_ = value; + } + onChanged(); + } else { + continuousTestResultBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + public Builder clearContinuousTestResult() { + if (continuousTestResultBuilder_ == null) { + continuousTestResult_ = null; + onChanged(); + } else { + continuousTestResult_ = null; + continuousTestResultBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder + getContinuousTestResultBuilder() { + + onChanged(); + return getContinuousTestResultFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + public com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder + getContinuousTestResultOrBuilder() { + if (continuousTestResultBuilder_ != null) { + return continuousTestResultBuilder_.getMessageOrBuilder(); + } else { + return continuousTestResult_ == null + ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance() + : continuousTestResult_; + } + } + /** + * + * + *
+     * The result for a continuous test run.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder> + getContinuousTestResultFieldBuilder() { + if (continuousTestResultBuilder_ == null) { + continuousTestResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder, + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder>( + getContinuousTestResult(), getParentForChildren(), isClean()); + continuousTestResult_ = null; + } + return continuousTestResultBuilder_; + } + + @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.v3.RunContinuousTestResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) + private static final com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse(); + } + + public static com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunContinuousTestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunContinuousTestResponse(input, extensionRegistry); + } + }; + + 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.v3.RunContinuousTestResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponseOrBuilder.java new file mode 100644 index 000000000..a6f021d79 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponseOrBuilder.java @@ -0,0 +1,61 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3/environment.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface RunContinuousTestResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.RunContinuousTestResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The result for a continuous test run.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + * + * @return Whether the continuousTestResult field is set. + */ + boolean hasContinuousTestResult(); + /** + * + * + *
+   * The result for a continuous test run.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + * + * @return The continuousTestResult. + */ + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestResult(); + /** + * + * + *
+   * The result for a continuous test run.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; + */ + com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder + getContinuousTestResultOrBuilder(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto index dc9c911b9..e444bbe6b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto @@ -29,31 +29,6 @@ option java_outer_classname = "AudioConfigProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; -// Information for a word recognized by the speech recognizer. -message SpeechWordInfo { - // The word this info is for. - string word = 3; - - // Time offset relative to the beginning of the audio that corresponds to the - // start of the spoken word. This is an experimental feature and the accuracy - // of the time offset can vary. - google.protobuf.Duration start_offset = 1; - - // Time offset relative to the beginning of the audio that corresponds to the - // end of the spoken word. This is an experimental feature and the accuracy of - // the time offset can vary. - google.protobuf.Duration end_offset = 2; - - // The Speech confidence between 0.0 and 1.0 for this word. A higher number - // indicates an estimated greater likelihood that the recognized word is - // correct. The default of 0.0 is a sentinel value indicating that confidence - // was not set. - // - // This field is not guaranteed to be fully stable over time for the same - // audio input. Users should also not rely on it to always be provided. - float confidence = 4; -} - // Audio encoding of the audio content sent in the conversational query request. // Refer to the // [Cloud Speech API @@ -103,6 +78,31 @@ enum AudioEncoding { AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; } +// Information for a word recognized by the speech recognizer. +message SpeechWordInfo { + // The word this info is for. + string word = 3; + + // Time offset relative to the beginning of the audio that corresponds to the + // start of the spoken word. This is an experimental feature and the accuracy + // of the time offset can vary. + google.protobuf.Duration start_offset = 1; + + // Time offset relative to the beginning of the audio that corresponds to the + // end of the spoken word. This is an experimental feature and the accuracy of + // the time offset can vary. + google.protobuf.Duration end_offset = 2; + + // The Speech confidence between 0.0 and 1.0 for this word. A higher number + // indicates an estimated greater likelihood that the recognized word is + // correct. The default of 0.0 is a sentinel value indicating that confidence + // was not set. + // + // This field is not guaranteed to be fully stable over time for the same + // audio input. Users should also not rely on it to always be provided. + float confidence = 4; +} + // Instructs the speech recognizer on how to process the audio content. message InputAudioConfig { // Required. Audio encoding of the audio content to process. diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/environment.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/environment.proto index a1ac901e5..b5670def7 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/environment.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/environment.proto @@ -98,6 +98,26 @@ service Environments { }; option (google.api.method_signature) = "name"; } + + // Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc RunContinuousTest(RunContinuousTestRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{environment=projects/*/locations/*/agents/*/environments/*}:runContinuousTest" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "RunContinuousTestResponse" + metadata_type: "RunContinuousTestMetadata" + }; + } + + // Fetches a list of continuous test results for a given environment. + rpc ListContinuousTestResults(ListContinuousTestResultsRequest) returns (ListContinuousTestResultsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/continuousTestResults" + }; + option (google.api.method_signature) = "parent"; + } } // Represents an environment for an agent. You can create multiple versions @@ -261,3 +281,96 @@ message LookupEnvironmentHistoryResponse { // results in the list. string next_page_token = 2; } + +// Represents a result from running a test case in an agent environment. +message ContinuousTestResult { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/ContinuousTestResult" + pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/continuousTestResults/{continuous_test_result}" + }; + + // The overall result for a continuous test run in an agent environment. + enum AggregatedTestResult { + // Not specified. Should never be used. + AGGREGATED_TEST_RESULT_UNSPECIFIED = 0; + + // All the tests passed. + PASSED = 1; + + // At least one test did not pass. + FAILED = 2; + } + + // The resource name for the continuous test result. Format: + // `projects//locations//agents//environments//continuousTestResults/`. + string name = 1; + + // The result of this continuous test run, i.e. whether all the tests in this + // continuous test run pass or not. + AggregatedTestResult result = 2; + + // A list of individual test case results names in this continuous test run. + repeated string test_case_results = 3 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCaseResult" + }]; + + // Time when the continuous testing run starts. + google.protobuf.Timestamp run_time = 4; +} + +// The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]. +message RunContinuousTestRequest { + // Required. Format: `projects//locations//agents//environments/`. + string environment = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; +} + +// The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]. +message RunContinuousTestResponse { + // The result for a continuous test run. + ContinuousTestResult continuous_test_result = 1; +} + +// Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running +// operation. +message RunContinuousTestMetadata { + // The test errors. + repeated TestError errors = 1; +} + +// The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults]. +message ListContinuousTestResultsRequest { + // Required. The environment to list results for. + // Format: `projects//locations//agents// + // environments/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/ContinuousTestResult" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Environments.ListTestCaseResults][]. +message ListContinuousTestResultsResponse { + // The list of continuous test results. + repeated ContinuousTestResult continuous_test_results = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} diff --git a/synth.metadata b/synth.metadata index 8a1886531..2ae9a60b6 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow-cx.git", - "sha": "684faba2ec4325b45a9cfc592c9115626b0003af" + "sha": "c7cd77f0e13ca6092448c632b29558d94e2d27b7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "31313cb7f81b4323d25fb0a320e688a7c6c22502", - "internalRef": "374994233" + "sha": "b2c4b3d62150a73507cbd3aa816fc0f177873556", + "internalRef": "375809988" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "31313cb7f81b4323d25fb0a320e688a7c6c22502", - "internalRef": "374994233" + "sha": "b2c4b3d62150a73507cbd3aa816fc0f177873556", + "internalRef": "375809988" } }, { @@ -428,6 +428,9 @@ "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponseOrBuilder.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultName.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResultOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurnOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java", @@ -591,6 +594,10 @@ "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponseOrBuilder.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequestOrBuilder.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponseOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java", @@ -680,6 +687,12 @@ "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequestOrBuilder.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadataOrBuilder.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponseOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadataOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java", From 7ef72fdc1a6b5ffad692f52e2d397658ca468196 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 3 Jun 2021 08:24:24 -0700 Subject: [PATCH 03/23] chore: release gapic-generator-java v1.0.10 (#228) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/feeb5d42-3368-497e-bc8b-ce3bd990a422/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 377081269 Source-Link: https://github.com/googleapis/googleapis/commit/a5f96d06ef57e325761bad010f460d0c5dbeccda --- .../cloud/dialogflow/cx/v3/AgentsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3/EnvironmentsClientTest.java | 2 +- .../google/cloud/dialogflow/cx/v3/FlowsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3/IntentsClientTest.java | 2 +- .../cx/v3/SecuritySettingsServiceClientTest.java | 2 +- .../cloud/dialogflow/cx/v3/SessionsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3/TestCasesClientTest.java | 2 +- .../cloud/dialogflow/cx/v3beta1/AgentsClientTest.java | 2 +- .../dialogflow/cx/v3beta1/EnvironmentsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3beta1/FlowsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3beta1/IntentsClientTest.java | 2 +- .../cx/v3beta1/SecuritySettingsServiceClientTest.java | 2 +- .../dialogflow/cx/v3beta1/SessionsClientTest.java | 2 +- .../dialogflow/cx/v3beta1/TestCasesClientTest.java | 2 +- synth.metadata | 10 +++++----- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java index 41f363942..57c312122 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java @@ -49,9 +49,9 @@ @Generated("by gapic-generator-java") public class AgentsClientTest { + private static MockAgents mockAgents; private static MockServiceHelper mockServiceHelper; private AgentsClient client; - private static MockAgents mockAgents; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java index c6c923e94..93bd62d61 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java @@ -52,9 +52,9 @@ @Generated("by gapic-generator-java") public class EnvironmentsClientTest { + private static MockEnvironments mockEnvironments; private static MockServiceHelper mockServiceHelper; private EnvironmentsClient client; - private static MockEnvironments mockEnvironments; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java index 3e055ab5a..dc9e3350d 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java @@ -50,8 +50,8 @@ @Generated("by gapic-generator-java") public class FlowsClientTest { - private static MockServiceHelper mockServiceHelper; private static MockFlows mockFlows; + private static MockServiceHelper mockServiceHelper; private FlowsClient client; private LocalChannelProvider channelProvider; diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java index b2cbc0af0..2bf878033 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java @@ -46,8 +46,8 @@ @Generated("by gapic-generator-java") public class IntentsClientTest { - private static MockServiceHelper mockServiceHelper; private static MockIntents mockIntents; + private static MockServiceHelper mockServiceHelper; private IntentsClient client; private LocalChannelProvider channelProvider; diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClientTest.java index 3313db0fc..a8215806f 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClientTest.java @@ -45,9 +45,9 @@ @Generated("by gapic-generator-java") public class SecuritySettingsServiceClientTest { + private static MockSecuritySettingsService mockSecuritySettingsService; private static MockServiceHelper mockServiceHelper; private SecuritySettingsServiceClient client; - private static MockSecuritySettingsService mockSecuritySettingsService; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionsClientTest.java index 4cadcf75b..e6eb78daa 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionsClientTest.java @@ -46,10 +46,10 @@ @Generated("by gapic-generator-java") public class SessionsClientTest { + private static MockSessions mockSessions; private static MockServiceHelper mockServiceHelper; private SessionsClient client; private LocalChannelProvider channelProvider; - private static MockSessions mockSessions; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java index bdcb3df16..26491a1c1 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java @@ -51,9 +51,9 @@ @Generated("by gapic-generator-java") public class TestCasesClientTest { + private static MockTestCases mockTestCases; private static MockServiceHelper mockServiceHelper; private TestCasesClient client; - private static MockTestCases mockTestCases; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java index 6337c665c..9c868f566 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java @@ -49,9 +49,9 @@ @Generated("by gapic-generator-java") public class AgentsClientTest { + private static MockAgents mockAgents; private static MockServiceHelper mockServiceHelper; private AgentsClient client; - private static MockAgents mockAgents; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java index 5889663e9..73882c787 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java @@ -52,9 +52,9 @@ @Generated("by gapic-generator-java") public class EnvironmentsClientTest { + private static MockEnvironments mockEnvironments; private static MockServiceHelper mockServiceHelper; private EnvironmentsClient client; - private static MockEnvironments mockEnvironments; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java index 55bb66974..840cdd5ee 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java @@ -50,8 +50,8 @@ @Generated("by gapic-generator-java") public class FlowsClientTest { - private static MockServiceHelper mockServiceHelper; private static MockFlows mockFlows; + private static MockServiceHelper mockServiceHelper; private FlowsClient client; private LocalChannelProvider channelProvider; diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java index 43d69830a..2aec8c414 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java @@ -46,8 +46,8 @@ @Generated("by gapic-generator-java") public class IntentsClientTest { - private static MockServiceHelper mockServiceHelper; private static MockIntents mockIntents; + private static MockServiceHelper mockServiceHelper; private IntentsClient client; private LocalChannelProvider channelProvider; diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClientTest.java index 07b642e21..c9fa5122c 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClientTest.java @@ -45,9 +45,9 @@ @Generated("by gapic-generator-java") public class SecuritySettingsServiceClientTest { + private static MockSecuritySettingsService mockSecuritySettingsService; private static MockServiceHelper mockServiceHelper; private SecuritySettingsServiceClient client; - private static MockSecuritySettingsService mockSecuritySettingsService; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java index 45cfee730..6136f3121 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java @@ -46,10 +46,10 @@ @Generated("by gapic-generator-java") public class SessionsClientTest { + private static MockSessions mockSessions; private static MockServiceHelper mockServiceHelper; private SessionsClient client; private LocalChannelProvider channelProvider; - private static MockSessions mockSessions; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java index 6ae14c667..23491aed7 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java @@ -51,9 +51,9 @@ @Generated("by gapic-generator-java") public class TestCasesClientTest { + private static MockTestCases mockTestCases; private static MockServiceHelper mockServiceHelper; private TestCasesClient client; - private static MockTestCases mockTestCases; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/synth.metadata b/synth.metadata index 2ae9a60b6..0388319c1 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow-cx.git", - "sha": "c7cd77f0e13ca6092448c632b29558d94e2d27b7" + "sha": "97f71abf7b6ffc6ea89dfdfdf1e7a7a0c79a0590" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b2c4b3d62150a73507cbd3aa816fc0f177873556", - "internalRef": "375809988" + "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", + "internalRef": "377081269" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b2c4b3d62150a73507cbd3aa816fc0f177873556", - "internalRef": "375809988" + "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", + "internalRef": "377081269" } }, { From 06c8e0e9921916967e7d67174fc22016c42b925f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Jun 2021 17:10:15 +0200 Subject: [PATCH 04/23] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 (#229) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.2.0` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.3.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​130-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare120v130-2021-06-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.2.0...v1.3.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​365](https://www.github.com/googleapis/java-shared-dependencies/issues/365)) ([7e8309b](https://www.github.com/googleapis/java-shared-dependencies/commit/7e8309bf67ade0fe2b09f792848136cd88b4d2e4)) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.26.0 ([#​368](https://www.github.com/googleapis/java-shared-dependencies/issues/368)) ([38256a8](https://www.github.com/googleapis/java-shared-dependencies/commit/38256a82cb6896c3f5e5ea6ca5d8d671c412bf84)) - update dependency com.google.cloud:google-cloud-core-bom to v1.95.0 ([#​377](https://www.github.com/googleapis/java-shared-dependencies/issues/377)) ([297ea62](https://www.github.com/googleapis/java-shared-dependencies/commit/297ea621e02f8c0679c8b07ed399d11eaacecc14)) - update dependency com.google.code.gson:gson to v2.8.7 ([#​370](https://www.github.com/googleapis/java-shared-dependencies/issues/370)) ([cdc1b8e](https://www.github.com/googleapis/java-shared-dependencies/commit/cdc1b8ea1c93f97b712081ca8dc8ea57f342b69e)) - update dependency com.google.protobuf:protobuf-bom to v3.17.1 ([#​369](https://www.github.com/googleapis/java-shared-dependencies/issues/369)) ([5a19574](https://www.github.com/googleapis/java-shared-dependencies/commit/5a19574bc626bb3c6b573ed1d177e8907188dec1)) - update dependency com.google.protobuf:protobuf-bom to v3.17.2 ([#​374](https://www.github.com/googleapis/java-shared-dependencies/issues/374)) ([83516e6](https://www.github.com/googleapis/java-shared-dependencies/commit/83516e691b99e5e5d22d27e561781a5ade5fb514)) - update dependency io.grpc:grpc-bom to v1.38.0 ([#​364](https://www.github.com/googleapis/java-shared-dependencies/issues/364)) ([00db570](https://www.github.com/googleapis/java-shared-dependencies/commit/00db5701c3b0aa609f3778c06911a9a0248ca342)) - update gax.version to v1.65.0 ([#​376](https://www.github.com/googleapis/java-shared-dependencies/issues/376)) ([b793a0d](https://www.github.com/googleapis/java-shared-dependencies/commit/b793a0d7744ff1b0f8ae5d3d13ec4776ae8d3089)) - update google.common-protos.version to v2.3.1 ([#​366](https://www.github.com/googleapis/java-shared-dependencies/issues/366)) ([7d6a7fa](https://www.github.com/googleapis/java-shared-dependencies/commit/7d6a7fa7a2cad2b3f2ecf45e42d2ed5db0b60a43)) - update google.common-protos.version to v2.3.2 ([#​375](https://www.github.com/googleapis/java-shared-dependencies/issues/375)) ([68a47ad](https://www.github.com/googleapis/java-shared-dependencies/commit/68a47ad3243f3e980db74c9c8505a1b3063c131b))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dialogflow-cx). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ca02a3083..1a9e05129 100644 --- a/pom.xml +++ b/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.2.0 + 1.3.0 pom import From 021a64f41fcbb6cba222f91ab2a4dcd87f41084e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Jun 2021 00:34:07 +0200 Subject: [PATCH 05/23] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#232) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.22` -> `1.0.23` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/compatibility-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/confidence-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dialogflow-cx). --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4e88be310..cf649117b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/pom.xml b/samples/pom.xml index cf04a67e0..fc4d3fefd 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bd116f626..37fd4cde7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 19629ad87..f4beeb78a 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From a2a78bf77ae137b54221af74bb4785adffa18f6a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 9 Jun 2021 13:52:07 -0700 Subject: [PATCH 06/23] [CHANGE ME] Re-generated to pick up changes from googleapis. (#234) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4fb9ac54-0cdb-48d8-9e7d-6e4dbb5d0e28/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 377947699 Source-Link: https://github.com/googleapis/googleapis/commit/90717db757582fdda158463c613ee6f5334a98a4 PiperOrigin-RevId: 377915759 Source-Link: https://github.com/googleapis/googleapis/commit/e3fcbabc7bca1124be828a4ce7140b28bf3d93fc --- .../dialogflow/cx/v3/ConversationTurn.java | 103 ++++ .../cloud/dialogflow/cx/v3/TestCaseProto.java | 431 ++++++++--------- .../cloud/dialogflow/cx/v3/test_case.proto | 3 + .../cx/v3beta1/ConversationTurn.java | 103 ++++ .../dialogflow/cx/v3beta1/TestCaseProto.java | 446 +++++++++--------- .../dialogflow/cx/v3beta1/test_case.proto | 3 + synth.metadata | 10 +- 7 files changed, 656 insertions(+), 443 deletions(-) diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java index 9910e6062..4a6ed2548 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java @@ -235,6 +235,19 @@ public interface UserInputOrBuilder * @return The isWebhookEnabled. */ boolean getIsWebhookEnabled(); + + /** + * + * + *
+     * Whether sentiment analysis is enabled.
+     * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @return The enableSentimentAnalysis. + */ + boolean getEnableSentimentAnalysis(); } /** * @@ -320,6 +333,11 @@ private UserInput( input_ = subBuilder.buildPartial(); } + break; + } + case 56: + { + enableSentimentAnalysis_ = input.readBool(); break; } default: @@ -478,6 +496,24 @@ public boolean getIsWebhookEnabled() { return isWebhookEnabled_; } + public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER = 7; + private boolean enableSentimentAnalysis_; + /** + * + * + *
+     * Whether sentiment analysis is enabled.
+     * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @return The enableSentimentAnalysis. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysis() { + return enableSentimentAnalysis_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -501,6 +537,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (input_ != null) { output.writeMessage(5, getInput()); } + if (enableSentimentAnalysis_ != false) { + output.writeBool(7, enableSentimentAnalysis_); + } unknownFields.writeTo(output); } @@ -520,6 +559,9 @@ public int getSerializedSize() { if (input_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInput()); } + if (enableSentimentAnalysis_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableSentimentAnalysis_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -545,6 +587,7 @@ public boolean equals(final java.lang.Object obj) { if (!getInjectedParameters().equals(other.getInjectedParameters())) return false; } if (getIsWebhookEnabled() != other.getIsWebhookEnabled()) return false; + if (getEnableSentimentAnalysis() != other.getEnableSentimentAnalysis()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -566,6 +609,8 @@ public int hashCode() { } hash = (37 * hash) + IS_WEBHOOK_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsWebhookEnabled()); + hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysis()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -728,6 +773,8 @@ public Builder clear() { } isWebhookEnabled_ = false; + enableSentimentAnalysis_ = false; + return this; } @@ -767,6 +814,7 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput buildPartial result.injectedParameters_ = injectedParametersBuilder_.build(); } result.isWebhookEnabled_ = isWebhookEnabled_; + result.enableSentimentAnalysis_ = enableSentimentAnalysis_; onBuilt(); return result; } @@ -829,6 +877,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ConversationTurn.User if (other.getIsWebhookEnabled() != false) { setIsWebhookEnabled(other.getIsWebhookEnabled()); } + if (other.getEnableSentimentAnalysis() != false) { + setEnableSentimentAnalysis(other.getEnableSentimentAnalysis()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1307,6 +1358,58 @@ public Builder clearIsWebhookEnabled() { return this; } + private boolean enableSentimentAnalysis_; + /** + * + * + *
+       * Whether sentiment analysis is enabled.
+       * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @return The enableSentimentAnalysis. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysis() { + return enableSentimentAnalysis_; + } + /** + * + * + *
+       * Whether sentiment analysis is enabled.
+       * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @param value The enableSentimentAnalysis to set. + * @return This builder for chaining. + */ + public Builder setEnableSentimentAnalysis(boolean value) { + + enableSentimentAnalysis_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether sentiment analysis is enabled.
+       * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @return This builder for chaining. + */ + public Builder clearEnableSentimentAnalysis() { + + enableSentimentAnalysis_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java index 1c0ff8a6b..ff295ec14 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java @@ -237,227 +237,228 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ation}/agents/{agent}/testCases/{test_ca" + "se}/results/{result}\"\\\n\nTestConfig\022\033\n\023tr" + "acking_parameters\030\001 \003(\t\0221\n\004flow\030\002 \001(\tB#\372" - + "A \n\036dialogflow.googleapis.com/Flow\"\234\006\n\020C" + + "A \n\036dialogflow.googleapis.com/Flow\"\277\006\n\020C" + "onversationTurn\022M\n\nuser_input\030\001 \001(\01329.go" + "ogle.cloud.dialogflow.cx.v3.Conversation" + "Turn.UserInput\022`\n\024virtual_agent_output\030\002" + " \001(\0132B.google.cloud.dialogflow.cx.v3.Con" - + "versationTurn.VirtualAgentOutput\032\227\001\n\tUse" + + "versationTurn.VirtualAgentOutput\032\272\001\n\tUse" + "rInput\0228\n\005input\030\005 \001(\0132).google.cloud.dia" + "logflow.cx.v3.QueryInput\0224\n\023injected_par" + "ameters\030\002 \001(\0132\027.google.protobuf.Struct\022\032" - + "\n\022is_webhook_enabled\030\003 \001(\010\032\274\003\n\022VirtualAg" - + "entOutput\0223\n\022session_parameters\030\004 \001(\0132\027." - + "google.protobuf.Struct\022J\n\013differences\030\005 " - + "\003(\01320.google.cloud.dialogflow.cx.v3.Test" - + "RunDifferenceB\003\340A\003\0228\n\017diagnostic_info\030\006 " - + "\001(\0132\027.google.protobuf.StructB\006\340A\002\340A\004\022?\n\020" - + "triggered_intent\030\007 \001(\0132%.google.cloud.di" - + "alogflow.cx.v3.Intent\0229\n\014current_page\030\010 " - + "\001(\0132#.google.cloud.dialogflow.cx.v3.Page" - + "\022K\n\016text_responses\030\t \003(\01323.google.cloud." - + "dialogflow.cx.v3.ResponseMessage.Text\022\"\n" - + "\006status\030\n \001(\0132\022.google.rpc.Status\"\315\001\n\021Te" - + "stRunDifference\022G\n\004type\030\001 \001(\01629.google.c" - + "loud.dialogflow.cx.v3.TestRunDifference." - + "DiffType\022\023\n\013description\030\002 \001(\t\"Z\n\010DiffTyp" - + "e\022\031\n\025DIFF_TYPE_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001" - + "\022\010\n\004PAGE\020\002\022\016\n\nPARAMETERS\020\003\022\r\n\tUTTERANCE\020" - + "\004\"\363\004\n\022TransitionCoverage\022Q\n\013transitions\030" - + "\001 \003(\0132<.google.cloud.dialogflow.cx.v3.Tr" - + "ansitionCoverage.Transition\022\026\n\016coverage_" - + "score\030\002 \001(\002\032\202\001\n\016TransitionNode\0223\n\004page\030\001" - + " \001(\0132#.google.cloud.dialogflow.cx.v3.Pag" - + "eH\000\0223\n\004flow\030\002 \001(\0132#.google.cloud.dialogf" - + "low.cx.v3.FlowH\000B\006\n\004kind\032\354\002\n\nTransition\022" - + "P\n\006source\030\001 \001(\0132@.google.cloud.dialogflo" - + "w.cx.v3.TransitionCoverage.TransitionNod" - + "e\022\r\n\005index\030\004 \001(\005\022P\n\006target\030\002 \001(\0132@.googl" - + "e.cloud.dialogflow.cx.v3.TransitionCover" - + "age.TransitionNode\022\017\n\007covered\030\003 \001(\010\022J\n\020t" - + "ransition_route\030\005 \001(\0132..google.cloud.dia" - + "logflow.cx.v3.TransitionRouteH\000\022D\n\revent" - + "_handler\030\006 \001(\0132+.google.cloud.dialogflow" - + ".cx.v3.EventHandlerH\000B\010\n\006detail\"\315\003\n\034Tran" - + "sitionRouteGroupCoverage\022W\n\tcoverages\030\001 " - + "\003(\0132D.google.cloud.dialogflow.cx.v3.Tran" - + "sitionRouteGroupCoverage.Coverage\022\026\n\016cov" - + "erage_score\030\002 \001(\002\032\273\002\n\010Coverage\022H\n\013route_" - + "group\030\001 \001(\01323.google.cloud.dialogflow.cx" - + ".v3.TransitionRouteGroup\022d\n\013transitions\030" - + "\002 \003(\0132O.google.cloud.dialogflow.cx.v3.Tr" - + "ansitionRouteGroupCoverage.Coverage.Tran" - + "sition\022\026\n\016coverage_score\030\003 \001(\002\032g\n\nTransi" - + "tion\022H\n\020transition_route\030\001 \001(\0132..google." - + "cloud.dialogflow.cx.v3.TransitionRoute\022\017" - + "\n\007covered\030\002 \001(\010\"\301\001\n\016IntentCoverage\022E\n\007in" - + "tents\030\001 \003(\01324.google.cloud.dialogflow.cx" - + ".v3.IntentCoverage.Intent\022\026\n\016coverage_sc" - + "ore\030\002 \001(\002\032P\n\006Intent\0225\n\006intent\030\001 \001(\tB%\372A\"" - + "\n dialogflow.googleapis.com/Intent\022\017\n\007co" - + "vered\030\002 \001(\010\"\227\002\n\030CalculateCoverageRequest" - + "\0226\n\005agent\030\003 \001(\tB\'\340A\002\372A!\n\037dialogflow.goog" - + "leapis.com/Agent\022W\n\004type\030\002 \001(\0162D.google." - + "cloud.dialogflow.cx.v3.CalculateCoverage" - + "Request.CoverageTypeB\003\340A\002\"j\n\014CoverageTyp" - + "e\022\035\n\031COVERAGE_TYPE_UNSPECIFIED\020\000\022\n\n\006INTE" - + "NT\020\001\022\023\n\017PAGE_TRANSITION\020\002\022\032\n\026TRANSITION_" - + "ROUTE_GROUP\020\003\"\332\002\n\031CalculateCoverageRespo" - + "nse\0223\n\005agent\030\005 \001(\tB$\372A!\n\037dialogflow.goog" - + "leapis.com/Agent\022H\n\017intent_coverage\030\002 \001(" - + "\0132-.google.cloud.dialogflow.cx.v3.Intent" - + "CoverageH\000\022P\n\023transition_coverage\030\004 \001(\0132" - + "1.google.cloud.dialogflow.cx.v3.Transiti" - + "onCoverageH\000\022[\n\024route_group_coverage\030\006 \001" - + "(\0132;.google.cloud.dialogflow.cx.v3.Trans" - + "itionRouteGroupCoverageH\000B\017\n\rcoverage_ty" - + "pe\"\216\002\n\024ListTestCasesRequest\022:\n\006parent\030\001 " - + "\001(\tB*\340A\002\372A$\022\"dialogflow.googleapis.com/T" - + "estCase\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\022N\n\004view\030\004 \001(\0162@.google.cloud.dial" - + "ogflow.cx.v3.ListTestCasesRequest.TestCa" - + "seView\"C\n\014TestCaseView\022\036\n\032TEST_CASE_VIEW" - + "_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002\"m\n\025L" - + "istTestCasesResponse\022;\n\ntest_cases\030\001 \003(\013" - + "2\'.google.cloud.dialogflow.cx.v3.TestCas" - + "e\022\027\n\017next_page_token\030\002 \001(\t\"\224\001\n\033BatchDele" - + "teTestCasesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372" - + "A$\022\"dialogflow.googleapis.com/TestCase\0229" - + "\n\005names\030\003 \003(\tB*\340A\002\372A$\n\"dialogflow.google" - + "apis.com/TestCase\"\224\001\n\025CreateTestCaseRequ" - + "est\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow." - + "googleapis.com/TestCase\022?\n\ttest_case\030\002 \001" - + "(\0132\'.google.cloud.dialogflow.cx.v3.TestC" - + "aseB\003\340A\002\"\216\001\n\025UpdateTestCaseRequest\022?\n\tte" - + "st_case\030\001 \001(\0132\'.google.cloud.dialogflow." - + "cx.v3.TestCaseB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\"N\n\022Get" - + "TestCaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"d" - + "ialogflow.googleapis.com/TestCase\"\222\001\n\022Ru" - + "nTestCaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"" - + "dialogflow.googleapis.com/TestCase\022B\n\013en" - + "vironment\030\002 \001(\tB-\340A\001\372A\'\n%dialogflow.goog" - + "leapis.com/Environment\"T\n\023RunTestCaseRes" - + "ponse\022=\n\006result\030\002 \001(\0132-.google.cloud.dia" - + "logflow.cx.v3.TestCaseResult\"\025\n\023RunTestC" - + "aseMetadata\"\332\001\n\030BatchRunTestCasesRequest" - + "\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.goo" - + "gleapis.com/TestCase\022B\n\013environment\030\002 \001(" - + "\tB-\340A\001\372A\'\n%dialogflow.googleapis.com/Env" - + "ironment\022>\n\ntest_cases\030\003 \003(\tB*\340A\002\372A$\n\"di" - + "alogflow.googleapis.com/TestCase\"[\n\031Batc" - + "hRunTestCasesResponse\022>\n\007results\030\001 \003(\0132-" - + ".google.cloud.dialogflow.cx.v3.TestCaseR" - + "esult\"U\n\031BatchRunTestCasesMetadata\0228\n\006er" - + "rors\030\001 \003(\0132(.google.cloud.dialogflow.cx." - + "v3.TestError\"\232\001\n\tTestError\022:\n\ttest_case\030" - + "\001 \001(\tB\'\372A$\n\"dialogflow.googleapis.com/Te" - + "stCase\022\"\n\006status\030\002 \001(\0132\022.google.rpc.Stat" - + "us\022-\n\ttest_time\030\003 \001(\0132\032.google.protobuf." - + "Timestamp\"\204\001\n\026ImportTestCasesRequest\022:\n\006" - + "parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.googlea" - + "pis.com/TestCase\022\021\n\007gcs_uri\030\002 \001(\tH\000\022\021\n\007c" - + "ontent\030\003 \001(\014H\000B\010\n\006source\"Q\n\027ImportTestCa" - + "sesResponse\0226\n\005names\030\001 \003(\tB\'\372A$\n\"dialogf" - + "low.googleapis.com/TestCase\"W\n\027ImportTes" - + "tCasesMetadata\022<\n\006errors\030\001 \003(\0132,.google." - + "cloud.dialogflow.cx.v3.TestCaseError\"o\n\r" - + "TestCaseError\022:\n\ttest_case\030\001 \001(\0132\'.googl" - + "e.cloud.dialogflow.cx.v3.TestCase\022\"\n\006sta" - + "tus\030\002 \001(\0132\022.google.rpc.Status\"\234\002\n\026Export" - + "TestCasesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$" - + "\022\"dialogflow.googleapis.com/TestCase\022\021\n\007" - + "gcs_uri\030\002 \001(\tH\000\022U\n\013data_format\030\003 \001(\0162@.g" - + "oogle.cloud.dialogflow.cx.v3.ExportTestC" - + "asesRequest.DataFormat\022\016\n\006filter\030\004 \001(\t\"=" - + "\n\nDataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020" - + "\000\022\010\n\004BLOB\020\001\022\010\n\004JSON\020\002B\r\n\013destination\"N\n\027" - + "ExportTestCasesResponse\022\021\n\007gcs_uri\030\001 \001(\t" - + "H\000\022\021\n\007content\030\002 \001(\014H\000B\r\n\013destination\"\031\n\027" - + "ExportTestCasesMetadata\"\225\001\n\032ListTestCase" - + "ResultsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(" - + "dialogflow.googleapis.com/TestCaseResult" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" - + "\016\n\006filter\030\004 \001(\t\"\200\001\n\033ListTestCaseResultsR" - + "esponse\022H\n\021test_case_results\030\001 \003(\0132-.goo" - + "gle.cloud.dialogflow.cx.v3.TestCaseResul" - + "t\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\030GetTestCas" - + "eResultRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(di" - + "alogflow.googleapis.com/TestCaseResult*A" - + "\n\nTestResult\022\033\n\027TEST_RESULT_UNSPECIFIED\020" - + "\000\022\n\n\006PASSED\020\001\022\n\n\006FAILED\020\0022\231\025\n\tTestCases\022" - + "\303\001\n\rListTestCases\0223.google.cloud.dialogf" - + "low.cx.v3.ListTestCasesRequest\0324.google." - + "cloud.dialogflow.cx.v3.ListTestCasesResp" - + "onse\"G\202\323\344\223\0028\0226/v3/{parent=projects/*/loc" - + "ations/*/agents/*}/testCases\332A\006parent\022\302\001" - + "\n\024BatchDeleteTestCases\022:.google.cloud.di" - + "alogflow.cx.v3.BatchDeleteTestCasesReque" - + "st\032\026.google.protobuf.Empty\"V\202\323\344\223\002G\"B/v3/" - + "{parent=projects/*/locations/*/agents/*}" - + "/testCases:batchDelete:\001*\332A\006parent\022\260\001\n\013G" - + "etTestCase\0221.google.cloud.dialogflow.cx." - + "v3.GetTestCaseRequest\032\'.google.cloud.dia" - + "logflow.cx.v3.TestCase\"E\202\323\344\223\0028\0226/v3/{nam" - + "e=projects/*/locations/*/agents/*/testCa" - + "ses/*}\332A\004name\022\315\001\n\016CreateTestCase\0224.googl" - + "e.cloud.dialogflow.cx.v3.CreateTestCaseR" - + "equest\032\'.google.cloud.dialogflow.cx.v3.T" - + "estCase\"\\\202\323\344\223\002C\"6/v3/{parent=projects/*/" - + "locations/*/agents/*}/testCases:\ttest_ca" - + "se\332A\020parent,test_case\022\334\001\n\016UpdateTestCase" - + "\0224.google.cloud.dialogflow.cx.v3.UpdateT" - + "estCaseRequest\032\'.google.cloud.dialogflow" - + ".cx.v3.TestCase\"k\202\323\344\223\002M2@/v3/{test_case." - + "name=projects/*/locations/*/agents/*/tes" - + "tCases/*}:\ttest_case\332A\025test_case,update_" - + "mask\022\323\001\n\013RunTestCase\0221.google.cloud.dial" - + "ogflow.cx.v3.RunTestCaseRequest\032\035.google" - + ".longrunning.Operation\"r\202\323\344\223\002?\":/v3/{nam" - + "e=projects/*/locations/*/agents/*/testCa" - + "ses/*}:run:\001*\312A*\n\023RunTestCaseResponse\022\023R" - + "unTestCaseMetadata\022\361\001\n\021BatchRunTestCases" - + "\0227.google.cloud.dialogflow.cx.v3.BatchRu" - + "nTestCasesRequest\032\035.google.longrunning.O" - + "peration\"\203\001\202\323\344\223\002D\"?/v3/{parent=projects/" - + "*/locations/*/agents/*}/testCases:batchR" - + "un:\001*\312A6\n\031BatchRunTestCasesResponse\022\031Bat" - + "chRunTestCasesMetadata\022\327\001\n\021CalculateCove" - + "rage\0227.google.cloud.dialogflow.cx.v3.Cal" - + "culateCoverageRequest\0328.google.cloud.dia" - + "logflow.cx.v3.CalculateCoverageResponse\"" - + "O\202\323\344\223\002I\022G/v3/{agent=projects/*/locations" - + "/*/agents/*}/testCases:calculateCoverage" - + "\022\346\001\n\017ImportTestCases\0225.google.cloud.dial" - + "ogflow.cx.v3.ImportTestCasesRequest\032\035.go" - + "ogle.longrunning.Operation\"}\202\323\344\223\002B\"=/v3/" - + "{parent=projects/*/locations/*/agents/*}" - + "/testCases:import:\001*\312A2\n\027ImportTestCases" - + "Response\022\027ImportTestCasesMetadata\022\346\001\n\017Ex" - + "portTestCases\0225.google.cloud.dialogflow." - + "cx.v3.ExportTestCasesRequest\032\035.google.lo" - + "ngrunning.Operation\"}\202\323\344\223\002B\"=/v3/{parent" - + "=projects/*/locations/*/agents/*}/testCa" - + "ses:export:\001*\312A2\n\027ExportTestCasesRespons" - + "e\022\027ExportTestCasesMetadata\022\337\001\n\023ListTestC" - + "aseResults\0229.google.cloud.dialogflow.cx." - + "v3.ListTestCaseResultsRequest\032:.google.c" - + "loud.dialogflow.cx.v3.ListTestCaseResult" - + "sResponse\"Q\202\323\344\223\002B\022@/v3/{parent=projects/" - + "*/locations/*/agents/*/testCases/*}/resu" - + "lts\332A\006parent\022\314\001\n\021GetTestCaseResult\0227.goo" - + "gle.cloud.dialogflow.cx.v3.GetTestCaseRe" - + "sultRequest\032-.google.cloud.dialogflow.cx" - + ".v3.TestCaseResult\"O\202\323\344\223\002B\022@/v3/{name=pr" - + "ojects/*/locations/*/agents/*/testCases/" - + "*/results/*}\332A\004name\032x\312A\031dialogflow.googl" - + "eapis.com\322AYhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/dialogflowB\235\001\n!com.google.clo" - + "ud.dialogflow.cx.v3B\rTestCaseProtoP\001Z?go" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.C" - + "loud.Dialogflow.Cx.V3b\006proto3" + + "\n\022is_webhook_enabled\030\003 \001(\010\022!\n\031enable_sen" + + "timent_analysis\030\007 \001(\010\032\274\003\n\022VirtualAgentOu" + + "tput\0223\n\022session_parameters\030\004 \001(\0132\027.googl" + + "e.protobuf.Struct\022J\n\013differences\030\005 \003(\01320" + + ".google.cloud.dialogflow.cx.v3.TestRunDi" + + "fferenceB\003\340A\003\0228\n\017diagnostic_info\030\006 \001(\0132\027" + + ".google.protobuf.StructB\006\340A\002\340A\004\022?\n\020trigg" + + "ered_intent\030\007 \001(\0132%.google.cloud.dialogf" + + "low.cx.v3.Intent\0229\n\014current_page\030\010 \001(\0132#" + + ".google.cloud.dialogflow.cx.v3.Page\022K\n\016t" + + "ext_responses\030\t \003(\01323.google.cloud.dialo" + + "gflow.cx.v3.ResponseMessage.Text\022\"\n\006stat" + + "us\030\n \001(\0132\022.google.rpc.Status\"\315\001\n\021TestRun" + + "Difference\022G\n\004type\030\001 \001(\01629.google.cloud." + + "dialogflow.cx.v3.TestRunDifference.DiffT" + + "ype\022\023\n\013description\030\002 \001(\t\"Z\n\010DiffType\022\031\n\025" + + "DIFF_TYPE_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\010\n\004P" + + "AGE\020\002\022\016\n\nPARAMETERS\020\003\022\r\n\tUTTERANCE\020\004\"\363\004\n" + + "\022TransitionCoverage\022Q\n\013transitions\030\001 \003(\013" + + "2<.google.cloud.dialogflow.cx.v3.Transit" + + "ionCoverage.Transition\022\026\n\016coverage_score" + + "\030\002 \001(\002\032\202\001\n\016TransitionNode\0223\n\004page\030\001 \001(\0132" + + "#.google.cloud.dialogflow.cx.v3.PageH\000\0223" + + "\n\004flow\030\002 \001(\0132#.google.cloud.dialogflow.c" + + "x.v3.FlowH\000B\006\n\004kind\032\354\002\n\nTransition\022P\n\006so" + + "urce\030\001 \001(\0132@.google.cloud.dialogflow.cx." + + "v3.TransitionCoverage.TransitionNode\022\r\n\005" + + "index\030\004 \001(\005\022P\n\006target\030\002 \001(\0132@.google.clo" + + "ud.dialogflow.cx.v3.TransitionCoverage.T" + + "ransitionNode\022\017\n\007covered\030\003 \001(\010\022J\n\020transi" + + "tion_route\030\005 \001(\0132..google.cloud.dialogfl" + + "ow.cx.v3.TransitionRouteH\000\022D\n\revent_hand" + + "ler\030\006 \001(\0132+.google.cloud.dialogflow.cx.v" + + "3.EventHandlerH\000B\010\n\006detail\"\315\003\n\034Transitio" + + "nRouteGroupCoverage\022W\n\tcoverages\030\001 \003(\0132D" + + ".google.cloud.dialogflow.cx.v3.Transitio" + + "nRouteGroupCoverage.Coverage\022\026\n\016coverage" + + "_score\030\002 \001(\002\032\273\002\n\010Coverage\022H\n\013route_group" + + "\030\001 \001(\01323.google.cloud.dialogflow.cx.v3.T" + + "ransitionRouteGroup\022d\n\013transitions\030\002 \003(\013" + + "2O.google.cloud.dialogflow.cx.v3.Transit" + + "ionRouteGroupCoverage.Coverage.Transitio" + + "n\022\026\n\016coverage_score\030\003 \001(\002\032g\n\nTransition\022" + + "H\n\020transition_route\030\001 \001(\0132..google.cloud" + + ".dialogflow.cx.v3.TransitionRoute\022\017\n\007cov" + + "ered\030\002 \001(\010\"\301\001\n\016IntentCoverage\022E\n\007intents" + + "\030\001 \003(\01324.google.cloud.dialogflow.cx.v3.I" + + "ntentCoverage.Intent\022\026\n\016coverage_score\030\002" + + " \001(\002\032P\n\006Intent\0225\n\006intent\030\001 \001(\tB%\372A\"\n dia" + + "logflow.googleapis.com/Intent\022\017\n\007covered" + + "\030\002 \001(\010\"\227\002\n\030CalculateCoverageRequest\0226\n\005a" + + "gent\030\003 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapi" + + "s.com/Agent\022W\n\004type\030\002 \001(\0162D.google.cloud" + + ".dialogflow.cx.v3.CalculateCoverageReque" + + "st.CoverageTypeB\003\340A\002\"j\n\014CoverageType\022\035\n\031" + + "COVERAGE_TYPE_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022" + + "\023\n\017PAGE_TRANSITION\020\002\022\032\n\026TRANSITION_ROUTE" + + "_GROUP\020\003\"\332\002\n\031CalculateCoverageResponse\0223" + + "\n\005agent\030\005 \001(\tB$\372A!\n\037dialogflow.googleapi" + + "s.com/Agent\022H\n\017intent_coverage\030\002 \001(\0132-.g" + + "oogle.cloud.dialogflow.cx.v3.IntentCover" + + "ageH\000\022P\n\023transition_coverage\030\004 \001(\01321.goo" + + "gle.cloud.dialogflow.cx.v3.TransitionCov" + + "erageH\000\022[\n\024route_group_coverage\030\006 \001(\0132;." + + "google.cloud.dialogflow.cx.v3.Transition" + + "RouteGroupCoverageH\000B\017\n\rcoverage_type\"\216\002" + + "\n\024ListTestCasesRequest\022:\n\006parent\030\001 \001(\tB*" + + "\340A\002\372A$\022\"dialogflow.googleapis.com/TestCa" + + "se\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\022N\n\004view\030\004 \001(\0162@.google.cloud.dialogflo" + + "w.cx.v3.ListTestCasesRequest.TestCaseVie" + + "w\"C\n\014TestCaseView\022\036\n\032TEST_CASE_VIEW_UNSP" + + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002\"m\n\025ListTe" + + "stCasesResponse\022;\n\ntest_cases\030\001 \003(\0132\'.go" + + "ogle.cloud.dialogflow.cx.v3.TestCase\022\027\n\017" + + "next_page_token\030\002 \001(\t\"\224\001\n\033BatchDeleteTes" + + "tCasesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"d" + + "ialogflow.googleapis.com/TestCase\0229\n\005nam" + + "es\030\003 \003(\tB*\340A\002\372A$\n\"dialogflow.googleapis." + + "com/TestCase\"\224\001\n\025CreateTestCaseRequest\022:" + + "\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.googl" + + "eapis.com/TestCase\022?\n\ttest_case\030\002 \001(\0132\'." + + "google.cloud.dialogflow.cx.v3.TestCaseB\003" + + "\340A\002\"\216\001\n\025UpdateTestCaseRequest\022?\n\ttest_ca" + + "se\030\001 \001(\0132\'.google.cloud.dialogflow.cx.v3" + + ".TestCaseB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"N\n\022GetTestC" + + "aseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dialog" + + "flow.googleapis.com/TestCase\"\222\001\n\022RunTest" + + "CaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dialo" + + "gflow.googleapis.com/TestCase\022B\n\013environ" + + "ment\030\002 \001(\tB-\340A\001\372A\'\n%dialogflow.googleapi" + + "s.com/Environment\"T\n\023RunTestCaseResponse" + + "\022=\n\006result\030\002 \001(\0132-.google.cloud.dialogfl" + + "ow.cx.v3.TestCaseResult\"\025\n\023RunTestCaseMe" + + "tadata\"\332\001\n\030BatchRunTestCasesRequest\022:\n\006p" + + "arent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.googleap" + + "is.com/TestCase\022B\n\013environment\030\002 \001(\tB-\340A" + + "\001\372A\'\n%dialogflow.googleapis.com/Environm" + + "ent\022>\n\ntest_cases\030\003 \003(\tB*\340A\002\372A$\n\"dialogf" + + "low.googleapis.com/TestCase\"[\n\031BatchRunT" + + "estCasesResponse\022>\n\007results\030\001 \003(\0132-.goog" + + "le.cloud.dialogflow.cx.v3.TestCaseResult" + + "\"U\n\031BatchRunTestCasesMetadata\0228\n\006errors\030" + + "\001 \003(\0132(.google.cloud.dialogflow.cx.v3.Te" + + "stError\"\232\001\n\tTestError\022:\n\ttest_case\030\001 \001(\t" + + "B\'\372A$\n\"dialogflow.googleapis.com/TestCas" + + "e\022\"\n\006status\030\002 \001(\0132\022.google.rpc.Status\022-\n" + + "\ttest_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\"\204\001\n\026ImportTestCasesRequest\022:\n\006paren" + + "t\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.googleapis.c" + + "om/TestCase\022\021\n\007gcs_uri\030\002 \001(\tH\000\022\021\n\007conten" + + "t\030\003 \001(\014H\000B\010\n\006source\"Q\n\027ImportTestCasesRe" + + "sponse\0226\n\005names\030\001 \003(\tB\'\372A$\n\"dialogflow.g" + + "oogleapis.com/TestCase\"W\n\027ImportTestCase" + + "sMetadata\022<\n\006errors\030\001 \003(\0132,.google.cloud" + + ".dialogflow.cx.v3.TestCaseError\"o\n\rTestC" + + "aseError\022:\n\ttest_case\030\001 \001(\0132\'.google.clo" + + "ud.dialogflow.cx.v3.TestCase\022\"\n\006status\030\002" + + " \001(\0132\022.google.rpc.Status\"\234\002\n\026ExportTestC" + + "asesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dia" + + "logflow.googleapis.com/TestCase\022\021\n\007gcs_u" + + "ri\030\002 \001(\tH\000\022U\n\013data_format\030\003 \001(\0162@.google" + + ".cloud.dialogflow.cx.v3.ExportTestCasesR" + + "equest.DataFormat\022\016\n\006filter\030\004 \001(\t\"=\n\nDat" + + "aFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010\n\004" + + "BLOB\020\001\022\010\n\004JSON\020\002B\r\n\013destination\"N\n\027Expor" + + "tTestCasesResponse\022\021\n\007gcs_uri\030\001 \001(\tH\000\022\021\n" + + "\007content\030\002 \001(\014H\000B\r\n\013destination\"\031\n\027Expor" + + "tTestCasesMetadata\"\225\001\n\032ListTestCaseResul" + + "tsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(dialo" + + "gflow.googleapis.com/TestCaseResult\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fi" + + "lter\030\004 \001(\t\"\200\001\n\033ListTestCaseResultsRespon" + + "se\022H\n\021test_case_results\030\001 \003(\0132-.google.c" + + "loud.dialogflow.cx.v3.TestCaseResult\022\027\n\017" + + "next_page_token\030\002 \001(\t\"Z\n\030GetTestCaseResu" + + "ltRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dialogf" + + "low.googleapis.com/TestCaseResult*A\n\nTes" + + "tResult\022\033\n\027TEST_RESULT_UNSPECIFIED\020\000\022\n\n\006" + + "PASSED\020\001\022\n\n\006FAILED\020\0022\231\025\n\tTestCases\022\303\001\n\rL" + + "istTestCases\0223.google.cloud.dialogflow.c" + + "x.v3.ListTestCasesRequest\0324.google.cloud" + + ".dialogflow.cx.v3.ListTestCasesResponse\"" + + "G\202\323\344\223\0028\0226/v3/{parent=projects/*/location" + + "s/*/agents/*}/testCases\332A\006parent\022\302\001\n\024Bat" + + "chDeleteTestCases\022:.google.cloud.dialogf" + + "low.cx.v3.BatchDeleteTestCasesRequest\032\026." + + "google.protobuf.Empty\"V\202\323\344\223\002G\"B/v3/{pare" + + "nt=projects/*/locations/*/agents/*}/test" + + "Cases:batchDelete:\001*\332A\006parent\022\260\001\n\013GetTes" + + "tCase\0221.google.cloud.dialogflow.cx.v3.Ge" + + "tTestCaseRequest\032\'.google.cloud.dialogfl" + + "ow.cx.v3.TestCase\"E\202\323\344\223\0028\0226/v3/{name=pro" + + "jects/*/locations/*/agents/*/testCases/*" + + "}\332A\004name\022\315\001\n\016CreateTestCase\0224.google.clo" + + "ud.dialogflow.cx.v3.CreateTestCaseReques" + + "t\032\'.google.cloud.dialogflow.cx.v3.TestCa" + + "se\"\\\202\323\344\223\002C\"6/v3/{parent=projects/*/locat" + + "ions/*/agents/*}/testCases:\ttest_case\332A\020" + + "parent,test_case\022\334\001\n\016UpdateTestCase\0224.go" + + "ogle.cloud.dialogflow.cx.v3.UpdateTestCa" + + "seRequest\032\'.google.cloud.dialogflow.cx.v" + + "3.TestCase\"k\202\323\344\223\002M2@/v3/{test_case.name=" + + "projects/*/locations/*/agents/*/testCase" + + "s/*}:\ttest_case\332A\025test_case,update_mask\022" + + "\323\001\n\013RunTestCase\0221.google.cloud.dialogflo" + + "w.cx.v3.RunTestCaseRequest\032\035.google.long" + + "running.Operation\"r\202\323\344\223\002?\":/v3/{name=pro" + + "jects/*/locations/*/agents/*/testCases/*" + + "}:run:\001*\312A*\n\023RunTestCaseResponse\022\023RunTes" + + "tCaseMetadata\022\361\001\n\021BatchRunTestCases\0227.go" + + "ogle.cloud.dialogflow.cx.v3.BatchRunTest" + + "CasesRequest\032\035.google.longrunning.Operat" + + "ion\"\203\001\202\323\344\223\002D\"?/v3/{parent=projects/*/loc" + + "ations/*/agents/*}/testCases:batchRun:\001*" + + "\312A6\n\031BatchRunTestCasesResponse\022\031BatchRun" + + "TestCasesMetadata\022\327\001\n\021CalculateCoverage\022" + + "7.google.cloud.dialogflow.cx.v3.Calculat" + + "eCoverageRequest\0328.google.cloud.dialogfl" + + "ow.cx.v3.CalculateCoverageResponse\"O\202\323\344\223" + + "\002I\022G/v3/{agent=projects/*/locations/*/ag" + + "ents/*}/testCases:calculateCoverage\022\346\001\n\017" + + "ImportTestCases\0225.google.cloud.dialogflo" + + "w.cx.v3.ImportTestCasesRequest\032\035.google." + + "longrunning.Operation\"}\202\323\344\223\002B\"=/v3/{pare" + + "nt=projects/*/locations/*/agents/*}/test" + + "Cases:import:\001*\312A2\n\027ImportTestCasesRespo" + + "nse\022\027ImportTestCasesMetadata\022\346\001\n\017ExportT" + + "estCases\0225.google.cloud.dialogflow.cx.v3" + + ".ExportTestCasesRequest\032\035.google.longrun" + + "ning.Operation\"}\202\323\344\223\002B\"=/v3/{parent=proj" + + "ects/*/locations/*/agents/*}/testCases:e" + + "xport:\001*\312A2\n\027ExportTestCasesResponse\022\027Ex" + + "portTestCasesMetadata\022\337\001\n\023ListTestCaseRe" + + "sults\0229.google.cloud.dialogflow.cx.v3.Li" + + "stTestCaseResultsRequest\032:.google.cloud." + + "dialogflow.cx.v3.ListTestCaseResultsResp" + + "onse\"Q\202\323\344\223\002B\022@/v3/{parent=projects/*/loc" + + "ations/*/agents/*/testCases/*}/results\332A" + + "\006parent\022\314\001\n\021GetTestCaseResult\0227.google.c" + + "loud.dialogflow.cx.v3.GetTestCaseResultR" + + "equest\032-.google.cloud.dialogflow.cx.v3.T" + + "estCaseResult\"O\202\323\344\223\002B\022@/v3/{name=project" + + "s/*/locations/*/agents/*/testCases/*/res" + + "ults/*}\332A\004name\032x\312A\031dialogflow.googleapis" + + ".com\322AYhttps://www.googleapis.com/auth/c" + + "loud-platform,https://www.googleapis.com" + + "/auth/dialogflowB\235\001\n!com.google.cloud.di" + + "alogflow.cx.v3B\rTestCaseProtoP\001Z?google." + + "golang.org/genproto/googleapis/cloud/dia" + + "logflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud." + + "Dialogflow.Cx.V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -527,7 +528,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_UserInput_descriptor, new java.lang.String[] { - "Input", "InjectedParameters", "IsWebhookEnabled", + "Input", "InjectedParameters", "IsWebhookEnabled", "EnableSentimentAnalysis", }); internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_VirtualAgentOutput_descriptor = internal_static_google_cloud_dialogflow_cx_v3_ConversationTurn_descriptor diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto index f7b942221..94e69aaed 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/test_case.proto @@ -266,6 +266,9 @@ message ConversationTurn { // utterance. Often if parameters are injected, webhooks should not be // enabled. bool is_webhook_enabled = 3; + + // Whether sentiment analysis is enabled. + bool enable_sentiment_analysis = 7; } // The output from the virtual agent. diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationTurn.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationTurn.java index 72bee9ddd..f01f442d1 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationTurn.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationTurn.java @@ -235,6 +235,19 @@ public interface UserInputOrBuilder * @return The isWebhookEnabled. */ boolean getIsWebhookEnabled(); + + /** + * + * + *
+     * Whether sentiment analysis is enabled.
+     * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @return The enableSentimentAnalysis. + */ + boolean getEnableSentimentAnalysis(); } /** * @@ -321,6 +334,11 @@ private UserInput( input_ = subBuilder.buildPartial(); } + break; + } + case 56: + { + enableSentimentAnalysis_ = input.readBool(); break; } default: @@ -479,6 +497,24 @@ public boolean getIsWebhookEnabled() { return isWebhookEnabled_; } + public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER = 7; + private boolean enableSentimentAnalysis_; + /** + * + * + *
+     * Whether sentiment analysis is enabled.
+     * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @return The enableSentimentAnalysis. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysis() { + return enableSentimentAnalysis_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -502,6 +538,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (input_ != null) { output.writeMessage(5, getInput()); } + if (enableSentimentAnalysis_ != false) { + output.writeBool(7, enableSentimentAnalysis_); + } unknownFields.writeTo(output); } @@ -521,6 +560,9 @@ public int getSerializedSize() { if (input_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInput()); } + if (enableSentimentAnalysis_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableSentimentAnalysis_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -546,6 +588,7 @@ public boolean equals(final java.lang.Object obj) { if (!getInjectedParameters().equals(other.getInjectedParameters())) return false; } if (getIsWebhookEnabled() != other.getIsWebhookEnabled()) return false; + if (getEnableSentimentAnalysis() != other.getEnableSentimentAnalysis()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -567,6 +610,8 @@ public int hashCode() { } hash = (37 * hash) + IS_WEBHOOK_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsWebhookEnabled()); + hash = (37 * hash) + ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSentimentAnalysis()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -731,6 +776,8 @@ public Builder clear() { } isWebhookEnabled_ = false; + enableSentimentAnalysis_ = false; + return this; } @@ -771,6 +818,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput buildPa result.injectedParameters_ = injectedParametersBuilder_.build(); } result.isWebhookEnabled_ = isWebhookEnabled_; + result.enableSentimentAnalysis_ = enableSentimentAnalysis_; onBuilt(); return result; } @@ -835,6 +883,9 @@ public Builder mergeFrom( if (other.getIsWebhookEnabled() != false) { setIsWebhookEnabled(other.getIsWebhookEnabled()); } + if (other.getEnableSentimentAnalysis() != false) { + setEnableSentimentAnalysis(other.getEnableSentimentAnalysis()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1313,6 +1364,58 @@ public Builder clearIsWebhookEnabled() { return this; } + private boolean enableSentimentAnalysis_; + /** + * + * + *
+       * Whether sentiment analysis is enabled.
+       * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @return The enableSentimentAnalysis. + */ + @java.lang.Override + public boolean getEnableSentimentAnalysis() { + return enableSentimentAnalysis_; + } + /** + * + * + *
+       * Whether sentiment analysis is enabled.
+       * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @param value The enableSentimentAnalysis to set. + * @return This builder for chaining. + */ + public Builder setEnableSentimentAnalysis(boolean value) { + + enableSentimentAnalysis_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether sentiment analysis is enabled.
+       * 
+ * + * bool enable_sentiment_analysis = 7; + * + * @return This builder for chaining. + */ + public Builder clearEnableSentimentAnalysis() { + + enableSentimentAnalysis_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseProto.java index 1d7e4fe13..b703c875f 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseProto.java @@ -239,236 +239,236 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "agent}/testCases/{test_case}/results/{re" + "sult}\"\\\n\nTestConfig\022\033\n\023tracking_paramete" + "rs\030\001 \003(\t\0221\n\004flow\030\002 \001(\tB#\372A \n\036dialogflow." - + "googleapis.com/Flow\"\277\006\n\020ConversationTurn" + + "googleapis.com/Flow\"\342\006\n\020ConversationTurn" + "\022R\n\nuser_input\030\001 \001(\0132>.google.cloud.dial" + "ogflow.cx.v3beta1.ConversationTurn.UserI" + "nput\022e\n\024virtual_agent_output\030\002 \001(\0132G.goo" + "gle.cloud.dialogflow.cx.v3beta1.Conversa" - + "tionTurn.VirtualAgentOutput\032\234\001\n\tUserInpu" + + "tionTurn.VirtualAgentOutput\032\277\001\n\tUserInpu" + "t\022=\n\005input\030\005 \001(\0132..google.cloud.dialogfl" + "ow.cx.v3beta1.QueryInput\0224\n\023injected_par" + "ameters\030\002 \001(\0132\027.google.protobuf.Struct\022\032" - + "\n\022is_webhook_enabled\030\003 \001(\010\032\320\003\n\022VirtualAg" - + "entOutput\0223\n\022session_parameters\030\004 \001(\0132\027." - + "google.protobuf.Struct\022O\n\013differences\030\005 " - + "\003(\01325.google.cloud.dialogflow.cx.v3beta1" - + ".TestRunDifferenceB\003\340A\003\0228\n\017diagnostic_in" - + "fo\030\006 \001(\0132\027.google.protobuf.StructB\006\340A\002\340A" - + "\004\022D\n\020triggered_intent\030\007 \001(\0132*.google.clo" - + "ud.dialogflow.cx.v3beta1.Intent\022>\n\014curre" - + "nt_page\030\010 \001(\0132(.google.cloud.dialogflow." - + "cx.v3beta1.Page\022P\n\016text_responses\030\t \003(\0132" - + "8.google.cloud.dialogflow.cx.v3beta1.Res" - + "ponseMessage.Text\022\"\n\006status\030\n \001(\0132\022.goog" - + "le.rpc.Status\"\322\001\n\021TestRunDifference\022L\n\004t" - + "ype\030\001 \001(\0162>.google.cloud.dialogflow.cx.v" - + "3beta1.TestRunDifference.DiffType\022\023\n\013des" - + "cription\030\002 \001(\t\"Z\n\010DiffType\022\031\n\025DIFF_TYPE_" - + "UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\010\n\004PAGE\020\002\022\016\n\nP" - + "ARAMETERS\020\003\022\r\n\tUTTERANCE\020\004\"\226\005\n\022Transitio" - + "nCoverage\022V\n\013transitions\030\001 \003(\0132A.google." - + "cloud.dialogflow.cx.v3beta1.TransitionCo" - + "verage.Transition\022\026\n\016coverage_score\030\002 \001(" - + "\002\032\214\001\n\016TransitionNode\0228\n\004page\030\001 \001(\0132(.goo" - + "gle.cloud.dialogflow.cx.v3beta1.PageH\000\0228" - + "\n\004flow\030\002 \001(\0132(.google.cloud.dialogflow.c" - + "x.v3beta1.FlowH\000B\006\n\004kind\032\200\003\n\nTransition\022" - + "U\n\006source\030\001 \001(\0132E.google.cloud.dialogflo" - + "w.cx.v3beta1.TransitionCoverage.Transiti" - + "onNode\022\r\n\005index\030\004 \001(\005\022U\n\006target\030\002 \001(\0132E." - + "google.cloud.dialogflow.cx.v3beta1.Trans" - + "itionCoverage.TransitionNode\022\017\n\007covered\030" - + "\003 \001(\010\022O\n\020transition_route\030\005 \001(\01323.google" - + ".cloud.dialogflow.cx.v3beta1.TransitionR" - + "outeH\000\022I\n\revent_handler\030\006 \001(\01320.google.c" - + "loud.dialogflow.cx.v3beta1.EventHandlerH" - + "\000B\010\n\006detail\"\341\003\n\034TransitionRouteGroupCove" - + "rage\022\\\n\tcoverages\030\001 \003(\0132I.google.cloud.d" - + "ialogflow.cx.v3beta1.TransitionRouteGrou" - + "pCoverage.Coverage\022\026\n\016coverage_score\030\002 \001" - + "(\002\032\312\002\n\010Coverage\022M\n\013route_group\030\001 \001(\01328.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Transi" - + "tionRouteGroup\022i\n\013transitions\030\002 \003(\0132T.go" - + "ogle.cloud.dialogflow.cx.v3beta1.Transit" - + "ionRouteGroupCoverage.Coverage.Transitio" - + "n\022\026\n\016coverage_score\030\003 \001(\002\032l\n\nTransition\022" - + "M\n\020transition_route\030\001 \001(\01323.google.cloud" - + ".dialogflow.cx.v3beta1.TransitionRoute\022\017" - + "\n\007covered\030\002 \001(\010\"\306\001\n\016IntentCoverage\022J\n\007in" - + "tents\030\001 \003(\01329.google.cloud.dialogflow.cx" - + ".v3beta1.IntentCoverage.Intent\022\026\n\016covera" - + "ge_score\030\002 \001(\002\032P\n\006Intent\0225\n\006intent\030\001 \001(\t" - + "B%\372A\"\n dialogflow.googleapis.com/Intent\022" - + "\017\n\007covered\030\002 \001(\010\"\234\002\n\030CalculateCoverageRe" - + "quest\0226\n\005agent\030\003 \001(\tB\'\340A\002\372A!\n\037dialogflow" - + ".googleapis.com/Agent\022\\\n\004type\030\002 \001(\0162I.go" - + "ogle.cloud.dialogflow.cx.v3beta1.Calcula" - + "teCoverageRequest.CoverageTypeB\003\340A\002\"j\n\014C" - + "overageType\022\035\n\031COVERAGE_TYPE_UNSPECIFIED" - + "\020\000\022\n\n\006INTENT\020\001\022\023\n\017PAGE_TRANSITION\020\002\022\032\n\026T" - + "RANSITION_ROUTE_GROUP\020\003\"\351\002\n\031CalculateCov" - + "erageResponse\0223\n\005agent\030\005 \001(\tB$\372A!\n\037dialo" - + "gflow.googleapis.com/Agent\022M\n\017intent_cov" - + "erage\030\002 \001(\01322.google.cloud.dialogflow.cx" - + ".v3beta1.IntentCoverageH\000\022U\n\023transition_" - + "coverage\030\004 \001(\01326.google.cloud.dialogflow" - + ".cx.v3beta1.TransitionCoverageH\000\022`\n\024rout" - + "e_group_coverage\030\006 \001(\0132@.google.cloud.di" - + "alogflow.cx.v3beta1.TransitionRouteGroup" - + "CoverageH\000B\017\n\rcoverage_type\"\223\002\n\024ListTest" - + "CasesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"di" - + "alogflow.googleapis.com/TestCase\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022S\n\004view\030" - + "\004 \001(\0162E.google.cloud.dialogflow.cx.v3bet" - + "a1.ListTestCasesRequest.TestCaseView\"C\n\014" - + "TestCaseView\022\036\n\032TEST_CASE_VIEW_UNSPECIFI" - + "ED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002\"r\n\025ListTestCas" - + "esResponse\022@\n\ntest_cases\030\001 \003(\0132,.google." - + "cloud.dialogflow.cx.v3beta1.TestCase\022\027\n\017" - + "next_page_token\030\002 \001(\t\"\224\001\n\033BatchDeleteTes" - + "tCasesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"d" - + "ialogflow.googleapis.com/TestCase\0229\n\005nam" - + "es\030\003 \003(\tB*\340A\002\372A$\n\"dialogflow.googleapis." - + "com/TestCase\"\231\001\n\025CreateTestCaseRequest\022:" - + "\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.googl" - + "eapis.com/TestCase\022D\n\ttest_case\030\002 \001(\0132,." - + "google.cloud.dialogflow.cx.v3beta1.TestC" - + "aseB\003\340A\002\"\223\001\n\025UpdateTestCaseRequest\022D\n\tte" - + "st_case\030\001 \001(\0132,.google.cloud.dialogflow." - + "cx.v3beta1.TestCaseB\003\340A\002\0224\n\013update_mask\030" - + "\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"N" - + "\n\022GetTestCaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372" - + "A$\n\"dialogflow.googleapis.com/TestCase\"\222" - + "\001\n\022RunTestCaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002" - + "\372A$\n\"dialogflow.googleapis.com/TestCase\022" - + "B\n\013environment\030\002 \001(\tB-\340A\001\372A\'\n%dialogflow" - + ".googleapis.com/Environment\"Y\n\023RunTestCa" - + "seResponse\022B\n\006result\030\002 \001(\01322.google.clou" - + "d.dialogflow.cx.v3beta1.TestCaseResult\"\025" - + "\n\023RunTestCaseMetadata\"\332\001\n\030BatchRunTestCa" - + "sesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dial" - + "ogflow.googleapis.com/TestCase\022B\n\013enviro" - + "nment\030\002 \001(\tB-\340A\001\372A\'\n%dialogflow.googleap" - + "is.com/Environment\022>\n\ntest_cases\030\003 \003(\tB*" - + "\340A\002\372A$\n\"dialogflow.googleapis.com/TestCa" - + "se\"`\n\031BatchRunTestCasesResponse\022C\n\007resul" - + "ts\030\001 \003(\01322.google.cloud.dialogflow.cx.v3" - + "beta1.TestCaseResult\"Z\n\031BatchRunTestCase" - + "sMetadata\022=\n\006errors\030\001 \003(\0132-.google.cloud" - + ".dialogflow.cx.v3beta1.TestError\"\232\001\n\tTes" - + "tError\022:\n\ttest_case\030\001 \001(\tB\'\372A$\n\"dialogfl" - + "ow.googleapis.com/TestCase\022\"\n\006status\030\002 \001" - + "(\0132\022.google.rpc.Status\022-\n\ttest_time\030\003 \001(" - + "\0132\032.google.protobuf.Timestamp\"\204\001\n\026Import" - + "TestCasesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$" - + "\022\"dialogflow.googleapis.com/TestCase\022\021\n\007" - + "gcs_uri\030\002 \001(\tH\000\022\021\n\007content\030\003 \001(\014H\000B\010\n\006so" - + "urce\"Q\n\027ImportTestCasesResponse\0226\n\005names" - + "\030\001 \003(\tB\'\372A$\n\"dialogflow.googleapis.com/T" - + "estCase\"\\\n\027ImportTestCasesMetadata\022A\n\006er" - + "rors\030\001 \003(\01321.google.cloud.dialogflow.cx." - + "v3beta1.TestCaseError\"t\n\rTestCaseError\022?" - + "\n\ttest_case\030\001 \001(\0132,.google.cloud.dialogf" - + "low.cx.v3beta1.TestCase\022\"\n\006status\030\002 \001(\0132" - + "\022.google.rpc.Status\"\241\002\n\026ExportTestCasesR" - + "equest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogfl" - + "ow.googleapis.com/TestCase\022\021\n\007gcs_uri\030\002 " - + "\001(\tH\000\022Z\n\013data_format\030\003 \001(\0162E.google.clou" - + "d.dialogflow.cx.v3beta1.ExportTestCasesR" - + "equest.DataFormat\022\016\n\006filter\030\004 \001(\t\"=\n\nDat" - + "aFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010\n\004" - + "BLOB\020\001\022\010\n\004JSON\020\002B\r\n\013destination\"N\n\027Expor" - + "tTestCasesResponse\022\021\n\007gcs_uri\030\001 \001(\tH\000\022\021\n" - + "\007content\030\002 \001(\014H\000B\r\n\013destination\"\031\n\027Expor" - + "tTestCasesMetadata\"\225\001\n\032ListTestCaseResul" - + "tsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(dialo" - + "gflow.googleapis.com/TestCaseResult\022\021\n\tp" - + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fi" - + "lter\030\004 \001(\t\"\205\001\n\033ListTestCaseResultsRespon" - + "se\022M\n\021test_case_results\030\001 \003(\01322.google.c" - + "loud.dialogflow.cx.v3beta1.TestCaseResul" - + "t\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\030GetTestCas" - + "eResultRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(di" - + "alogflow.googleapis.com/TestCaseResult*A" - + "\n\nTestResult\022\033\n\027TEST_RESULT_UNSPECIFIED\020" - + "\000\022\n\n\006PASSED\020\001\022\n\n\006FAILED\020\0022\266\026\n\tTestCases\022" - + "\322\001\n\rListTestCases\0228.google.cloud.dialogf" - + "low.cx.v3beta1.ListTestCasesRequest\0329.go" - + "ogle.cloud.dialogflow.cx.v3beta1.ListTes" - + "tCasesResponse\"L\202\323\344\223\002=\022;/v3beta1/{parent" - + "=projects/*/locations/*/agents/*}/testCa" - + "ses\332A\006parent\022\314\001\n\024BatchDeleteTestCases\022?." - + "google.cloud.dialogflow.cx.v3beta1.Batch" - + "DeleteTestCasesRequest\032\026.google.protobuf" - + ".Empty\"[\202\323\344\223\002L\"G/v3beta1/{parent=project" - + "s/*/locations/*/agents/*}/testCases:batc" - + "hDelete:\001*\332A\006parent\022\277\001\n\013GetTestCase\0226.go" - + "ogle.cloud.dialogflow.cx.v3beta1.GetTest" - + "CaseRequest\032,.google.cloud.dialogflow.cx" - + ".v3beta1.TestCase\"J\202\323\344\223\002=\022;/v3beta1/{nam" - + "e=projects/*/locations/*/agents/*/testCa" - + "ses/*}\332A\004name\022\334\001\n\016CreateTestCase\0229.googl" - + "e.cloud.dialogflow.cx.v3beta1.CreateTest" - + "CaseRequest\032,.google.cloud.dialogflow.cx" - + ".v3beta1.TestCase\"a\202\323\344\223\002H\";/v3beta1/{par" - + "ent=projects/*/locations/*/agents/*}/tes" - + "tCases:\ttest_case\332A\020parent,test_case\022\353\001\n" - + "\016UpdateTestCase\0229.google.cloud.dialogflo" - + "w.cx.v3beta1.UpdateTestCaseRequest\032,.goo" - + "gle.cloud.dialogflow.cx.v3beta1.TestCase" - + "\"p\202\323\344\223\002R2E/v3beta1/{test_case.name=proje" - + "cts/*/locations/*/agents/*/testCases/*}:" - + "\ttest_case\332A\025test_case,update_mask\022\335\001\n\013R" - + "unTestCase\0226.google.cloud.dialogflow.cx." - + "v3beta1.RunTestCaseRequest\032\035.google.long" - + "running.Operation\"w\202\323\344\223\002D\"?/v3beta1/{nam" - + "e=projects/*/locations/*/agents/*/testCa" - + "ses/*}:run:\001*\312A*\n\023RunTestCaseResponse\022\023R" - + "unTestCaseMetadata\022\373\001\n\021BatchRunTestCases" - + "\022<.google.cloud.dialogflow.cx.v3beta1.Ba" - + "tchRunTestCasesRequest\032\035.google.longrunn" - + "ing.Operation\"\210\001\202\323\344\223\002I\"D/v3beta1/{parent" - + "=projects/*/locations/*/agents/*}/testCa" - + "ses:batchRun:\001*\312A6\n\031BatchRunTestCasesRes" - + "ponse\022\031BatchRunTestCasesMetadata\022\346\001\n\021Cal" - + "culateCoverage\022<.google.cloud.dialogflow" - + ".cx.v3beta1.CalculateCoverageRequest\032=.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Calcul" - + "ateCoverageResponse\"T\202\323\344\223\002N\022L/v3beta1/{a" - + "gent=projects/*/locations/*/agents/*}/te" - + "stCases:calculateCoverage\022\361\001\n\017ImportTest" - + "Cases\022:.google.cloud.dialogflow.cx.v3bet" - + "a1.ImportTestCasesRequest\032\035.google.longr" - + "unning.Operation\"\202\001\202\323\344\223\002G\"B/v3beta1/{par" - + "ent=projects/*/locations/*/agents/*}/tes" - + "tCases:import:\001*\312A2\n\027ImportTestCasesResp" - + "onse\022\027ImportTestCasesMetadata\022\361\001\n\017Export" - + "TestCases\022:.google.cloud.dialogflow.cx.v" - + "3beta1.ExportTestCasesRequest\032\035.google.l" - + "ongrunning.Operation\"\202\001\202\323\344\223\002G\"B/v3beta1/" - + "{parent=projects/*/locations/*/agents/*}" - + "/testCases:export:\001*\312A2\n\027ExportTestCases" - + "Response\022\027ExportTestCasesMetadata\022\356\001\n\023Li" - + "stTestCaseResults\022>.google.cloud.dialogf" - + "low.cx.v3beta1.ListTestCaseResultsReques" - + "t\032?.google.cloud.dialogflow.cx.v3beta1.L" - + "istTestCaseResultsResponse\"V\202\323\344\223\002G\022E/v3b" - + "eta1/{parent=projects/*/locations/*/agen" - + "ts/*/testCases/*}/results\332A\006parent\022\333\001\n\021G" - + "etTestCaseResult\022<.google.cloud.dialogfl" - + "ow.cx.v3beta1.GetTestCaseResultRequest\0322" + + "\n\022is_webhook_enabled\030\003 \001(\010\022!\n\031enable_sen" + + "timent_analysis\030\007 \001(\010\032\320\003\n\022VirtualAgentOu" + + "tput\0223\n\022session_parameters\030\004 \001(\0132\027.googl" + + "e.protobuf.Struct\022O\n\013differences\030\005 \003(\01325" + ".google.cloud.dialogflow.cx.v3beta1.Test" - + "CaseResult\"T\202\323\344\223\002G\022E/v3beta1/{name=proje" - + "cts/*/locations/*/agents/*/testCases/*/r" - + "esults/*}\332A\004name\032x\312A\031dialogflow.googleap" - + "is.com\322AYhttps://www.googleapis.com/auth" - + "/cloud-platform,https://www.googleapis.c" - + "om/auth/dialogflowB\254\001\n&com.google.cloud." - + "dialogflow.cx.v3beta1B\rTestCaseProtoP\001ZD" - + "google.golang.org/genproto/googleapis/cl" - + "oud/dialogflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"G" - + "oogle.Cloud.Dialogflow.Cx.V3Beta1b\006proto" - + "3" + + "RunDifferenceB\003\340A\003\0228\n\017diagnostic_info\030\006 " + + "\001(\0132\027.google.protobuf.StructB\006\340A\002\340A\004\022D\n\020" + + "triggered_intent\030\007 \001(\0132*.google.cloud.di" + + "alogflow.cx.v3beta1.Intent\022>\n\014current_pa" + + "ge\030\010 \001(\0132(.google.cloud.dialogflow.cx.v3" + + "beta1.Page\022P\n\016text_responses\030\t \003(\01328.goo" + + "gle.cloud.dialogflow.cx.v3beta1.Response" + + "Message.Text\022\"\n\006status\030\n \001(\0132\022.google.rp" + + "c.Status\"\322\001\n\021TestRunDifference\022L\n\004type\030\001" + + " \001(\0162>.google.cloud.dialogflow.cx.v3beta" + + "1.TestRunDifference.DiffType\022\023\n\013descript" + + "ion\030\002 \001(\t\"Z\n\010DiffType\022\031\n\025DIFF_TYPE_UNSPE" + + "CIFIED\020\000\022\n\n\006INTENT\020\001\022\010\n\004PAGE\020\002\022\016\n\nPARAME" + + "TERS\020\003\022\r\n\tUTTERANCE\020\004\"\226\005\n\022TransitionCove" + + "rage\022V\n\013transitions\030\001 \003(\0132A.google.cloud" + + ".dialogflow.cx.v3beta1.TransitionCoverag" + + "e.Transition\022\026\n\016coverage_score\030\002 \001(\002\032\214\001\n" + + "\016TransitionNode\0228\n\004page\030\001 \001(\0132(.google.c" + + "loud.dialogflow.cx.v3beta1.PageH\000\0228\n\004flo" + + "w\030\002 \001(\0132(.google.cloud.dialogflow.cx.v3b" + + "eta1.FlowH\000B\006\n\004kind\032\200\003\n\nTransition\022U\n\006so" + + "urce\030\001 \001(\0132E.google.cloud.dialogflow.cx." + + "v3beta1.TransitionCoverage.TransitionNod" + + "e\022\r\n\005index\030\004 \001(\005\022U\n\006target\030\002 \001(\0132E.googl" + + "e.cloud.dialogflow.cx.v3beta1.Transition" + + "Coverage.TransitionNode\022\017\n\007covered\030\003 \001(\010" + + "\022O\n\020transition_route\030\005 \001(\01323.google.clou" + + "d.dialogflow.cx.v3beta1.TransitionRouteH" + + "\000\022I\n\revent_handler\030\006 \001(\01320.google.cloud." + + "dialogflow.cx.v3beta1.EventHandlerH\000B\010\n\006" + + "detail\"\341\003\n\034TransitionRouteGroupCoverage\022" + + "\\\n\tcoverages\030\001 \003(\0132I.google.cloud.dialog" + + "flow.cx.v3beta1.TransitionRouteGroupCove" + + "rage.Coverage\022\026\n\016coverage_score\030\002 \001(\002\032\312\002" + + "\n\010Coverage\022M\n\013route_group\030\001 \001(\01328.google" + + ".cloud.dialogflow.cx.v3beta1.TransitionR" + + "outeGroup\022i\n\013transitions\030\002 \003(\0132T.google." + + "cloud.dialogflow.cx.v3beta1.TransitionRo" + + "uteGroupCoverage.Coverage.Transition\022\026\n\016" + + "coverage_score\030\003 \001(\002\032l\n\nTransition\022M\n\020tr" + + "ansition_route\030\001 \001(\01323.google.cloud.dial" + + "ogflow.cx.v3beta1.TransitionRoute\022\017\n\007cov" + + "ered\030\002 \001(\010\"\306\001\n\016IntentCoverage\022J\n\007intents" + + "\030\001 \003(\01329.google.cloud.dialogflow.cx.v3be" + + "ta1.IntentCoverage.Intent\022\026\n\016coverage_sc" + + "ore\030\002 \001(\002\032P\n\006Intent\0225\n\006intent\030\001 \001(\tB%\372A\"" + + "\n dialogflow.googleapis.com/Intent\022\017\n\007co" + + "vered\030\002 \001(\010\"\234\002\n\030CalculateCoverageRequest" + + "\0226\n\005agent\030\003 \001(\tB\'\340A\002\372A!\n\037dialogflow.goog" + + "leapis.com/Agent\022\\\n\004type\030\002 \001(\0162I.google." + + "cloud.dialogflow.cx.v3beta1.CalculateCov" + + "erageRequest.CoverageTypeB\003\340A\002\"j\n\014Covera" + + "geType\022\035\n\031COVERAGE_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006INTENT\020\001\022\023\n\017PAGE_TRANSITION\020\002\022\032\n\026TRANSI" + + "TION_ROUTE_GROUP\020\003\"\351\002\n\031CalculateCoverage" + + "Response\0223\n\005agent\030\005 \001(\tB$\372A!\n\037dialogflow" + + ".googleapis.com/Agent\022M\n\017intent_coverage" + + "\030\002 \001(\01322.google.cloud.dialogflow.cx.v3be" + + "ta1.IntentCoverageH\000\022U\n\023transition_cover" + + "age\030\004 \001(\01326.google.cloud.dialogflow.cx.v" + + "3beta1.TransitionCoverageH\000\022`\n\024route_gro" + + "up_coverage\030\006 \001(\0132@.google.cloud.dialogf" + + "low.cx.v3beta1.TransitionRouteGroupCover" + + "ageH\000B\017\n\rcoverage_type\"\223\002\n\024ListTestCases" + + "Request\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogf" + + "low.googleapis.com/TestCase\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022S\n\004view\030\004 \001(\016" + + "2E.google.cloud.dialogflow.cx.v3beta1.Li" + + "stTestCasesRequest.TestCaseView\"C\n\014TestC" + + "aseView\022\036\n\032TEST_CASE_VIEW_UNSPECIFIED\020\000\022" + + "\t\n\005BASIC\020\001\022\010\n\004FULL\020\002\"r\n\025ListTestCasesRes" + + "ponse\022@\n\ntest_cases\030\001 \003(\0132,.google.cloud" + + ".dialogflow.cx.v3beta1.TestCase\022\027\n\017next_" + + "page_token\030\002 \001(\t\"\224\001\n\033BatchDeleteTestCase" + + "sRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialog" + + "flow.googleapis.com/TestCase\0229\n\005names\030\003 " + + "\003(\tB*\340A\002\372A$\n\"dialogflow.googleapis.com/T" + + "estCase\"\231\001\n\025CreateTestCaseRequest\022:\n\006par" + + "ent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.googleapis" + + ".com/TestCase\022D\n\ttest_case\030\002 \001(\0132,.googl" + + "e.cloud.dialogflow.cx.v3beta1.TestCaseB\003" + + "\340A\002\"\223\001\n\025UpdateTestCaseRequest\022D\n\ttest_ca" + + "se\030\001 \001(\0132,.google.cloud.dialogflow.cx.v3" + + "beta1.TestCaseB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\"N\n\022Get" + + "TestCaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"d" + + "ialogflow.googleapis.com/TestCase\"\222\001\n\022Ru" + + "nTestCaseRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"" + + "dialogflow.googleapis.com/TestCase\022B\n\013en" + + "vironment\030\002 \001(\tB-\340A\001\372A\'\n%dialogflow.goog" + + "leapis.com/Environment\"Y\n\023RunTestCaseRes" + + "ponse\022B\n\006result\030\002 \001(\01322.google.cloud.dia" + + "logflow.cx.v3beta1.TestCaseResult\"\025\n\023Run" + + "TestCaseMetadata\"\332\001\n\030BatchRunTestCasesRe" + + "quest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflo" + + "w.googleapis.com/TestCase\022B\n\013environment" + + "\030\002 \001(\tB-\340A\001\372A\'\n%dialogflow.googleapis.co" + + "m/Environment\022>\n\ntest_cases\030\003 \003(\tB*\340A\002\372A" + + "$\n\"dialogflow.googleapis.com/TestCase\"`\n" + + "\031BatchRunTestCasesResponse\022C\n\007results\030\001 " + + "\003(\01322.google.cloud.dialogflow.cx.v3beta1" + + ".TestCaseResult\"Z\n\031BatchRunTestCasesMeta" + + "data\022=\n\006errors\030\001 \003(\0132-.google.cloud.dial" + + "ogflow.cx.v3beta1.TestError\"\232\001\n\tTestErro" + + "r\022:\n\ttest_case\030\001 \001(\tB\'\372A$\n\"dialogflow.go" + + "ogleapis.com/TestCase\022\"\n\006status\030\002 \001(\0132\022." + + "google.rpc.Status\022-\n\ttest_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\"\204\001\n\026ImportTestC" + + "asesRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dia" + + "logflow.googleapis.com/TestCase\022\021\n\007gcs_u" + + "ri\030\002 \001(\tH\000\022\021\n\007content\030\003 \001(\014H\000B\010\n\006source\"" + + "Q\n\027ImportTestCasesResponse\0226\n\005names\030\001 \003(" + + "\tB\'\372A$\n\"dialogflow.googleapis.com/TestCa" + + "se\"\\\n\027ImportTestCasesMetadata\022A\n\006errors\030" + + "\001 \003(\01321.google.cloud.dialogflow.cx.v3bet" + + "a1.TestCaseError\"t\n\rTestCaseError\022?\n\ttes" + + "t_case\030\001 \001(\0132,.google.cloud.dialogflow.c" + + "x.v3beta1.TestCase\022\"\n\006status\030\002 \001(\0132\022.goo" + + "gle.rpc.Status\"\241\002\n\026ExportTestCasesReques" + + "t\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\022\"dialogflow.go" + + "ogleapis.com/TestCase\022\021\n\007gcs_uri\030\002 \001(\tH\000" + + "\022Z\n\013data_format\030\003 \001(\0162E.google.cloud.dia" + + "logflow.cx.v3beta1.ExportTestCasesReques" + + "t.DataFormat\022\016\n\006filter\030\004 \001(\t\"=\n\nDataForm" + + "at\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010\n\004BLOB\020" + + "\001\022\010\n\004JSON\020\002B\r\n\013destination\"N\n\027ExportTest" + + "CasesResponse\022\021\n\007gcs_uri\030\001 \001(\tH\000\022\021\n\007cont" + + "ent\030\002 \001(\014H\000B\r\n\013destination\"\031\n\027ExportTest" + + "CasesMetadata\"\225\001\n\032ListTestCaseResultsReq" + + "uest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(dialogflow" + + ".googleapis.com/TestCaseResult\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + + "\004 \001(\t\"\205\001\n\033ListTestCaseResultsResponse\022M\n" + + "\021test_case_results\030\001 \003(\01322.google.cloud." + + "dialogflow.cx.v3beta1.TestCaseResult\022\027\n\017" + + "next_page_token\030\002 \001(\t\"Z\n\030GetTestCaseResu" + + "ltRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dialogf" + + "low.googleapis.com/TestCaseResult*A\n\nTes" + + "tResult\022\033\n\027TEST_RESULT_UNSPECIFIED\020\000\022\n\n\006" + + "PASSED\020\001\022\n\n\006FAILED\020\0022\266\026\n\tTestCases\022\322\001\n\rL" + + "istTestCases\0228.google.cloud.dialogflow.c" + + "x.v3beta1.ListTestCasesRequest\0329.google." + + "cloud.dialogflow.cx.v3beta1.ListTestCase" + + "sResponse\"L\202\323\344\223\002=\022;/v3beta1/{parent=proj" + + "ects/*/locations/*/agents/*}/testCases\332A" + + "\006parent\022\314\001\n\024BatchDeleteTestCases\022?.googl" + + "e.cloud.dialogflow.cx.v3beta1.BatchDelet" + + "eTestCasesRequest\032\026.google.protobuf.Empt" + + "y\"[\202\323\344\223\002L\"G/v3beta1/{parent=projects/*/l" + + "ocations/*/agents/*}/testCases:batchDele" + + "te:\001*\332A\006parent\022\277\001\n\013GetTestCase\0226.google." + + "cloud.dialogflow.cx.v3beta1.GetTestCaseR" + + "equest\032,.google.cloud.dialogflow.cx.v3be" + + "ta1.TestCase\"J\202\323\344\223\002=\022;/v3beta1/{name=pro" + + "jects/*/locations/*/agents/*/testCases/*" + + "}\332A\004name\022\334\001\n\016CreateTestCase\0229.google.clo" + + "ud.dialogflow.cx.v3beta1.CreateTestCaseR" + + "equest\032,.google.cloud.dialogflow.cx.v3be" + + "ta1.TestCase\"a\202\323\344\223\002H\";/v3beta1/{parent=p" + + "rojects/*/locations/*/agents/*}/testCase" + + "s:\ttest_case\332A\020parent,test_case\022\353\001\n\016Upda" + + "teTestCase\0229.google.cloud.dialogflow.cx." + + "v3beta1.UpdateTestCaseRequest\032,.google.c" + + "loud.dialogflow.cx.v3beta1.TestCase\"p\202\323\344" + + "\223\002R2E/v3beta1/{test_case.name=projects/*" + + "/locations/*/agents/*/testCases/*}:\ttest" + + "_case\332A\025test_case,update_mask\022\335\001\n\013RunTes" + + "tCase\0226.google.cloud.dialogflow.cx.v3bet" + + "a1.RunTestCaseRequest\032\035.google.longrunni" + + "ng.Operation\"w\202\323\344\223\002D\"?/v3beta1/{name=pro" + + "jects/*/locations/*/agents/*/testCases/*" + + "}:run:\001*\312A*\n\023RunTestCaseResponse\022\023RunTes" + + "tCaseMetadata\022\373\001\n\021BatchRunTestCases\022<.go" + + "ogle.cloud.dialogflow.cx.v3beta1.BatchRu" + + "nTestCasesRequest\032\035.google.longrunning.O" + + "peration\"\210\001\202\323\344\223\002I\"D/v3beta1/{parent=proj" + + "ects/*/locations/*/agents/*}/testCases:b" + + "atchRun:\001*\312A6\n\031BatchRunTestCasesResponse" + + "\022\031BatchRunTestCasesMetadata\022\346\001\n\021Calculat" + + "eCoverage\022<.google.cloud.dialogflow.cx.v" + + "3beta1.CalculateCoverageRequest\032=.google" + + ".cloud.dialogflow.cx.v3beta1.CalculateCo" + + "verageResponse\"T\202\323\344\223\002N\022L/v3beta1/{agent=" + + "projects/*/locations/*/agents/*}/testCas" + + "es:calculateCoverage\022\361\001\n\017ImportTestCases" + + "\022:.google.cloud.dialogflow.cx.v3beta1.Im" + + "portTestCasesRequest\032\035.google.longrunnin" + + "g.Operation\"\202\001\202\323\344\223\002G\"B/v3beta1/{parent=p" + + "rojects/*/locations/*/agents/*}/testCase" + + "s:import:\001*\312A2\n\027ImportTestCasesResponse\022" + + "\027ImportTestCasesMetadata\022\361\001\n\017ExportTestC" + + "ases\022:.google.cloud.dialogflow.cx.v3beta" + + "1.ExportTestCasesRequest\032\035.google.longru" + + "nning.Operation\"\202\001\202\323\344\223\002G\"B/v3beta1/{pare" + + "nt=projects/*/locations/*/agents/*}/test" + + "Cases:export:\001*\312A2\n\027ExportTestCasesRespo" + + "nse\022\027ExportTestCasesMetadata\022\356\001\n\023ListTes" + + "tCaseResults\022>.google.cloud.dialogflow.c" + + "x.v3beta1.ListTestCaseResultsRequest\032?.g" + + "oogle.cloud.dialogflow.cx.v3beta1.ListTe" + + "stCaseResultsResponse\"V\202\323\344\223\002G\022E/v3beta1/" + + "{parent=projects/*/locations/*/agents/*/" + + "testCases/*}/results\332A\006parent\022\333\001\n\021GetTes" + + "tCaseResult\022<.google.cloud.dialogflow.cx" + + ".v3beta1.GetTestCaseResultRequest\0322.goog" + + "le.cloud.dialogflow.cx.v3beta1.TestCaseR" + + "esult\"T\202\323\344\223\002G\022E/v3beta1/{name=projects/*" + + "/locations/*/agents/*/testCases/*/result" + + "s/*}\332A\004name\032x\312A\031dialogflow.googleapis.co" + + "m\322AYhttps://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/dialogflowB\254\001\n&com.google.cloud.dialo" + + "gflow.cx.v3beta1B\rTestCaseProtoP\001ZDgoogl" + + "e.golang.org/genproto/googleapis/cloud/d" + + "ialogflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google" + + ".Cloud.Dialogflow.Cx.V3Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -538,7 +538,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_ConversationTurn_UserInput_descriptor, new java.lang.String[] { - "Input", "InjectedParameters", "IsWebhookEnabled", + "Input", "InjectedParameters", "IsWebhookEnabled", "EnableSentimentAnalysis", }); internal_static_google_cloud_dialogflow_cx_v3beta1_ConversationTurn_VirtualAgentOutput_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_ConversationTurn_descriptor diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto index accda7e53..c640be6ff 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/test_case.proto @@ -266,6 +266,9 @@ message ConversationTurn { // utterance. Often if parameters are injected, webhooks should not be // enabled. bool is_webhook_enabled = 3; + + // Whether sentiment analysis is enabled. + bool enable_sentiment_analysis = 7; } // The output from the virtual agent. diff --git a/synth.metadata b/synth.metadata index 0388319c1..15aa1a746 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow-cx.git", - "sha": "97f71abf7b6ffc6ea89dfdfdf1e7a7a0c79a0590" + "sha": "06c8e0e9921916967e7d67174fc22016c42b925f" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", - "internalRef": "377081269" + "sha": "90717db757582fdda158463c613ee6f5334a98a4", + "internalRef": "377947699" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", - "internalRef": "377081269" + "sha": "90717db757582fdda158463c613ee6f5334a98a4", + "internalRef": "377947699" } }, { From e6dc52ef4a1b4b652cfe189a92ab91e7fed77b3d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 10 Jun 2021 08:08:28 -0700 Subject: [PATCH 07/23] chore: release gapic-generator-java v1.0.11 (#235) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5efa5f86-c52b-4bb6-9a99-37c442a246c7/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 378266372 Source-Link: https://github.com/googleapis/googleapis/commit/9e3105549a35520f215359065c11e8dce15e18af --- .../cloud/dialogflow/cx/v3/AgentsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3/EntityTypesClientTest.java | 2 +- .../cloud/dialogflow/cx/v3/EnvironmentsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3/ExperimentsClientTest.java | 2 +- .../google/cloud/dialogflow/cx/v3/FlowsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3/IntentsClientTest.java | 2 +- .../google/cloud/dialogflow/cx/v3/PagesClientTest.java | 2 +- .../cx/v3/SecuritySettingsServiceClientTest.java | 2 +- .../dialogflow/cx/v3/SessionEntityTypesClientTest.java | 4 ++-- .../cloud/dialogflow/cx/v3/SessionsClientTest.java | 4 ++-- .../cloud/dialogflow/cx/v3/TestCasesClientTest.java | 4 ++-- .../cx/v3/TransitionRouteGroupsClientTest.java | 4 ++-- .../cloud/dialogflow/cx/v3/VersionsClientTest.java | 4 ++-- .../cloud/dialogflow/cx/v3/WebhooksClientTest.java | 4 ++-- .../cloud/dialogflow/cx/v3beta1/AgentsClientTest.java | 2 +- .../dialogflow/cx/v3beta1/EntityTypesClientTest.java | 2 +- .../dialogflow/cx/v3beta1/EnvironmentsClientTest.java | 2 +- .../dialogflow/cx/v3beta1/ExperimentsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3beta1/FlowsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3beta1/IntentsClientTest.java | 2 +- .../cloud/dialogflow/cx/v3beta1/PagesClientTest.java | 2 +- .../cx/v3beta1/SecuritySettingsServiceClientTest.java | 2 +- .../cx/v3beta1/SessionEntityTypesClientTest.java | 4 ++-- .../dialogflow/cx/v3beta1/SessionsClientTest.java | 4 ++-- .../dialogflow/cx/v3beta1/TestCasesClientTest.java | 4 ++-- .../cx/v3beta1/TransitionRouteGroupsClientTest.java | 4 ++-- .../dialogflow/cx/v3beta1/VersionsClientTest.java | 4 ++-- .../dialogflow/cx/v3beta1/WebhooksClientTest.java | 4 ++-- synth.metadata | 10 +++++----- 29 files changed, 45 insertions(+), 45 deletions(-) diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java index 57c312122..38adb9405 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/AgentsClientTest.java @@ -51,8 +51,8 @@ public class AgentsClientTest { private static MockAgents mockAgents; private static MockServiceHelper mockServiceHelper; - private AgentsClient client; private LocalChannelProvider channelProvider; + private AgentsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClientTest.java index a0a83c487..c79f1950c 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClientTest.java @@ -47,8 +47,8 @@ public class EntityTypesClientTest { private static MockEntityTypes mockEntityTypes; private static MockServiceHelper mockServiceHelper; - private EntityTypesClient client; private LocalChannelProvider channelProvider; + private EntityTypesClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java index 93bd62d61..c91cfe18c 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClientTest.java @@ -54,8 +54,8 @@ public class EnvironmentsClientTest { private static MockEnvironments mockEnvironments; private static MockServiceHelper mockServiceHelper; - private EnvironmentsClient client; private LocalChannelProvider channelProvider; + private EnvironmentsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClientTest.java index bfda37e4d..a66969038 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClientTest.java @@ -49,8 +49,8 @@ public class ExperimentsClientTest { private static MockExperiments mockExperiments; private static MockServiceHelper mockServiceHelper; - private ExperimentsClient client; private LocalChannelProvider channelProvider; + private ExperimentsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java index dc9e3350d..dd0cff843 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java @@ -52,8 +52,8 @@ public class FlowsClientTest { private static MockFlows mockFlows; private static MockServiceHelper mockServiceHelper; - private FlowsClient client; private LocalChannelProvider channelProvider; + private FlowsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java index 2bf878033..be0280ddf 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/IntentsClientTest.java @@ -48,8 +48,8 @@ public class IntentsClientTest { private static MockIntents mockIntents; private static MockServiceHelper mockServiceHelper; - private IntentsClient client; private LocalChannelProvider channelProvider; + private IntentsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/PagesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/PagesClientTest.java index d75037237..1feb11323 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/PagesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/PagesClientTest.java @@ -47,8 +47,8 @@ public class PagesClientTest { private static MockPages mockPages; private static MockServiceHelper mockServiceHelper; - private PagesClient client; private LocalChannelProvider channelProvider; + private PagesClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClientTest.java index a8215806f..07b0e387f 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClientTest.java @@ -47,8 +47,8 @@ public class SecuritySettingsServiceClientTest { private static MockSecuritySettingsService mockSecuritySettingsService; private static MockServiceHelper mockServiceHelper; - private SecuritySettingsServiceClient client; private LocalChannelProvider channelProvider; + private SecuritySettingsServiceClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClientTest.java index aa054191c..349543a9c 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClientTest.java @@ -45,10 +45,10 @@ @Generated("by gapic-generator-java") public class SessionEntityTypesClientTest { - private static MockSessionEntityTypes mockSessionEntityTypes; private static MockServiceHelper mockServiceHelper; - private SessionEntityTypesClient client; + private static MockSessionEntityTypes mockSessionEntityTypes; private LocalChannelProvider channelProvider; + private SessionEntityTypesClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionsClientTest.java index e6eb78daa..40d9c6539 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/SessionsClientTest.java @@ -46,10 +46,10 @@ @Generated("by gapic-generator-java") public class SessionsClientTest { - private static MockSessions mockSessions; private static MockServiceHelper mockServiceHelper; - private SessionsClient client; + private static MockSessions mockSessions; private LocalChannelProvider channelProvider; + private SessionsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java index 26491a1c1..05ec9be81 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TestCasesClientTest.java @@ -51,10 +51,10 @@ @Generated("by gapic-generator-java") public class TestCasesClientTest { - private static MockTestCases mockTestCases; private static MockServiceHelper mockServiceHelper; - private TestCasesClient client; + private static MockTestCases mockTestCases; private LocalChannelProvider channelProvider; + private TestCasesClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClientTest.java index f664b285c..671cc7524 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClientTest.java @@ -45,10 +45,10 @@ @Generated("by gapic-generator-java") public class TransitionRouteGroupsClientTest { - private static MockTransitionRouteGroups mockTransitionRouteGroups; private static MockServiceHelper mockServiceHelper; - private TransitionRouteGroupsClient client; + private static MockTransitionRouteGroups mockTransitionRouteGroups; private LocalChannelProvider channelProvider; + private TransitionRouteGroupsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/VersionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/VersionsClientTest.java index 7e8987eab..7fa4081e3 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/VersionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/VersionsClientTest.java @@ -49,10 +49,10 @@ @Generated("by gapic-generator-java") public class VersionsClientTest { - private static MockVersions mockVersions; private static MockServiceHelper mockServiceHelper; - private VersionsClient client; + private static MockVersions mockVersions; private LocalChannelProvider channelProvider; + private VersionsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/WebhooksClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/WebhooksClientTest.java index 50ce46d57..6ba4bd989 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/WebhooksClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/WebhooksClientTest.java @@ -45,10 +45,10 @@ @Generated("by gapic-generator-java") public class WebhooksClientTest { - private static MockWebhooks mockWebhooks; private static MockServiceHelper mockServiceHelper; - private WebhooksClient client; + private static MockWebhooks mockWebhooks; private LocalChannelProvider channelProvider; + private WebhooksClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java index 9c868f566..c37bc2274 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java @@ -51,8 +51,8 @@ public class AgentsClientTest { private static MockAgents mockAgents; private static MockServiceHelper mockServiceHelper; - private AgentsClient client; private LocalChannelProvider channelProvider; + private AgentsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClientTest.java index 01da65717..c3d3dd8aa 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClientTest.java @@ -47,8 +47,8 @@ public class EntityTypesClientTest { private static MockEntityTypes mockEntityTypes; private static MockServiceHelper mockServiceHelper; - private EntityTypesClient client; private LocalChannelProvider channelProvider; + private EntityTypesClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java index 73882c787..31014e742 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClientTest.java @@ -54,8 +54,8 @@ public class EnvironmentsClientTest { private static MockEnvironments mockEnvironments; private static MockServiceHelper mockServiceHelper; - private EnvironmentsClient client; private LocalChannelProvider channelProvider; + private EnvironmentsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClientTest.java index f324c865c..58aa53bf4 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClientTest.java @@ -49,8 +49,8 @@ public class ExperimentsClientTest { private static MockExperiments mockExperiments; private static MockServiceHelper mockServiceHelper; - private ExperimentsClient client; private LocalChannelProvider channelProvider; + private ExperimentsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java index 840cdd5ee..d20d0c78e 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java @@ -52,8 +52,8 @@ public class FlowsClientTest { private static MockFlows mockFlows; private static MockServiceHelper mockServiceHelper; - private FlowsClient client; private LocalChannelProvider channelProvider; + private FlowsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java index 2aec8c414..a8cc141be 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClientTest.java @@ -48,8 +48,8 @@ public class IntentsClientTest { private static MockIntents mockIntents; private static MockServiceHelper mockServiceHelper; - private IntentsClient client; private LocalChannelProvider channelProvider; + private IntentsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClientTest.java index bdac4b17f..4dc75b000 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClientTest.java @@ -47,8 +47,8 @@ public class PagesClientTest { private static MockPages mockPages; private static MockServiceHelper mockServiceHelper; - private PagesClient client; private LocalChannelProvider channelProvider; + private PagesClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClientTest.java index c9fa5122c..653840042 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClientTest.java @@ -47,8 +47,8 @@ public class SecuritySettingsServiceClientTest { private static MockSecuritySettingsService mockSecuritySettingsService; private static MockServiceHelper mockServiceHelper; - private SecuritySettingsServiceClient client; private LocalChannelProvider channelProvider; + private SecuritySettingsServiceClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClientTest.java index 8e6b963a4..3de534fb9 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClientTest.java @@ -45,10 +45,10 @@ @Generated("by gapic-generator-java") public class SessionEntityTypesClientTest { - private static MockSessionEntityTypes mockSessionEntityTypes; private static MockServiceHelper mockServiceHelper; - private SessionEntityTypesClient client; + private static MockSessionEntityTypes mockSessionEntityTypes; private LocalChannelProvider channelProvider; + private SessionEntityTypesClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java index 6136f3121..e7ae72dac 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java @@ -46,10 +46,10 @@ @Generated("by gapic-generator-java") public class SessionsClientTest { - private static MockSessions mockSessions; private static MockServiceHelper mockServiceHelper; - private SessionsClient client; + private static MockSessions mockSessions; private LocalChannelProvider channelProvider; + private SessionsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java index 23491aed7..3718673be 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClientTest.java @@ -51,10 +51,10 @@ @Generated("by gapic-generator-java") public class TestCasesClientTest { - private static MockTestCases mockTestCases; private static MockServiceHelper mockServiceHelper; - private TestCasesClient client; + private static MockTestCases mockTestCases; private LocalChannelProvider channelProvider; + private TestCasesClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClientTest.java index 68623437a..d6a4228b8 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClientTest.java @@ -45,10 +45,10 @@ @Generated("by gapic-generator-java") public class TransitionRouteGroupsClientTest { - private static MockTransitionRouteGroups mockTransitionRouteGroups; private static MockServiceHelper mockServiceHelper; - private TransitionRouteGroupsClient client; + private static MockTransitionRouteGroups mockTransitionRouteGroups; private LocalChannelProvider channelProvider; + private TransitionRouteGroupsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClientTest.java index 514ba6888..2693af313 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClientTest.java @@ -49,10 +49,10 @@ @Generated("by gapic-generator-java") public class VersionsClientTest { - private static MockVersions mockVersions; private static MockServiceHelper mockServiceHelper; - private VersionsClient client; + private static MockVersions mockVersions; private LocalChannelProvider channelProvider; + private VersionsClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClientTest.java index 8395afc6b..c218f43b5 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClientTest.java @@ -45,10 +45,10 @@ @Generated("by gapic-generator-java") public class WebhooksClientTest { - private static MockWebhooks mockWebhooks; private static MockServiceHelper mockServiceHelper; - private WebhooksClient client; + private static MockWebhooks mockWebhooks; private LocalChannelProvider channelProvider; + private WebhooksClient client; @BeforeClass public static void startStaticServer() { diff --git a/synth.metadata b/synth.metadata index 15aa1a746..a637bb834 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow-cx.git", - "sha": "06c8e0e9921916967e7d67174fc22016c42b925f" + "sha": "a2a78bf77ae137b54221af74bb4785adffa18f6a" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "90717db757582fdda158463c613ee6f5334a98a4", - "internalRef": "377947699" + "sha": "9e3105549a35520f215359065c11e8dce15e18af", + "internalRef": "378266372" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "90717db757582fdda158463c613ee6f5334a98a4", - "internalRef": "377947699" + "sha": "9e3105549a35520f215359065c11e8dce15e18af", + "internalRef": "378266372" } }, { From e52f20e59643b79b23b98f79fa255a4880472ce1 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Thu, 10 Jun 2021 12:33:04 -0600 Subject: [PATCH 08/23] chore: skip TrainFlow IT for now (#231) --- .../com/google/cloud/dialogflow/cx/v3beta1/it/ITSystemTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/it/ITSystemTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/it/ITSystemTest.java index d8f5c11de..8a363fa11 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/it/ITSystemTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/it/ITSystemTest.java @@ -89,6 +89,7 @@ import java.util.concurrent.ExecutionException; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; public class ITSystemTest { @@ -395,6 +396,7 @@ public void listFlowsTest() { } @Test + @Ignore("https://github.com/googleapis/java-dialogflow-cx/issues/230") public void trainFlowTest() throws ExecutionException, InterruptedException { Empty expectedResponse = Empty.newBuilder().build(); Empty response = flowsClient.trainFlowAsync(trainFlowName).get(); From 3209e54b870601bdc00ea16ca88f5c87ad811ce9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 11 Jun 2021 08:04:08 -0700 Subject: [PATCH 09/23] chore: release gapic-generator-java v1.0.12 (#236) Committer: @miraleung PiperOrigin-RevId: 378718217 Source-Author: Google APIs Source-Date: Thu Jun 10 13:08:49 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 08c4eeb531c01ad031134dca94b18e3f7dd35902 Source-Link: https://github.com/googleapis/googleapis/commit/08c4eeb531c01ad031134dca94b18e3f7dd35902 --- .../dialogflow/cx/v3/stub/AgentsStubSettings.java | 7 +++++++ .../dialogflow/cx/v3/stub/EntityTypesStubSettings.java | 7 +++++++ .../cx/v3/stub/EnvironmentsStubSettings.java | 7 +++++++ .../dialogflow/cx/v3/stub/ExperimentsStubSettings.java | 7 +++++++ .../cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java | 7 +++++++ .../dialogflow/cx/v3/stub/IntentsStubSettings.java | 7 +++++++ .../cloud/dialogflow/cx/v3/stub/PagesStubSettings.java | 7 +++++++ .../v3/stub/SecuritySettingsServiceStubSettings.java | 7 +++++++ .../cx/v3/stub/SessionEntityTypesStubSettings.java | 7 +++++++ .../dialogflow/cx/v3/stub/SessionsStubSettings.java | 7 +++++++ .../dialogflow/cx/v3/stub/TestCasesStubSettings.java | 7 +++++++ .../cx/v3/stub/TransitionRouteGroupsStubSettings.java | 7 +++++++ .../dialogflow/cx/v3/stub/VersionsStubSettings.java | 7 +++++++ .../dialogflow/cx/v3/stub/WebhooksStubSettings.java | 7 +++++++ .../dialogflow/cx/v3beta1/stub/AgentsStubSettings.java | 7 +++++++ .../cx/v3beta1/stub/EntityTypesStubSettings.java | 7 +++++++ .../cx/v3beta1/stub/EnvironmentsStubSettings.java | 7 +++++++ .../cx/v3beta1/stub/ExperimentsStubSettings.java | 7 +++++++ .../dialogflow/cx/v3beta1/stub/FlowsStubSettings.java | 7 +++++++ .../cx/v3beta1/stub/IntentsStubSettings.java | 7 +++++++ .../dialogflow/cx/v3beta1/stub/PagesStubSettings.java | 7 +++++++ .../stub/SecuritySettingsServiceStubSettings.java | 7 +++++++ .../v3beta1/stub/SessionEntityTypesStubSettings.java | 7 +++++++ .../cx/v3beta1/stub/SessionsStubSettings.java | 7 +++++++ .../cx/v3beta1/stub/TestCasesStubSettings.java | 7 +++++++ .../stub/TransitionRouteGroupsStubSettings.java | 7 +++++++ .../cx/v3beta1/stub/VersionsStubSettings.java | 7 +++++++ .../cx/v3beta1/stub/WebhooksStubSettings.java | 7 +++++++ synth.metadata | 10 +++++----- 29 files changed, 201 insertions(+), 5 deletions(-) diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java index ae9ff987b..27b93ef37 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/AgentsStubSettings.java @@ -259,6 +259,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -437,6 +442,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java index b6bcd0a04..0832ce14a 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java @@ -211,6 +211,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -357,6 +362,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java index b63e93398..d8c63250b 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EnvironmentsStubSettings.java @@ -437,6 +437,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -632,6 +637,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java index 42a437e7d..bc14d142d 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/ExperimentsStubSettings.java @@ -225,6 +225,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -385,6 +390,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java index ec88ab327..af8d89612 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/FlowsStubSettings.java @@ -273,6 +273,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -462,6 +467,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java index 138d8c7e2..035c04ee0 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/IntentsStubSettings.java @@ -205,6 +205,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -347,6 +352,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java index f2f190004..1c11a30ff 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/PagesStubSettings.java @@ -205,6 +205,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -347,6 +352,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java index 5d6cd412d..8334e97d9 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SecuritySettingsServiceStubSettings.java @@ -233,6 +233,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -384,6 +389,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java index 8e038c0af..f3ccdd86e 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionEntityTypesStubSettings.java @@ -238,6 +238,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -389,6 +394,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java index 0c6f142c4..df92e82ae 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java @@ -139,6 +139,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -296,6 +301,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java index fca9817f5..094222339 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStubSettings.java @@ -378,6 +378,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -598,6 +603,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java index 4c34633cd..87291904a 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TransitionRouteGroupsStubSettings.java @@ -244,6 +244,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -398,6 +403,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java index 49ec302ac..b4655f4ac 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/VersionsStubSettings.java @@ -235,6 +235,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -394,6 +399,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java index a33affe28..e6851ba4f 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/WebhooksStubSettings.java @@ -206,6 +206,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -348,6 +353,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java index a088c1aa7..a57b0e790 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/AgentsStubSettings.java @@ -260,6 +260,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -438,6 +443,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java index 2cdb0fcaf..8c407ffc0 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java @@ -212,6 +212,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -358,6 +363,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java index 97fa70c9f..353924a4f 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EnvironmentsStubSettings.java @@ -438,6 +438,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -633,6 +638,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java index bfe141a2c..c1aaa9d95 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExperimentsStubSettings.java @@ -226,6 +226,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -386,6 +391,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java index ef63bdb25..42377bc51 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/FlowsStubSettings.java @@ -274,6 +274,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -463,6 +468,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java index dd7a4ba97..a35795e74 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/IntentsStubSettings.java @@ -206,6 +206,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -348,6 +353,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java index d884846e4..ebe0cfe1a 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PagesStubSettings.java @@ -206,6 +206,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -348,6 +353,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java index 6d49150f3..2e35712a0 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SecuritySettingsServiceStubSettings.java @@ -234,6 +234,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -385,6 +390,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java index 5ae72b4eb..5002b9442 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionEntityTypesStubSettings.java @@ -239,6 +239,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -390,6 +395,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java index d7f70da6c..b92b6f2ba 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/SessionsStubSettings.java @@ -140,6 +140,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -297,6 +302,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java index 52853eb92..58b32531f 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStubSettings.java @@ -379,6 +379,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -599,6 +604,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java index 6eb80e34e..93c99781a 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TransitionRouteGroupsStubSettings.java @@ -245,6 +245,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -399,6 +404,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java index 7391f1169..c33ba79f9 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/VersionsStubSettings.java @@ -236,6 +236,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -395,6 +400,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java index 82b3a2cb0..1ee87bdd7 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/WebhooksStubSettings.java @@ -207,6 +207,11 @@ public static String getDefaultEndpoint() { return "dialogflow.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "dialogflow.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -349,6 +354,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/synth.metadata b/synth.metadata index a637bb834..ecf0c5872 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow-cx.git", - "sha": "a2a78bf77ae137b54221af74bb4785adffa18f6a" + "sha": "e52f20e59643b79b23b98f79fa255a4880472ce1" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "9e3105549a35520f215359065c11e8dce15e18af", - "internalRef": "378266372" + "sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902", + "internalRef": "378718217" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "9e3105549a35520f215359065c11e8dce15e18af", - "internalRef": "378266372" + "sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902", + "internalRef": "378718217" } }, { From d14161eb59c050b0a612a9c1aab3bab5c2166581 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 14 Jun 2021 09:10:02 -0700 Subject: [PATCH 10/23] fix!: Set agent default language code as required (#238) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5cbf6e13-833e-4879-a642-7270f8729446/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 378978212 Source-Link: https://github.com/googleapis/googleapis/commit/ecc3ac67807074d85054694a0574d387c862502d feat: Support partial response feature docs: Update docs of Agents, Fulfillments, SecuritySettings and Sessions --- .../dialogflow/cx/v3beta1/SessionsClient.java | 1 + .../cx/v3beta1/SessionsClientTest.java | 3 + .../cloud/dialogflow/cx/v3beta1/Agent.java | 42 +- .../dialogflow/cx/v3beta1/AgentOrBuilder.java | 12 +- .../dialogflow/cx/v3beta1/AgentProto.java | 220 ++++----- .../cx/v3beta1/DetectIntentResponse.java | 438 ++++++++++++++++++ .../DetectIntentResponseOrBuilder.java | 42 ++ .../dialogflow/cx/v3beta1/Fulfillment.java | 122 +++++ .../cx/v3beta1/FulfillmentOrBuilder.java | 21 + .../cx/v3beta1/FulfillmentProto.java | 58 +-- .../cx/v3beta1/QueryParameters.java | 35 +- .../cx/v3beta1/QueryParametersOrBuilder.java | 10 +- .../cx/v3beta1/SecuritySettings.java | 42 +- .../cx/v3beta1/SecuritySettingsOrBuilder.java | 12 +- .../dialogflow/cx/v3beta1/SessionProto.java | 320 ++++++------- .../v3beta1/StreamingDetectIntentRequest.java | 102 ++++ ...StreamingDetectIntentRequestOrBuilder.java | 16 + .../cloud/dialogflow/cx/v3beta1/agent.proto | 7 +- .../dialogflow/cx/v3beta1/fulfillment.proto | 11 + .../cx/v3beta1/security_settings.proto | 6 +- .../cloud/dialogflow/cx/v3beta1/session.proto | 33 +- synth.metadata | 10 +- 22 files changed, 1207 insertions(+), 356 deletions(-) diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java index 9597e0e6e..49d178e9d 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java @@ -241,6 +241,7 @@ public final UnaryCallable detectInte * .setQueryParams(QueryParameters.newBuilder().build()) * .setQueryInput(QueryInput.newBuilder().build()) * .setOutputAudioConfig(OutputAudioConfig.newBuilder().build()) + * .setEnablePartialResponse(true) * .build(); * bidiStream.send(request); * for (StreamingDetectIntentResponse response : bidiStream) { diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java index e7ae72dac..24be9722c 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClientTest.java @@ -90,6 +90,7 @@ public void detectIntentTest() throws Exception { .setQueryResult(QueryResult.newBuilder().build()) .setOutputAudio(ByteString.EMPTY) .setOutputAudioConfig(OutputAudioConfig.newBuilder().build()) + .setAllowCancellation(true) .build(); mockSessions.addResponse(expectedResponse); @@ -158,6 +159,7 @@ public void streamingDetectIntentTest() throws Exception { .setQueryParams(QueryParameters.newBuilder().build()) .setQueryInput(QueryInput.newBuilder().build()) .setOutputAudioConfig(OutputAudioConfig.newBuilder().build()) + .setEnablePartialResponse(true) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); @@ -188,6 +190,7 @@ public void streamingDetectIntentExceptionTest() throws Exception { .setQueryParams(QueryParameters.newBuilder().build()) .setQueryInput(QueryInput.newBuilder().build()) .setOutputAudioConfig(OutputAudioConfig.newBuilder().build()) + .setEnablePartialResponse(true) .build(); MockStreamObserver responseObserver = new MockStreamObserver<>(); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java index 32079a43a..48ef73d65 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java @@ -325,14 +325,16 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Immutable. The default language of the agent as a language tag.
+   * Required. Immutable. The default language of the agent as a language tag.
    * See [Language
    * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
    * for a list of the currently supported language codes.
    * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
    * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The defaultLanguageCode. */ @@ -352,14 +354,16 @@ public java.lang.String getDefaultLanguageCode() { * * *
-   * Immutable. The default language of the agent as a language tag.
+   * Required. Immutable. The default language of the agent as a language tag.
    * See [Language
    * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
    * for a list of the currently supported language codes.
    * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
    * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for defaultLanguageCode. */ @@ -1566,14 +1570,16 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Immutable. The default language of the agent as a language tag.
+     * Required. Immutable. The default language of the agent as a language tag.
      * See [Language
      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
      * for a list of the currently supported language codes.
      * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
      * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The defaultLanguageCode. */ @@ -1592,14 +1598,16 @@ public java.lang.String getDefaultLanguageCode() { * * *
-     * Immutable. The default language of the agent as a language tag.
+     * Required. Immutable. The default language of the agent as a language tag.
      * See [Language
      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
      * for a list of the currently supported language codes.
      * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
      * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for defaultLanguageCode. */ @@ -1618,14 +1626,16 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { * * *
-     * Immutable. The default language of the agent as a language tag.
+     * Required. Immutable. The default language of the agent as a language tag.
      * See [Language
      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
      * for a list of the currently supported language codes.
      * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
      * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @param value The defaultLanguageCode to set. * @return This builder for chaining. @@ -1643,14 +1653,16 @@ public Builder setDefaultLanguageCode(java.lang.String value) { * * *
-     * Immutable. The default language of the agent as a language tag.
+     * Required. Immutable. The default language of the agent as a language tag.
      * See [Language
      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
      * for a list of the currently supported language codes.
      * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
      * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return This builder for chaining. */ @@ -1664,14 +1676,16 @@ public Builder clearDefaultLanguageCode() { * * *
-     * Immutable. The default language of the agent as a language tag.
+     * Required. Immutable. The default language of the agent as a language tag.
      * See [Language
      * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
      * for a list of the currently supported language codes.
      * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
      * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @param value The bytes for defaultLanguageCode to set. * @return This builder for chaining. diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java index eb6478fb4..b455a0b2f 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java @@ -83,14 +83,16 @@ public interface AgentOrBuilder * * *
-   * Immutable. The default language of the agent as a language tag.
+   * Required. Immutable. The default language of the agent as a language tag.
    * See [Language
    * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
    * for a list of the currently supported language codes.
    * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
    * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The defaultLanguageCode. */ @@ -99,14 +101,16 @@ public interface AgentOrBuilder * * *
-   * Immutable. The default language of the agent as a language tag.
+   * Required. Immutable. The default language of the agent as a language tag.
    * See [Language
    * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language)
    * for a list of the currently supported language codes.
    * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
    * 
* - * string default_language_code = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * * * @return The bytes for defaultLanguageCode. */ diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java index 92b401a87..f507d8d8e 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java @@ -103,117 +103,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "unning/operations.proto\032\033google/protobuf" + "/empty.proto\032 google/protobuf/field_mask" + ".proto\"8\n\024SpeechToTextSettings\022 \n\030enable" - + "_speech_adaptation\030\001 \001(\010\"\275\004\n\005Agent\022\014\n\004na" - + "me\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\"\n\025d" - + "efault_language_code\030\003 \001(\tB\003\340A\005\022 \n\030suppo" - + "rted_language_codes\030\004 \003(\t\022\026\n\ttime_zone\030\005" - + " \001(\tB\003\340A\002\022\023\n\013description\030\006 \001(\t\022\022\n\navatar" - + "_uri\030\007 \001(\t\022Y\n\027speech_to_text_settings\030\r " - + "\001(\01328.google.cloud.dialogflow.cx.v3beta1" - + ".SpeechToTextSettings\022:\n\nstart_flow\030\020 \001(" - + "\tB&\340A\005\372A \n\036dialogflow.googleapis.com/Flo" - + "w\022J\n\021security_settings\030\021 \001(\tB/\372A,\n*dialo" - + "gflow.googleapis.com/SecuritySettings\022\"\n" - + "\032enable_stackdriver_logging\030\022 \001(\010\022\037\n\027ena" - + "ble_spell_correction\030\024 \001(\010:\\\352AY\n\037dialogf" - + "low.googleapis.com/Agent\0226projects/{proj" - + "ect}/locations/{location}/agents/{agent}" - + "\"s\n\021ListAgentsRequest\0227\n\006parent\030\001 \001(\tB\'\340" - + "A\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" - + "\022ListAgentsResponse\0229\n\006agents\030\001 \003(\0132).go" - + "ogle.cloud.dialogflow.cx.v3beta1.Agent\022\027" - + "\n\017next_page_token\030\002 \001(\t\"H\n\017GetAgentReque" - + "st\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.goo" - + "gleapis.com/Agent\"\214\001\n\022CreateAgentRequest" - + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow.goo" - + "gleapis.com/Agent\022=\n\005agent\030\002 \001(\0132).googl" - + "e.cloud.dialogflow.cx.v3beta1.AgentB\003\340A\002" - + "\"\204\001\n\022UpdateAgentRequest\022=\n\005agent\030\001 \001(\0132)" + + "_speech_adaptation\030\001 \001(\010\"\300\004\n\005Agent\022\014\n\004na" + + "me\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022%\n\025d" + + "efault_language_code\030\003 \001(\tB\006\340A\002\340A\005\022 \n\030su" + + "pported_language_codes\030\004 \003(\t\022\026\n\ttime_zon" + + "e\030\005 \001(\tB\003\340A\002\022\023\n\013description\030\006 \001(\t\022\022\n\nava" + + "tar_uri\030\007 \001(\t\022Y\n\027speech_to_text_settings" + + "\030\r \001(\01328.google.cloud.dialogflow.cx.v3be" + + "ta1.SpeechToTextSettings\022:\n\nstart_flow\030\020" + + " \001(\tB&\340A\005\372A \n\036dialogflow.googleapis.com/" + + "Flow\022J\n\021security_settings\030\021 \001(\tB/\372A,\n*di" + + "alogflow.googleapis.com/SecuritySettings" + + "\022\"\n\032enable_stackdriver_logging\030\022 \001(\010\022\037\n\027" + + "enable_spell_correction\030\024 \001(\010:\\\352AY\n\037dial" + + "ogflow.googleapis.com/Agent\0226projects/{p" + + "roject}/locations/{location}/agents/{age" + + "nt}\"s\n\021ListAgentsRequest\0227\n\006parent\030\001 \001(\t" + + "B\'\340A\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" - + "tB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMask\"K\n\022DeleteAgentRequest\0225\n" - + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleap" - + "is.com/Agent\"\247\001\n\022ExportAgentRequest\0225\n\004n" - + "ame\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis" - + ".com/Agent\022\026\n\tagent_uri\030\002 \001(\tB\003\340A\001\022B\n\013en" - + "vironment\030\005 \001(\tB-\340A\001\372A\'\n%dialogflow.goog" - + "leapis.com/Environment\"L\n\023ExportAgentRes" - + "ponse\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_cont" - + "ent\030\002 \001(\014H\000B\007\n\005agent\"\253\002\n\023RestoreAgentReq" - + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.g" - + "oogleapis.com/Agent\022\023\n\tagent_uri\030\002 \001(\tH\000" - + "\022\027\n\ragent_content\030\003 \001(\014H\000\022]\n\016restore_opt" - + "ion\030\005 \001(\0162E.google.cloud.dialogflow.cx.v" - + "3beta1.RestoreAgentRequest.RestoreOption" - + "\"G\n\rRestoreOption\022\036\n\032RESTORE_OPTION_UNSP" - + "ECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\007\n\005age" - + "nt\"d\n\024ValidateAgentRequest\0225\n\004name\030\001 \001(\t" - + "B\'\340A\002\372A!\n\037dialogflow.googleapis.com/Agen" - + "t\022\025\n\rlanguage_code\030\002 \001(\t\"\177\n\037GetAgentVali" - + "dationResultRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A" - + "1\n/dialogflow.googleapis.com/AgentValida" - + "tionResult\022\025\n\rlanguage_code\030\002 \001(\t\"\377\001\n\025Ag" - + "entValidationResult\022\014\n\004name\030\001 \001(\t\022Y\n\027flo" - + "w_validation_results\030\002 \003(\01328.google.clou" - + "d.dialogflow.cx.v3beta1.FlowValidationRe" - + "sult:}\352Az\n/dialogflow.googleapis.com/Age" - + "ntValidationResult\022Gprojects/{project}/l" - + "ocations/{location}/agents/{agent}/valid" - + "ationResult2\221\017\n\006Agents\022\275\001\n\nListAgents\0225." - + "google.cloud.dialogflow.cx.v3beta1.ListA" - + "gentsRequest\0326.google.cloud.dialogflow.c" - + "x.v3beta1.ListAgentsResponse\"@\202\323\344\223\0021\022//v" - + "3beta1/{parent=projects/*/locations/*}/a" - + "gents\332A\006parent\022\252\001\n\010GetAgent\0223.google.clo" - + "ud.dialogflow.cx.v3beta1.GetAgentRequest" - + "\032).google.cloud.dialogflow.cx.v3beta1.Ag" - + "ent\">\202\323\344\223\0021\022//v3beta1/{name=projects/*/l" - + "ocations/*/agents/*}\332A\004name\022\277\001\n\013CreateAg" - + "ent\0226.google.cloud.dialogflow.cx.v3beta1" - + ".CreateAgentRequest\032).google.cloud.dialo" - + "gflow.cx.v3beta1.Agent\"M\202\323\344\223\0028\"//v3beta1" - + "/{parent=projects/*/locations/*}/agents:" - + "\005agent\332A\014parent,agent\022\312\001\n\013UpdateAgent\0226." - + "google.cloud.dialogflow.cx.v3beta1.Updat" - + "eAgentRequest\032).google.cloud.dialogflow." - + "cx.v3beta1.Agent\"X\202\323\344\223\002>25/v3beta1/{agen" - + "t.name=projects/*/locations/*/agents/*}:" - + "\005agent\332A\021agent,update_mask\022\235\001\n\013DeleteAge" - + "nt\0226.google.cloud.dialogflow.cx.v3beta1." - + "DeleteAgentRequest\032\026.google.protobuf.Emp" - + "ty\">\202\323\344\223\0021*//v3beta1/{name=projects/*/lo" - + "cations/*/agents/*}\332A\004name\022\327\001\n\013ExportAge" - + "nt\0226.google.cloud.dialogflow.cx.v3beta1." - + "ExportAgentRequest\032\035.google.longrunning." - + "Operation\"q\202\323\344\223\002;\"6/v3beta1/{name=projec" - + "ts/*/locations/*/agents/*}:export:\001*\312A-\n" - + "\023ExportAgentResponse\022\026google.protobuf.St" - + "ruct\022\334\001\n\014RestoreAgent\0227.google.cloud.dia" - + "logflow.cx.v3beta1.RestoreAgentRequest\032\035" - + ".google.longrunning.Operation\"t\202\323\344\223\002<\"7/" - + "v3beta1/{name=projects/*/locations/*/age" - + "nts/*}:restore:\001*\312A/\n\025google.protobuf.Em" - + "pty\022\026google.protobuf.Struct\022\311\001\n\rValidate" - + "Agent\0228.google.cloud.dialogflow.cx.v3bet" - + "a1.ValidateAgentRequest\0329.google.cloud.d" - + "ialogflow.cx.v3beta1.AgentValidationResu" - + "lt\"C\202\323\344\223\002=\"8/v3beta1/{name=projects/*/lo" - + "cations/*/agents/*}:validate:\001*\022\353\001\n\030GetA" - + "gentValidationResult\022C.google.cloud.dial" - + "ogflow.cx.v3beta1.GetAgentValidationResu" - + "ltRequest\0329.google.cloud.dialogflow.cx.v" - + "3beta1.AgentValidationResult\"O\202\323\344\223\002B\022@/v" - + "3beta1/{name=projects/*/locations/*/agen" - + "ts/*/validationResult}\332A\004name\032x\312A\031dialog" - + "flow.googleapis.com\322AYhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/dialogflowB\251\001\n&com." - + "google.cloud.dialogflow.cx.v3beta1B\nAgen" - + "tProtoP\001ZDgoogle.golang.org/genproto/goo" - + "gleapis/cloud/dialogflow/cx/v3beta1;cx\370\001" - + "\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Be" - + "ta1b\006proto3" + + "t\022\027\n\017next_page_token\030\002 \001(\t\"H\n\017GetAgentRe" + + "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow." + + "googleapis.com/Agent\"\214\001\n\022CreateAgentRequ" + + "est\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow." + + "googleapis.com/Agent\022=\n\005agent\030\002 \001(\0132).go" + + "ogle.cloud.dialogflow.cx.v3beta1.AgentB\003" + + "\340A\002\"\204\001\n\022UpdateAgentRequest\022=\n\005agent\030\001 \001(" + + "\0132).google.cloud.dialogflow.cx.v3beta1.A" + + "gentB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMask\"K\n\022DeleteAgentRequest" + + "\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googl" + + "eapis.com/Agent\"\247\001\n\022ExportAgentRequest\0225" + + "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googlea" + + "pis.com/Agent\022\026\n\tagent_uri\030\002 \001(\tB\003\340A\001\022B\n" + + "\013environment\030\005 \001(\tB-\340A\001\372A\'\n%dialogflow.g" + + "oogleapis.com/Environment\"L\n\023ExportAgent" + + "Response\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_c" + + "ontent\030\002 \001(\014H\000B\007\n\005agent\"\253\002\n\023RestoreAgent" + + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflo" + + "w.googleapis.com/Agent\022\023\n\tagent_uri\030\002 \001(" + + "\tH\000\022\027\n\ragent_content\030\003 \001(\014H\000\022]\n\016restore_" + + "option\030\005 \001(\0162E.google.cloud.dialogflow.c" + + "x.v3beta1.RestoreAgentRequest.RestoreOpt" + + "ion\"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\"d\n\024ValidateAgentRequest\0225\n\004name\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.com/A" + + "gent\022\025\n\rlanguage_code\030\002 \001(\t\"\177\n\037GetAgentV" + + "alidationResultRequest\022E\n\004name\030\001 \001(\tB7\340A" + + "\002\372A1\n/dialogflow.googleapis.com/AgentVal" + + "idationResult\022\025\n\rlanguage_code\030\002 \001(\t\"\377\001\n" + + "\025AgentValidationResult\022\014\n\004name\030\001 \001(\t\022Y\n\027" + + "flow_validation_results\030\002 \003(\01328.google.c" + + "loud.dialogflow.cx.v3beta1.FlowValidatio" + + "nResult:}\352Az\n/dialogflow.googleapis.com/" + + "AgentValidationResult\022Gprojects/{project" + + "}/locations/{location}/agents/{agent}/va" + + "lidationResult2\221\017\n\006Agents\022\275\001\n\nListAgents" + + "\0225.google.cloud.dialogflow.cx.v3beta1.Li" + + "stAgentsRequest\0326.google.cloud.dialogflo" + + "w.cx.v3beta1.ListAgentsResponse\"@\202\323\344\223\0021\022" + + "//v3beta1/{parent=projects/*/locations/*" + + "}/agents\332A\006parent\022\252\001\n\010GetAgent\0223.google." + + "cloud.dialogflow.cx.v3beta1.GetAgentRequ" + + "est\032).google.cloud.dialogflow.cx.v3beta1" + + ".Agent\">\202\323\344\223\0021\022//v3beta1/{name=projects/" + + "*/locations/*/agents/*}\332A\004name\022\277\001\n\013Creat" + + "eAgent\0226.google.cloud.dialogflow.cx.v3be" + + "ta1.CreateAgentRequest\032).google.cloud.di" + + "alogflow.cx.v3beta1.Agent\"M\202\323\344\223\0028\"//v3be" + + "ta1/{parent=projects/*/locations/*}/agen" + + "ts:\005agent\332A\014parent,agent\022\312\001\n\013UpdateAgent" + + "\0226.google.cloud.dialogflow.cx.v3beta1.Up" + + "dateAgentRequest\032).google.cloud.dialogfl" + + "ow.cx.v3beta1.Agent\"X\202\323\344\223\002>25/v3beta1/{a" + + "gent.name=projects/*/locations/*/agents/" + + "*}:\005agent\332A\021agent,update_mask\022\235\001\n\013Delete" + + "Agent\0226.google.cloud.dialogflow.cx.v3bet" + + "a1.DeleteAgentRequest\032\026.google.protobuf." + + "Empty\">\202\323\344\223\0021*//v3beta1/{name=projects/*" + + "/locations/*/agents/*}\332A\004name\022\327\001\n\013Export" + + "Agent\0226.google.cloud.dialogflow.cx.v3bet" + + "a1.ExportAgentRequest\032\035.google.longrunni" + + "ng.Operation\"q\202\323\344\223\002;\"6/v3beta1/{name=pro" + + "jects/*/locations/*/agents/*}:export:\001*\312" + + "A-\n\023ExportAgentResponse\022\026google.protobuf" + + ".Struct\022\334\001\n\014RestoreAgent\0227.google.cloud." + + "dialogflow.cx.v3beta1.RestoreAgentReques" + + "t\032\035.google.longrunning.Operation\"t\202\323\344\223\002<" + + "\"7/v3beta1/{name=projects/*/locations/*/" + + "agents/*}:restore:\001*\312A/\n\025google.protobuf" + + ".Empty\022\026google.protobuf.Struct\022\311\001\n\rValid" + + "ateAgent\0228.google.cloud.dialogflow.cx.v3" + + "beta1.ValidateAgentRequest\0329.google.clou" + + "d.dialogflow.cx.v3beta1.AgentValidationR" + + "esult\"C\202\323\344\223\002=\"8/v3beta1/{name=projects/*" + + "/locations/*/agents/*}:validate:\001*\022\353\001\n\030G" + + "etAgentValidationResult\022C.google.cloud.d" + + "ialogflow.cx.v3beta1.GetAgentValidationR" + + "esultRequest\0329.google.cloud.dialogflow.c" + + "x.v3beta1.AgentValidationResult\"O\202\323\344\223\002B\022" + + "@/v3beta1/{name=projects/*/locations/*/a" + + "gents/*/validationResult}\332A\004name\032x\312A\031dia" + + "logflow.googleapis.com\322AYhttps://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/dialogflowB\251\001\n&c" + + "om.google.cloud.dialogflow.cx.v3beta1B\nA" + + "gentProtoP\001ZDgoogle.golang.org/genproto/" + + "googleapis/cloud/dialogflow/cx/v3beta1;c" + + "x\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V" + + "3Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java index c144fbed4..c84bebdc1 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java @@ -40,6 +40,7 @@ private DetectIntentResponse(com.google.protobuf.GeneratedMessageV3.Builder b private DetectIntentResponse() { responseId_ = ""; outputAudio_ = com.google.protobuf.ByteString.EMPTY; + responseType_ = 0; } @java.lang.Override @@ -115,6 +116,18 @@ private DetectIntentResponse( outputAudioConfig_ = subBuilder.buildPartial(); } + break; + } + case 48: + { + int rawValue = input.readEnum(); + + responseType_ = rawValue; + break; + } + case 56: + { + allowCancellation_ = input.readBool(); break; } default: @@ -151,6 +164,169 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.Builder.class); } + /** + * + * + *
+   * Represents different DetectIntentResponse types.
+   * 
+ * + * Protobuf enum {@code google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType} + */ + public enum ResponseType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified. This should never happen.
+     * 
+ * + * RESPONSE_TYPE_UNSPECIFIED = 0; + */ + RESPONSE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Partial response. e.g. Aggregated responses in a Fulfillment that enables
+     * `return_partial_response` can be returned as partial response.
+     * WARNING: partial response is not eligible for barge-in.
+     * 
+ * + * PARTIAL = 1; + */ + PARTIAL(1), + /** + * + * + *
+     * Final response.
+     * 
+ * + * FINAL = 2; + */ + FINAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified. This should never happen.
+     * 
+ * + * RESPONSE_TYPE_UNSPECIFIED = 0; + */ + public static final int RESPONSE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Partial response. e.g. Aggregated responses in a Fulfillment that enables
+     * `return_partial_response` can be returned as partial response.
+     * WARNING: partial response is not eligible for barge-in.
+     * 
+ * + * PARTIAL = 1; + */ + public static final int PARTIAL_VALUE = 1; + /** + * + * + *
+     * Final response.
+     * 
+ * + * FINAL = 2; + */ + public static final int FINAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResponseType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ResponseType forNumber(int value) { + switch (value) { + case 0: + return RESPONSE_TYPE_UNSPECIFIED; + case 1: + return PARTIAL; + case 2: + return FINAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ResponseType findValueByNumber(int number) { + return ResponseType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ResponseType[] VALUES = values(); + + public static ResponseType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ResponseType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType) + } + public static final int RESPONSE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object responseId_; /** @@ -326,6 +502,68 @@ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig getOutputAudioCo return getOutputAudioConfig(); } + public static final int RESPONSE_TYPE_FIELD_NUMBER = 6; + private int responseType_; + /** + * + * + *
+   * Response type.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @return The enum numeric value on the wire for responseType. + */ + @java.lang.Override + public int getResponseTypeValue() { + return responseType_; + } + /** + * + * + *
+   * Response type.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @return The responseType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType + getResponseType() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType result = + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.valueOf( + responseType_); + return result == null + ? com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.UNRECOGNIZED + : result; + } + + public static final int ALLOW_CANCELLATION_FIELD_NUMBER = 7; + private boolean allowCancellation_; + /** + * + * + *
+   * Indicates whether the partial response can be cancelled when a later
+   * response arrives. e.g. if the agent specified some music as partial
+   * response, it can be cancelled.
+   * 
+ * + * bool allow_cancellation = 7; + * + * @return The allowCancellation. + */ + @java.lang.Override + public boolean getAllowCancellation() { + return allowCancellation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -352,6 +590,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputAudioConfig_ != null) { output.writeMessage(5, getOutputAudioConfig()); } + if (responseType_ + != com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType + .RESPONSE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, responseType_); + } + if (allowCancellation_ != false) { + output.writeBool(7, allowCancellation_); + } unknownFields.writeTo(output); } @@ -373,6 +620,15 @@ public int getSerializedSize() { if (outputAudioConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputAudioConfig()); } + if (responseType_ + != com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType + .RESPONSE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, responseType_); + } + if (allowCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, allowCancellation_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -399,6 +655,8 @@ public boolean equals(final java.lang.Object obj) { if (hasOutputAudioConfig()) { if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false; } + if (responseType_ != other.responseType_) return false; + if (getAllowCancellation() != other.getAllowCancellation()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -422,6 +680,10 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_AUDIO_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getOutputAudioConfig().hashCode(); } + hash = (37 * hash) + RESPONSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + responseType_; + hash = (37 * hash) + ALLOW_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCancellation()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -584,6 +846,10 @@ public Builder clear() { outputAudioConfig_ = null; outputAudioConfigBuilder_ = null; } + responseType_ = 0; + + allowCancellation_ = false; + return this; } @@ -623,6 +889,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse buildPartial( } else { result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); } + result.responseType_ = responseType_; + result.allowCancellation_ = allowCancellation_; onBuilt(); return result; } @@ -686,6 +954,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResp if (other.hasOutputAudioConfig()) { mergeOutputAudioConfig(other.getOutputAudioConfig()); } + if (other.responseType_ != 0) { + setResponseTypeValue(other.getResponseTypeValue()); + } + if (other.getAllowCancellation() != false) { + setAllowCancellation(other.getAllowCancellation()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1286,6 +1560,170 @@ public Builder clearOutputAudioConfig() { return outputAudioConfigBuilder_; } + private int responseType_ = 0; + /** + * + * + *
+     * Response type.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @return The enum numeric value on the wire for responseType. + */ + @java.lang.Override + public int getResponseTypeValue() { + return responseType_; + } + /** + * + * + *
+     * Response type.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @param value The enum numeric value on the wire for responseType to set. + * @return This builder for chaining. + */ + public Builder setResponseTypeValue(int value) { + + responseType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Response type.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @return The responseType. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType + getResponseType() { + @SuppressWarnings("deprecation") + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType result = + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.valueOf( + responseType_); + return result == null + ? com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Response type.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @param value The responseType to set. + * @return This builder for chaining. + */ + public Builder setResponseType( + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType value) { + if (value == null) { + throw new NullPointerException(); + } + + responseType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Response type.
+     * 
+ * + * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearResponseType() { + + responseType_ = 0; + onChanged(); + return this; + } + + private boolean allowCancellation_; + /** + * + * + *
+     * Indicates whether the partial response can be cancelled when a later
+     * response arrives. e.g. if the agent specified some music as partial
+     * response, it can be cancelled.
+     * 
+ * + * bool allow_cancellation = 7; + * + * @return The allowCancellation. + */ + @java.lang.Override + public boolean getAllowCancellation() { + return allowCancellation_; + } + /** + * + * + *
+     * Indicates whether the partial response can be cancelled when a later
+     * response arrives. e.g. if the agent specified some music as partial
+     * response, it can be cancelled.
+     * 
+ * + * bool allow_cancellation = 7; + * + * @param value The allowCancellation to set. + * @return This builder for chaining. + */ + public Builder setAllowCancellation(boolean value) { + + allowCancellation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates whether the partial response can be cancelled when a later
+     * response arrives. e.g. if the agent specified some music as partial
+     * response, it can be cancelled.
+     * 
+ * + * bool allow_cancellation = 7; + * + * @return This builder for chaining. + */ + public Builder clearAllowCancellation() { + + allowCancellation_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseOrBuilder.java index 0acc80768..73ed305fe 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseOrBuilder.java @@ -141,4 +141,46 @@ public interface DetectIntentResponseOrBuilder * .google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5; */ com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder(); + + /** + * + * + *
+   * Response type.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @return The enum numeric value on the wire for responseType. + */ + int getResponseTypeValue(); + /** + * + * + *
+   * Response type.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType response_type = 6; + * + * + * @return The responseType. + */ + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType getResponseType(); + + /** + * + * + *
+   * Indicates whether the partial response can be cancelled when a later
+   * response arrives. e.g. if the agent specified some music as partial
+   * response, it can be cancelled.
+   * 
+ * + * bool allow_cancellation = 7; + * + * @return The allowCancellation. + */ + boolean getAllowCancellation(); } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java index f45b0543c..935d8967e 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java @@ -140,6 +140,11 @@ private Fulfillment( extensionRegistry)); break; } + case 64: + { + returnPartialResponses_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -5150,6 +5155,32 @@ public com.google.protobuf.ByteString getWebhookBytes() { } } + public static final int RETURN_PARTIAL_RESPONSES_FIELD_NUMBER = 8; + private boolean returnPartialResponses_; + /** + * + * + *
+   * Whether Dialogflow should return currently queued fulfillment response
+   * messages in streaming APIs. If a webhook is specified, it happens before
+   * Dialogflow invokes webhook.
+   * Warning:
+   * 1) This flag only affects streaming API. Responses are still queued
+   * and returned once in non-streaming API.
+   * 2) The flag can be enabled in any fulfillment but only the first 3 partial
+   * responses will be returned. You may only want to apply it to fulfillments
+   * that have slow webhooks.
+   * 
+ * + * bool return_partial_responses = 8; + * + * @return The returnPartialResponses. + */ + @java.lang.Override + public boolean getReturnPartialResponses() { + return returnPartialResponses_; + } + public static final int TAG_FIELD_NUMBER = 3; private volatile java.lang.Object tag_; /** @@ -5398,6 +5429,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < conditionalCases_.size(); i++) { output.writeMessage(5, conditionalCases_.get(i)); } + if (returnPartialResponses_ != false) { + output.writeBool(8, returnPartialResponses_); + } unknownFields.writeTo(output); } @@ -5423,6 +5457,9 @@ public int getSerializedSize() { for (int i = 0; i < conditionalCases_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, conditionalCases_.get(i)); } + if (returnPartialResponses_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, returnPartialResponses_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -5441,6 +5478,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMessagesList().equals(other.getMessagesList())) return false; if (!getWebhook().equals(other.getWebhook())) return false; + if (getReturnPartialResponses() != other.getReturnPartialResponses()) return false; if (!getTag().equals(other.getTag())) return false; if (!getSetParameterActionsList().equals(other.getSetParameterActionsList())) return false; if (!getConditionalCasesList().equals(other.getConditionalCasesList())) return false; @@ -5461,6 +5499,8 @@ public int hashCode() { } hash = (37 * hash) + WEBHOOK_FIELD_NUMBER; hash = (53 * hash) + getWebhook().hashCode(); + hash = (37 * hash) + RETURN_PARTIAL_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialResponses()); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); if (getSetParameterActionsCount() > 0) { @@ -5636,6 +5676,8 @@ public Builder clear() { } webhook_ = ""; + returnPartialResponses_ = false; + tag_ = ""; if (setParameterActionsBuilder_ == null) { @@ -5688,6 +5730,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment buildPartial() { result.messages_ = messagesBuilder_.build(); } result.webhook_ = webhook_; + result.returnPartialResponses_ = returnPartialResponses_; result.tag_ = tag_; if (setParameterActionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { @@ -5788,6 +5831,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment othe webhook_ = other.webhook_; onChanged(); } + if (other.getReturnPartialResponses() != false) { + setReturnPartialResponses(other.getReturnPartialResponses()); + } if (!other.getTag().isEmpty()) { tag_ = other.tag_; onChanged(); @@ -6354,6 +6400,82 @@ public Builder setWebhookBytes(com.google.protobuf.ByteString value) { return this; } + private boolean returnPartialResponses_; + /** + * + * + *
+     * Whether Dialogflow should return currently queued fulfillment response
+     * messages in streaming APIs. If a webhook is specified, it happens before
+     * Dialogflow invokes webhook.
+     * Warning:
+     * 1) This flag only affects streaming API. Responses are still queued
+     * and returned once in non-streaming API.
+     * 2) The flag can be enabled in any fulfillment but only the first 3 partial
+     * responses will be returned. You may only want to apply it to fulfillments
+     * that have slow webhooks.
+     * 
+ * + * bool return_partial_responses = 8; + * + * @return The returnPartialResponses. + */ + @java.lang.Override + public boolean getReturnPartialResponses() { + return returnPartialResponses_; + } + /** + * + * + *
+     * Whether Dialogflow should return currently queued fulfillment response
+     * messages in streaming APIs. If a webhook is specified, it happens before
+     * Dialogflow invokes webhook.
+     * Warning:
+     * 1) This flag only affects streaming API. Responses are still queued
+     * and returned once in non-streaming API.
+     * 2) The flag can be enabled in any fulfillment but only the first 3 partial
+     * responses will be returned. You may only want to apply it to fulfillments
+     * that have slow webhooks.
+     * 
+ * + * bool return_partial_responses = 8; + * + * @param value The returnPartialResponses to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialResponses(boolean value) { + + returnPartialResponses_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether Dialogflow should return currently queued fulfillment response
+     * messages in streaming APIs. If a webhook is specified, it happens before
+     * Dialogflow invokes webhook.
+     * Warning:
+     * 1) This flag only affects streaming API. Responses are still queued
+     * and returned once in non-streaming API.
+     * 2) The flag can be enabled in any fulfillment but only the first 3 partial
+     * responses will be returned. You may only want to apply it to fulfillments
+     * that have slow webhooks.
+     * 
+ * + * bool return_partial_responses = 8; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialResponses() { + + returnPartialResponses_ = false; + onChanged(); + return this; + } + private java.lang.Object tag_ = ""; /** * diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentOrBuilder.java index 82858d573..30f9e6da2 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentOrBuilder.java @@ -104,6 +104,27 @@ public interface FulfillmentOrBuilder */ com.google.protobuf.ByteString getWebhookBytes(); + /** + * + * + *
+   * Whether Dialogflow should return currently queued fulfillment response
+   * messages in streaming APIs. If a webhook is specified, it happens before
+   * Dialogflow invokes webhook.
+   * Warning:
+   * 1) This flag only affects streaming API. Responses are still queued
+   * and returned once in non-streaming API.
+   * 2) The flag can be enabled in any fulfillment but only the first 3 partial
+   * responses will be returned. You may only want to apply it to fulfillments
+   * that have slow webhooks.
+   * 
+ * + * bool return_partial_responses = 8; + * + * @return The returnPartialResponses. + */ + boolean getReturnPartialResponses(); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentProto.java index da558718b..6cebb2050 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillmentProto.java @@ -61,34 +61,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cx.v3beta1\032\031google/api/resource.proto\0329g" + "oogle/cloud/dialogflow/cx/v3beta1/respon" + "se_message.proto\032\034google/protobuf/struct" - + ".proto\032\034google/api/annotations.proto\"\344\006\n" + + ".proto\032\034google/api/annotations.proto\"\206\007\n" + "\013Fulfillment\022E\n\010messages\030\001 \003(\01323.google." + "cloud.dialogflow.cx.v3beta1.ResponseMess" + "age\0227\n\007webhook\030\002 \001(\tB&\372A#\n!dialogflow.go" - + "ogleapis.com/Webhook\022\013\n\003tag\030\003 \001(\t\022a\n\025set" - + "_parameter_actions\030\004 \003(\0132B.google.cloud." - + "dialogflow.cx.v3beta1.Fulfillment.SetPar" - + "ameterAction\022[\n\021conditional_cases\030\005 \003(\0132" - + "@.google.cloud.dialogflow.cx.v3beta1.Ful" - + "fillment.ConditionalCases\032N\n\022SetParamete" - + "rAction\022\021\n\tparameter\030\001 \001(\t\022%\n\005value\030\002 \001(" - + "\0132\026.google.protobuf.Value\032\267\003\n\020Conditiona" - + "lCases\022T\n\005cases\030\001 \003(\0132E.google.cloud.dia" - + "logflow.cx.v3beta1.Fulfillment.Condition" - + "alCases.Case\032\314\002\n\004Case\022\021\n\tcondition\030\001 \001(\t" - + "\022g\n\014case_content\030\002 \003(\0132Q.google.cloud.di" - + "alogflow.cx.v3beta1.Fulfillment.Conditio" - + "nalCases.Case.CaseContent\032\307\001\n\013CaseConten" - + "t\022F\n\007message\030\001 \001(\01323.google.cloud.dialog" - + "flow.cx.v3beta1.ResponseMessageH\000\022\\\n\020add" - + "itional_cases\030\002 \001(\0132@.google.cloud.dialo" - + "gflow.cx.v3beta1.Fulfillment.Conditional" - + "CasesH\000B\022\n\020cases_or_messageB\257\001\n&com.goog" - + "le.cloud.dialogflow.cx.v3beta1B\020Fulfillm" - + "entProtoP\001ZDgoogle.golang.org/genproto/g" - + "oogleapis/cloud/dialogflow/cx/v3beta1;cx" - + "\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3" - + "Beta1b\006proto3" + + "ogleapis.com/Webhook\022 \n\030return_partial_r" + + "esponses\030\010 \001(\010\022\013\n\003tag\030\003 \001(\t\022a\n\025set_param" + + "eter_actions\030\004 \003(\0132B.google.cloud.dialog" + + "flow.cx.v3beta1.Fulfillment.SetParameter" + + "Action\022[\n\021conditional_cases\030\005 \003(\0132@.goog" + + "le.cloud.dialogflow.cx.v3beta1.Fulfillme" + + "nt.ConditionalCases\032N\n\022SetParameterActio" + + "n\022\021\n\tparameter\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.go" + + "ogle.protobuf.Value\032\267\003\n\020ConditionalCases" + + "\022T\n\005cases\030\001 \003(\0132E.google.cloud.dialogflo" + + "w.cx.v3beta1.Fulfillment.ConditionalCase" + + "s.Case\032\314\002\n\004Case\022\021\n\tcondition\030\001 \001(\t\022g\n\014ca" + + "se_content\030\002 \003(\0132Q.google.cloud.dialogfl" + + "ow.cx.v3beta1.Fulfillment.ConditionalCas" + + "es.Case.CaseContent\032\307\001\n\013CaseContent\022F\n\007m" + + "essage\030\001 \001(\01323.google.cloud.dialogflow.c" + + "x.v3beta1.ResponseMessageH\000\022\\\n\020additiona" + + "l_cases\030\002 \001(\0132@.google.cloud.dialogflow." + + "cx.v3beta1.Fulfillment.ConditionalCasesH" + + "\000B\022\n\020cases_or_messageB\257\001\n&com.google.clo" + + "ud.dialogflow.cx.v3beta1B\020FulfillmentPro" + + "toP\001ZDgoogle.golang.org/genproto/googlea" + + "pis/cloud/dialogflow/cx/v3beta1;cx\370\001\001\242\002\002" + + "DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -105,7 +106,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_Fulfillment_descriptor, new java.lang.String[] { - "Messages", "Webhook", "Tag", "SetParameterActions", "ConditionalCases", + "Messages", + "Webhook", + "ReturnPartialResponses", + "Tag", + "SetParameterActions", + "ConditionalCases", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Fulfillment_SetParameterAction_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Fulfillment_descriptor diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java index 87afec3dc..76dd97b55 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java @@ -596,8 +596,9 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * *
    * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-   * page][QueryResult.current_page] in the session. Format: `projects/<Project
-   * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+   * page][QueryResult.current_page] in the session.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/pages/<Page ID>`.
    * If `current_page` is specified, the previous state of the session will be
    * ignored by Dialogflow, including the [previous
    * page][QueryResult.current_page] and the [previous session
@@ -628,8 +629,9 @@ public java.lang.String getCurrentPage() {
    *
    * 
    * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-   * page][QueryResult.current_page] in the session. Format: `projects/<Project
-   * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+   * page][QueryResult.current_page] in the session.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/pages/<Page ID>`.
    * If `current_page` is specified, the previous state of the session will be
    * ignored by Dialogflow, including the [previous
    * page][QueryResult.current_page] and the [previous session
@@ -2743,8 +2745,9 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
      *
      * 
      * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-     * page][QueryResult.current_page] in the session. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * page][QueryResult.current_page] in the session.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
@@ -2774,8 +2777,9 @@ public java.lang.String getCurrentPage() {
      *
      * 
      * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-     * page][QueryResult.current_page] in the session. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * page][QueryResult.current_page] in the session.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
@@ -2805,8 +2809,9 @@ public com.google.protobuf.ByteString getCurrentPageBytes() {
      *
      * 
      * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-     * page][QueryResult.current_page] in the session. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * page][QueryResult.current_page] in the session.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
@@ -2835,8 +2840,9 @@ public Builder setCurrentPage(java.lang.String value) {
      *
      * 
      * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-     * page][QueryResult.current_page] in the session. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * page][QueryResult.current_page] in the session.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
@@ -2861,8 +2867,9 @@ public Builder clearCurrentPage() {
      *
      * 
      * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-     * page][QueryResult.current_page] in the session. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * page][QueryResult.current_page] in the session.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java
index 73e498ef7..bc5cc8da3 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java
@@ -323,8 +323,9 @@ com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder getSessionEnti
    *
    * 
    * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-   * page][QueryResult.current_page] in the session. Format: `projects/<Project
-   * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+   * page][QueryResult.current_page] in the session.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/pages/<Page ID>`.
    * If `current_page` is specified, the previous state of the session will be
    * ignored by Dialogflow, including the [previous
    * page][QueryResult.current_page] and the [previous session
@@ -344,8 +345,9 @@ com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder getSessionEnti
    *
    * 
    * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.Page] to override the [current
-   * page][QueryResult.current_page] in the session. Format: `projects/<Project
-   * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+   * page][QueryResult.current_page] in the session.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/pages/<Page ID>`.
    * If `current_page` is specified, the previous state of the session will be
    * ignored by Dialogflow, including the [previous
    * page][QueryResult.current_page] and the [previous session
diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java
index 07be6275f..2ffd6a753 100644
--- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java
+++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java
@@ -849,8 +849,10 @@ public int getRedactionScopeValue() {
    * settings.
    * If empty, we use the default DLP inspect config.
    * The template name will have one of the following formats:
-   * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
-   * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`
+   * `projects/<Project ID>/inspectTemplates/<Template ID>` OR
+   * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
+   * ID>` OR
+   * `organizations/<Organization ID>/inspectTemplates/<Template ID>`
    * 
* * string inspect_template = 9; @@ -877,8 +879,10 @@ public java.lang.String getInspectTemplate() { * settings. * If empty, we use the default DLP inspect config. * The template name will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + * `projects/<Project ID>/inspectTemplates/<Template ID>` OR + * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template + * ID>` OR + * `organizations/<Organization ID>/inspectTemplates/<Template ID>` *
* * string inspect_template = 9; @@ -2017,8 +2021,10 @@ public Builder clearRedactionScope() { * settings. * If empty, we use the default DLP inspect config. * The template name will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + * `projects/<Project ID>/inspectTemplates/<Template ID>` OR + * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template + * ID>` OR + * `organizations/<Organization ID>/inspectTemplates/<Template ID>` *
* * string inspect_template = 9; @@ -2044,8 +2050,10 @@ public java.lang.String getInspectTemplate() { * settings. * If empty, we use the default DLP inspect config. * The template name will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + * `projects/<Project ID>/inspectTemplates/<Template ID>` OR + * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template + * ID>` OR + * `organizations/<Organization ID>/inspectTemplates/<Template ID>` *
* * string inspect_template = 9; @@ -2071,8 +2079,10 @@ public com.google.protobuf.ByteString getInspectTemplateBytes() { * settings. * If empty, we use the default DLP inspect config. * The template name will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + * `projects/<Project ID>/inspectTemplates/<Template ID>` OR + * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template + * ID>` OR + * `organizations/<Organization ID>/inspectTemplates/<Template ID>` *
* * string inspect_template = 9; @@ -2097,8 +2107,10 @@ public Builder setInspectTemplate(java.lang.String value) { * settings. * If empty, we use the default DLP inspect config. * The template name will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + * `projects/<Project ID>/inspectTemplates/<Template ID>` OR + * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template + * ID>` OR + * `organizations/<Organization ID>/inspectTemplates/<Template ID>` *
* * string inspect_template = 9; @@ -2119,8 +2131,10 @@ public Builder clearInspectTemplate() { * settings. * If empty, we use the default DLP inspect config. * The template name will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + * `projects/<Project ID>/inspectTemplates/<Template ID>` OR + * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template + * ID>` OR + * `organizations/<Organization ID>/inspectTemplates/<Template ID>` *
* * string inspect_template = 9; diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsOrBuilder.java index ea33201d9..31bcdcca4 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsOrBuilder.java @@ -147,8 +147,10 @@ public interface SecuritySettingsOrBuilder * settings. * If empty, we use the default DLP inspect config. * The template name will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + * `projects/<Project ID>/inspectTemplates/<Template ID>` OR + * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template + * ID>` OR + * `organizations/<Organization ID>/inspectTemplates/<Template ID>` *
* * string inspect_template = 9; @@ -164,8 +166,10 @@ public interface SecuritySettingsOrBuilder * settings. * If empty, we use the default DLP inspect config. * The template name will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + * `projects/<Project ID>/inspectTemplates/<Template ID>` OR + * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template + * ID>` OR + * `organizations/<Organization ID>/inspectTemplates/<Template ID>` *
* * string inspect_template = 9; diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java index 55e6d9afd..f3dffe0c4 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java @@ -139,165 +139,170 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "y_input\030\003 \001(\0132..google.cloud.dialogflow." + "cx.v3beta1.QueryInputB\003\340A\002\022R\n\023output_aud" + "io_config\030\004 \001(\01325.google.cloud.dialogflo" - + "w.cx.v3beta1.OutputAudioConfig\"\334\001\n\024Detec" + + "w.cx.v3beta1.OutputAudioConfig\"\235\003\n\024Detec" + "tIntentResponse\022\023\n\013response_id\030\001 \001(\t\022E\n\014" + "query_result\030\002 \001(\0132/.google.cloud.dialog" + "flow.cx.v3beta1.QueryResult\022\024\n\014output_au" + "dio\030\004 \001(\014\022R\n\023output_audio_config\030\005 \001(\01325" + ".google.cloud.dialogflow.cx.v3beta1.Outp" - + "utAudioConfig\"\300\002\n\034StreamingDetectIntentR" - + "equest\0227\n\007session\030\001 \001(\tB&\372A#\n!dialogflow" - + ".googleapis.com/Session\022I\n\014query_params\030" - + "\002 \001(\01323.google.cloud.dialogflow.cx.v3bet" - + "a1.QueryParameters\022H\n\013query_input\030\003 \001(\0132" - + "..google.cloud.dialogflow.cx.v3beta1.Que" - + "ryInputB\003\340A\002\022R\n\023output_audio_config\030\004 \001(" - + "\01325.google.cloud.dialogflow.cx.v3beta1.O" - + "utputAudioConfig\"\345\001\n\035StreamingDetectInte" - + "ntResponse\022\\\n\022recognition_result\030\001 \001(\0132>" - + ".google.cloud.dialogflow.cx.v3beta1.Stre" - + "amingRecognitionResultH\000\022Z\n\026detect_inten" - + "t_response\030\002 \001(\01328.google.cloud.dialogfl" - + "ow.cx.v3beta1.DetectIntentResponseH\000B\n\n\010" - + "response\"\251\003\n\032StreamingRecognitionResult\022" - + "`\n\014message_type\030\001 \001(\0162J.google.cloud.dia" - + "logflow.cx.v3beta1.StreamingRecognitionR" - + "esult.MessageType\022\022\n\ntranscript\030\002 \001(\t\022\020\n" - + "\010is_final\030\003 \001(\010\022\022\n\nconfidence\030\004 \001(\002\022\021\n\ts" - + "tability\030\006 \001(\002\022L\n\020speech_word_info\030\007 \003(\013" - + "22.google.cloud.dialogflow.cx.v3beta1.Sp" - + "eechWordInfo\0224\n\021speech_end_offset\030\010 \001(\0132" - + "\031.google.protobuf.Duration\"X\n\013MessageTyp" - + "e\022\034\n\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANS" - + "CRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTERANCE\020\002\"\216\004\n" - + "\017QueryParameters\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014g" - + "eo_location\030\002 \001(\0132\023.google.type.LatLng\022S" - + "\n\024session_entity_types\030\003 \003(\01325.google.cl" - + "oud.dialogflow.cx.v3beta1.SessionEntityT" - + "ype\022(\n\007payload\030\004 \001(\0132\027.google.protobuf.S" - + "truct\022+\n\nparameters\030\005 \001(\0132\027.google.proto" - + "buf.Struct\0229\n\014current_page\030\006 \001(\tB#\372A \n\036d" - + "ialogflow.googleapis.com/Page\022\027\n\017disable" - + "_webhook\030\007 \001(\010\022$\n\034analyze_query_text_sen" - + "timent\030\010 \001(\010\022`\n\017webhook_headers\030\n \003(\0132G." - + "google.cloud.dialogflow.cx.v3beta1.Query" - + "Parameters.WebhookHeadersEntry\0325\n\023Webhoo" - + "kHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\"\364\002\n\nQueryInput\022=\n\004text\030\002 \001(\0132-.goo" - + "gle.cloud.dialogflow.cx.v3beta1.TextInpu" - + "tH\000\022A\n\006intent\030\003 \001(\0132/.google.cloud.dialo" - + "gflow.cx.v3beta1.IntentInputH\000\022?\n\005audio\030" - + "\005 \001(\0132..google.cloud.dialogflow.cx.v3bet" - + "a1.AudioInputH\000\022?\n\005event\030\006 \001(\0132..google." - + "cloud.dialogflow.cx.v3beta1.EventInputH\000" - + "\022=\n\004dtmf\030\007 \001(\0132-.google.cloud.dialogflow" - + ".cx.v3beta1.DtmfInputH\000\022\032\n\rlanguage_code" - + "\030\004 \001(\tB\003\340A\002B\007\n\005input\"\200\006\n\013QueryResult\022\016\n\004" - + "text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\013 \001(\tB%\372A" - + "\"\n dialogflow.googleapis.com/IntentH\000\022\024\n" - + "\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger_event\030\016 \001" - + "(\tH\000\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\nparameter" - + "s\030\003 \001(\0132\027.google.protobuf.Struct\022N\n\021resp" - + "onse_messages\030\004 \003(\01323.google.cloud.dialo" - + "gflow.cx.v3beta1.ResponseMessage\022,\n\020webh" - + "ook_statuses\030\r \003(\0132\022.google.rpc.Status\0221" - + "\n\020webhook_payloads\030\006 \003(\0132\027.google.protob" - + "uf.Struct\022>\n\014current_page\030\007 \001(\0132(.google" - + ".cloud.dialogflow.cx.v3beta1.Page\022>\n\006int" - + "ent\030\010 \001(\0132*.google.cloud.dialogflow.cx.v" - + "3beta1.IntentB\002\030\001\022\'\n\033intent_detection_co" - + "nfidence\030\t \001(\002B\002\030\001\0228\n\005match\030\017 \001(\0132).goog" - + "le.cloud.dialogflow.cx.v3beta1.Match\0220\n\017" - + "diagnostic_info\030\n \001(\0132\027.google.protobuf." - + "Struct\022^\n\031sentiment_analysis_result\030\021 \001(" - + "\0132;.google.cloud.dialogflow.cx.v3beta1.S" - + "entimentAnalysisResultB\007\n\005query\"\036\n\tTextI" - + "nput\022\021\n\004text\030\001 \001(\tB\003\340A\002\"G\n\013IntentInput\0228" - + "\n\006intent\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.googl" - + "eapis.com/Intent\"f\n\nAudioInput\022I\n\006config" - + "\030\001 \001(\01324.google.cloud.dialogflow.cx.v3be" - + "ta1.InputAudioConfigB\003\340A\002\022\r\n\005audio\030\002 \001(\014" - + "\"\033\n\nEventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDtmfInp" - + "ut\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002 \001(\t" - + "\"\373\002\n\005Match\022:\n\006intent\030\001 \001(\0132*.google.clou" - + "d.dialogflow.cx.v3beta1.Intent\022\r\n\005event\030" - + "\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.google.proto" - + "buf.Struct\022\026\n\016resolved_input\030\003 \001(\t\022G\n\nma" - + "tch_type\030\004 \001(\01623.google.cloud.dialogflow" - + ".cx.v3beta1.Match.MatchType\022\022\n\nconfidenc" - + "e\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYPE_UNSP" - + "ECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INTENT\020\002" - + "\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n" - + "\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\345\001\n\022MatchIntentRe" - + "quest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dialogfl" - + "ow.googleapis.com/Session\022I\n\014query_param" - + "s\030\002 \001(\01323.google.cloud.dialogflow.cx.v3b" - + "eta1.QueryParameters\022H\n\013query_input\030\003 \001(" - + "\0132..google.cloud.dialogflow.cx.v3beta1.Q" - + "ueryInputB\003\340A\002\"\232\002\n\023MatchIntentResponse\022\016" - + "\n\004text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%" - + "\372A\"\n dialogflow.googleapis.com/IntentH\000\022" - + "\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006" - + " \001(\tH\000\022:\n\007matches\030\004 \003(\0132).google.cloud.d" - + "ialogflow.cx.v3beta1.Match\022>\n\014current_pa" - + "ge\030\005 \001(\0132(.google.cloud.dialogflow.cx.v3" - + "beta1.PageB\007\n\005query\"\372\001\n\024FulfillIntentReq" - + "uest\022T\n\024match_intent_request\030\001 \001(\01326.goo" - + "gle.cloud.dialogflow.cx.v3beta1.MatchInt" - + "entRequest\0228\n\005match\030\002 \001(\0132).google.cloud" - + ".dialogflow.cx.v3beta1.Match\022R\n\023output_a" - + "udio_config\030\003 \001(\01325.google.cloud.dialogf" - + "low.cx.v3beta1.OutputAudioConfig\"\335\001\n\025Ful" - + "fillIntentResponse\022\023\n\013response_id\030\001 \001(\t\022" - + "E\n\014query_result\030\002 \001(\0132/.google.cloud.dia" - + "logflow.cx.v3beta1.QueryResult\022\024\n\014output" - + "_audio\030\003 \001(\014\022R\n\023output_audio_config\030\004 \001(" - + "\01325.google.cloud.dialogflow.cx.v3beta1.O" - + "utputAudioConfig\";\n\027SentimentAnalysisRes" - + "ult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\212\n" - + "\n\010Sessions\022\272\002\n\014DetectIntent\0227.google.clo" - + "ud.dialogflow.cx.v3beta1.DetectIntentReq" - + "uest\0328.google.cloud.dialogflow.cx.v3beta" - + "1.DetectIntentResponse\"\266\001\202\323\344\223\002\257\001\"J/v3bet" - + "a1/{session=projects/*/locations/*/agent" - + "s/*/sessions/*}:detectIntent:\001*Z^\"Y/v3be" - + "ta1/{session=projects/*/locations/*/agen" - + "ts/*/environments/*/sessions/*}:detectIn" - + "tent:\001*\022\242\001\n\025StreamingDetectIntent\022@.goog" - + "le.cloud.dialogflow.cx.v3beta1.Streaming" - + "DetectIntentRequest\032A.google.cloud.dialo" + + "utAudioConfig\022\\\n\rresponse_type\030\006 \001(\0162E.g" + + "oogle.cloud.dialogflow.cx.v3beta1.Detect" + + "IntentResponse.ResponseType\022\032\n\022allow_can" + + "cellation\030\007 \001(\010\"E\n\014ResponseType\022\035\n\031RESPO" + + "NSE_TYPE_UNSPECIFIED\020\000\022\013\n\007PARTIAL\020\001\022\t\n\005F" + + "INAL\020\002\"\341\002\n\034StreamingDetectIntentRequest\022" + + "7\n\007session\030\001 \001(\tB&\372A#\n!dialogflow.google" + + "apis.com/Session\022I\n\014query_params\030\002 \001(\01323" + + ".google.cloud.dialogflow.cx.v3beta1.Quer" + + "yParameters\022H\n\013query_input\030\003 \001(\0132..googl" + + "e.cloud.dialogflow.cx.v3beta1.QueryInput" + + "B\003\340A\002\022R\n\023output_audio_config\030\004 \001(\01325.goo" + + "gle.cloud.dialogflow.cx.v3beta1.OutputAu" + + "dioConfig\022\037\n\027enable_partial_response\030\005 \001" + + "(\010\"\345\001\n\035StreamingDetectIntentResponse\022\\\n\022" + + "recognition_result\030\001 \001(\0132>.google.cloud." + + "dialogflow.cx.v3beta1.StreamingRecogniti" + + "onResultH\000\022Z\n\026detect_intent_response\030\002 \001" + + "(\01328.google.cloud.dialogflow.cx.v3beta1." + + "DetectIntentResponseH\000B\n\n\010response\"\251\003\n\032S" + + "treamingRecognitionResult\022`\n\014message_typ" + + "e\030\001 \001(\0162J.google.cloud.dialogflow.cx.v3b" + + "eta1.StreamingRecognitionResult.MessageT" + + "ype\022\022\n\ntranscript\030\002 \001(\t\022\020\n\010is_final\030\003 \001(" + + "\010\022\022\n\nconfidence\030\004 \001(\002\022\021\n\tstability\030\006 \001(\002" + + "\022L\n\020speech_word_info\030\007 \003(\01322.google.clou" + + "d.dialogflow.cx.v3beta1.SpeechWordInfo\0224" + + "\n\021speech_end_offset\030\010 \001(\0132\031.google.proto" + + "buf.Duration\"X\n\013MessageType\022\034\n\030MESSAGE_T" + + "YPE_UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END" + + "_OF_SINGLE_UTTERANCE\020\002\"\216\004\n\017QueryParamete" + + "rs\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location\030\002 " + + "\001(\0132\023.google.type.LatLng\022S\n\024session_enti" + + "ty_types\030\003 \003(\01325.google.cloud.dialogflow" + + ".cx.v3beta1.SessionEntityType\022(\n\007payload" + + "\030\004 \001(\0132\027.google.protobuf.Struct\022+\n\nparam" + + "eters\030\005 \001(\0132\027.google.protobuf.Struct\0229\n\014" + + "current_page\030\006 \001(\tB#\372A \n\036dialogflow.goog" + + "leapis.com/Page\022\027\n\017disable_webhook\030\007 \001(\010" + + "\022$\n\034analyze_query_text_sentiment\030\010 \001(\010\022`" + + "\n\017webhook_headers\030\n \003(\0132G.google.cloud.d" + + "ialogflow.cx.v3beta1.QueryParameters.Web" + + "hookHeadersEntry\0325\n\023WebhookHeadersEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\364\002\n\nQuer" + + "yInput\022=\n\004text\030\002 \001(\0132-.google.cloud.dial" + + "ogflow.cx.v3beta1.TextInputH\000\022A\n\006intent\030" + + "\003 \001(\0132/.google.cloud.dialogflow.cx.v3bet" + + "a1.IntentInputH\000\022?\n\005audio\030\005 \001(\0132..google" + + ".cloud.dialogflow.cx.v3beta1.AudioInputH" + + "\000\022?\n\005event\030\006 \001(\0132..google.cloud.dialogfl" + + "ow.cx.v3beta1.EventInputH\000\022=\n\004dtmf\030\007 \001(\013" + + "2-.google.cloud.dialogflow.cx.v3beta1.Dt" + + "mfInputH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007\n" + + "\005input\"\200\006\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022?" + + "\n\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogflow." + + "googleapis.com/IntentH\000\022\024\n\ntranscript\030\014 " + + "\001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\022\025\n\rlangua" + + "ge_code\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132\027.goog" + + "le.protobuf.Struct\022N\n\021response_messages\030" + + "\004 \003(\01323.google.cloud.dialogflow.cx.v3bet" + + "a1.ResponseMessage\022,\n\020webhook_statuses\030\r" + + " \003(\0132\022.google.rpc.Status\0221\n\020webhook_payl" + + "oads\030\006 \003(\0132\027.google.protobuf.Struct\022>\n\014c" + + "urrent_page\030\007 \001(\0132(.google.cloud.dialogf" + + "low.cx.v3beta1.Page\022>\n\006intent\030\010 \001(\0132*.go" + + "ogle.cloud.dialogflow.cx.v3beta1.IntentB" + + "\002\030\001\022\'\n\033intent_detection_confidence\030\t \001(\002" + + "B\002\030\001\0228\n\005match\030\017 \001(\0132).google.cloud.dialo" + + "gflow.cx.v3beta1.Match\0220\n\017diagnostic_inf" + + "o\030\n \001(\0132\027.google.protobuf.Struct\022^\n\031sent" + + "iment_analysis_result\030\021 \001(\0132;.google.clo" + + "ud.dialogflow.cx.v3beta1.SentimentAnalys" + + "isResultB\007\n\005query\"\036\n\tTextInput\022\021\n\004text\030\001" + + " \001(\tB\003\340A\002\"G\n\013IntentInput\0228\n\006intent\030\001 \001(\t" + + "B(\340A\002\372A\"\n dialogflow.googleapis.com/Inte" + + "nt\"f\n\nAudioInput\022I\n\006config\030\001 \001(\01324.googl" + + "e.cloud.dialogflow.cx.v3beta1.InputAudio" + + "ConfigB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput" + + "\022\r\n\005event\030\001 \001(\t\"1\n\tDtmfInput\022\016\n\006digits\030\001" + + " \001(\t\022\024\n\014finish_digit\030\002 \001(\t\"\373\002\n\005Match\022:\n\006" + + "intent\030\001 \001(\0132*.google.cloud.dialogflow.c" + + "x.v3beta1.Intent\022\r\n\005event\030\006 \001(\t\022+\n\nparam" + + "eters\030\002 \001(\0132\027.google.protobuf.Struct\022\026\n\016" + + "resolved_input\030\003 \001(\t\022G\n\nmatch_type\030\004 \001(\016" + + "23.google.cloud.dialogflow.cx.v3beta1.Ma" + + "tch.MatchType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\tMa" + + "tchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n\006I" + + "NTENT\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETER_" + + "FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n" + + "\005EVENT\020\006\"\345\001\n\022MatchIntentRequest\022:\n\007sessi" + + "on\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis." + + "com/Session\022I\n\014query_params\030\002 \001(\01323.goog" + + "le.cloud.dialogflow.cx.v3beta1.QueryPara" + + "meters\022H\n\013query_input\030\003 \001(\0132..google.clo" + + "ud.dialogflow.cx.v3beta1.QueryInputB\003\340A\002" + + "\"\232\002\n\023MatchIntentResponse\022\016\n\004text\030\001 \001(\tH\000" + + "\022?\n\016trigger_intent\030\002 \001(\tB%\372A\"\n dialogflo" + + "w.googleapis.com/IntentH\000\022\024\n\ntranscript\030" + + "\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 \001(\tH\000\022:\n\007matc" + + "hes\030\004 \003(\0132).google.cloud.dialogflow.cx.v" + + "3beta1.Match\022>\n\014current_page\030\005 \001(\0132(.goo" + + "gle.cloud.dialogflow.cx.v3beta1.PageB\007\n\005" + + "query\"\372\001\n\024FulfillIntentRequest\022T\n\024match_" + + "intent_request\030\001 \001(\01326.google.cloud.dial" + + "ogflow.cx.v3beta1.MatchIntentRequest\0228\n\005" + + "match\030\002 \001(\0132).google.cloud.dialogflow.cx" + + ".v3beta1.Match\022R\n\023output_audio_config\030\003 " + + "\001(\01325.google.cloud.dialogflow.cx.v3beta1" + + ".OutputAudioConfig\"\335\001\n\025FulfillIntentResp" + + "onse\022\023\n\013response_id\030\001 \001(\t\022E\n\014query_resul" + + "t\030\002 \001(\0132/.google.cloud.dialogflow.cx.v3b" + + "eta1.QueryResult\022\024\n\014output_audio\030\003 \001(\014\022R" + + "\n\023output_audio_config\030\004 \001(\01325.google.clo" + + "ud.dialogflow.cx.v3beta1.OutputAudioConf" + + "ig\";\n\027SentimentAnalysisResult\022\r\n\005score\030\001" + + " \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\212\n\n\010Sessions\022\272\002\n" + + "\014DetectIntent\0227.google.cloud.dialogflow." + + "cx.v3beta1.DetectIntentRequest\0328.google." + + "cloud.dialogflow.cx.v3beta1.DetectIntent" + + "Response\"\266\001\202\323\344\223\002\257\001\"J/v3beta1/{session=pr" + + "ojects/*/locations/*/agents/*/sessions/*" + + "}:detectIntent:\001*Z^\"Y/v3beta1/{session=p" + + "rojects/*/locations/*/agents/*/environme" + + "nts/*/sessions/*}:detectIntent:\001*\022\242\001\n\025St" + + "reamingDetectIntent\022@.google.cloud.dialo" + "gflow.cx.v3beta1.StreamingDetectIntentRe" - + "sponse\"\000(\0010\001\022\265\002\n\013MatchIntent\0226.google.cl" - + "oud.dialogflow.cx.v3beta1.MatchIntentReq" - + "uest\0327.google.cloud.dialogflow.cx.v3beta" - + "1.MatchIntentResponse\"\264\001\202\323\344\223\002\255\001\"I/v3beta" - + "1/{session=projects/*/locations/*/agents" - + "/*/sessions/*}:matchIntent:\001*Z]\"X/v3beta" - + "1/{session=projects/*/locations/*/agents" - + "/*/environments/*/sessions/*}:matchInten" - + "t:\001*\022\351\002\n\rFulfillIntent\0228.google.cloud.di" - + "alogflow.cx.v3beta1.FulfillIntentRequest" - + "\0329.google.cloud.dialogflow.cx.v3beta1.Fu" - + "lfillIntentResponse\"\342\001\202\323\344\223\002\333\001\"`/v3beta1/" - + "{match_intent_request.session=projects/*" - + "/locations/*/agents/*/sessions/*}:fulfil" - + "lIntent:\001*Zt\"o/v3beta1/{match_intent_req" - + "uest.session=projects/*/locations/*/agen" - + "ts/*/environments/*/sessions/*}:fulfillI" - + "ntent:\001*\032x\312A\031dialogflow.googleapis.com\322A" - + "Yhttps://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/" - + "dialogflowB\203\003\n&com.google.cloud.dialogfl" - + "ow.cx.v3beta1B\014SessionProtoP\001ZDgoogle.go" - + "lang.org/genproto/googleapis/cloud/dialo" - + "gflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Clo" - + "ud.Dialogflow.Cx.V3Beta1\352A\324\001\n!dialogflow" - + ".googleapis.com/Session\022Iprojects/{proje" - + "ct}/locations/{location}/agents/{agent}/" - + "sessions/{session}\022dprojects/{project}/l" - + "ocations/{location}/agents/{agent}/envir" - + "onments/{environment}/sessions/{session}" - + "b\006proto3" + + "quest\032A.google.cloud.dialogflow.cx.v3bet" + + "a1.StreamingDetectIntentResponse\"\000(\0010\001\022\265" + + "\002\n\013MatchIntent\0226.google.cloud.dialogflow" + + ".cx.v3beta1.MatchIntentRequest\0327.google." + + "cloud.dialogflow.cx.v3beta1.MatchIntentR" + + "esponse\"\264\001\202\323\344\223\002\255\001\"I/v3beta1/{session=pro" + + "jects/*/locations/*/agents/*/sessions/*}" + + ":matchIntent:\001*Z]\"X/v3beta1/{session=pro" + + "jects/*/locations/*/agents/*/environment" + + "s/*/sessions/*}:matchIntent:\001*\022\351\002\n\rFulfi" + + "llIntent\0228.google.cloud.dialogflow.cx.v3" + + "beta1.FulfillIntentRequest\0329.google.clou" + + "d.dialogflow.cx.v3beta1.FulfillIntentRes" + + "ponse\"\342\001\202\323\344\223\002\333\001\"`/v3beta1/{match_intent_" + + "request.session=projects/*/locations/*/a" + + "gents/*/sessions/*}:fulfillIntent:\001*Zt\"o" + + "/v3beta1/{match_intent_request.session=p" + + "rojects/*/locations/*/agents/*/environme" + + "nts/*/sessions/*}:fulfillIntent:\001*\032x\312A\031d" + + "ialogflow.googleapis.com\322AYhttps://www.g" + + "oogleapis.com/auth/cloud-platform,https:" + + "//www.googleapis.com/auth/dialogflowB\203\003\n" + + "&com.google.cloud.dialogflow.cx.v3beta1B" + + "\014SessionProtoP\001ZDgoogle.golang.org/genpr" + + "oto/googleapis/cloud/dialogflow/cx/v3bet" + + "a1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow." + + "Cx.V3Beta1\352A\324\001\n!dialogflow.googleapis.co" + + "m/Session\022Iprojects/{project}/locations/" + + "{location}/agents/{agent}/sessions/{sess" + + "ion}\022dprojects/{project}/locations/{loca" + + "tion}/agents/{agent}/environments/{envir" + + "onment}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -332,7 +337,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_DetectIntentResponse_descriptor, new java.lang.String[] { - "ResponseId", "QueryResult", "OutputAudio", "OutputAudioConfig", + "ResponseId", + "QueryResult", + "OutputAudio", + "OutputAudioConfig", + "ResponseType", + "AllowCancellation", }); internal_static_google_cloud_dialogflow_cx_v3beta1_StreamingDetectIntentRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -340,7 +350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_StreamingDetectIntentRequest_descriptor, new java.lang.String[] { - "Session", "QueryParams", "QueryInput", "OutputAudioConfig", + "Session", "QueryParams", "QueryInput", "OutputAudioConfig", "EnablePartialResponse", }); internal_static_google_cloud_dialogflow_cx_v3beta1_StreamingDetectIntentResponse_descriptor = getDescriptor().getMessageTypes().get(3); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java index d75112211..715452505 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java @@ -147,6 +147,11 @@ private StreamingDetectIntentRequest( outputAudioConfig_ = subBuilder.buildPartial(); } + break; + } + case 40: + { + enablePartialResponse_ = input.readBool(); break; } default: @@ -411,6 +416,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig getOutputAudioCo return getOutputAudioConfig(); } + public static final int ENABLE_PARTIAL_RESPONSE_FIELD_NUMBER = 5; + private boolean enablePartialResponse_; + /** + * + * + *
+   * Enable partial detect intent response. If this flag is not enabled,
+   * response stream still contains only one final `DetectIntentResponse` even
+   * if some `Fulfillment`s in the agent have been configured to return partial
+   * responses.
+   * 
+ * + * bool enable_partial_response = 5; + * + * @return The enablePartialResponse. + */ + @java.lang.Override + public boolean getEnablePartialResponse() { + return enablePartialResponse_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -437,6 +463,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (outputAudioConfig_ != null) { output.writeMessage(4, getOutputAudioConfig()); } + if (enablePartialResponse_ != false) { + output.writeBool(5, enablePartialResponse_); + } unknownFields.writeTo(output); } @@ -458,6 +487,9 @@ public int getSerializedSize() { if (outputAudioConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputAudioConfig()); } + if (enablePartialResponse_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enablePartialResponse_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -487,6 +519,7 @@ public boolean equals(final java.lang.Object obj) { if (hasOutputAudioConfig()) { if (!getOutputAudioConfig().equals(other.getOutputAudioConfig())) return false; } + if (getEnablePartialResponse() != other.getEnablePartialResponse()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -512,6 +545,8 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_AUDIO_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getOutputAudioConfig().hashCode(); } + hash = (37 * hash) + ENABLE_PARTIAL_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePartialResponse()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -701,6 +736,8 @@ public Builder clear() { outputAudioConfig_ = null; outputAudioConfigBuilder_ = null; } + enablePartialResponse_ = false; + return this; } @@ -746,6 +783,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest build } else { result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); } + result.enablePartialResponse_ = enablePartialResponse_; onBuilt(); return result; } @@ -812,6 +850,9 @@ public Builder mergeFrom( if (other.hasOutputAudioConfig()) { mergeOutputAudioConfig(other.getOutputAudioConfig()); } + if (other.getEnablePartialResponse() != false) { + setEnablePartialResponse(other.getEnablePartialResponse()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1601,6 +1642,67 @@ public Builder clearOutputAudioConfig() { return outputAudioConfigBuilder_; } + private boolean enablePartialResponse_; + /** + * + * + *
+     * Enable partial detect intent response. If this flag is not enabled,
+     * response stream still contains only one final `DetectIntentResponse` even
+     * if some `Fulfillment`s in the agent have been configured to return partial
+     * responses.
+     * 
+ * + * bool enable_partial_response = 5; + * + * @return The enablePartialResponse. + */ + @java.lang.Override + public boolean getEnablePartialResponse() { + return enablePartialResponse_; + } + /** + * + * + *
+     * Enable partial detect intent response. If this flag is not enabled,
+     * response stream still contains only one final `DetectIntentResponse` even
+     * if some `Fulfillment`s in the agent have been configured to return partial
+     * responses.
+     * 
+ * + * bool enable_partial_response = 5; + * + * @param value The enablePartialResponse to set. + * @return This builder for chaining. + */ + public Builder setEnablePartialResponse(boolean value) { + + enablePartialResponse_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable partial detect intent response. If this flag is not enabled,
+     * response stream still contains only one final `DetectIntentResponse` even
+     * if some `Fulfillment`s in the agent have been configured to return partial
+     * responses.
+     * 
+ * + * bool enable_partial_response = 5; + * + * @return This builder for chaining. + */ + public Builder clearEnablePartialResponse() { + + enablePartialResponse_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequestOrBuilder.java index e9bed50d9..a4aff0f31 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequestOrBuilder.java @@ -186,4 +186,20 @@ public interface StreamingDetectIntentRequestOrBuilder * .google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 4; */ com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder(); + + /** + * + * + *
+   * Enable partial detect intent response. If this flag is not enabled,
+   * response stream still contains only one final `DetectIntentResponse` even
+   * if some `Fulfillment`s in the agent have been configured to return partial
+   * responses.
+   * 
+ * + * bool enable_partial_response = 5; + * + * @return The enablePartialResponse. + */ + boolean getEnablePartialResponse(); } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto index 1824e0b25..64bc6293a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -159,12 +159,15 @@ message Agent { // Required. The human-readable name of the agent, unique within the location. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Immutable. The default language of the agent as a language tag. + // Required. Immutable. The default language of the agent as a language tag. // See [Language // Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) // for a list of the currently supported language codes. // This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method. - string default_language_code = 3 [(google.api.field_behavior) = IMMUTABLE]; + string default_language_code = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; // The list of all languages supported by the agent (except for the // `default_language_code`). diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto index 74d9e8224..e81e8d5a6 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto @@ -95,6 +95,17 @@ message Fulfillment { type: "dialogflow.googleapis.com/Webhook" }]; + // Whether Dialogflow should return currently queued fulfillment response + // messages in streaming APIs. If a webhook is specified, it happens before + // Dialogflow invokes webhook. + // Warning: + // 1) This flag only affects streaming API. Responses are still queued + // and returned once in non-streaming API. + // 2) The flag can be enabled in any fulfillment but only the first 3 partial + // responses will be returned. You may only want to apply it to fulfillments + // that have slow webhooks. + bool return_partial_responses = 8; + // The tag used by the webhook to identify which fulfillment is being called. // This field is required if `webhook` is specified. string tag = 3; diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto index d05ae1fab..8b149f13a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto @@ -226,8 +226,10 @@ message SecuritySettings { // If empty, we use the default DLP inspect config. // // The template name will have one of the following formats: - // `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - // `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + // `projects//inspectTemplates/