From 2091b1c815aef0a85f06a9d1101257e1f12e4668 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Mon, 29 Mar 2021 16:35:35 -0700 Subject: [PATCH 1/2] feat: include original user query in WebhookRequest; add GetTextCaseresult API. doc: clarify resource format for session response. PiperOrigin-RevId: 364734171 Source-Author: Google APIs Source-Date: Tue Mar 23 23:36:08 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 551ddbb55b96147012c00b66250dd5907556807c Source-Link: https://github.com/googleapis/googleapis/commit/551ddbb55b96147012c00b66250dd5907556807c --- .../cx/v3beta1/SessionEntityTypesClient.java | 8 - .../cx/v3beta1/TestCasesClient.java | 104 ++ .../cx/v3beta1/TestCasesSettings.java | 11 + .../dialogflow/cx/v3beta1/gapic_metadata.json | 3 + .../cx/v3beta1/stub/GrpcTestCasesStub.java | 36 + .../cx/v3beta1/stub/TestCasesStub.java | 6 + .../v3beta1/stub/TestCasesStubSettings.java | 30 +- .../cx/v3beta1/MockTestCasesImpl.java | 21 + .../cx/v3beta1/TestCasesClientTest.java | 96 ++ .../cx/v3beta1/SessionEntityTypesGrpc.java | 8 - .../dialogflow/cx/v3beta1/TestCasesGrpc.java | 121 ++ .../cx/v3beta1/GetTestCaseResultRequest.java | 672 ++++++++++ .../GetTestCaseResultRequestOrBuilder.java | 58 + .../cx/v3beta1/MatchIntentResponse.java | 54 +- .../v3beta1/MatchIntentResponseOrBuilder.java | 18 +- .../dialogflow/cx/v3beta1/QueryResult.java | 54 +- .../cx/v3beta1/QueryResultOrBuilder.java | 18 +- .../dialogflow/cx/v3beta1/SessionProto.java | 206 +-- .../dialogflow/cx/v3beta1/TestCaseProto.java | 168 +-- .../dialogflow/cx/v3beta1/WebhookProto.java | 214 ++-- .../dialogflow/cx/v3beta1/WebhookRequest.java | 1126 ++++++++++++++++- .../cx/v3beta1/WebhookRequestOrBuilder.java | 168 +++ .../cloud/dialogflow/cx/v3beta1/session.proto | 16 +- .../cx/v3beta1/session_entity_type.proto | 3 - .../dialogflow/cx/v3beta1/test_case.proto | 21 + .../cloud/dialogflow/cx/v3beta1/webhook.proto | 31 +- synth.metadata | 12 +- 27 files changed, 2903 insertions(+), 380 deletions(-) create mode 100644 proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java create mode 100644 proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequestOrBuilder.java diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java index 413bac946..a512e1b11 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java @@ -440,8 +440,6 @@ public final SessionEntityType getSessionEntityType(GetSessionEntityTypeRequest /** * Creates a session entity type. * - *

If the specified session entity type already exists, overrides the session entity type. - * *

Sample code: * *

{@code
@@ -477,8 +475,6 @@ public final SessionEntityType createSessionEntityType(
   /**
    * Creates a session entity type.
    *
-   * 

If the specified session entity type already exists, overrides the session entity type. - * *

Sample code: * *

{@code
@@ -515,8 +511,6 @@ public final SessionEntityType createSessionEntityType(
   /**
    * Creates a session entity type.
    *
-   * 

If the specified session entity type already exists, overrides the session entity type. - * *

Sample code: * *

{@code
@@ -544,8 +538,6 @@ public final SessionEntityType createSessionEntityType(CreateSessionEntityTypeRe
   /**
    * Creates a session entity type.
    *
-   * 

If the specified session entity type already exists, overrides the session entity type. - * *

Sample code: * *

{@code
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java
index 8a298812a..bd3f4da68 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java
@@ -1212,6 +1212,110 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
     return stub.listTestCaseResultsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Gets a test case result.
+   *
+   * 

Sample code: + * + *

{@code
+   * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
+   *   TestCaseResultName name =
+   *       TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]");
+   *   TestCaseResult response = testCasesClient.getTestCaseResult(name);
+   * }
+   * }
+ * + * @param name Required. The name of the testcase. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase + * ID>/results/<TestCaseResult ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestCaseResult getTestCaseResult(TestCaseResultName name) { + GetTestCaseResultRequest request = + GetTestCaseResultRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTestCaseResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a test case result. + * + *

Sample code: + * + *

{@code
+   * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
+   *   String name =
+   *       TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
+   *           .toString();
+   *   TestCaseResult response = testCasesClient.getTestCaseResult(name);
+   * }
+   * }
+ * + * @param name Required. The name of the testcase. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase + * ID>/results/<TestCaseResult ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestCaseResult getTestCaseResult(String name) { + GetTestCaseResultRequest request = GetTestCaseResultRequest.newBuilder().setName(name).build(); + return getTestCaseResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a test case result. + * + *

Sample code: + * + *

{@code
+   * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
+   *   GetTestCaseResultRequest request =
+   *       GetTestCaseResultRequest.newBuilder()
+   *           .setName(
+   *               TestCaseResultName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
+   *                   .toString())
+   *           .build();
+   *   TestCaseResult response = testCasesClient.getTestCaseResult(request);
+   * }
+   * }
+ * + * @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 TestCaseResult getTestCaseResult(GetTestCaseResultRequest request) { + return getTestCaseResultCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a test case result. + * + *

Sample code: + * + *

{@code
+   * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
+   *   GetTestCaseResultRequest request =
+   *       GetTestCaseResultRequest.newBuilder()
+   *           .setName(
+   *               TestCaseResultName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       testCasesClient.getTestCaseResultCallable().futureCall(request);
+   *   // Do something.
+   *   TestCaseResult response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getTestCaseResultCallable() { + return stub.getTestCaseResultCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesSettings.java index 0153008fe..0cc8144a2 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesSettings.java @@ -159,6 +159,11 @@ public UnaryCallSettings exportTestCasesSetti return ((TestCasesStubSettings) getStubSettings()).listTestCaseResultsSettings(); } + /** Returns the object with the settings used for calls to getTestCaseResult. */ + public UnaryCallSettings getTestCaseResultSettings() { + return ((TestCasesStubSettings) getStubSettings()).getTestCaseResultSettings(); + } + public static final TestCasesSettings create(TestCasesStubSettings stub) throws IOException { return new TestCasesSettings.Builder(stub.toBuilder()).build(); } @@ -348,6 +353,12 @@ public UnaryCallSettings.Builder exportTestCa return getStubSettingsBuilder().listTestCaseResultsSettings(); } + /** Returns the builder for the settings used for calls to getTestCaseResult. */ + public UnaryCallSettings.Builder + getTestCaseResultSettings() { + return getStubSettingsBuilder().getTestCaseResultSettings(); + } + @Override public TestCasesSettings build() throws IOException { return new TestCasesSettings(this); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json index 6400c2982..59da76066 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json @@ -295,6 +295,9 @@ "GetTestCase": { "methods": ["getTestCase", "getTestCase", "getTestCase", "getTestCaseCallable"] }, + "GetTestCaseResult": { + "methods": ["getTestCaseResult", "getTestCaseResult", "getTestCaseResult", "getTestCaseResultCallable"] + }, "ImportTestCases": { "methods": ["importTestCasesAsync", "importTestCasesOperationCallable", "importTestCasesCallable"] }, diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java index a9acbb4cf..2c96dca26 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcTestCasesStub.java @@ -39,6 +39,7 @@ import com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; import com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; +import com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; @@ -50,6 +51,7 @@ import com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; import com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; import com.google.cloud.dialogflow.cx.v3beta1.TestCase; +import com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult; import com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -181,6 +183,16 @@ public class GrpcTestCasesStub extends TestCasesStub { ProtoUtils.marshaller(ListTestCaseResultsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + getTestCaseResultMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.TestCases/GetTestCaseResult") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTestCaseResultRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TestCaseResult.getDefaultInstance())) + .build(); + private final UnaryCallable listTestCasesCallable; private final UnaryCallable listTestCasesPagedCallable; @@ -209,6 +221,7 @@ public class GrpcTestCasesStub extends TestCasesStub { listTestCaseResultsCallable; private final UnaryCallable listTestCaseResultsPagedCallable; + private final UnaryCallable getTestCaseResultCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -396,6 +409,19 @@ public Map extract(ListTestCaseResultsRequest request) { } }) .build(); + GrpcCallSettings getTestCaseResultTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTestCaseResultMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetTestCaseResultRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); this.listTestCasesCallable = callableFactory.createUnaryCallable( @@ -470,6 +496,11 @@ public Map extract(ListTestCaseResultsRequest request) { listTestCaseResultsTransportSettings, settings.listTestCaseResultsSettings(), clientContext); + this.getTestCaseResultCallable = + callableFactory.createUnaryCallable( + getTestCaseResultTransportSettings, + settings.getTestCaseResultSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -573,6 +604,11 @@ public UnaryCallable exportTestCasesCallable( return listTestCaseResultsPagedCallable; } + @Override + public UnaryCallable getTestCaseResultCallable() { + return getTestCaseResultCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStub.java index f0dc27d55..d558d59ff 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/TestCasesStub.java @@ -34,6 +34,7 @@ import com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; import com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; +import com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; @@ -45,6 +46,7 @@ import com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest; import com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse; import com.google.cloud.dialogflow.cx.v3beta1.TestCase; +import com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult; import com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -143,6 +145,10 @@ public UnaryCallable exportTestCasesCallable( throw new UnsupportedOperationException("Not implemented: listTestCaseResultsCallable()"); } + public UnaryCallable getTestCaseResultCallable() { + throw new UnsupportedOperationException("Not implemented: getTestCaseResultCallable()"); + } + @Override public abstract void close(); } 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 56971b1c8..52853eb92 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 @@ -56,6 +56,7 @@ import com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse; import com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest; +import com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse; @@ -148,6 +149,8 @@ public class TestCasesStubSettings extends StubSettings { private final PagedCallSettings< ListTestCaseResultsRequest, ListTestCaseResultsResponse, ListTestCaseResultsPagedResponse> listTestCaseResultsSettings; + private final UnaryCallSettings + getTestCaseResultSettings; private static final PagedListDescriptor LIST_TEST_CASES_PAGE_STR_DESC = @@ -349,6 +352,11 @@ public UnaryCallSettings exportTestCasesSetti return listTestCaseResultsSettings; } + /** Returns the object with the settings used for calls to getTestCaseResult. */ + public UnaryCallSettings getTestCaseResultSettings() { + return getTestCaseResultSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public TestCasesStub createStub() throws IOException { if (getTransportChannelProvider() @@ -433,6 +441,7 @@ protected TestCasesStubSettings(Builder settingsBuilder) throws IOException { exportTestCasesSettings = settingsBuilder.exportTestCasesSettings().build(); exportTestCasesOperationSettings = settingsBuilder.exportTestCasesOperationSettings().build(); listTestCaseResultsSettings = settingsBuilder.listTestCaseResultsSettings().build(); + getTestCaseResultSettings = settingsBuilder.getTestCaseResultSettings().build(); } /** Builder for TestCasesStubSettings. */ @@ -472,6 +481,8 @@ public static class Builder extends StubSettings.Builder listTestCaseResultsSettings; + private final UnaryCallSettings.Builder + getTestCaseResultSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -526,6 +537,7 @@ protected Builder(ClientContext clientContext) { exportTestCasesOperationSettings = OperationCallSettings.newBuilder(); listTestCaseResultsSettings = PagedCallSettings.newBuilder(LIST_TEST_CASE_RESULTS_PAGE_STR_FACT); + getTestCaseResultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -539,7 +551,8 @@ protected Builder(ClientContext clientContext) { calculateCoverageSettings, importTestCasesSettings, exportTestCasesSettings, - listTestCaseResultsSettings); + listTestCaseResultsSettings, + getTestCaseResultSettings); initDefaults(this); } @@ -561,6 +574,7 @@ protected Builder(TestCasesStubSettings settings) { exportTestCasesSettings = settings.exportTestCasesSettings.toBuilder(); exportTestCasesOperationSettings = settings.exportTestCasesOperationSettings.toBuilder(); listTestCaseResultsSettings = settings.listTestCaseResultsSettings.toBuilder(); + getTestCaseResultSettings = settings.getTestCaseResultSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -574,7 +588,8 @@ protected Builder(TestCasesStubSettings settings) { calculateCoverageSettings, importTestCasesSettings, exportTestCasesSettings, - listTestCaseResultsSettings); + listTestCaseResultsSettings, + getTestCaseResultSettings); } private static Builder createDefault() { @@ -644,6 +659,11 @@ 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 + .getTestCaseResultSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .runTestCaseOperationSettings() .setInitialCallSettings( @@ -860,6 +880,12 @@ public UnaryCallSettings.Builder exportTestCa return listTestCaseResultsSettings; } + /** Returns the builder for the settings used for calls to getTestCaseResult. */ + public UnaryCallSettings.Builder + getTestCaseResultSettings() { + return getTestCaseResultSettings; + } + @Override public TestCasesStubSettings build() throws IOException { return new TestCasesStubSettings(this); diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockTestCasesImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockTestCasesImpl.java index 16b692d2a..3c877df80 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockTestCasesImpl.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/MockTestCasesImpl.java @@ -290,4 +290,25 @@ public void listTestCaseResults( Exception.class.getName()))); } } + + @Override + public void getTestCaseResult( + GetTestCaseResultRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestCaseResult) { + requests.add(request); + responseObserver.onNext(((TestCaseResult) 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 GetTestCaseResult, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestCaseResult.class.getName(), + Exception.class.getName()))); + } + } } 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 db9c0fd65..6ae14c667 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 @@ -849,4 +849,100 @@ public void listTestCaseResultsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getTestCaseResultTest() throws Exception { + TestCaseResult expectedResponse = + TestCaseResult.newBuilder() + .setName( + TestCaseResultName.of( + "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]") + .toString()) + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .addAllConversationTurns(new ArrayList()) + .setTestResult(TestResult.forNumber(0)) + .setTestTime(Timestamp.newBuilder().build()) + .build(); + mockTestCases.addResponse(expectedResponse); + + TestCaseResultName name = + TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]"); + + TestCaseResult actualResponse = client.getTestCaseResult(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTestCases.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTestCaseResultRequest actualRequest = ((GetTestCaseResultRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTestCaseResultExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTestCases.addException(exception); + + try { + TestCaseResultName name = + TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]"); + client.getTestCaseResult(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTestCaseResultTest2() throws Exception { + TestCaseResult expectedResponse = + TestCaseResult.newBuilder() + .setName( + TestCaseResultName.of( + "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]") + .toString()) + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .addAllConversationTurns(new ArrayList()) + .setTestResult(TestResult.forNumber(0)) + .setTestTime(Timestamp.newBuilder().build()) + .build(); + mockTestCases.addResponse(expectedResponse); + + String name = "name3373707"; + + TestCaseResult actualResponse = client.getTestCaseResult(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTestCases.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTestCaseResultRequest actualRequest = ((GetTestCaseResultRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTestCaseResultExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTestCases.addException(exception); + + try { + String name = "name3373707"; + client.getTestCaseResult(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java index ed26b1f1a..b1c892946 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesGrpc.java @@ -373,8 +373,6 @@ public void getSessionEntityType( * *
      * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
      * 
*/ public void createSessionEntityType( @@ -514,8 +512,6 @@ public void getSessionEntityType( * *
      * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
      * 
*/ public void createSessionEntityType( @@ -614,8 +610,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType getSessionEntity * *
      * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
      * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType createSessionEntityType( @@ -705,8 +699,6 @@ protected SessionEntityTypesFutureStub build( * *
      * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java index 267ab39a5..0b1e43d5a 100644 --- a/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesGrpc.java @@ -539,6 +539,53 @@ private TestCasesGrpc() {} return getListTestCaseResultsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, + com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult> + getGetTestCaseResultMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTestCaseResult", + requestType = com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, + com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult> + getGetTestCaseResultMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, + com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult> + getGetTestCaseResultMethod; + if ((getGetTestCaseResultMethod = TestCasesGrpc.getGetTestCaseResultMethod) == null) { + synchronized (TestCasesGrpc.class) { + if ((getGetTestCaseResultMethod = TestCasesGrpc.getGetTestCaseResultMethod) == null) { + TestCasesGrpc.getGetTestCaseResultMethod = + getGetTestCaseResultMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTestCaseResult")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult + .getDefaultInstance())) + .setSchemaDescriptor( + new TestCasesMethodDescriptorSupplier("GetTestCaseResult")) + .build(); + } + } + } + return getGetTestCaseResultMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static TestCasesStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -754,6 +801,21 @@ public void listTestCaseResults( getListTestCaseResultsMethod(), responseObserver); } + /** + * + * + *
+     * Gets a test case result.
+     * 
+ */ + public void getTestCaseResult( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTestCaseResultMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -829,6 +891,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse>( this, METHODID_LIST_TEST_CASE_RESULTS))) + .addMethod( + getGetTestCaseResultMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest, + com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult>( + this, METHODID_GET_TEST_CASE_RESULT))) .build(); } } @@ -1037,6 +1106,23 @@ public void listTestCaseResults( request, responseObserver); } + + /** + * + * + *
+     * Gets a test case result.
+     * 
+ */ + public void getTestCaseResult( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTestCaseResultMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1204,6 +1290,19 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse listTe return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTestCaseResultsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets a test case result.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult getTestCaseResult( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTestCaseResultMethod(), getCallOptions(), request); + } } /** @@ -1378,6 +1477,20 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTestCaseResultsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets a test case result.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult> + getTestCaseResult(com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTestCaseResultMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_TEST_CASES = 0; @@ -1391,6 +1504,7 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_IMPORT_TEST_CASES = 8; private static final int METHODID_EXPORT_TEST_CASES = 9; private static final int METHODID_LIST_TEST_CASE_RESULTS = 10; + private static final int METHODID_GET_TEST_CASE_RESULT = 11; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1473,6 +1587,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse>) responseObserver); break; + case METHODID_GET_TEST_CASE_RESULT: + serviceImpl.getTestCaseResult( + (com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -1548,6 +1668,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getImportTestCasesMethod()) .addMethod(getExportTestCasesMethod()) .addMethod(getListTestCaseResultsMethod()) + .addMethod(getGetTestCaseResultMethod()) .build(); } } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java new file mode 100644 index 000000000..4513e89ea --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java @@ -0,0 +1,672 @@ +/* + * 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/v3beta1/test_case.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResult].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} + */ +public final class GetTestCaseResultRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) + GetTestCaseResultRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTestCaseResultRequest.newBuilder() to construct. + private GetTestCaseResultRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTestCaseResultRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTestCaseResultRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTestCaseResultRequest( + 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(); + + name_ = 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.v3beta1.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the testcase.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+   * Required. The name of the testcase.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + + 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_); + } + 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_); + } + 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.v3beta1.GetTestCaseResultRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest other = + (com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest 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 [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResult].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.class, + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.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_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest build() { + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest result = + new com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(this); + result.name_ = name_; + 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.v3beta1.GetTestCaseResultRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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.v3beta1.GetTestCaseResultRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) + private static final com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTestCaseResultRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTestCaseResultRequest(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.v3beta1.GetTestCaseResultRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequestOrBuilder.java new file mode 100644 index 000000000..17ec015cd --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/v3beta1/test_case.proto + +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface GetTestCaseResultRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the testcase.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the testcase.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponse.java index c4990e618..3800c784b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponse.java @@ -296,9 +296,11 @@ public com.google.protobuf.ByteString getTextBytes() { *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -311,9 +313,11 @@ public boolean hasTriggerIntent() { *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -339,9 +343,11 @@ public java.lang.String getTriggerIntent() { *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -368,7 +374,7 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -383,7 +389,7 @@ public boolean hasTranscript() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -411,7 +417,7 @@ public java.lang.String getTranscript() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -1292,9 +1298,11 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -1308,9 +1316,11 @@ public boolean hasTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -1337,9 +1347,11 @@ public java.lang.String getTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -1366,9 +1378,11 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @param value The triggerIntent to set. * @return This builder for chaining. @@ -1388,9 +1402,11 @@ public Builder setTriggerIntent(java.lang.String value) { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -1408,9 +1424,11 @@ public Builder clearTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @param value The bytes for triggerIntent to set. * @return This builder for chaining. @@ -1431,7 +1449,7 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1447,7 +1465,7 @@ public boolean hasTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1476,7 +1494,7 @@ public java.lang.String getTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1505,7 +1523,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1527,7 +1545,7 @@ public Builder setTranscript(java.lang.String value) { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1547,7 +1565,7 @@ public Builder clearTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponseOrBuilder.java index a4bad01cd..ffe7b42d1 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponseOrBuilder.java @@ -69,9 +69,11 @@ public interface MatchIntentResponseOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -82,9 +84,11 @@ public interface MatchIntentResponseOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -95,9 +99,11 @@ public interface MatchIntentResponseOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -108,7 +114,7 @@ public interface MatchIntentResponseOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -121,7 +127,7 @@ public interface MatchIntentResponseOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -134,7 +140,7 @@ public interface MatchIntentResponseOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java index a6adee834..ea52600be 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java @@ -420,9 +420,11 @@ public com.google.protobuf.ByteString getTextBytes() { *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -435,9 +437,11 @@ public boolean hasTriggerIntent() { *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -463,9 +467,11 @@ public java.lang.String getTriggerIntent() { *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -492,7 +498,7 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -507,7 +513,7 @@ public boolean hasTranscript() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -535,7 +541,7 @@ public java.lang.String getTranscript() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -2246,9 +2252,11 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -2262,9 +2270,11 @@ public boolean hasTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -2291,9 +2301,11 @@ public java.lang.String getTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -2320,9 +2332,11 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @param value The triggerIntent to set. * @return This builder for chaining. @@ -2342,9 +2356,11 @@ public Builder setTriggerIntent(java.lang.String value) { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -2362,9 +2378,11 @@ public Builder clearTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @param value The bytes for triggerIntent to set. * @return This builder for chaining. @@ -2385,7 +2403,7 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2401,7 +2419,7 @@ public boolean hasTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2430,7 +2448,7 @@ public java.lang.String getTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2459,7 +2477,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2481,7 +2499,7 @@ public Builder setTranscript(java.lang.String value) { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2501,7 +2519,7 @@ public Builder clearTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java index 7f3f05086..57ec257b5 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResultOrBuilder.java @@ -69,9 +69,11 @@ public interface QueryResultOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -82,9 +84,11 @@ public interface QueryResultOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -95,9 +99,11 @@ public interface QueryResultOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -108,7 +114,7 @@ public interface QueryResultOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -121,7 +127,7 @@ public interface QueryResultOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -134,7 +140,7 @@ public interface QueryResultOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; 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 005799443..8551574d4 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 @@ -191,109 +191,111 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v3beta1.EventInputH\000\022=\n\004dtmf\030\007 \001(\0132-.go" + "ogle.cloud.dialogflow.cx.v3beta1.DtmfInp" + "utH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007\n\005inpu" - + "t\"\331\005\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022\030\n\016tri" - + "gger_intent\030\013 \001(\tH\000\022\024\n\ntranscript\030\014 \001(\tH" - + "\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\022\025\n\rlanguage_c" - + "ode\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132\027.google.p" - + "rotobuf.Struct\022N\n\021response_messages\030\004 \003(" - + "\01323.google.cloud.dialogflow.cx.v3beta1.R" - + "esponseMessage\022,\n\020webhook_statuses\030\r \003(\013" - + "2\022.google.rpc.Status\0221\n\020webhook_payloads" - + "\030\006 \003(\0132\027.google.protobuf.Struct\022>\n\014curre" - + "nt_page\030\007 \001(\0132(.google.cloud.dialogflow." - + "cx.v3beta1.Page\022>\n\006intent\030\010 \001(\0132*.google" - + ".cloud.dialogflow.cx.v3beta1.IntentB\002\030\001\022" - + "\'\n\033intent_detection_confidence\030\t \001(\002B\002\030\001" - + "\0228\n\005match\030\017 \001(\0132).google.cloud.dialogflo" - + "w.cx.v3beta1.Match\0220\n\017diagnostic_info\030\n " - + "\001(\0132\027.google.protobuf.Struct\022^\n\031sentimen" - + "t_analysis_result\030\021 \001(\0132;.google.cloud.d" - + "ialogflow.cx.v3beta1.SentimentAnalysisRe" - + "sultB\007\n\005query\"\036\n\tTextInput\022\021\n\004text\030\001 \001(\t" - + "B\003\340A\002\"G\n\013IntentInput\0228\n\006intent\030\001 \001(\tB(\340A" - + "\002\372A\"\n dialogflow.googleapis.com/Intent\"f" - + "\n\nAudioInput\022I\n\006config\030\001 \001(\01324.google.cl" - + "oud.dialogflow.cx.v3beta1.InputAudioConf" - + "igB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005" - + "event\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\006inte" - + "nt\030\001 \001(\0132*.google.cloud.dialogflow.cx.v3" - + "beta1.Intent\022\r\n\005event\030\006 \001(\t\022+\n\nparameter" - + "s\030\002 \001(\0132\027.google.protobuf.Struct\022\026\n\016reso" - + "lved_input\030\003 \001(\t\022G\n\nmatch_type\030\004 \001(\01623.g" - + "oogle.cloud.dialogflow.cx.v3beta1.Match." - + "MatchType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\tMatchT" - + "ype\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n\006INTEN" - + "T\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETER_FILL" - + "ING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVE" - + "NT\020\006\"\345\001\n\022MatchIntentRequest\022:\n\007session\030\001" - + " \001(\tB)\340A\002\372A#\n!dialogflow.googleapis.com/" - + "Session\022I\n\014query_params\030\002 \001(\01323.google.c" - + "loud.dialogflow.cx.v3beta1.QueryParamete" - + "rs\022H\n\013query_input\030\003 \001(\0132..google.cloud.d" - + "ialogflow.cx.v3beta1.QueryInputB\003\340A\002\"\363\001\n" - + "\023MatchIntentResponse\022\016\n\004text\030\001 \001(\tH\000\022\030\n\016" - + "trigger_intent\030\002 \001(\tH\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.dialogflow.cx.v3be" - + "ta1.Match\022>\n\014current_page\030\005 \001(\0132(.google" - + ".cloud.dialogflow.cx.v3beta1.PageB\007\n\005que" - + "ry\"\372\001\n\024FulfillIntentRequest\022T\n\024match_int" - + "ent_request\030\001 \001(\01326.google.cloud.dialogf" - + "low.cx.v3beta1.MatchIntentRequest\0228\n\005mat" - + "ch\030\002 \001(\0132).google.cloud.dialogflow.cx.v3" - + "beta1.Match\022R\n\023output_audio_config\030\003 \001(\013" - + "25.google.cloud.dialogflow.cx.v3beta1.Ou" - + "tputAudioConfig\"\335\001\n\025FulfillIntentRespons" - + "e\022\023\n\013response_id\030\001 \001(\t\022E\n\014query_result\030\002" - + " \001(\0132/.google.cloud.dialogflow.cx.v3beta" - + "1.QueryResult\022\024\n\014output_audio\030\003 \001(\014\022R\n\023o" - + "utput_audio_config\030\004 \001(\01325.google.cloud." - + "dialogflow.cx.v3beta1.OutputAudioConfig\"" - + ";\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\014De" - + "tectIntent\0227.google.cloud.dialogflow.cx." - + "v3beta1.DetectIntentRequest\0328.google.clo" - + "ud.dialogflow.cx.v3beta1.DetectIntentRes" - + "ponse\"\266\001\202\323\344\223\002\257\001\"J/v3beta1/{session=proje" - + "cts/*/locations/*/agents/*/sessions/*}:d" - + "etectIntent:\001*Z^\"Y/v3beta1/{session=proj" - + "ects/*/locations/*/agents/*/environments" - + "/*/sessions/*}:detectIntent:\001*\022\242\001\n\025Strea" - + "mingDetectIntent\022@.google.cloud.dialogfl" - + "ow.cx.v3beta1.StreamingDetectIntentReque" - + "st\032A.google.cloud.dialogflow.cx.v3beta1." - + "StreamingDetectIntentResponse\"\000(\0010\001\022\265\002\n\013" - + "MatchIntent\0226.google.cloud.dialogflow.cx" - + ".v3beta1.MatchIntentRequest\0327.google.clo" - + "ud.dialogflow.cx.v3beta1.MatchIntentResp" - + "onse\"\264\001\202\323\344\223\002\255\001\"I/v3beta1/{session=projec" - + "ts/*/locations/*/agents/*/sessions/*}:ma" - + "tchIntent:\001*Z]\"X/v3beta1/{session=projec" + + "t\"\200\006\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022?\n\016tri" + + "gger_intent\030\013 \001(\tB%\372A\"\n dialogflow.googl" + + "eapis.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_co" + + "de\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132\027.google.pr" + + "otobuf.Struct\022N\n\021response_messages\030\004 \003(\013" + + "23.google.cloud.dialogflow.cx.v3beta1.Re" + + "sponseMessage\022,\n\020webhook_statuses\030\r \003(\0132" + + "\022.google.rpc.Status\0221\n\020webhook_payloads\030" + + "\006 \003(\0132\027.google.protobuf.Struct\022>\n\014curren" + + "t_page\030\007 \001(\0132(.google.cloud.dialogflow.c" + + "x.v3beta1.Page\022>\n\006intent\030\010 \001(\0132*.google." + + "cloud.dialogflow.cx.v3beta1.IntentB\002\030\001\022\'" + + "\n\033intent_detection_confidence\030\t \001(\002B\002\030\001\022" + + "8\n\005match\030\017 \001(\0132).google.cloud.dialogflow" + + ".cx.v3beta1.Match\0220\n\017diagnostic_info\030\n \001" + + "(\0132\027.google.protobuf.Struct\022^\n\031sentiment" + + "_analysis_result\030\021 \001(\0132;.google.cloud.di" + + "alogflow.cx.v3beta1.SentimentAnalysisRes" + + "ultB\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(\tB(\340A\002" + + "\372A\"\n dialogflow.googleapis.com/Intent\"f\n" + + "\nAudioInput\022I\n\006config\030\001 \001(\01324.google.clo" + + "ud.dialogflow.cx.v3beta1.InputAudioConfi" + + "gB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005e" + + "vent\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\006inten" + + "t\030\001 \001(\0132*.google.cloud.dialogflow.cx.v3b" + + "eta1.Intent\022\r\n\005event\030\006 \001(\t\022+\n\nparameters" + + "\030\002 \001(\0132\027.google.protobuf.Struct\022\026\n\016resol" + + "ved_input\030\003 \001(\t\022G\n\nmatch_type\030\004 \001(\01623.go" + + "ogle.cloud.dialogflow.cx.v3beta1.Match.M" + + "atchType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\tMatchTy" + + "pe\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n\006INTENT" + + "\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETER_FILLI" + + "NG\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVEN" + + "T\020\006\"\345\001\n\022MatchIntentRequest\022:\n\007session\030\001 " + + "\001(\tB)\340A\002\372A#\n!dialogflow.googleapis.com/S" + + "ession\022I\n\014query_params\030\002 \001(\01323.google.cl" + + "oud.dialogflow.cx.v3beta1.QueryParameter" + + "s\022H\n\013query_input\030\003 \001(\0132..google.cloud.di" + + "alogflow.cx.v3beta1.QueryInputB\003\340A\002\"\232\002\n\023" + + "MatchIntentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016t" + + "rigger_intent\030\002 \001(\tB%\372A\"\n dialogflow.goo" + + "gleapis.com/IntentH\000\022\024\n\ntranscript\030\003 \001(\t" + + "H\000\022\027\n\rtrigger_event\030\006 \001(\tH\000\022:\n\007matches\030\004" + + " \003(\0132).google.cloud.dialogflow.cx.v3beta" + + "1.Match\022>\n\014current_page\030\005 \001(\0132(.google.c" + + "loud.dialogflow.cx.v3beta1.PageB\007\n\005query" + + "\"\372\001\n\024FulfillIntentRequest\022T\n\024match_inten" + + "t_request\030\001 \001(\01326.google.cloud.dialogflo" + + "w.cx.v3beta1.MatchIntentRequest\0228\n\005match" + + "\030\002 \001(\0132).google.cloud.dialogflow.cx.v3be" + + "ta1.Match\022R\n\023output_audio_config\030\003 \001(\01325" + + ".google.cloud.dialogflow.cx.v3beta1.Outp" + + "utAudioConfig\"\335\001\n\025FulfillIntentResponse\022" + + "\023\n\013response_id\030\001 \001(\t\022E\n\014query_result\030\002 \001" + + "(\0132/.google.cloud.dialogflow.cx.v3beta1." + + "QueryResult\022\024\n\014output_audio\030\003 \001(\014\022R\n\023out" + + "put_audio_config\030\004 \001(\01325.google.cloud.di" + + "alogflow.cx.v3beta1.OutputAudioConfig\";\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\014Dete" + + "ctIntent\0227.google.cloud.dialogflow.cx.v3" + + "beta1.DetectIntentRequest\0328.google.cloud" + + ".dialogflow.cx.v3beta1.DetectIntentRespo" + + "nse\"\266\001\202\323\344\223\002\257\001\"J/v3beta1/{session=project" + + "s/*/locations/*/agents/*/sessions/*}:det" + + "ectIntent:\001*Z^\"Y/v3beta1/{session=projec" + + "ts/*/locations/*/agents/*/environments/*" + + "/sessions/*}:detectIntent:\001*\022\242\001\n\025Streami" + + "ngDetectIntent\022@.google.cloud.dialogflow" + + ".cx.v3beta1.StreamingDetectIntentRequest" + + "\032A.google.cloud.dialogflow.cx.v3beta1.St" + + "reamingDetectIntentResponse\"\000(\0010\001\022\265\002\n\013Ma" + + "tchIntent\0226.google.cloud.dialogflow.cx.v" + + "3beta1.MatchIntentRequest\0327.google.cloud" + + ".dialogflow.cx.v3beta1.MatchIntentRespon" + + "se\"\264\001\202\323\344\223\002\255\001\"I/v3beta1/{session=projects" + + "/*/locations/*/agents/*/sessions/*}:matc" + + "hIntent:\001*Z]\"X/v3beta1/{session=projects" + + "/*/locations/*/agents/*/environments/*/s" + + "essions/*}:matchIntent:\001*\022\351\002\n\rFulfillInt" + + "ent\0228.google.cloud.dialogflow.cx.v3beta1" + + ".FulfillIntentRequest\0329.google.cloud.dia" + + "logflow.cx.v3beta1.FulfillIntentResponse" + + "\"\342\001\202\323\344\223\002\333\001\"`/v3beta1/{match_intent_reque" + + "st.session=projects/*/locations/*/agents" + + "/*/sessions/*}:fulfillIntent:\001*Zt\"o/v3be" + + "ta1/{match_intent_request.session=projec" + "ts/*/locations/*/agents/*/environments/*" - + "/sessions/*}:matchIntent:\001*\022\351\002\n\rFulfillI" - + "ntent\0228.google.cloud.dialogflow.cx.v3bet" - + "a1.FulfillIntentRequest\0329.google.cloud.d" - + "ialogflow.cx.v3beta1.FulfillIntentRespon" - + "se\"\342\001\202\323\344\223\002\333\001\"`/v3beta1/{match_intent_req" - + "uest.session=projects/*/locations/*/agen" - + "ts/*/sessions/*}:fulfillIntent:\001*Zt\"o/v3" - + "beta1/{match_intent_request.session=proj" - + "ects/*/locations/*/agents/*/environments" - + "/*/sessions/*}:fulfillIntent:\001*\032x\312A\031dial" - + "ogflow.googleapis.com\322AYhttps://www.goog" - + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/dialogflowB\203\003\n&co" - + "m.google.cloud.dialogflow.cx.v3beta1B\014Se" - + "ssionProtoP\001ZDgoogle.golang.org/genproto" - + "/googleapis/cloud/dialogflow/cx/v3beta1;" - + "cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx." - + "V3Beta1\352A\324\001\n!dialogflow.googleapis.com/S" - + "ession\022Iprojects/{project}/locations/{lo" - + "cation}/agents/{agent}/sessions/{session" - + "}\022dprojects/{project}/locations/{locatio" - + "n}/agents/{agent}/environments/{environm" - + "ent}/sessions/{session}b\006proto3" + + "/sessions/*}:fulfillIntent:\001*\032x\312A\031dialog" + + "flow.googleapis.com\322AYhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/dialogflowB\203\003\n&com." + + "google.cloud.dialogflow.cx.v3beta1B\014Sess" + + "ionProtoP\001ZDgoogle.golang.org/genproto/g" + + "oogleapis/cloud/dialogflow/cx/v3beta1;cx" + + "\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3" + + "Beta1\352A\324\001\n!dialogflow.googleapis.com/Ses" + + "sion\022Iprojects/{project}/locations/{loca" + + "tion}/agents/{agent}/sessions/{session}\022" + + "dprojects/{project}/locations/{location}" + + "/agents/{agent}/environments/{environmen" + + "t}/sessions/{session}b\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/TestCaseProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseProto.java index 934347eb3..1d7e4fe13 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 @@ -183,6 +183,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_ListTestCaseResultsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_ListTestCaseResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -383,80 +387,88 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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*A\n\nTestResult" - + "\022\033\n\027TEST_RESULT_UNSPECIFIED\020\000\022\n\n\006PASSED\020" - + "\001\022\n\n\006FAILED\020\0022\330\024\n\tTestCases\022\322\001\n\rListTest" - + "Cases\0228.google.cloud.dialogflow.cx.v3bet" - + "a1.ListTestCasesRequest\0329.google.cloud.d" - + "ialogflow.cx.v3beta1.ListTestCasesRespon" - + "se\"L\202\323\344\223\002=\022;/v3beta1/{parent=projects/*/" - + "locations/*/agents/*}/testCases\332A\006parent" - + "\022\314\001\n\024BatchDeleteTestCases\022?.google.cloud" - + ".dialogflow.cx.v3beta1.BatchDeleteTestCa" - + "sesRequest\032\026.google.protobuf.Empty\"[\202\323\344\223" - + "\002L\"G/v3beta1/{parent=projects/*/location" - + "s/*/agents/*}/testCases:batchDelete:\001*\332A" - + "\006parent\022\277\001\n\013GetTestCase\0226.google.cloud.d" - + "ialogflow.cx.v3beta1.GetTestCaseRequest\032" - + ",.google.cloud.dialogflow.cx.v3beta1.Tes" - + "tCase\"J\202\323\344\223\002=\022;/v3beta1/{name=projects/*" - + "/locations/*/agents/*/testCases/*}\332A\004nam" - + "e\022\334\001\n\016CreateTestCase\0229.google.cloud.dial" - + "ogflow.cx.v3beta1.CreateTestCaseRequest\032" - + ",.google.cloud.dialogflow.cx.v3beta1.Tes" - + "tCase\"a\202\323\344\223\002H\";/v3beta1/{parent=projects" - + "/*/locations/*/agents/*}/testCases:\ttest" - + "_case\332A\020parent,test_case\022\353\001\n\016UpdateTestC" - + "ase\0229.google.cloud.dialogflow.cx.v3beta1" - + ".UpdateTestCaseRequest\032,.google.cloud.di" - + "alogflow.cx.v3beta1.TestCase\"p\202\323\344\223\002R2E/v" - + "3beta1/{test_case.name=projects/*/locati" - + "ons/*/agents/*/testCases/*}:\ttest_case\332A" - + "\025test_case,update_mask\022\335\001\n\013RunTestCase\0226" - + ".google.cloud.dialogflow.cx.v3beta1.RunT" - + "estCaseRequest\032\035.google.longrunning.Oper" - + "ation\"w\202\323\344\223\002D\"?/v3beta1/{name=projects/*" - + "/locations/*/agents/*/testCases/*}:run:\001" - + "*\312A*\n\023RunTestCaseResponse\022\023RunTestCaseMe" - + "tadata\022\373\001\n\021BatchRunTestCases\022<.google.cl" - + "oud.dialogflow.cx.v3beta1.BatchRunTestCa" - + "sesRequest\032\035.google.longrunning.Operatio" - + "n\"\210\001\202\323\344\223\002I\"D/v3beta1/{parent=projects/*/" - + "locations/*/agents/*}/testCases:batchRun" - + ":\001*\312A6\n\031BatchRunTestCasesResponse\022\031Batch" - + "RunTestCasesMetadata\022\346\001\n\021CalculateCovera" - + "ge\022<.google.cloud.dialogflow.cx.v3beta1." - + "CalculateCoverageRequest\032=.google.cloud." - + "dialogflow.cx.v3beta1.CalculateCoverageR" - + "esponse\"T\202\323\344\223\002N\022L/v3beta1/{agent=project" - + "s/*/locations/*/agents/*}/testCases:calc" - + "ulateCoverage\022\361\001\n\017ImportTestCases\022:.goog" - + "le.cloud.dialogflow.cx.v3beta1.ImportTes" - + "tCasesRequest\032\035.google.longrunning.Opera" - + "tion\"\202\001\202\323\344\223\002G\"B/v3beta1/{parent=projects" - + "/*/locations/*/agents/*}/testCases:impor" - + "t:\001*\312A2\n\027ImportTestCasesResponse\022\027Import" - + "TestCasesMetadata\022\361\001\n\017ExportTestCases\022:." - + "google.cloud.dialogflow.cx.v3beta1.Expor" - + "tTestCasesRequest\032\035.google.longrunning.O" - + "peration\"\202\001\202\323\344\223\002G\"B/v3beta1/{parent=proj" - + "ects/*/locations/*/agents/*}/testCases:e" - + "xport:\001*\312A2\n\027ExportTestCasesResponse\022\027Ex" - + "portTestCasesMetadata\022\356\001\n\023ListTestCaseRe" - + "sults\022>.google.cloud.dialogflow.cx.v3bet" - + "a1.ListTestCaseResultsRequest\032?.google.c" - + "loud.dialogflow.cx.v3beta1.ListTestCaseR" - + "esultsResponse\"V\202\323\344\223\002G\022E/v3beta1/{parent" - + "=projects/*/locations/*/agents/*/testCas" - + "es/*}/results\332A\006parent\032x\312A\031dialogflow.go" - + "ogleapis.com\322AYhttps://www.googleapis.co" - + "m/auth/cloud-platform,https://www.google" - + "apis.com/auth/dialogflowB\254\001\n&com.google." - + "cloud.dialogflow.cx.v3beta1B\rTestCasePro" - + "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" + + "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" + + ".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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -814,6 +826,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TestCaseResults", "NextPageToken", }); + internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_GetTestCaseResultRequest_descriptor, + new java.lang.String[] { + "Name", + }); 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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java index bb9ac232b..2010f28b3 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java @@ -165,110 +165,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + ".FieldMask\"^\n\024DeleteWebhookRequest\0227\n\004na" + "me\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis." - + "com/Webhook\022\r\n\005force\030\002 \001(\010\"\362\010\n\016WebhookRe" + + "com/Webhook\022\r\n\005force\030\002 \001(\010\"\373\t\n\016WebhookRe" + "quest\022!\n\031detect_intent_response_id\030\001 \001(\t" - + "\022\\\n\020fulfillment_info\030\006 \001(\0132B.google.clou" - + "d.dialogflow.cx.v3beta1.WebhookRequest.F" - + "ulfillmentInfo\022R\n\013intent_info\030\003 \001(\0132=.go" - + "ogle.cloud.dialogflow.cx.v3beta1.Webhook" - + "Request.IntentInfo\022?\n\tpage_info\030\004 \001(\0132,." - + "google.cloud.dialogflow.cx.v3beta1.PageI" - + "nfo\022E\n\014session_info\030\005 \001(\0132/.google.cloud" - + ".dialogflow.cx.v3beta1.SessionInfo\022E\n\010me" - + "ssages\030\007 \003(\01323.google.cloud.dialogflow.c" - + "x.v3beta1.ResponseMessage\022(\n\007payload\030\010 \001" - + "(\0132\027.google.protobuf.Struct\022m\n\031sentiment" - + "_analysis_result\030\t \001(\0132J.google.cloud.di" - + "alogflow.cx.v3beta1.WebhookRequest.Senti" - + "mentAnalysisResult\032\036\n\017FulfillmentInfo\022\013\n" - + "\003tag\030\001 \001(\t\032\305\003\n\nIntentInfo\022B\n\023last_matche" - + "d_intent\030\001 \001(\tB%\372A\"\n dialogflow.googleap" - + "is.com/Intent\022\024\n\014display_name\030\003 \001(\t\022a\n\np" - + "arameters\030\002 \003(\0132M.google.cloud.dialogflo" - + "w.cx.v3beta1.WebhookRequest.IntentInfo.P" - + "arametersEntry\022\022\n\nconfidence\030\004 \001(\002\032^\n\024In" - + "tentParameterValue\022\026\n\016original_value\030\001 \001" - + "(\t\022.\n\016resolved_value\030\002 \001(\0132\026.google.prot" - + "obuf.Value\032\205\001\n\017ParametersEntry\022\013\n\003key\030\001 " - + "\001(\t\022a\n\005value\030\002 \001(\0132R.google.cloud.dialog" - + "flow.cx.v3beta1.WebhookRequest.IntentInf" - + "o.IntentParameterValue:\0028\001\032;\n\027SentimentA" - + "nalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitud" - + "e\030\002 \001(\002\"\310\005\n\017WebhookResponse\022e\n\024fulfillme" - + "nt_response\030\001 \001(\0132G.google.cloud.dialogf" - + "low.cx.v3beta1.WebhookResponse.Fulfillme" - + "ntResponse\022?\n\tpage_info\030\002 \001(\0132,.google.c" - + "loud.dialogflow.cx.v3beta1.PageInfo\022E\n\014s" - + "ession_info\030\003 \001(\0132/.google.cloud.dialogf" - + "low.cx.v3beta1.SessionInfo\022(\n\007payload\030\004 " - + "\001(\0132\027.google.protobuf.Struct\022:\n\013target_p" - + "age\030\005 \001(\tB#\372A \n\036dialogflow.googleapis.co" - + "m/PageH\000\022:\n\013target_flow\030\006 \001(\tB#\372A \n\036dial" - + "ogflow.googleapis.com/FlowH\000\032\225\002\n\023Fulfill" - + "mentResponse\022E\n\010messages\030\001 \003(\01323.google." - + "cloud.dialogflow.cx.v3beta1.ResponseMess" - + "age\022m\n\016merge_behavior\030\002 \001(\0162U.google.clo" - + "ud.dialogflow.cx.v3beta1.WebhookResponse" - + ".FulfillmentResponse.MergeBehavior\"H\n\rMe" - + "rgeBehavior\022\036\n\032MERGE_BEHAVIOR_UNSPECIFIE" - + "D\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\ntransiti" - + "on\"\254\004\n\010PageInfo\0229\n\014current_page\030\001 \001(\tB#\372" - + "A \n\036dialogflow.googleapis.com/Page\022H\n\tfo" - + "rm_info\030\003 \001(\01325.google.cloud.dialogflow." - + "cx.v3beta1.PageInfo.FormInfo\032\232\003\n\010FormInf" - + "o\022[\n\016parameter_info\030\002 \003(\0132C.google.cloud" - + ".dialogflow.cx.v3beta1.PageInfo.FormInfo" - + ".ParameterInfo\032\260\002\n\rParameterInfo\022\024\n\014disp" - + "lay_name\030\001 \001(\t\022\020\n\010required\030\002 \001(\010\022a\n\005stat" - + "e\030\003 \001(\0162R.google.cloud.dialogflow.cx.v3b" - + "eta1.PageInfo.FormInfo.ParameterInfo.Par" - + "ameterState\022%\n\005value\030\004 \001(\0132\026.google.prot" - + "obuf.Value\022\026\n\016just_collected\030\005 \001(\010\"U\n\016Pa" - + "rameterState\022\037\n\033PARAMETER_STATE_UNSPECIF" - + "IED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INVALID\020\002\022\n\n\006FILLED\020" - + "\003\"\346\001\n\013SessionInfo\0227\n\007session\030\001 \001(\tB&\372A#\n" - + "!dialogflow.googleapis.com/Session\022S\n\npa" - + "rameters\030\002 \003(\0132?.google.cloud.dialogflow" - + ".cx.v3beta1.SessionInfo.ParametersEntry\032" - + "I\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value" - + "\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\375\010\n\010W" - + "ebhooks\022\316\001\n\014ListWebhooks\0227.google.cloud." - + "dialogflow.cx.v3beta1.ListWebhooksReques" - + "t\0328.google.cloud.dialogflow.cx.v3beta1.L" - + "istWebhooksResponse\"K\202\323\344\223\002<\022:/v3beta1/{p" - + "arent=projects/*/locations/*/agents/*}/w" - + "ebhooks\332A\006parent\022\273\001\n\nGetWebhook\0225.google" - + ".cloud.dialogflow.cx.v3beta1.GetWebhookR" - + "equest\032+.google.cloud.dialogflow.cx.v3be" - + "ta1.Webhook\"I\202\323\344\223\002<\022:/v3beta1/{name=proj" - + "ects/*/locations/*/agents/*/webhooks/*}\332" - + "A\004name\022\324\001\n\rCreateWebhook\0228.google.cloud." - + "dialogflow.cx.v3beta1.CreateWebhookReque" - + "st\032+.google.cloud.dialogflow.cx.v3beta1." - + "Webhook\"\\\202\323\344\223\002E\":/v3beta1/{parent=projec" - + "ts/*/locations/*/agents/*}/webhooks:\007web" - + "hook\332A\016parent,webhook\022\341\001\n\rUpdateWebhook\022" - + "8.google.cloud.dialogflow.cx.v3beta1.Upd" - + "ateWebhookRequest\032+.google.cloud.dialogf" - + "low.cx.v3beta1.Webhook\"i\202\323\344\223\002M2B/v3beta1" - + "/{webhook.name=projects/*/locations/*/ag" - + "ents/*/webhooks/*}:\007webhook\332A\023webhook,up" - + "date_mask\022\254\001\n\rDeleteWebhook\0228.google.clo" - + "ud.dialogflow.cx.v3beta1.DeleteWebhookRe" - + "quest\032\026.google.protobuf.Empty\"I\202\323\344\223\002<*:/" - + "v3beta1/{name=projects/*/locations/*/age" - + "nts/*/webhooks/*}\332A\004name\032x\312A\031dialogflow." - + "googleapis.com\322AYhttps://www.googleapis." - + "com/auth/cloud-platform,https://www.goog" - + "leapis.com/auth/dialogflowB\252\002\n&com.googl" - + "e.cloud.dialogflow.cx.v3beta1B\014WebhookPr" - + "otoP\001ZDgoogle.golang.org/genproto/google" - + "apis/cloud/dialogflow/cx/v3beta1;cx\370\001\001\242\002" - + "\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta1" - + "\352A|\n\'servicedirectory.googleapis.com/Ser" - + "vice\022Qprojects/{project}/locations/{loca" - + "tion}/namespaces/{namespace}/services/{s" - + "ervice}b\006proto3" + + "\022\016\n\004text\030\n \001(\tH\000\022?\n\016trigger_intent\030\013 \001(\t" + + "B%\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\\\n\020fulfillment_info\030\006 \001(\0132B.goo" + + "gle.cloud.dialogflow.cx.v3beta1.WebhookR" + + "equest.FulfillmentInfo\022R\n\013intent_info\030\003 " + + "\001(\0132=.google.cloud.dialogflow.cx.v3beta1" + + ".WebhookRequest.IntentInfo\022?\n\tpage_info\030" + + "\004 \001(\0132,.google.cloud.dialogflow.cx.v3bet" + + "a1.PageInfo\022E\n\014session_info\030\005 \001(\0132/.goog" + + "le.cloud.dialogflow.cx.v3beta1.SessionIn" + + "fo\022E\n\010messages\030\007 \003(\01323.google.cloud.dial" + + "ogflow.cx.v3beta1.ResponseMessage\022(\n\007pay" + + "load\030\010 \001(\0132\027.google.protobuf.Struct\022m\n\031s" + + "entiment_analysis_result\030\t \001(\0132J.google." + + "cloud.dialogflow.cx.v3beta1.WebhookReque" + + "st.SentimentAnalysisResult\032\036\n\017Fulfillmen" + + "tInfo\022\013\n\003tag\030\001 \001(\t\032\305\003\n\nIntentInfo\022B\n\023las" + + "t_matched_intent\030\001 \001(\tB%\372A\"\n dialogflow." + + "googleapis.com/Intent\022\024\n\014display_name\030\003 " + + "\001(\t\022a\n\nparameters\030\002 \003(\0132M.google.cloud.d" + + "ialogflow.cx.v3beta1.WebhookRequest.Inte" + + "ntInfo.ParametersEntry\022\022\n\nconfidence\030\004 \001" + + "(\002\032^\n\024IntentParameterValue\022\026\n\016original_v" + + "alue\030\001 \001(\t\022.\n\016resolved_value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value\032\205\001\n\017ParametersEntry\022\013" + + "\n\003key\030\001 \001(\t\022a\n\005value\030\002 \001(\0132R.google.clou" + + "d.dialogflow.cx.v3beta1.WebhookRequest.I" + + "ntentInfo.IntentParameterValue:\0028\001\032;\n\027Se" + + "ntimentAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\t" + + "magnitude\030\002 \001(\002B\007\n\005query\"\310\005\n\017WebhookResp" + + "onse\022e\n\024fulfillment_response\030\001 \001(\0132G.goo" + + "gle.cloud.dialogflow.cx.v3beta1.WebhookR" + + "esponse.FulfillmentResponse\022?\n\tpage_info" + + "\030\002 \001(\0132,.google.cloud.dialogflow.cx.v3be" + + "ta1.PageInfo\022E\n\014session_info\030\003 \001(\0132/.goo" + + "gle.cloud.dialogflow.cx.v3beta1.SessionI" + + "nfo\022(\n\007payload\030\004 \001(\0132\027.google.protobuf.S" + + "truct\022:\n\013target_page\030\005 \001(\tB#\372A \n\036dialogf" + + "low.googleapis.com/PageH\000\022:\n\013target_flow" + + "\030\006 \001(\tB#\372A \n\036dialogflow.googleapis.com/F" + + "lowH\000\032\225\002\n\023FulfillmentResponse\022E\n\010message" + + "s\030\001 \003(\01323.google.cloud.dialogflow.cx.v3b" + + "eta1.ResponseMessage\022m\n\016merge_behavior\030\002" + + " \001(\0162U.google.cloud.dialogflow.cx.v3beta" + + "1.WebhookResponse.FulfillmentResponse.Me" + + "rgeBehavior\"H\n\rMergeBehavior\022\036\n\032MERGE_BE" + + "HAVIOR_UNSPECIFIED\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPL" + + "ACE\020\002B\014\n\ntransition\"\254\004\n\010PageInfo\0229\n\014curr" + + "ent_page\030\001 \001(\tB#\372A \n\036dialogflow.googleap" + + "is.com/Page\022H\n\tform_info\030\003 \001(\01325.google." + + "cloud.dialogflow.cx.v3beta1.PageInfo.For" + + "mInfo\032\232\003\n\010FormInfo\022[\n\016parameter_info\030\002 \003" + + "(\0132C.google.cloud.dialogflow.cx.v3beta1." + + "PageInfo.FormInfo.ParameterInfo\032\260\002\n\rPara" + + "meterInfo\022\024\n\014display_name\030\001 \001(\t\022\020\n\010requi" + + "red\030\002 \001(\010\022a\n\005state\030\003 \001(\0162R.google.cloud." + + "dialogflow.cx.v3beta1.PageInfo.FormInfo." + + "ParameterInfo.ParameterState\022%\n\005value\030\004 " + + "\001(\0132\026.google.protobuf.Value\022\026\n\016just_coll" + + "ected\030\005 \001(\010\"U\n\016ParameterState\022\037\n\033PARAMET" + + "ER_STATE_UNSPECIFIED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INV" + + "ALID\020\002\022\n\n\006FILLED\020\003\"\346\001\n\013SessionInfo\0227\n\007se" + + "ssion\030\001 \001(\tB&\372A#\n!dialogflow.googleapis." + + "com/Session\022S\n\nparameters\030\002 \003(\0132?.google" + + ".cloud.dialogflow.cx.v3beta1.SessionInfo" + + ".ParametersEntry\032I\n\017ParametersEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobu" + + "f.Value:\0028\0012\375\010\n\010Webhooks\022\316\001\n\014ListWebhook" + + "s\0227.google.cloud.dialogflow.cx.v3beta1.L" + + "istWebhooksRequest\0328.google.cloud.dialog" + + "flow.cx.v3beta1.ListWebhooksResponse\"K\202\323" + + "\344\223\002<\022:/v3beta1/{parent=projects/*/locati" + + "ons/*/agents/*}/webhooks\332A\006parent\022\273\001\n\nGe" + + "tWebhook\0225.google.cloud.dialogflow.cx.v3" + + "beta1.GetWebhookRequest\032+.google.cloud.d" + + "ialogflow.cx.v3beta1.Webhook\"I\202\323\344\223\002<\022:/v" + + "3beta1/{name=projects/*/locations/*/agen" + + "ts/*/webhooks/*}\332A\004name\022\324\001\n\rCreateWebhoo" + + "k\0228.google.cloud.dialogflow.cx.v3beta1.C" + + "reateWebhookRequest\032+.google.cloud.dialo" + + "gflow.cx.v3beta1.Webhook\"\\\202\323\344\223\002E\":/v3bet" + + "a1/{parent=projects/*/locations/*/agents" + + "/*}/webhooks:\007webhook\332A\016parent,webhook\022\341" + + "\001\n\rUpdateWebhook\0228.google.cloud.dialogfl" + + "ow.cx.v3beta1.UpdateWebhookRequest\032+.goo" + + "gle.cloud.dialogflow.cx.v3beta1.Webhook\"" + + "i\202\323\344\223\002M2B/v3beta1/{webhook.name=projects" + + "/*/locations/*/agents/*/webhooks/*}:\007web" + + "hook\332A\023webhook,update_mask\022\254\001\n\rDeleteWeb" + + "hook\0228.google.cloud.dialogflow.cx.v3beta" + + "1.DeleteWebhookRequest\032\026.google.protobuf" + + ".Empty\"I\202\323\344\223\002<*:/v3beta1/{name=projects/" + + "*/locations/*/agents/*/webhooks/*}\332A\004nam" + + "e\032x\312A\031dialogflow.googleapis.com\322AYhttps:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/dialogf" + + "lowB\252\002\n&com.google.cloud.dialogflow.cx.v" + + "3beta1B\014WebhookProtoP\001ZDgoogle.golang.or" + + "g/genproto/googleapis/cloud/dialogflow/c" + + "x/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dial" + + "ogflow.Cx.V3Beta1\352A|\n\'servicedirectory.g" + + "oogleapis.com/Service\022Qprojects/{project" + + "}/locations/{location}/namespaces/{names" + + "pace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -367,6 +370,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_descriptor, new java.lang.String[] { "DetectIntentResponseId", + "Text", + "TriggerIntent", + "Transcript", + "TriggerEvent", "FulfillmentInfo", "IntentInfo", "PageInfo", @@ -374,6 +381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Messages", "Payload", "SentimentAnalysisResult", + "Query", }); internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_FulfillmentInfo_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_WebhookRequest_descriptor diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java index 068edf088..f4b8f8fca 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for a webhook call.
+ * The request message for a webhook call. The request is sent as a JSON object
+ * and the field names will be presented in camel cases.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest} @@ -194,6 +195,34 @@ private WebhookRequest( sentimentAnalysisResult_ = subBuilder.buildPartial(); } + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 10; + query_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 11; + query_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 12; + query_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 14; + query_ = s; break; } default: @@ -920,8 +949,9 @@ public interface IntentInfoOrBuilder * *
      * Always present. The unique identifier of the last matched
-     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -934,8 +964,9 @@ public interface IntentInfoOrBuilder * *
      * Always present. The unique identifier of the last matched
-     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2258,8 +2289,9 @@ public com.google.protobuf.Parser getParserForType() { * *
      * Always present. The unique identifier of the last matched
-     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2283,8 +2315,9 @@ public java.lang.String getLastMatchedIntent() { * *
      * Always present. The unique identifier of the last matched
-     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2941,8 +2974,9 @@ public Builder mergeFrom( * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2965,8 +2999,9 @@ public java.lang.String getLastMatchedIntent() { * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2989,8 +3024,9 @@ public com.google.protobuf.ByteString getLastMatchedIntentBytes() { * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -3012,8 +3048,9 @@ public Builder setLastMatchedIntent(java.lang.String value) { * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -3031,8 +3068,9 @@ public Builder clearLastMatchedIntent() { * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3beta1.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -4198,6 +4236,59 @@ public com.google.protobuf.Parser getParserForType() { } } + private int queryCase_ = 0; + private java.lang.Object query_; + + public enum QueryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(10), + TRIGGER_INTENT(11), + TRANSCRIPT(12), + TRIGGER_EVENT(14), + QUERY_NOT_SET(0); + private final int value; + + private QueryCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryCase valueOf(int value) { + return forNumber(value); + } + + public static QueryCase forNumber(int value) { + switch (value) { + case 10: + return TEXT; + case 11: + return TRIGGER_INTENT; + case 12: + return TRANSCRIPT; + case 14: + return TRIGGER_EVENT; + case 0: + return QUERY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public QueryCase getQueryCase() { + return QueryCase.forNumber(queryCase_); + } + public static final int DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object detectIntentResponseId_; /** @@ -4249,6 +4340,304 @@ public com.google.protobuf.ByteString getDetectIntentResponseIdBytes() { } } + public static final int TEXT_FIELD_NUMBER = 10; + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return queryCase_ == 10; + } + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (queryCase_ == 10) { + ref = query_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 10) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 10) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 10) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIGGER_INTENT_FIELD_NUMBER = 11; + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return Whether the triggerIntent field is set. + */ + public boolean hasTriggerIntent() { + return queryCase_ == 11; + } + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The triggerIntent. + */ + public java.lang.String getTriggerIntent() { + java.lang.Object ref = ""; + if (queryCase_ == 11) { + ref = query_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 11) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerIntent. + */ + public com.google.protobuf.ByteString getTriggerIntentBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 11) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 11) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSCRIPT_FIELD_NUMBER = 12; + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return Whether the transcript field is set. + */ + public boolean hasTranscript() { + return queryCase_ == 12; + } + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return The transcript. + */ + public java.lang.String getTranscript() { + java.lang.Object ref = ""; + if (queryCase_ == 12) { + ref = query_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 12) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return The bytes for transcript. + */ + public com.google.protobuf.ByteString getTranscriptBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 12) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 12) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIGGER_EVENT_FIELD_NUMBER = 14; + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return Whether the triggerEvent field is set. + */ + public boolean hasTriggerEvent() { + return queryCase_ == 14; + } + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return The triggerEvent. + */ + public java.lang.String getTriggerEvent() { + java.lang.Object ref = ""; + if (queryCase_ == 14) { + ref = query_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 14) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return The bytes for triggerEvent. + */ + public com.google.protobuf.ByteString getTriggerEventBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 14) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 14) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int FULFILLMENT_INFO_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillmentInfo_; /** @@ -4675,6 +5064,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sentimentAnalysisResult_ != null) { output.writeMessage(9, getSentimentAnalysisResult()); } + if (queryCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, query_); + } + if (queryCase_ == 11) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, query_); + } + if (queryCase_ == 12) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, query_); + } + if (queryCase_ == 14) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, query_); + } unknownFields.writeTo(output); } @@ -4709,6 +5110,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSentimentAnalysisResult()); } + if (queryCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, query_); + } + if (queryCase_ == 11) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, query_); + } + if (queryCase_ == 12) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, query_); + } + if (queryCase_ == 14) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, query_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4751,6 +5164,23 @@ public boolean equals(final java.lang.Object obj) { if (hasSentimentAnalysisResult()) { if (!getSentimentAnalysisResult().equals(other.getSentimentAnalysisResult())) return false; } + if (!getQueryCase().equals(other.getQueryCase())) return false; + switch (queryCase_) { + case 10: + if (!getText().equals(other.getText())) return false; + break; + case 11: + if (!getTriggerIntent().equals(other.getTriggerIntent())) return false; + break; + case 12: + if (!getTranscript().equals(other.getTranscript())) return false; + break; + case 14: + if (!getTriggerEvent().equals(other.getTriggerEvent())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4792,6 +5222,26 @@ public int hashCode() { hash = (37 * hash) + SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER; hash = (53 * hash) + getSentimentAnalysisResult().hashCode(); } + switch (queryCase_) { + case 10: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 11: + hash = (37 * hash) + TRIGGER_INTENT_FIELD_NUMBER; + hash = (53 * hash) + getTriggerIntent().hashCode(); + break; + case 12: + hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER; + hash = (53 * hash) + getTranscript().hashCode(); + break; + case 14: + hash = (37 * hash) + TRIGGER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getTriggerEvent().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -4897,7 +5347,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for a webhook call.
+   * The request message for a webhook call. The request is sent as a JSON object
+   * and the field names will be presented in camel cases.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.WebhookRequest} @@ -4984,6 +5435,8 @@ public Builder clear() { sentimentAnalysisResult_ = null; sentimentAnalysisResultBuilder_ = null; } + queryCase_ = 0; + query_ = null; return this; } @@ -5013,6 +5466,18 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest buildPartial() { new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(this); int from_bitField0_ = bitField0_; result.detectIntentResponseId_ = detectIntentResponseId_; + if (queryCase_ == 10) { + result.query_ = query_; + } + if (queryCase_ == 11) { + result.query_ = query_; + } + if (queryCase_ == 12) { + result.query_ = query_; + } + if (queryCase_ == 14) { + result.query_ = query_; + } if (fulfillmentInfoBuilder_ == null) { result.fulfillmentInfo_ = fulfillmentInfo_; } else { @@ -5052,6 +5517,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest buildPartial() { } else { result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build(); } + result.queryCase_ = queryCase_; onBuilt(); return result; } @@ -5151,6 +5617,40 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest o if (other.hasSentimentAnalysisResult()) { mergeSentimentAnalysisResult(other.getSentimentAnalysisResult()); } + switch (other.getQueryCase()) { + case TEXT: + { + queryCase_ = 10; + query_ = other.query_; + onChanged(); + break; + } + case TRIGGER_INTENT: + { + queryCase_ = 11; + query_ = other.query_; + onChanged(); + break; + } + case TRANSCRIPT: + { + queryCase_ = 12; + query_ = other.query_; + onChanged(); + break; + } + case TRIGGER_EVENT: + { + queryCase_ = 14; + query_ = other.query_; + onChanged(); + break; + } + case QUERY_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5181,6 +5681,20 @@ public Builder mergeFrom( return this; } + private int queryCase_ = 0; + private java.lang.Object query_; + + public QueryCase getQueryCase() { + return QueryCase.forNumber(queryCase_); + } + + public Builder clearQuery() { + queryCase_ = 0; + query_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object detectIntentResponseId_ = ""; @@ -5294,6 +5808,578 @@ public Builder setDetectIntentResponseIdBytes(com.google.protobuf.ByteString val return this; } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return queryCase_ == 10; + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (queryCase_ == 10) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 10) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 10) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 10) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 10; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (queryCase_ == 10) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 10; + query_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return Whether the triggerIntent field is set. + */ + @java.lang.Override + public boolean hasTriggerIntent() { + return queryCase_ == 11; + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The triggerIntent. + */ + @java.lang.Override + public java.lang.String getTriggerIntent() { + java.lang.Object ref = ""; + if (queryCase_ == 11) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 11) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerIntent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTriggerIntentBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 11) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 11) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @param value The triggerIntent to set. + * @return This builder for chaining. + */ + public Builder setTriggerIntent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 11; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTriggerIntent() { + if (queryCase_ == 11) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for triggerIntent to set. + * @return This builder for chaining. + */ + public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 11; + query_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @return Whether the transcript field is set. + */ + @java.lang.Override + public boolean hasTranscript() { + return queryCase_ == 12; + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @return The transcript. + */ + @java.lang.Override + public java.lang.String getTranscript() { + java.lang.Object ref = ""; + if (queryCase_ == 12) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 12) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @return The bytes for transcript. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTranscriptBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 12) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 12) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @param value The transcript to set. + * @return This builder for chaining. + */ + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 12; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @return This builder for chaining. + */ + public Builder clearTranscript() { + if (queryCase_ == 12) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @param value The bytes for transcript to set. + * @return This builder for chaining. + */ + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 12; + query_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @return Whether the triggerEvent field is set. + */ + @java.lang.Override + public boolean hasTriggerEvent() { + return queryCase_ == 14; + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @return The triggerEvent. + */ + @java.lang.Override + public java.lang.String getTriggerEvent() { + java.lang.Object ref = ""; + if (queryCase_ == 14) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 14) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @return The bytes for triggerEvent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTriggerEventBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 14) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 14) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @param value The triggerEvent to set. + * @return This builder for chaining. + */ + public Builder setTriggerEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 14; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @return This builder for chaining. + */ + public Builder clearTriggerEvent() { + if (queryCase_ == 14) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @param value The bytes for triggerEvent to set. + * @return This builder for chaining. + */ + public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 14; + query_ = value; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillmentInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo, diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequestOrBuilder.java index 7647874a1..97d24041b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequestOrBuilder.java @@ -50,6 +50,172 @@ public interface WebhookRequestOrBuilder */ com.google.protobuf.ByteString getDetectIntentResponseIdBytes(); + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return Whether the triggerIntent field is set. + */ + boolean hasTriggerIntent(); + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The triggerIntent. + */ + java.lang.String getTriggerIntent(); + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerIntent. + */ + com.google.protobuf.ByteString getTriggerIntentBytes(); + + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return Whether the transcript field is set. + */ + boolean hasTranscript(); + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return The transcript. + */ + java.lang.String getTranscript(); + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return The bytes for transcript. + */ + com.google.protobuf.ByteString getTranscriptBytes(); + + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return Whether the triggerEvent field is set. + */ + boolean hasTriggerEvent(); + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return The triggerEvent. + */ + java.lang.String getTriggerEvent(); + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return The bytes for triggerEvent. + */ + com.google.protobuf.ByteString getTriggerEventBytes(); + /** * * @@ -340,4 +506,6 @@ public interface WebhookRequestOrBuilder */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder(); + + public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.QueryCase getQueryCase(); } diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index 4b650a044..62291cb81 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -452,10 +452,14 @@ message QueryResult { // If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will // contain a copy of the intent identifier. - string trigger_intent = 11; + // Format: `projects//locations//agents//intents/`. + string trigger_intent = 11 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; // If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input, - // this field will contain the trascript for the audio. + // this field will contain the transcript for the audio. string transcript = 12; // If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain @@ -694,10 +698,14 @@ message MatchIntentResponse { // If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will // contain a copy of the intent identifier. - string trigger_intent = 2; + // Format: `projects//locations//agents//intents/`. + string trigger_intent = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; // If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input, - // this field will contain the trascript for the audio. + // this field will contain the transcript for the audio. string transcript = 3; // If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto index 7bdd3ec31..7c5cfebad 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto @@ -62,9 +62,6 @@ service SessionEntityTypes { } // Creates a session entity type. - // - // If the specified session entity type already exists, overrides the - // session entity type. rpc CreateSessionEntityType(CreateSessionEntityTypeRequest) returns (SessionEntityType) { option (google.api.http) = { post: "/v3beta1/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" 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 05c07a27d..accda7e53 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 @@ -157,6 +157,14 @@ service TestCases { }; option (google.api.method_signature) = "parent"; } + + // Gets a test case result. + rpc GetTestCaseResult(GetTestCaseResultRequest) returns (TestCaseResult) { + option (google.api.http) = { + get: "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*/results/*}" + }; + option (google.api.method_signature) = "name"; + } } // Represents a test case. @@ -862,6 +870,19 @@ message ListTestCaseResultsResponse { string next_page_token = 2; } +// The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResult]. +message GetTestCaseResultRequest { + // Required. The name of the testcase. + // Format: `projects//locations//agents//testCases//results/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCaseResult" + } + ]; +} + // The test result for a test case and an agent environment. enum TestResult { // Not specified. Should never be used. diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto index 8f94f3027..522ff9cae 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto @@ -231,7 +231,8 @@ message DeleteWebhookRequest { bool force = 2; } -// The request message for a webhook call. +// The request message for a webhook call. The request is sent as a JSON object +// and the field names will be presented in camel cases. message WebhookRequest { // Represents fulfillment information communicated to the webhook. message FulfillmentInfo { @@ -253,8 +254,9 @@ message WebhookRequest { } // Always present. The unique identifier of the last matched - // [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects//locations//agents//intents/`. + // [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. + // Format: `projects//locations//agents//intents/`. string last_matched_intent = 1 [(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Intent" }]; @@ -289,6 +291,29 @@ message WebhookRequest { // will be returned to the API caller. string detect_intent_response_id = 1; + // The original conversational query. + oneof query { + // If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field + // will contain a copy of the text. + string text = 10; + + // If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will + // contain a copy of the intent identifier. + // Format: `projects//locations//agents//intents/`. + string trigger_intent = 11 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.AudioInput] was provided as input, + // this field will contain the transcript for the audio. + string transcript = 12; + + // If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain + // the name of the event. + string trigger_event = 14; + } + // Always present. Information about the fulfillment that triggered this // webhook call. FulfillmentInfo fulfillment_info = 6; diff --git a/synth.metadata b/synth.metadata index 68a44df50..4e636e8dc 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow-cx.git", - "sha": "d38deefc49b6fd2bd805748c4046691dbeb3964d" + "sha": "f745beb41ed7844909c7acd43235a490faefc619" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1305ca41d554eb0725237561e34129373bb8cbc1", - "internalRef": "362856902" + "sha": "551ddbb55b96147012c00b66250dd5907556807c", + "internalRef": "364734171" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1305ca41d554eb0725237561e34129373bb8cbc1", - "internalRef": "362856902" + "sha": "551ddbb55b96147012c00b66250dd5907556807c", + "internalRef": "364734171" } }, { @@ -955,6 +955,8 @@ "proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java", "proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequestOrBuilder.java", + "proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java", + "proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java", "proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java", From 596cd8493467bb86ca5e429f0536937c06330d95 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Mon, 29 Mar 2021 16:35:36 -0700 Subject: [PATCH 2/2] feat: include original user query in WebhookRequest; add GetTextCaseresult API. doc: clarify resource format for session response. PiperOrigin-RevId: 364838477 Source-Author: Google APIs Source-Date: Wed Mar 24 10:43:06 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 35593f2d62a2e6a11ad74ea64a664159939f52dd Source-Link: https://github.com/googleapis/googleapis/commit/35593f2d62a2e6a11ad74ea64a664159939f52dd --- .../cx/v3/SessionEntityTypesClient.java | 8 - .../dialogflow/cx/v3/TestCasesClient.java | 104 ++ .../dialogflow/cx/v3/TestCasesSettings.java | 11 + .../dialogflow/cx/v3/gapic_metadata.json | 3 + .../cx/v3/stub/GrpcTestCasesStub.java | 36 + .../dialogflow/cx/v3/stub/TestCasesStub.java | 6 + .../cx/v3/stub/TestCasesStubSettings.java | 30 +- .../dialogflow/cx/v3/MockTestCasesImpl.java | 21 + .../dialogflow/cx/v3/TestCasesClientTest.java | 96 ++ .../cx/v3/SessionEntityTypesGrpc.java | 8 - .../cloud/dialogflow/cx/v3/TestCasesGrpc.java | 121 ++ .../cx/v3/GetTestCaseResultRequest.java | 665 ++++++++++ .../v3/GetTestCaseResultRequestOrBuilder.java | 58 + .../dialogflow/cx/v3/MatchIntentResponse.java | 54 +- .../cx/v3/MatchIntentResponseOrBuilder.java | 18 +- .../cloud/dialogflow/cx/v3/QueryResult.java | 54 +- .../cx/v3/QueryResultOrBuilder.java | 18 +- .../cloud/dialogflow/cx/v3/SessionProto.java | 202 +-- .../cloud/dialogflow/cx/v3/TestCaseProto.java | 159 ++- .../cloud/dialogflow/cx/v3/WebhookProto.java | 204 +-- .../dialogflow/cx/v3/WebhookRequest.java | 1126 ++++++++++++++++- .../cx/v3/WebhookRequestOrBuilder.java | 168 +++ .../cloud/dialogflow/cx/v3/session.proto | 16 +- .../cx/v3/session_entity_type.proto | 3 - .../cloud/dialogflow/cx/v3/test_case.proto | 21 + .../cloud/dialogflow/cx/v3/webhook.proto | 31 +- synth.metadata | 10 +- 27 files changed, 2883 insertions(+), 368 deletions(-) create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java create mode 100644 proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequestOrBuilder.java diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java index b95305b50..144623926 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java @@ -439,8 +439,6 @@ public final SessionEntityType getSessionEntityType(GetSessionEntityTypeRequest /** * Creates a session entity type. * - *

If the specified session entity type already exists, overrides the session entity type. - * *

Sample code: * *

{@code
@@ -476,8 +474,6 @@ public final SessionEntityType createSessionEntityType(
   /**
    * Creates a session entity type.
    *
-   * 

If the specified session entity type already exists, overrides the session entity type. - * *

Sample code: * *

{@code
@@ -514,8 +510,6 @@ public final SessionEntityType createSessionEntityType(
   /**
    * Creates a session entity type.
    *
-   * 

If the specified session entity type already exists, overrides the session entity type. - * *

Sample code: * *

{@code
@@ -543,8 +537,6 @@ public final SessionEntityType createSessionEntityType(CreateSessionEntityTypeRe
   /**
    * Creates a session entity type.
    *
-   * 

If the specified session entity type already exists, overrides the session entity type. - * *

Sample code: * *

{@code
diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
index f1e638c32..63a41ab57 100644
--- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
+++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java
@@ -1210,6 +1210,110 @@ public final ListTestCaseResultsPagedResponse listTestCaseResults(
     return stub.listTestCaseResultsCallable();
   }
 
+  // AUTO-GENERATED DOCUMENTATION AND METHOD.
+  /**
+   * Gets a test case result.
+   *
+   * 

Sample code: + * + *

{@code
+   * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
+   *   TestCaseResultName name =
+   *       TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]");
+   *   TestCaseResult response = testCasesClient.getTestCaseResult(name);
+   * }
+   * }
+ * + * @param name Required. The name of the testcase. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase + * ID>/results/<TestCaseResult ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestCaseResult getTestCaseResult(TestCaseResultName name) { + GetTestCaseResultRequest request = + GetTestCaseResultRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTestCaseResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a test case result. + * + *

Sample code: + * + *

{@code
+   * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
+   *   String name =
+   *       TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
+   *           .toString();
+   *   TestCaseResult response = testCasesClient.getTestCaseResult(name);
+   * }
+   * }
+ * + * @param name Required. The name of the testcase. Format: `projects/<Project + * ID>/locations/<Location ID>/agents/<Agent ID>/testCases/<TestCase + * ID>/results/<TestCaseResult ID>`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestCaseResult getTestCaseResult(String name) { + GetTestCaseResultRequest request = GetTestCaseResultRequest.newBuilder().setName(name).build(); + return getTestCaseResult(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a test case result. + * + *

Sample code: + * + *

{@code
+   * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
+   *   GetTestCaseResultRequest request =
+   *       GetTestCaseResultRequest.newBuilder()
+   *           .setName(
+   *               TestCaseResultName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
+   *                   .toString())
+   *           .build();
+   *   TestCaseResult response = testCasesClient.getTestCaseResult(request);
+   * }
+   * }
+ * + * @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 TestCaseResult getTestCaseResult(GetTestCaseResultRequest request) { + return getTestCaseResultCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a test case result. + * + *

Sample code: + * + *

{@code
+   * try (TestCasesClient testCasesClient = TestCasesClient.create()) {
+   *   GetTestCaseResultRequest request =
+   *       GetTestCaseResultRequest.newBuilder()
+   *           .setName(
+   *               TestCaseResultName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       testCasesClient.getTestCaseResultCallable().futureCall(request);
+   *   // Do something.
+   *   TestCaseResult response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getTestCaseResultCallable() { + return stub.getTestCaseResultCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesSettings.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesSettings.java index a1bf9608e..2a2eb3e7c 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesSettings.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesSettings.java @@ -158,6 +158,11 @@ public UnaryCallSettings exportTestCasesSetti return ((TestCasesStubSettings) getStubSettings()).listTestCaseResultsSettings(); } + /** Returns the object with the settings used for calls to getTestCaseResult. */ + public UnaryCallSettings getTestCaseResultSettings() { + return ((TestCasesStubSettings) getStubSettings()).getTestCaseResultSettings(); + } + public static final TestCasesSettings create(TestCasesStubSettings stub) throws IOException { return new TestCasesSettings.Builder(stub.toBuilder()).build(); } @@ -347,6 +352,12 @@ public UnaryCallSettings.Builder exportTestCa return getStubSettingsBuilder().listTestCaseResultsSettings(); } + /** Returns the builder for the settings used for calls to getTestCaseResult. */ + public UnaryCallSettings.Builder + getTestCaseResultSettings() { + return getStubSettingsBuilder().getTestCaseResultSettings(); + } + @Override public TestCasesSettings build() throws IOException { return new TestCasesSettings(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 3d7dd0265..0f9015bdc 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 @@ -295,6 +295,9 @@ "GetTestCase": { "methods": ["getTestCase", "getTestCase", "getTestCase", "getTestCaseCallable"] }, + "GetTestCaseResult": { + "methods": ["getTestCaseResult", "getTestCaseResult", "getTestCaseResult", "getTestCaseResultCallable"] + }, "ImportTestCases": { "methods": ["importTestCasesAsync", "importTestCasesOperationCallable", "importTestCasesCallable"] }, diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java index fecc2df8d..5a616c670 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcTestCasesStub.java @@ -38,6 +38,7 @@ import com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; import com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest; +import com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; @@ -49,6 +50,7 @@ import com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest; import com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse; import com.google.cloud.dialogflow.cx.v3.TestCase; +import com.google.cloud.dialogflow.cx.v3.TestCaseResult; import com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -178,6 +180,16 @@ public class GrpcTestCasesStub extends TestCasesStub { ProtoUtils.marshaller(ListTestCaseResultsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + getTestCaseResultMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dialogflow.cx.v3.TestCases/GetTestCaseResult") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTestCaseResultRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TestCaseResult.getDefaultInstance())) + .build(); + private final UnaryCallable listTestCasesCallable; private final UnaryCallable listTestCasesPagedCallable; @@ -206,6 +218,7 @@ public class GrpcTestCasesStub extends TestCasesStub { listTestCaseResultsCallable; private final UnaryCallable listTestCaseResultsPagedCallable; + private final UnaryCallable getTestCaseResultCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -393,6 +406,19 @@ public Map extract(ListTestCaseResultsRequest request) { } }) .build(); + GrpcCallSettings getTestCaseResultTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTestCaseResultMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetTestCaseResultRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); this.listTestCasesCallable = callableFactory.createUnaryCallable( @@ -467,6 +493,11 @@ public Map extract(ListTestCaseResultsRequest request) { listTestCaseResultsTransportSettings, settings.listTestCaseResultsSettings(), clientContext); + this.getTestCaseResultCallable = + callableFactory.createUnaryCallable( + getTestCaseResultTransportSettings, + settings.getTestCaseResultSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -570,6 +601,11 @@ public UnaryCallable exportTestCasesCallable( return listTestCaseResultsPagedCallable; } + @Override + public UnaryCallable getTestCaseResultCallable() { + return getTestCaseResultCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStub.java b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStub.java index 481a4eaa6..f1a78fdc8 100644 --- a/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStub.java +++ b/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/TestCasesStub.java @@ -33,6 +33,7 @@ import com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; import com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest; +import com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; @@ -44,6 +45,7 @@ import com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest; import com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse; import com.google.cloud.dialogflow.cx.v3.TestCase; +import com.google.cloud.dialogflow.cx.v3.TestCaseResult; import com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -141,6 +143,10 @@ public UnaryCallable exportTestCasesCallable( throw new UnsupportedOperationException("Not implemented: listTestCaseResultsCallable()"); } + public UnaryCallable getTestCaseResultCallable() { + throw new UnsupportedOperationException("Not implemented: getTestCaseResultCallable()"); + } + @Override public abstract void close(); } 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 05d7a4e46..fca9817f5 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 @@ -56,6 +56,7 @@ import com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse; import com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest; +import com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest; import com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse; @@ -147,6 +148,8 @@ public class TestCasesStubSettings extends StubSettings { private final PagedCallSettings< ListTestCaseResultsRequest, ListTestCaseResultsResponse, ListTestCaseResultsPagedResponse> listTestCaseResultsSettings; + private final UnaryCallSettings + getTestCaseResultSettings; private static final PagedListDescriptor LIST_TEST_CASES_PAGE_STR_DESC = @@ -348,6 +351,11 @@ public UnaryCallSettings exportTestCasesSetti return listTestCaseResultsSettings; } + /** Returns the object with the settings used for calls to getTestCaseResult. */ + public UnaryCallSettings getTestCaseResultSettings() { + return getTestCaseResultSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public TestCasesStub createStub() throws IOException { if (getTransportChannelProvider() @@ -432,6 +440,7 @@ protected TestCasesStubSettings(Builder settingsBuilder) throws IOException { exportTestCasesSettings = settingsBuilder.exportTestCasesSettings().build(); exportTestCasesOperationSettings = settingsBuilder.exportTestCasesOperationSettings().build(); listTestCaseResultsSettings = settingsBuilder.listTestCaseResultsSettings().build(); + getTestCaseResultSettings = settingsBuilder.getTestCaseResultSettings().build(); } /** Builder for TestCasesStubSettings. */ @@ -471,6 +480,8 @@ public static class Builder extends StubSettings.Builder listTestCaseResultsSettings; + private final UnaryCallSettings.Builder + getTestCaseResultSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -525,6 +536,7 @@ protected Builder(ClientContext clientContext) { exportTestCasesOperationSettings = OperationCallSettings.newBuilder(); listTestCaseResultsSettings = PagedCallSettings.newBuilder(LIST_TEST_CASE_RESULTS_PAGE_STR_FACT); + getTestCaseResultSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -538,7 +550,8 @@ protected Builder(ClientContext clientContext) { calculateCoverageSettings, importTestCasesSettings, exportTestCasesSettings, - listTestCaseResultsSettings); + listTestCaseResultsSettings, + getTestCaseResultSettings); initDefaults(this); } @@ -560,6 +573,7 @@ protected Builder(TestCasesStubSettings settings) { exportTestCasesSettings = settings.exportTestCasesSettings.toBuilder(); exportTestCasesOperationSettings = settings.exportTestCasesOperationSettings.toBuilder(); listTestCaseResultsSettings = settings.listTestCaseResultsSettings.toBuilder(); + getTestCaseResultSettings = settings.getTestCaseResultSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -573,7 +587,8 @@ protected Builder(TestCasesStubSettings settings) { calculateCoverageSettings, importTestCasesSettings, exportTestCasesSettings, - listTestCaseResultsSettings); + listTestCaseResultsSettings, + getTestCaseResultSettings); } private static Builder createDefault() { @@ -643,6 +658,11 @@ 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 + .getTestCaseResultSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .runTestCaseOperationSettings() .setInitialCallSettings( @@ -859,6 +879,12 @@ public UnaryCallSettings.Builder exportTestCa return listTestCaseResultsSettings; } + /** Returns the builder for the settings used for calls to getTestCaseResult. */ + public UnaryCallSettings.Builder + getTestCaseResultSettings() { + return getTestCaseResultSettings; + } + @Override public TestCasesStubSettings build() throws IOException { return new TestCasesStubSettings(this); diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockTestCasesImpl.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockTestCasesImpl.java index a5036350c..dd45aa208 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockTestCasesImpl.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/MockTestCasesImpl.java @@ -290,4 +290,25 @@ public void listTestCaseResults( Exception.class.getName()))); } } + + @Override + public void getTestCaseResult( + GetTestCaseResultRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TestCaseResult) { + requests.add(request); + responseObserver.onNext(((TestCaseResult) 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 GetTestCaseResult, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TestCaseResult.class.getName(), + Exception.class.getName()))); + } + } } 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 6c10b29d4..bdcb3df16 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 @@ -849,4 +849,100 @@ public void listTestCaseResultsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getTestCaseResultTest() throws Exception { + TestCaseResult expectedResponse = + TestCaseResult.newBuilder() + .setName( + TestCaseResultName.of( + "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]") + .toString()) + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .addAllConversationTurns(new ArrayList()) + .setTestResult(TestResult.forNumber(0)) + .setTestTime(Timestamp.newBuilder().build()) + .build(); + mockTestCases.addResponse(expectedResponse); + + TestCaseResultName name = + TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]"); + + TestCaseResult actualResponse = client.getTestCaseResult(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTestCases.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTestCaseResultRequest actualRequest = ((GetTestCaseResultRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTestCaseResultExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTestCases.addException(exception); + + try { + TestCaseResultName name = + TestCaseResultName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]"); + client.getTestCaseResult(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTestCaseResultTest2() throws Exception { + TestCaseResult expectedResponse = + TestCaseResult.newBuilder() + .setName( + TestCaseResultName.of( + "[PROJECT]", "[LOCATION]", "[AGENT]", "[TEST_CASE]", "[RESULT]") + .toString()) + .setEnvironment( + EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]") + .toString()) + .addAllConversationTurns(new ArrayList()) + .setTestResult(TestResult.forNumber(0)) + .setTestTime(Timestamp.newBuilder().build()) + .build(); + mockTestCases.addResponse(expectedResponse); + + String name = "name3373707"; + + TestCaseResult actualResponse = client.getTestCaseResult(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTestCases.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTestCaseResultRequest actualRequest = ((GetTestCaseResultRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTestCaseResultExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTestCases.addException(exception); + + try { + String name = "name3373707"; + client.getTestCaseResult(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java index 34b8f1f37..164ff4b5e 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java @@ -373,8 +373,6 @@ public void getSessionEntityType( * *
      * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
      * 
*/ public void createSessionEntityType( @@ -514,8 +512,6 @@ public void getSessionEntityType( * *
      * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
      * 
*/ public void createSessionEntityType( @@ -613,8 +609,6 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType getSessionEntityType( * *
      * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
      * 
*/ public com.google.cloud.dialogflow.cx.v3.SessionEntityType createSessionEntityType( @@ -704,8 +698,6 @@ protected SessionEntityTypesFutureStub build( * *
      * Creates a session entity type.
-     * If the specified session entity type already exists, overrides the
-     * session entity type.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java index 2a3962ee9..2404bccdd 100644 --- a/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java +++ b/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java @@ -534,6 +534,53 @@ private TestCasesGrpc() {} return getListTestCaseResultsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest, + com.google.cloud.dialogflow.cx.v3.TestCaseResult> + getGetTestCaseResultMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTestCaseResult", + requestType = com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.class, + responseType = com.google.cloud.dialogflow.cx.v3.TestCaseResult.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest, + com.google.cloud.dialogflow.cx.v3.TestCaseResult> + getGetTestCaseResultMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest, + com.google.cloud.dialogflow.cx.v3.TestCaseResult> + getGetTestCaseResultMethod; + if ((getGetTestCaseResultMethod = TestCasesGrpc.getGetTestCaseResultMethod) == null) { + synchronized (TestCasesGrpc.class) { + if ((getGetTestCaseResultMethod = TestCasesGrpc.getGetTestCaseResultMethod) == null) { + TestCasesGrpc.getGetTestCaseResultMethod = + getGetTestCaseResultMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTestCaseResult")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dialogflow.cx.v3.TestCaseResult + .getDefaultInstance())) + .setSchemaDescriptor( + new TestCasesMethodDescriptorSupplier("GetTestCaseResult")) + .build(); + } + } + } + return getGetTestCaseResultMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static TestCasesStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -744,6 +791,21 @@ public void listTestCaseResults( getListTestCaseResultsMethod(), responseObserver); } + /** + * + * + *
+     * Gets a test case result.
+     * 
+ */ + public void getTestCaseResult( + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTestCaseResultMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -816,6 +878,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest, com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse>( this, METHODID_LIST_TEST_CASE_RESULTS))) + .addMethod( + getGetTestCaseResultMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest, + com.google.cloud.dialogflow.cx.v3.TestCaseResult>( + this, METHODID_GET_TEST_CASE_RESULT))) .build(); } } @@ -1019,6 +1088,23 @@ public void listTestCaseResults( request, responseObserver); } + + /** + * + * + *
+     * Gets a test case result.
+     * 
+ */ + public void getTestCaseResult( + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTestCaseResultMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1186,6 +1272,19 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse listTestCas return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListTestCaseResultsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets a test case result.
+     * 
+ */ + public com.google.cloud.dialogflow.cx.v3.TestCaseResult getTestCaseResult( + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTestCaseResultMethod(), getCallOptions(), request); + } } /** @@ -1359,6 +1458,20 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListTestCaseResultsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets a test case result.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.dialogflow.cx.v3.TestCaseResult> + getTestCaseResult(com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTestCaseResultMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_TEST_CASES = 0; @@ -1372,6 +1485,7 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_IMPORT_TEST_CASES = 8; private static final int METHODID_EXPORT_TEST_CASES = 9; private static final int METHODID_LIST_TEST_CASE_RESULTS = 10; + private static final int METHODID_GET_TEST_CASE_RESULT = 11; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1453,6 +1567,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse>) responseObserver); break; + case METHODID_GET_TEST_CASE_RESULT: + serviceImpl.getTestCaseResult( + (com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -1528,6 +1648,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getImportTestCasesMethod()) .addMethod(getExportTestCasesMethod()) .addMethod(getListTestCaseResultsMethod()) + .addMethod(getGetTestCaseResultMethod()) .build(); } } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java new file mode 100644 index 000000000..9dc6d8e98 --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java @@ -0,0 +1,665 @@ +/* + * 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/test_case.proto + +package com.google.cloud.dialogflow.cx.v3; + +/** + * + * + *
+ * The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} + */ +public final class GetTestCaseResultRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) + GetTestCaseResultRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTestCaseResultRequest.newBuilder() to construct. + private GetTestCaseResultRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTestCaseResultRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTestCaseResultRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetTestCaseResultRequest( + 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(); + + name_ = 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.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.class, + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the testcase.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+   * Required. The name of the testcase.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + + 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_); + } + 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_); + } + 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.GetTestCaseResultRequest)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest other = + (com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest 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.GetTestCaseResultRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest 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.GetTestCaseResultRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest 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.GetTestCaseResultRequest 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.GetTestCaseResultRequest 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.GetTestCaseResultRequest 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.GetTestCaseResultRequest 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.GetTestCaseResultRequest 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.GetTestCaseResultRequest 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.GetTestCaseResultRequest 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 [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.class, + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.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_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3.TestCaseProto + .internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest build() { + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest buildPartial() { + com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest result = + new com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest(this); + result.name_ = name_; + 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.GetTestCaseResultRequest) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest other) { + if (other == com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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.GetTestCaseResultRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the testcase.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + + @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.GetTestCaseResultRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) + private static final com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest(); + } + + public static com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTestCaseResultRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTestCaseResultRequest(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.GetTestCaseResultRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequestOrBuilder.java new file mode 100644 index 000000000..3bafff9ea --- /dev/null +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/test_case.proto + +package com.google.cloud.dialogflow.cx.v3; + +public interface GetTestCaseResultRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the testcase.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the testcase.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java index f6ea1a337..8b673efcd 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java @@ -296,9 +296,11 @@ public com.google.protobuf.ByteString getTextBytes() { *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -311,9 +313,11 @@ public boolean hasTriggerIntent() { *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -339,9 +343,11 @@ public java.lang.String getTriggerIntent() { *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -368,7 +374,7 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -383,7 +389,7 @@ public boolean hasTranscript() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -411,7 +417,7 @@ public java.lang.String getTranscript() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -1292,9 +1298,11 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -1308,9 +1316,11 @@ public boolean hasTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -1337,9 +1347,11 @@ public java.lang.String getTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -1366,9 +1378,11 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @param value The triggerIntent to set. * @return This builder for chaining. @@ -1388,9 +1402,11 @@ public Builder setTriggerIntent(java.lang.String value) { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -1408,9 +1424,11 @@ public Builder clearTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @param value The bytes for triggerIntent to set. * @return This builder for chaining. @@ -1431,7 +1449,7 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1447,7 +1465,7 @@ public boolean hasTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1476,7 +1494,7 @@ public java.lang.String getTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1505,7 +1523,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1527,7 +1545,7 @@ public Builder setTranscript(java.lang.String value) { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; @@ -1547,7 +1565,7 @@ public Builder clearTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 3; diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java index b7e16ecb3..22a27edb4 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java @@ -69,9 +69,11 @@ public interface MatchIntentResponseOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -82,9 +84,11 @@ public interface MatchIntentResponseOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -95,9 +99,11 @@ public interface MatchIntentResponseOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 2; + * string trigger_intent = 2 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -108,7 +114,7 @@ public interface MatchIntentResponseOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -121,7 +127,7 @@ public interface MatchIntentResponseOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; @@ -134,7 +140,7 @@ public interface MatchIntentResponseOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 3; diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java index 88c8fd77c..674551c91 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java @@ -418,9 +418,11 @@ public com.google.protobuf.ByteString getTextBytes() { *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -433,9 +435,11 @@ public boolean hasTriggerIntent() { *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -461,9 +465,11 @@ public java.lang.String getTriggerIntent() { *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -490,7 +496,7 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -505,7 +511,7 @@ public boolean hasTranscript() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -533,7 +539,7 @@ public java.lang.String getTranscript() { * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -2231,9 +2237,11 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -2247,9 +2255,11 @@ public boolean hasTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -2276,9 +2286,11 @@ public java.lang.String getTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -2305,9 +2317,11 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @param value The triggerIntent to set. * @return This builder for chaining. @@ -2327,9 +2341,11 @@ public Builder setTriggerIntent(java.lang.String value) { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -2347,9 +2363,11 @@ public Builder clearTriggerIntent() { *
      * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
      * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @param value The bytes for triggerIntent to set. * @return This builder for chaining. @@ -2370,7 +2388,7 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2386,7 +2404,7 @@ public boolean hasTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2415,7 +2433,7 @@ public java.lang.String getTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2444,7 +2462,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2466,7 +2484,7 @@ public Builder setTranscript(java.lang.String value) { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; @@ -2486,7 +2504,7 @@ public Builder clearTranscript() { * *
      * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-     * this field will contain the trascript for the audio.
+     * this field will contain the transcript for the audio.
      * 
* * string transcript = 12; diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java index e49b57520..9035761f8 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java @@ -69,9 +69,11 @@ public interface QueryResultOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return Whether the triggerIntent field is set. */ @@ -82,9 +84,11 @@ public interface QueryResultOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The triggerIntent. */ @@ -95,9 +99,11 @@ public interface QueryResultOrBuilder *
    * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
    * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
    * 
* - * string trigger_intent = 11; + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } * * @return The bytes for triggerIntent. */ @@ -108,7 +114,7 @@ public interface QueryResultOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -121,7 +127,7 @@ public interface QueryResultOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; @@ -134,7 +140,7 @@ public interface QueryResultOrBuilder * *
    * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
-   * this field will contain the trascript for the audio.
+   * this field will contain the transcript for the audio.
    * 
* * string transcript = 12; diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java index 65bb30057..632f5c840 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java @@ -187,106 +187,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030\006 \001(\0132).google.cloud.dialogflow.cx.v3.E" + "ventInputH\000\0228\n\004dtmf\030\007 \001(\0132(.google.cloud" + ".dialogflow.cx.v3.DtmfInputH\000\022\032\n\rlanguag" - + "e_code\030\004 \001(\tB\003\340A\002B\007\n\005input\"\300\005\n\013QueryResu" - + "lt\022\016\n\004text\030\001 \001(\tH\000\022\030\n\016trigger_intent\030\013 \001" - + "(\tH\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger_ev" - + "ent\030\016 \001(\tH\000\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\npa" - + "rameters\030\003 \001(\0132\027.google.protobuf.Struct\022" - + "I\n\021response_messages\030\004 \003(\0132..google.clou" - + "d.dialogflow.cx.v3.ResponseMessage\022,\n\020we" - + "bhook_statuses\030\r \003(\0132\022.google.rpc.Status" - + "\0221\n\020webhook_payloads\030\006 \003(\0132\027.google.prot" - + "obuf.Struct\0229\n\014current_page\030\007 \001(\0132#.goog" - + "le.cloud.dialogflow.cx.v3.Page\0229\n\006intent" - + "\030\010 \001(\0132%.google.cloud.dialogflow.cx.v3.I" - + "ntentB\002\030\001\022\'\n\033intent_detection_confidence" - + "\030\t \001(\002B\002\030\001\0223\n\005match\030\017 \001(\0132$.google.cloud" - + ".dialogflow.cx.v3.Match\0220\n\017diagnostic_in" - + "fo\030\n \001(\0132\027.google.protobuf.Struct\022Y\n\031sen" - + "timent_analysis_result\030\021 \001(\01326.google.cl" - + "oud.dialogflow.cx.v3.SentimentAnalysisRe" - + "sultB\007\n\005query\"\036\n\tTextInput\022\021\n\004text\030\001 \001(\t" - + "B\003\340A\002\"G\n\013IntentInput\0228\n\006intent\030\001 \001(\tB(\340A" - + "\002\372A\"\n dialogflow.googleapis.com/Intent\"a" - + "\n\nAudioInput\022D\n\006config\030\001 \001(\0132/.google.cl" - + "oud.dialogflow.cx.v3.InputAudioConfigB\003\340" - + "A\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\014f" - + "inish_digit\030\002 \001(\t\"\361\002\n\005Match\0225\n\006intent\030\001 " - + "\001(\0132%.google.cloud.dialogflow.cx.v3.Inte" - + "nt\022\r\n\005event\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027." - + "google.protobuf.Struct\022\026\n\016resolved_input" - + "\030\003 \001(\t\022B\n\nmatch_type\030\004 \001(\0162..google.clou" - + "d.dialogflow.cx.v3.Match.MatchType\022\022\n\nco" - + "nfidence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TY" - + "PE_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_I" - + "NTENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MAT" - + "CH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\333\001\n\022MatchI" - + "ntentRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!d" - + "ialogflow.googleapis.com/Session\022D\n\014quer" - + "y_params\030\002 \001(\0132..google.cloud.dialogflow" - + ".cx.v3.QueryParameters\022C\n\013query_input\030\003 " - + "\001(\0132).google.cloud.dialogflow.cx.v3.Quer" - + "yInputB\003\340A\002\"\351\001\n\023MatchIntentResponse\022\016\n\004t" - + "ext\030\001 \001(\tH\000\022\030\n\016trigger_intent\030\002 \001(\tH\000\022\024\n" - + "\ntranscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 \001" - + "(\tH\000\0225\n\007matches\030\004 \003(\0132$.google.cloud.dia" - + "logflow.cx.v3.Match\0229\n\014current_page\030\005 \001(" - + "\0132#.google.cloud.dialogflow.cx.v3.PageB\007" - + "\n\005query\"\353\001\n\024FulfillIntentRequest\022O\n\024matc" - + "h_intent_request\030\001 \001(\01321.google.cloud.di" - + "alogflow.cx.v3.MatchIntentRequest\0223\n\005mat" - + "ch\030\002 \001(\0132$.google.cloud.dialogflow.cx.v3" - + ".Match\022M\n\023output_audio_config\030\003 \001(\01320.go" - + "ogle.cloud.dialogflow.cx.v3.OutputAudioC" - + "onfig\"\323\001\n\025FulfillIntentResponse\022\023\n\013respo" - + "nse_id\030\001 \001(\t\022@\n\014query_result\030\002 \001(\0132*.goo" - + "gle.cloud.dialogflow.cx.v3.QueryResult\022\024" - + "\n\014output_audio\030\003 \001(\014\022M\n\023output_audio_con" - + "fig\030\004 \001(\01320.google.cloud.dialogflow.cx.v" - + "3.OutputAudioConfig\";\n\027SentimentAnalysis" - + "Result\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002" - + "2\304\t\n\010Sessions\022\246\002\n\014DetectIntent\0222.google." - + "cloud.dialogflow.cx.v3.DetectIntentReque" - + "st\0323.google.cloud.dialogflow.cx.v3.Detec" - + "tIntentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=" - + "projects/*/locations/*/agents/*/sessions" - + "/*}:detectIntent:\001*ZY\"T/v3/{session=proj" - + "ects/*/locations/*/agents/*/environments" - + "/*/sessions/*}:detectIntent:\001*\022\230\001\n\025Strea" - + "mingDetectIntent\022;.google.cloud.dialogfl" - + "ow.cx.v3.StreamingDetectIntentRequest\032<." - + "google.cloud.dialogflow.cx.v3.StreamingD" - + "etectIntentResponse\"\000(\0010\001\022\241\002\n\013MatchInten" - + "t\0221.google.cloud.dialogflow.cx.v3.MatchI" - + "ntentRequest\0322.google.cloud.dialogflow.c" - + "x.v3.MatchIntentResponse\"\252\001\202\323\344\223\002\243\001\"D/v3/" - + "{session=projects/*/locations/*/agents/*" - + "/sessions/*}:matchIntent:\001*ZX\"S/v3/{sess" - + "ion=projects/*/locations/*/agents/*/envi" - + "ronments/*/sessions/*}:matchIntent:\001*\022\325\002" - + "\n\rFulfillIntent\0223.google.cloud.dialogflo" - + "w.cx.v3.FulfillIntentRequest\0324.google.cl" - + "oud.dialogflow.cx.v3.FulfillIntentRespon" - + "se\"\330\001\202\323\344\223\002\321\001\"[/v3/{match_intent_request." - + "session=projects/*/locations/*/agents/*/" - + "sessions/*}:fulfillIntent:\001*Zo\"j/v3/{mat" - + "ch_intent_request.session=projects/*/loc" - + "ations/*/agents/*/environments/*/session" - + "s/*}:fulfillIntent:\001*\032x\312A\031dialogflow.goo" - + "gleapis.com\322AYhttps://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/dialogflowB\364\002\n!com.google.c" - + "loud.dialogflow.cx.v3B\014SessionProtoP\001Z?g" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google." - + "Cloud.Dialogflow.Cx.V3\352A\324\001\n!dialogflow.g" - + "oogleapis.com/Session\022Iprojects/{project" - + "}/locations/{location}/agents/{agent}/se" - + "ssions/{session}\022dprojects/{project}/loc" - + "ations/{location}/agents/{agent}/environ" - + "ments/{environment}/sessions/{session}b\006" - + "proto3" + + "e_code\030\004 \001(\tB\003\340A\002B\007\n\005input\"\347\005\n\013QueryResu" + + "lt\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\013 \001" + + "(\tB%\372A\"\n dialogflow.googleapis.com/Inten" + + "tH\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger_eve" + + "nt\030\016 \001(\tH\000\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\npar" + + "ameters\030\003 \001(\0132\027.google.protobuf.Struct\022I" + + "\n\021response_messages\030\004 \003(\0132..google.cloud" + + ".dialogflow.cx.v3.ResponseMessage\022,\n\020web" + + "hook_statuses\030\r \003(\0132\022.google.rpc.Status\022" + + "1\n\020webhook_payloads\030\006 \003(\0132\027.google.proto" + + "buf.Struct\0229\n\014current_page\030\007 \001(\0132#.googl" + + "e.cloud.dialogflow.cx.v3.Page\0229\n\006intent\030" + + "\010 \001(\0132%.google.cloud.dialogflow.cx.v3.In" + + "tentB\002\030\001\022\'\n\033intent_detection_confidence\030" + + "\t \001(\002B\002\030\001\0223\n\005match\030\017 \001(\0132$.google.cloud." + + "dialogflow.cx.v3.Match\0220\n\017diagnostic_inf" + + "o\030\n \001(\0132\027.google.protobuf.Struct\022Y\n\031sent" + + "iment_analysis_result\030\021 \001(\01326.google.clo" + + "ud.dialogflow.cx.v3.SentimentAnalysisRes" + + "ultB\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(\tB(\340A\002" + + "\372A\"\n dialogflow.googleapis.com/Intent\"a\n" + + "\nAudioInput\022D\n\006config\030\001 \001(\0132/.google.clo" + + "ud.dialogflow.cx.v3.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\tDtmfInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014fi" + + "nish_digit\030\002 \001(\t\"\361\002\n\005Match\0225\n\006intent\030\001 \001" + + "(\0132%.google.cloud.dialogflow.cx.v3.Inten" + + "t\022\r\n\005event\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.g" + + "oogle.protobuf.Struct\022\026\n\016resolved_input\030" + + "\003 \001(\t\022B\n\nmatch_type\030\004 \001(\0162..google.cloud" + + ".dialogflow.cx.v3.Match.MatchType\022\022\n\ncon" + + "fidence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYP" + + "E_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_IN" + + "TENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATC" + + "H\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\333\001\n\022MatchIn" + + "tentRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!di" + + "alogflow.googleapis.com/Session\022D\n\014query" + + "_params\030\002 \001(\0132..google.cloud.dialogflow." + + "cx.v3.QueryParameters\022C\n\013query_input\030\003 \001" + + "(\0132).google.cloud.dialogflow.cx.v3.Query" + + "InputB\003\340A\002\"\220\002\n\023MatchIntentResponse\022\016\n\004te" + + "xt\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%\372A\"\n" + + " dialogflow.googleapis.com/IntentH\000\022\024\n\nt" + + "ranscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 \001(\t" + + "H\000\0225\n\007matches\030\004 \003(\0132$.google.cloud.dialo" + + "gflow.cx.v3.Match\0229\n\014current_page\030\005 \001(\0132" + + "#.google.cloud.dialogflow.cx.v3.PageB\007\n\005" + + "query\"\353\001\n\024FulfillIntentRequest\022O\n\024match_" + + "intent_request\030\001 \001(\01321.google.cloud.dial" + + "ogflow.cx.v3.MatchIntentRequest\0223\n\005match" + + "\030\002 \001(\0132$.google.cloud.dialogflow.cx.v3.M" + + "atch\022M\n\023output_audio_config\030\003 \001(\01320.goog" + + "le.cloud.dialogflow.cx.v3.OutputAudioCon" + + "fig\"\323\001\n\025FulfillIntentResponse\022\023\n\013respons" + + "e_id\030\001 \001(\t\022@\n\014query_result\030\002 \001(\0132*.googl" + + "e.cloud.dialogflow.cx.v3.QueryResult\022\024\n\014" + + "output_audio\030\003 \001(\014\022M\n\023output_audio_confi" + + "g\030\004 \001(\01320.google.cloud.dialogflow.cx.v3." + + "OutputAudioConfig\";\n\027SentimentAnalysisRe" + + "sult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\304" + + "\t\n\010Sessions\022\246\002\n\014DetectIntent\0222.google.cl" + + "oud.dialogflow.cx.v3.DetectIntentRequest" + + "\0323.google.cloud.dialogflow.cx.v3.DetectI" + + "ntentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=pr" + + "ojects/*/locations/*/agents/*/sessions/*" + + "}:detectIntent:\001*ZY\"T/v3/{session=projec" + + "ts/*/locations/*/agents/*/environments/*" + + "/sessions/*}:detectIntent:\001*\022\230\001\n\025Streami" + + "ngDetectIntent\022;.google.cloud.dialogflow" + + ".cx.v3.StreamingDetectIntentRequest\032<.go" + + "ogle.cloud.dialogflow.cx.v3.StreamingDet" + + "ectIntentResponse\"\000(\0010\001\022\241\002\n\013MatchIntent\022" + + "1.google.cloud.dialogflow.cx.v3.MatchInt" + + "entRequest\0322.google.cloud.dialogflow.cx." + + "v3.MatchIntentResponse\"\252\001\202\323\344\223\002\243\001\"D/v3/{s" + + "ession=projects/*/locations/*/agents/*/s" + + "essions/*}:matchIntent:\001*ZX\"S/v3/{sessio" + + "n=projects/*/locations/*/agents/*/enviro" + + "nments/*/sessions/*}:matchIntent:\001*\022\325\002\n\r" + + "FulfillIntent\0223.google.cloud.dialogflow." + + "cx.v3.FulfillIntentRequest\0324.google.clou" + + "d.dialogflow.cx.v3.FulfillIntentResponse" + + "\"\330\001\202\323\344\223\002\321\001\"[/v3/{match_intent_request.se" + + "ssion=projects/*/locations/*/agents/*/se" + + "ssions/*}:fulfillIntent:\001*Zo\"j/v3/{match" + + "_intent_request.session=projects/*/locat" + + "ions/*/agents/*/environments/*/sessions/" + + "*}:fulfillIntent:\001*\032x\312A\031dialogflow.googl" + + "eapis.com\322AYhttps://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapi" + + "s.com/auth/dialogflowB\364\002\n!com.google.clo" + + "ud.dialogflow.cx.v3B\014SessionProtoP\001Z?goo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cl" + + "oud.Dialogflow.Cx.V3\352A\324\001\n!dialogflow.goo" + + "gleapis.com/Session\022Iprojects/{project}/" + + "locations/{location}/agents/{agent}/sess" + + "ions/{session}\022dprojects/{project}/locat" + + "ions/{location}/agents/{agent}/environme" + + "nts/{environment}/sessions/{session}b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( 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 aa2b1d5f5..1c0ff8a6b 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 @@ -183,6 +183,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3_ListTestCaseResultsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3_ListTestCaseResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -377,76 +381,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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*A\n\nTestResult" - + "\022\033\n\027TEST_RESULT_UNSPECIFIED\020\000\022\n\n\006PASSED\020" - + "\001\022\n\n\006FAILED\020\0022\312\023\n\tTestCases\022\303\001\n\rListTest" - + "Cases\0223.google.cloud.dialogflow.cx.v3.Li" - + "stTestCasesRequest\0324.google.cloud.dialog" - + "flow.cx.v3.ListTestCasesResponse\"G\202\323\344\223\0028" - + "\0226/v3/{parent=projects/*/locations/*/age" - + "nts/*}/testCases\332A\006parent\022\302\001\n\024BatchDelet" - + "eTestCases\022:.google.cloud.dialogflow.cx." - + "v3.BatchDeleteTestCasesRequest\032\026.google." - + "protobuf.Empty\"V\202\323\344\223\002G\"B/v3/{parent=proj" - + "ects/*/locations/*/agents/*}/testCases:b" - + "atchDelete:\001*\332A\006parent\022\260\001\n\013GetTestCase\0221" - + ".google.cloud.dialogflow.cx.v3.GetTestCa" - + "seRequest\032\'.google.cloud.dialogflow.cx.v" - + "3.TestCase\"E\202\323\344\223\0028\0226/v3/{name=projects/*" - + "/locations/*/agents/*/testCases/*}\332A\004nam" - + "e\022\315\001\n\016CreateTestCase\0224.google.cloud.dial" - + "ogflow.cx.v3.CreateTestCaseRequest\032\'.goo" - + "gle.cloud.dialogflow.cx.v3.TestCase\"\\\202\323\344" - + "\223\002C\"6/v3/{parent=projects/*/locations/*/" - + "agents/*}/testCases:\ttest_case\332A\020parent," - + "test_case\022\334\001\n\016UpdateTestCase\0224.google.cl" - + "oud.dialogflow.cx.v3.UpdateTestCaseReque" - + "st\032\'.google.cloud.dialogflow.cx.v3.TestC" - + "ase\"k\202\323\344\223\002M2@/v3/{test_case.name=project" - + "s/*/locations/*/agents/*/testCases/*}:\tt" - + "est_case\332A\025test_case,update_mask\022\323\001\n\013Run" - + "TestCase\0221.google.cloud.dialogflow.cx.v3" - + ".RunTestCaseRequest\032\035.google.longrunning" - + ".Operation\"r\202\323\344\223\002?\":/v3/{name=projects/*" - + "/locations/*/agents/*/testCases/*}:run:\001" - + "*\312A*\n\023RunTestCaseResponse\022\023RunTestCaseMe" - + "tadata\022\361\001\n\021BatchRunTestCases\0227.google.cl" - + "oud.dialogflow.cx.v3.BatchRunTestCasesRe" - + "quest\032\035.google.longrunning.Operation\"\203\001\202" - + "\323\344\223\002D\"?/v3/{parent=projects/*/locations/" - + "*/agents/*}/testCases:batchRun:\001*\312A6\n\031Ba" - + "tchRunTestCasesResponse\022\031BatchRunTestCas" - + "esMetadata\022\327\001\n\021CalculateCoverage\0227.googl" - + "e.cloud.dialogflow.cx.v3.CalculateCovera" - + "geRequest\0328.google.cloud.dialogflow.cx.v" - + "3.CalculateCoverageResponse\"O\202\323\344\223\002I\022G/v3" - + "/{agent=projects/*/locations/*/agents/*}" - + "/testCases:calculateCoverage\022\346\001\n\017ImportT" - + "estCases\0225.google.cloud.dialogflow.cx.v3" - + ".ImportTestCasesRequest\032\035.google.longrun" - + "ning.Operation\"}\202\323\344\223\002B\"=/v3/{parent=proj" - + "ects/*/locations/*/agents/*}/testCases:i" - + "mport:\001*\312A2\n\027ImportTestCasesResponse\022\027Im" - + "portTestCasesMetadata\022\346\001\n\017ExportTestCase" - + "s\0225.google.cloud.dialogflow.cx.v3.Export" - + "TestCasesRequest\032\035.google.longrunning.Op" - + "eration\"}\202\323\344\223\002B\"=/v3/{parent=projects/*/" - + "locations/*/agents/*}/testCases:export:\001" - + "*\312A2\n\027ExportTestCasesResponse\022\027ExportTes" - + "tCasesMetadata\022\337\001\n\023ListTestCaseResults\0229" - + ".google.cloud.dialogflow.cx.v3.ListTestC" - + "aseResultsRequest\032:.google.cloud.dialogf" - + "low.cx.v3.ListTestCaseResultsResponse\"Q\202" - + "\323\344\223\002B\022@/v3/{parent=projects/*/locations/" - + "*/agents/*/testCases/*}/results\332A\006parent" - + "\032x\312A\031dialogflow.googleapis.com\322AYhttps:/" - + "/www.googleapis.com/auth/cloud-platform," - + "https://www.googleapis.com/auth/dialogfl" - + "owB\235\001\n!com.google.cloud.dialogflow.cx.v3" - + "B\rTestCaseProtoP\001Z?google.golang.org/gen" - + "proto/googleapis/cloud/dialogflow/cx/v3;" - + "cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx." - + "V3b\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -804,6 +815,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TestCaseResults", "NextPageToken", }); + internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3_GetTestCaseResultRequest_descriptor, + new java.lang.String[] { + "Name", + }); 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/WebhookProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java index a9b21babf..68fff44a9 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java @@ -164,106 +164,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + ".FieldMask\"^\n\024DeleteWebhookRequest\0227\n\004na" + "me\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis." - + "com/Webhook\022\r\n\005force\030\002 \001(\010\"\312\010\n\016WebhookRe" + + "com/Webhook\022\r\n\005force\030\002 \001(\010\"\323\t\n\016WebhookRe" + "quest\022!\n\031detect_intent_response_id\030\001 \001(\t" - + "\022W\n\020fulfillment_info\030\006 \001(\0132=.google.clou" - + "d.dialogflow.cx.v3.WebhookRequest.Fulfil" - + "lmentInfo\022M\n\013intent_info\030\003 \001(\01328.google." - + "cloud.dialogflow.cx.v3.WebhookRequest.In" - + "tentInfo\022:\n\tpage_info\030\004 \001(\0132\'.google.clo" - + "ud.dialogflow.cx.v3.PageInfo\022@\n\014session_" - + "info\030\005 \001(\0132*.google.cloud.dialogflow.cx." - + "v3.SessionInfo\022@\n\010messages\030\007 \003(\0132..googl" + + "\022\016\n\004text\030\n \001(\tH\000\022?\n\016trigger_intent\030\013 \001(\t" + + "B%\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\022W\n\020fulfillment_info\030\006 \001(\0132=.goo" + + "gle.cloud.dialogflow.cx.v3.WebhookReques" + + "t.FulfillmentInfo\022M\n\013intent_info\030\003 \001(\01328" + + ".google.cloud.dialogflow.cx.v3.WebhookRe" + + "quest.IntentInfo\022:\n\tpage_info\030\004 \001(\0132\'.go" + + "ogle.cloud.dialogflow.cx.v3.PageInfo\022@\n\014" + + "session_info\030\005 \001(\0132*.google.cloud.dialog" + + "flow.cx.v3.SessionInfo\022@\n\010messages\030\007 \003(\013" + + "2..google.cloud.dialogflow.cx.v3.Respons" + + "eMessage\022(\n\007payload\030\010 \001(\0132\027.google.proto" + + "buf.Struct\022h\n\031sentiment_analysis_result\030" + + "\t \001(\0132E.google.cloud.dialogflow.cx.v3.We" + + "bhookRequest.SentimentAnalysisResult\032\036\n\017" + + "FulfillmentInfo\022\013\n\003tag\030\001 \001(\t\032\273\003\n\nIntentI" + + "nfo\022B\n\023last_matched_intent\030\001 \001(\tB%\372A\"\n d" + + "ialogflow.googleapis.com/Intent\022\024\n\014displ" + + "ay_name\030\003 \001(\t\022\\\n\nparameters\030\002 \003(\0132H.goog" + + "le.cloud.dialogflow.cx.v3.WebhookRequest" + + ".IntentInfo.ParametersEntry\022\022\n\nconfidenc" + + "e\030\004 \001(\002\032^\n\024IntentParameterValue\022\026\n\016origi" + + "nal_value\030\001 \001(\t\022.\n\016resolved_value\030\002 \001(\0132" + + "\026.google.protobuf.Value\032\200\001\n\017ParametersEn" + + "try\022\013\n\003key\030\001 \001(\t\022\\\n\005value\030\002 \001(\0132M.google" + + ".cloud.dialogflow.cx.v3.WebhookRequest.I" + + "ntentInfo.IntentParameterValue:\0028\001\032;\n\027Se" + + "ntimentAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\t" + + "magnitude\030\002 \001(\002B\007\n\005query\"\257\005\n\017WebhookResp" + + "onse\022`\n\024fulfillment_response\030\001 \001(\0132B.goo" + + "gle.cloud.dialogflow.cx.v3.WebhookRespon" + + "se.FulfillmentResponse\022:\n\tpage_info\030\002 \001(" + + "\0132\'.google.cloud.dialogflow.cx.v3.PageIn" + + "fo\022@\n\014session_info\030\003 \001(\0132*.google.cloud." + + "dialogflow.cx.v3.SessionInfo\022(\n\007payload\030" + + "\004 \001(\0132\027.google.protobuf.Struct\022:\n\013target" + + "_page\030\005 \001(\tB#\372A \n\036dialogflow.googleapis." + + "com/PageH\000\022:\n\013target_flow\030\006 \001(\tB#\372A \n\036di" + + "alogflow.googleapis.com/FlowH\000\032\213\002\n\023Fulfi" + + "llmentResponse\022@\n\010messages\030\001 \003(\0132..googl" + "e.cloud.dialogflow.cx.v3.ResponseMessage" - + "\022(\n\007payload\030\010 \001(\0132\027.google.protobuf.Stru" - + "ct\022h\n\031sentiment_analysis_result\030\t \001(\0132E." - + "google.cloud.dialogflow.cx.v3.WebhookReq" - + "uest.SentimentAnalysisResult\032\036\n\017Fulfillm" - + "entInfo\022\013\n\003tag\030\001 \001(\t\032\273\003\n\nIntentInfo\022B\n\023l" - + "ast_matched_intent\030\001 \001(\tB%\372A\"\n dialogflo" - + "w.googleapis.com/Intent\022\024\n\014display_name\030" - + "\003 \001(\t\022\\\n\nparameters\030\002 \003(\0132H.google.cloud" - + ".dialogflow.cx.v3.WebhookRequest.IntentI" - + "nfo.ParametersEntry\022\022\n\nconfidence\030\004 \001(\002\032" - + "^\n\024IntentParameterValue\022\026\n\016original_valu" - + "e\030\001 \001(\t\022.\n\016resolved_value\030\002 \001(\0132\026.google" - + ".protobuf.Value\032\200\001\n\017ParametersEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\\\n\005value\030\002 \001(\0132M.google.cloud.d" - + "ialogflow.cx.v3.WebhookRequest.IntentInf" - + "o.IntentParameterValue:\0028\001\032;\n\027SentimentA" - + "nalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitud" - + "e\030\002 \001(\002\"\257\005\n\017WebhookResponse\022`\n\024fulfillme" - + "nt_response\030\001 \001(\0132B.google.cloud.dialogf" - + "low.cx.v3.WebhookResponse.FulfillmentRes" - + "ponse\022:\n\tpage_info\030\002 \001(\0132\'.google.cloud." - + "dialogflow.cx.v3.PageInfo\022@\n\014session_inf" - + "o\030\003 \001(\0132*.google.cloud.dialogflow.cx.v3." - + "SessionInfo\022(\n\007payload\030\004 \001(\0132\027.google.pr" - + "otobuf.Struct\022:\n\013target_page\030\005 \001(\tB#\372A \n" - + "\036dialogflow.googleapis.com/PageH\000\022:\n\013tar" - + "get_flow\030\006 \001(\tB#\372A \n\036dialogflow.googleap" - + "is.com/FlowH\000\032\213\002\n\023FulfillmentResponse\022@\n" - + "\010messages\030\001 \003(\0132..google.cloud.dialogflo" - + "w.cx.v3.ResponseMessage\022h\n\016merge_behavio" - + "r\030\002 \001(\0162P.google.cloud.dialogflow.cx.v3." - + "WebhookResponse.FulfillmentResponse.Merg" - + "eBehavior\"H\n\rMergeBehavior\022\036\n\032MERGE_BEHA" - + "VIOR_UNSPECIFIED\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPLAC" - + "E\020\002B\014\n\ntransition\"\235\004\n\010PageInfo\0229\n\014curren" - + "t_page\030\001 \001(\tB#\372A \n\036dialogflow.googleapis" - + ".com/Page\022C\n\tform_info\030\003 \001(\01320.google.cl" - + "oud.dialogflow.cx.v3.PageInfo.FormInfo\032\220" - + "\003\n\010FormInfo\022V\n\016parameter_info\030\002 \003(\0132>.go" - + "ogle.cloud.dialogflow.cx.v3.PageInfo.For" - + "mInfo.ParameterInfo\032\253\002\n\rParameterInfo\022\024\n" - + "\014display_name\030\001 \001(\t\022\020\n\010required\030\002 \001(\010\022\\\n" - + "\005state\030\003 \001(\0162M.google.cloud.dialogflow.c" - + "x.v3.PageInfo.FormInfo.ParameterInfo.Par" - + "ameterState\022%\n\005value\030\004 \001(\0132\026.google.prot" - + "obuf.Value\022\026\n\016just_collected\030\005 \001(\010\"U\n\016Pa" - + "rameterState\022\037\n\033PARAMETER_STATE_UNSPECIF" - + "IED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INVALID\020\002\022\n\n\006FILLED\020" - + "\003\"\341\001\n\013SessionInfo\0227\n\007session\030\001 \001(\tB&\372A#\n" - + "!dialogflow.googleapis.com/Session\022N\n\npa" - + "rameters\030\002 \003(\0132:.google.cloud.dialogflow" - + ".cx.v3.SessionInfo.ParametersEntry\032I\n\017Pa" - + "rametersEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(" - + "\0132\026.google.protobuf.Value:\0028\0012\267\010\n\010Webhoo" - + "ks\022\277\001\n\014ListWebhooks\0222.google.cloud.dialo" - + "gflow.cx.v3.ListWebhooksRequest\0323.google" - + ".cloud.dialogflow.cx.v3.ListWebhooksResp" - + "onse\"F\202\323\344\223\0027\0225/v3/{parent=projects/*/loc" - + "ations/*/agents/*}/webhooks\332A\006parent\022\254\001\n" - + "\nGetWebhook\0220.google.cloud.dialogflow.cx" - + ".v3.GetWebhookRequest\032&.google.cloud.dia" - + "logflow.cx.v3.Webhook\"D\202\323\344\223\0027\0225/v3/{name" - + "=projects/*/locations/*/agents/*/webhook" - + "s/*}\332A\004name\022\305\001\n\rCreateWebhook\0223.google.c" - + "loud.dialogflow.cx.v3.CreateWebhookReque" - + "st\032&.google.cloud.dialogflow.cx.v3.Webho" - + "ok\"W\202\323\344\223\002@\"5/v3/{parent=projects/*/locat" - + "ions/*/agents/*}/webhooks:\007webhook\332A\016par" - + "ent,webhook\022\322\001\n\rUpdateWebhook\0223.google.c" - + "loud.dialogflow.cx.v3.UpdateWebhookReque" - + "st\032&.google.cloud.dialogflow.cx.v3.Webho" - + "ok\"d\202\323\344\223\002H2=/v3/{webhook.name=projects/*" - + "/locations/*/agents/*/webhooks/*}:\007webho" - + "ok\332A\023webhook,update_mask\022\242\001\n\rDeleteWebho" - + "ok\0223.google.cloud.dialogflow.cx.v3.Delet" - + "eWebhookRequest\032\026.google.protobuf.Empty\"" - + "D\202\323\344\223\0027*5/v3/{name=projects/*/locations/" - + "*/agents/*/webhooks/*}\332A\004name\032x\312A\031dialog" - + "flow.googleapis.com\322AYhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/dialogflowB\233\002\n!com." - + "google.cloud.dialogflow.cx.v3B\014WebhookPr" - + "otoP\001Z?google.golang.org/genproto/google" - + "apis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002" - + "\035Google.Cloud.Dialogflow.Cx.V3\352A|\n\'servi" - + "cedirectory.googleapis.com/Service\022Qproj" - + "ects/{project}/locations/{location}/name" - + "spaces/{namespace}/services/{service}b\006p" - + "roto3" + + "\022h\n\016merge_behavior\030\002 \001(\0162P.google.cloud." + + "dialogflow.cx.v3.WebhookResponse.Fulfill" + + "mentResponse.MergeBehavior\"H\n\rMergeBehav" + + "ior\022\036\n\032MERGE_BEHAVIOR_UNSPECIFIED\020\000\022\n\n\006A" + + "PPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\ntransition\"\235\004\n\010P" + + "ageInfo\0229\n\014current_page\030\001 \001(\tB#\372A \n\036dial" + + "ogflow.googleapis.com/Page\022C\n\tform_info\030" + + "\003 \001(\01320.google.cloud.dialogflow.cx.v3.Pa" + + "geInfo.FormInfo\032\220\003\n\010FormInfo\022V\n\016paramete" + + "r_info\030\002 \003(\0132>.google.cloud.dialogflow.c" + + "x.v3.PageInfo.FormInfo.ParameterInfo\032\253\002\n" + + "\rParameterInfo\022\024\n\014display_name\030\001 \001(\t\022\020\n\010" + + "required\030\002 \001(\010\022\\\n\005state\030\003 \001(\0162M.google.c" + + "loud.dialogflow.cx.v3.PageInfo.FormInfo." + + "ParameterInfo.ParameterState\022%\n\005value\030\004 " + + "\001(\0132\026.google.protobuf.Value\022\026\n\016just_coll" + + "ected\030\005 \001(\010\"U\n\016ParameterState\022\037\n\033PARAMET" + + "ER_STATE_UNSPECIFIED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INV" + + "ALID\020\002\022\n\n\006FILLED\020\003\"\341\001\n\013SessionInfo\0227\n\007se" + + "ssion\030\001 \001(\tB&\372A#\n!dialogflow.googleapis." + + "com/Session\022N\n\nparameters\030\002 \003(\0132:.google" + + ".cloud.dialogflow.cx.v3.SessionInfo.Para" + + "metersEntry\032I\n\017ParametersEntry\022\013\n\003key\030\001 " + + "\001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Val" + + "ue:\0028\0012\267\010\n\010Webhooks\022\277\001\n\014ListWebhooks\0222.g" + + "oogle.cloud.dialogflow.cx.v3.ListWebhook" + + "sRequest\0323.google.cloud.dialogflow.cx.v3" + + ".ListWebhooksResponse\"F\202\323\344\223\0027\0225/v3/{pare" + + "nt=projects/*/locations/*/agents/*}/webh" + + "ooks\332A\006parent\022\254\001\n\nGetWebhook\0220.google.cl" + + "oud.dialogflow.cx.v3.GetWebhookRequest\032&" + + ".google.cloud.dialogflow.cx.v3.Webhook\"D" + + "\202\323\344\223\0027\0225/v3/{name=projects/*/locations/*" + + "/agents/*/webhooks/*}\332A\004name\022\305\001\n\rCreateW" + + "ebhook\0223.google.cloud.dialogflow.cx.v3.C" + + "reateWebhookRequest\032&.google.cloud.dialo" + + "gflow.cx.v3.Webhook\"W\202\323\344\223\002@\"5/v3/{parent" + + "=projects/*/locations/*/agents/*}/webhoo" + + "ks:\007webhook\332A\016parent,webhook\022\322\001\n\rUpdateW" + + "ebhook\0223.google.cloud.dialogflow.cx.v3.U" + + "pdateWebhookRequest\032&.google.cloud.dialo" + + "gflow.cx.v3.Webhook\"d\202\323\344\223\002H2=/v3/{webhoo" + + "k.name=projects/*/locations/*/agents/*/w" + + "ebhooks/*}:\007webhook\332A\023webhook,update_mas" + + "k\022\242\001\n\rDeleteWebhook\0223.google.cloud.dialo" + + "gflow.cx.v3.DeleteWebhookRequest\032\026.googl" + + "e.protobuf.Empty\"D\202\323\344\223\0027*5/v3/{name=proj" + + "ects/*/locations/*/agents/*/webhooks/*}\332" + + "A\004name\032x\312A\031dialogflow.googleapis.com\322AYh" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform,https://www.googleapis.com/auth/di" + + "alogflowB\233\002\n!com.google.cloud.dialogflow" + + ".cx.v3B\014WebhookProtoP\001Z?google.golang.or" + + "g/genproto/googleapis/cloud/dialogflow/c" + + "x/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflo" + + "w.Cx.V3\352A|\n\'servicedirectory.googleapis." + + "com/Service\022Qprojects/{project}/location" + + "s/{location}/namespaces/{namespace}/serv" + + "ices/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -360,6 +363,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_descriptor, new java.lang.String[] { "DetectIntentResponseId", + "Text", + "TriggerIntent", + "Transcript", + "TriggerEvent", "FulfillmentInfo", "IntentInfo", "PageInfo", @@ -367,6 +374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Messages", "Payload", "SentimentAnalysisResult", + "Query", }); internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_FulfillmentInfo_descriptor = internal_static_google_cloud_dialogflow_cx_v3_WebhookRequest_descriptor diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java index 152160bfb..4752a869a 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for a webhook call.
+ * The request message for a webhook call. The request is sent as a JSON object
+ * and the field names will be presented in camel cases.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.WebhookRequest} @@ -190,6 +191,34 @@ private WebhookRequest( sentimentAnalysisResult_ = subBuilder.buildPartial(); } + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 10; + query_ = s; + break; + } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 11; + query_ = s; + break; + } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 12; + query_ = s; + break; + } + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + queryCase_ = 14; + query_ = s; break; } default: @@ -912,8 +941,9 @@ public interface IntentInfoOrBuilder * *
      * Always present. The unique identifier of the last matched
-     * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * [intent][google.cloud.dialogflow.cx.v3.Intent].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -926,8 +956,9 @@ public interface IntentInfoOrBuilder * *
      * Always present. The unique identifier of the last matched
-     * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * [intent][google.cloud.dialogflow.cx.v3.Intent].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2228,8 +2259,9 @@ public com.google.protobuf.Parser getParserForType() { * *
      * Always present. The unique identifier of the last matched
-     * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * [intent][google.cloud.dialogflow.cx.v3.Intent].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2253,8 +2285,9 @@ public java.lang.String getLastMatchedIntent() { * *
      * Always present. The unique identifier of the last matched
-     * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+     * [intent][google.cloud.dialogflow.cx.v3.Intent].
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
      * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2905,8 +2938,9 @@ public Builder mergeFrom( * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2929,8 +2963,9 @@ public java.lang.String getLastMatchedIntent() { * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2953,8 +2988,9 @@ public com.google.protobuf.ByteString getLastMatchedIntentBytes() { * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2976,8 +3012,9 @@ public Builder setLastMatchedIntent(java.lang.String value) { * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -2995,8 +3032,9 @@ public Builder clearLastMatchedIntent() { * *
        * Always present. The unique identifier of the last matched
-       * [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<Project ID>/locations/<Location
-       * ID>/agents/<Agent ID>/intents/<Intent ID>`.
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+       * ID>/intents/<Intent ID>`.
        * 
* * string last_matched_intent = 1 [(.google.api.resource_reference) = { ... } @@ -4151,6 +4189,59 @@ public com.google.protobuf.Parser getParserForType() { } } + private int queryCase_ = 0; + private java.lang.Object query_; + + public enum QueryCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(10), + TRIGGER_INTENT(11), + TRANSCRIPT(12), + TRIGGER_EVENT(14), + QUERY_NOT_SET(0); + private final int value; + + private QueryCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QueryCase valueOf(int value) { + return forNumber(value); + } + + public static QueryCase forNumber(int value) { + switch (value) { + case 10: + return TEXT; + case 11: + return TRIGGER_INTENT; + case 12: + return TRANSCRIPT; + case 14: + return TRIGGER_EVENT; + case 0: + return QUERY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public QueryCase getQueryCase() { + return QueryCase.forNumber(queryCase_); + } + public static final int DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object detectIntentResponseId_; /** @@ -4202,6 +4293,304 @@ public com.google.protobuf.ByteString getDetectIntentResponseIdBytes() { } } + public static final int TEXT_FIELD_NUMBER = 10; + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return queryCase_ == 10; + } + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (queryCase_ == 10) { + ref = query_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 10) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 10) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 10) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIGGER_INTENT_FIELD_NUMBER = 11; + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return Whether the triggerIntent field is set. + */ + public boolean hasTriggerIntent() { + return queryCase_ == 11; + } + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The triggerIntent. + */ + public java.lang.String getTriggerIntent() { + java.lang.Object ref = ""; + if (queryCase_ == 11) { + ref = query_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 11) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerIntent. + */ + public com.google.protobuf.ByteString getTriggerIntentBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 11) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 11) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRANSCRIPT_FIELD_NUMBER = 12; + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return Whether the transcript field is set. + */ + public boolean hasTranscript() { + return queryCase_ == 12; + } + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return The transcript. + */ + public java.lang.String getTranscript() { + java.lang.Object ref = ""; + if (queryCase_ == 12) { + ref = query_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 12) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return The bytes for transcript. + */ + public com.google.protobuf.ByteString getTranscriptBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 12) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 12) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIGGER_EVENT_FIELD_NUMBER = 14; + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return Whether the triggerEvent field is set. + */ + public boolean hasTriggerEvent() { + return queryCase_ == 14; + } + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return The triggerEvent. + */ + public java.lang.String getTriggerEvent() { + java.lang.Object ref = ""; + if (queryCase_ == 14) { + ref = query_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 14) { + query_ = s; + } + return s; + } + } + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return The bytes for triggerEvent. + */ + public com.google.protobuf.ByteString getTriggerEventBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 14) { + ref = query_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 14) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int FULFILLMENT_INFO_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillmentInfo_; /** @@ -4627,6 +5016,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sentimentAnalysisResult_ != null) { output.writeMessage(9, getSentimentAnalysisResult()); } + if (queryCase_ == 10) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, query_); + } + if (queryCase_ == 11) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, query_); + } + if (queryCase_ == 12) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, query_); + } + if (queryCase_ == 14) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, query_); + } unknownFields.writeTo(output); } @@ -4661,6 +5062,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getSentimentAnalysisResult()); } + if (queryCase_ == 10) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, query_); + } + if (queryCase_ == 11) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, query_); + } + if (queryCase_ == 12) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, query_); + } + if (queryCase_ == 14) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, query_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4703,6 +5116,23 @@ public boolean equals(final java.lang.Object obj) { if (hasSentimentAnalysisResult()) { if (!getSentimentAnalysisResult().equals(other.getSentimentAnalysisResult())) return false; } + if (!getQueryCase().equals(other.getQueryCase())) return false; + switch (queryCase_) { + case 10: + if (!getText().equals(other.getText())) return false; + break; + case 11: + if (!getTriggerIntent().equals(other.getTriggerIntent())) return false; + break; + case 12: + if (!getTranscript().equals(other.getTranscript())) return false; + break; + case 14: + if (!getTriggerEvent().equals(other.getTriggerEvent())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -4744,6 +5174,26 @@ public int hashCode() { hash = (37 * hash) + SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER; hash = (53 * hash) + getSentimentAnalysisResult().hashCode(); } + switch (queryCase_) { + case 10: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 11: + hash = (37 * hash) + TRIGGER_INTENT_FIELD_NUMBER; + hash = (53 * hash) + getTriggerIntent().hashCode(); + break; + case 12: + hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER; + hash = (53 * hash) + getTranscript().hashCode(); + break; + case 14: + hash = (37 * hash) + TRIGGER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getTriggerEvent().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -4848,7 +5298,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for a webhook call.
+   * The request message for a webhook call. The request is sent as a JSON object
+   * and the field names will be presented in camel cases.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.WebhookRequest} @@ -4935,6 +5386,8 @@ public Builder clear() { sentimentAnalysisResult_ = null; sentimentAnalysisResultBuilder_ = null; } + queryCase_ = 0; + query_ = null; return this; } @@ -4964,6 +5417,18 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest buildPartial() { new com.google.cloud.dialogflow.cx.v3.WebhookRequest(this); int from_bitField0_ = bitField0_; result.detectIntentResponseId_ = detectIntentResponseId_; + if (queryCase_ == 10) { + result.query_ = query_; + } + if (queryCase_ == 11) { + result.query_ = query_; + } + if (queryCase_ == 12) { + result.query_ = query_; + } + if (queryCase_ == 14) { + result.query_ = query_; + } if (fulfillmentInfoBuilder_ == null) { result.fulfillmentInfo_ = fulfillmentInfo_; } else { @@ -5003,6 +5468,7 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest buildPartial() { } else { result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build(); } + result.queryCase_ = queryCase_; onBuilt(); return result; } @@ -5102,6 +5568,40 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other) if (other.hasSentimentAnalysisResult()) { mergeSentimentAnalysisResult(other.getSentimentAnalysisResult()); } + switch (other.getQueryCase()) { + case TEXT: + { + queryCase_ = 10; + query_ = other.query_; + onChanged(); + break; + } + case TRIGGER_INTENT: + { + queryCase_ = 11; + query_ = other.query_; + onChanged(); + break; + } + case TRANSCRIPT: + { + queryCase_ = 12; + query_ = other.query_; + onChanged(); + break; + } + case TRIGGER_EVENT: + { + queryCase_ = 14; + query_ = other.query_; + onChanged(); + break; + } + case QUERY_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5131,6 +5631,20 @@ public Builder mergeFrom( return this; } + private int queryCase_ = 0; + private java.lang.Object query_; + + public QueryCase getQueryCase() { + return QueryCase.forNumber(queryCase_); + } + + public Builder clearQuery() { + queryCase_ = 0; + query_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object detectIntentResponseId_ = ""; @@ -5244,6 +5758,578 @@ public Builder setDetectIntentResponseIdBytes(com.google.protobuf.ByteString val return this; } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return queryCase_ == 10; + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (queryCase_ == 10) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 10) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 10) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 10) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 10; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (queryCase_ == 10) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+     * will contain a copy of the text.
+     * 
+ * + * string text = 10; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 10; + query_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return Whether the triggerIntent field is set. + */ + @java.lang.Override + public boolean hasTriggerIntent() { + return queryCase_ == 11; + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The triggerIntent. + */ + @java.lang.Override + public java.lang.String getTriggerIntent() { + java.lang.Object ref = ""; + if (queryCase_ == 11) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 11) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerIntent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTriggerIntentBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 11) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 11) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @param value The triggerIntent to set. + * @return This builder for chaining. + */ + public Builder setTriggerIntent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 11; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearTriggerIntent() { + if (queryCase_ == 11) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+     * contain a copy of the intent identifier.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/intents/<Intent ID>`.
+     * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for triggerIntent to set. + * @return This builder for chaining. + */ + public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 11; + query_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @return Whether the transcript field is set. + */ + @java.lang.Override + public boolean hasTranscript() { + return queryCase_ == 12; + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @return The transcript. + */ + @java.lang.Override + public java.lang.String getTranscript() { + java.lang.Object ref = ""; + if (queryCase_ == 12) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 12) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @return The bytes for transcript. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTranscriptBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 12) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 12) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @param value The transcript to set. + * @return This builder for chaining. + */ + public Builder setTranscript(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 12; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @return This builder for chaining. + */ + public Builder clearTranscript() { + if (queryCase_ == 12) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * this field will contain the transcript for the audio.
+     * 
+ * + * string transcript = 12; + * + * @param value The bytes for transcript to set. + * @return This builder for chaining. + */ + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 12; + query_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @return Whether the triggerEvent field is set. + */ + @java.lang.Override + public boolean hasTriggerEvent() { + return queryCase_ == 14; + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @return The triggerEvent. + */ + @java.lang.Override + public java.lang.String getTriggerEvent() { + java.lang.Object ref = ""; + if (queryCase_ == 14) { + ref = query_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (queryCase_ == 14) { + query_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @return The bytes for triggerEvent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTriggerEventBytes() { + java.lang.Object ref = ""; + if (queryCase_ == 14) { + ref = query_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (queryCase_ == 14) { + query_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @param value The triggerEvent to set. + * @return This builder for chaining. + */ + public Builder setTriggerEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryCase_ = 14; + query_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @return This builder for chaining. + */ + public Builder clearTriggerEvent() { + if (queryCase_ == 14) { + queryCase_ = 0; + query_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+     * the name of the event.
+     * 
+ * + * string trigger_event = 14; + * + * @param value The bytes for triggerEvent to set. + * @return This builder for chaining. + */ + public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryCase_ = 14; + query_ = value; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillmentInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java index 4ddfd3bf1..acd6013db 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java @@ -50,6 +50,172 @@ public interface WebhookRequestOrBuilder */ com.google.protobuf.ByteString getDetectIntentResponseIdBytes(); + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return Whether the text field is set. + */ + boolean hasText(); + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
+   * will contain a copy of the text.
+   * 
+ * + * string text = 10; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return Whether the triggerIntent field is set. + */ + boolean hasTriggerIntent(); + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The triggerIntent. + */ + java.lang.String getTriggerIntent(); + /** + * + * + *
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
+   * contain a copy of the intent identifier.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/intents/<Intent ID>`.
+   * 
+ * + * string trigger_intent = 11 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for triggerIntent. + */ + com.google.protobuf.ByteString getTriggerIntentBytes(); + + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return Whether the transcript field is set. + */ + boolean hasTranscript(); + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return The transcript. + */ + java.lang.String getTranscript(); + /** + * + * + *
+   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * this field will contain the transcript for the audio.
+   * 
+ * + * string transcript = 12; + * + * @return The bytes for transcript. + */ + com.google.protobuf.ByteString getTranscriptBytes(); + + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return Whether the triggerEvent field is set. + */ + boolean hasTriggerEvent(); + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return The triggerEvent. + */ + java.lang.String getTriggerEvent(); + /** + * + * + *
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
+   * the name of the event.
+   * 
+ * + * string trigger_event = 14; + * + * @return The bytes for triggerEvent. + */ + com.google.protobuf.ByteString getTriggerEventBytes(); + /** * * @@ -339,4 +505,6 @@ public interface WebhookRequestOrBuilder */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder(); + + public com.google.cloud.dialogflow.cx.v3.WebhookRequest.QueryCase getQueryCase(); } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto index 2e485a56d..b2d6c049b 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto @@ -452,10 +452,14 @@ message QueryResult { // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will // contain a copy of the intent identifier. - string trigger_intent = 11; + // Format: `projects//locations//agents//intents/`. + string trigger_intent = 11 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, - // this field will contain the trascript for the audio. + // this field will contain the transcript for the audio. string transcript = 12; // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain @@ -694,10 +698,14 @@ message MatchIntentResponse { // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will // contain a copy of the intent identifier. - string trigger_intent = 2; + // Format: `projects//locations//agents//intents/`. + string trigger_intent = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, - // this field will contain the trascript for the audio. + // this field will contain the transcript for the audio. string transcript = 3; // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session_entity_type.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session_entity_type.proto index 8500bd03b..fd4f477a0 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session_entity_type.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session_entity_type.proto @@ -62,9 +62,6 @@ service SessionEntityTypes { } // Creates a session entity type. - // - // If the specified session entity type already exists, overrides the - // session entity type. rpc CreateSessionEntityType(CreateSessionEntityTypeRequest) returns (SessionEntityType) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" 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 baa1aff62..f7b942221 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 @@ -157,6 +157,14 @@ service TestCases { }; option (google.api.method_signature) = "parent"; } + + // Gets a test case result. + rpc GetTestCaseResult(GetTestCaseResultRequest) returns (TestCaseResult) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/testCases/*/results/*}" + }; + option (google.api.method_signature) = "name"; + } } // Represents a test case. @@ -862,6 +870,19 @@ message ListTestCaseResultsResponse { string next_page_token = 2; } +// The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult]. +message GetTestCaseResultRequest { + // Required. The name of the testcase. + // Format: `projects//locations//agents//testCases//results/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCaseResult" + } + ]; +} + // The test result for a test case and an agent environment. enum TestResult { // Not specified. Should never be used. diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto index eb0863642..6d367b3ef 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto @@ -231,7 +231,8 @@ message DeleteWebhookRequest { bool force = 2; } -// The request message for a webhook call. +// The request message for a webhook call. The request is sent as a JSON object +// and the field names will be presented in camel cases. message WebhookRequest { // Represents fulfillment information communicated to the webhook. message FulfillmentInfo { @@ -253,8 +254,9 @@ message WebhookRequest { } // Always present. The unique identifier of the last matched - // [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects//locations//agents//intents/`. + // [intent][google.cloud.dialogflow.cx.v3.Intent]. + // Format: `projects//locations//agents//intents/`. string last_matched_intent = 1 [(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Intent" }]; @@ -289,6 +291,29 @@ message WebhookRequest { // will be returned to the API caller. string detect_intent_response_id = 1; + // The original conversational query. + oneof query { + // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field + // will contain a copy of the text. + string text = 10; + + // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will + // contain a copy of the intent identifier. + // Format: `projects//locations//agents//intents/`. + string trigger_intent = 11 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, + // this field will contain the transcript for the audio. + string transcript = 12; + + // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain + // the name of the event. + string trigger_event = 14; + } + // Always present. Information about the fulfillment that triggered this // webhook call. FulfillmentInfo fulfillment_info = 6; diff --git a/synth.metadata b/synth.metadata index 4e636e8dc..43c846a41 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,16 +11,16 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "551ddbb55b96147012c00b66250dd5907556807c", - "internalRef": "364734171" + "sha": "35593f2d62a2e6a11ad74ea64a664159939f52dd", + "internalRef": "364838477" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "551ddbb55b96147012c00b66250dd5907556807c", - "internalRef": "364734171" + "sha": "35593f2d62a2e6a11ad74ea64a664159939f52dd", + "internalRef": "364838477" } }, { @@ -553,6 +553,8 @@ "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequestOrBuilder.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java", + "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java", "proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java",