diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md
index 290ddc35b264..e37abe616c32 100644
--- a/java-dialogflow-cx/README.md
+++ b/java-dialogflow-cx/README.md
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
com.google.cloud
libraries-bom
- 26.23.0
+ 26.27.0
pom
import
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.35.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.41.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java
index c845888e5e5e..c8c70522fad0 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java
@@ -177,175 +177,6 @@ public EntityTypesStub getStub() {
return stub;
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- *
Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
- * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The agent to list all entity types for. Format: `projects/<Project
- * ID>/locations/<Location ID>/agents/<Agent ID>`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) {
- ListEntityTypesRequest request =
- ListEntityTypesRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .build();
- return listEntityTypes(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
- * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The agent to list all entity types for. Format: `projects/<Project
- * ID>/locations/<Location ID>/agents/<Agent ID>`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
- ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder().setParent(parent).build();
- return listEntityTypes(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * ListEntityTypesRequest request =
- * ListEntityTypesRequest.newBuilder()
- * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
- * .setLanguageCode("languageCode-2092349083")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * for (EntityType element : entityTypesClient.listEntityTypes(request).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest request) {
- return listEntityTypesPagedCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * ListEntityTypesRequest request =
- * ListEntityTypesRequest.newBuilder()
- * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
- * .setLanguageCode("languageCode-2092349083")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * ApiFuture future =
- * entityTypesClient.listEntityTypesPagedCallable().futureCall(request);
- * // Do something.
- * for (EntityType element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- */
- public final UnaryCallable
- listEntityTypesPagedCallable() {
- return stub.listEntityTypesPagedCallable();
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * ListEntityTypesRequest request =
- * ListEntityTypesRequest.newBuilder()
- * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
- * .setLanguageCode("languageCode-2092349083")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * while (true) {
- * ListEntityTypesResponse response =
- * entityTypesClient.listEntityTypesCallable().call(request);
- * for (EntityType element : response.getEntityTypesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
- * }
- * }
- */
- public final UnaryCallable
- listEntityTypesCallable() {
- return stub.listEntityTypesCallable();
- }
-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Retrieves the specified entity type.
@@ -834,6 +665,175 @@ public final UnaryCallable deleteEntityTypeCalla
return stub.deleteEntityTypeCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The agent to list all entity types for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) {
+ ListEntityTypesRequest request =
+ ListEntityTypesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listEntityTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+ * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The agent to list all entity types for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
+ ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder().setParent(parent).build();
+ return listEntityTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setLanguageCode("languageCode-2092349083")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (EntityType element : entityTypesClient.listEntityTypes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest request) {
+ return listEntityTypesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setLanguageCode("languageCode-2092349083")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * entityTypesClient.listEntityTypesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (EntityType element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listEntityTypesPagedCallable() {
+ return stub.listEntityTypesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setLanguageCode("languageCode-2092349083")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListEntityTypesResponse response =
+ * entityTypesClient.listEntityTypesCallable().call(request);
+ * for (EntityType element : response.getEntityTypesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listEntityTypesCallable() {
+ return stub.listEntityTypesCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java
index e2271b744b34..0b88b2d2a1a3 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesSettings.java
@@ -80,13 +80,6 @@
@Generated("by gapic-generator-java")
public class EntityTypesSettings extends ClientSettings {
- /** Returns the object with the settings used for calls to listEntityTypes. */
- public PagedCallSettings<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings() {
- return ((EntityTypesStubSettings) getStubSettings()).listEntityTypesSettings();
- }
-
/** Returns the object with the settings used for calls to getEntityType. */
public UnaryCallSettings getEntityTypeSettings() {
return ((EntityTypesStubSettings) getStubSettings()).getEntityTypeSettings();
@@ -107,6 +100,13 @@ public UnaryCallSettings deleteEntityTypeSetting
return ((EntityTypesStubSettings) getStubSettings()).deleteEntityTypeSettings();
}
+ /** Returns the object with the settings used for calls to listEntityTypes. */
+ public PagedCallSettings<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings() {
+ return ((EntityTypesStubSettings) getStubSettings()).listEntityTypesSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -232,13 +232,6 @@ public Builder applyToAllUnaryMethods(
return this;
}
- /** Returns the builder for the settings used for calls to listEntityTypes. */
- public PagedCallSettings.Builder<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings() {
- return getStubSettingsBuilder().listEntityTypesSettings();
- }
-
/** Returns the builder for the settings used for calls to getEntityType. */
public UnaryCallSettings.Builder getEntityTypeSettings() {
return getStubSettingsBuilder().getEntityTypeSettings();
@@ -261,6 +254,13 @@ public UnaryCallSettings.Builder deleteEntityTyp
return getStubSettingsBuilder().deleteEntityTypeSettings();
}
+ /** Returns the builder for the settings used for calls to listEntityTypes. */
+ public PagedCallSettings.Builder<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings() {
+ return getStubSettingsBuilder().listEntityTypesSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
index e0ba84cf437d..cc581037ac33 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java
@@ -442,6 +442,75 @@ public final UnaryCallable fulfillI
return stub.fulfillIntentCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the feedback received from the user for a single turn of the bot response.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SessionsClient sessionsClient = SessionsClient.create()) {
+ * SubmitAnswerFeedbackRequest request =
+ * SubmitAnswerFeedbackRequest.newBuilder()
+ * .setSession(
+ * SessionName.ofProjectLocationAgentSessionName(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
+ * .toString())
+ * .setResponseId("responseId-633138884")
+ * .setAnswerFeedback(AnswerFeedback.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * AnswerFeedback response = sessionsClient.submitAnswerFeedback(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 AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest request) {
+ return submitAnswerFeedbackCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the feedback received from the user for a single turn of the bot response.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SessionsClient sessionsClient = SessionsClient.create()) {
+ * SubmitAnswerFeedbackRequest request =
+ * SubmitAnswerFeedbackRequest.newBuilder()
+ * .setSession(
+ * SessionName.ofProjectLocationAgentSessionName(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
+ * .toString())
+ * .setResponseId("responseId-633138884")
+ * .setAnswerFeedback(AnswerFeedback.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * sessionsClient.submitAnswerFeedbackCallable().futureCall(request);
+ * // Do something.
+ * AnswerFeedback response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ submitAnswerFeedbackCallable() {
+ return stub.submitAnswerFeedbackCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsSettings.java
index 09548fcd60ce..94ab1c635a31 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsSettings.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsSettings.java
@@ -100,6 +100,12 @@ public UnaryCallSettings fulfillInt
return ((SessionsStubSettings) getStubSettings()).fulfillIntentSettings();
}
+ /** Returns the object with the settings used for calls to submitAnswerFeedback. */
+ public UnaryCallSettings
+ submitAnswerFeedbackSettings() {
+ return ((SessionsStubSettings) getStubSettings()).submitAnswerFeedbackSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -250,6 +256,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().fulfillIntentSettings();
}
+ /** Returns the builder for the settings used for calls to submitAnswerFeedback. */
+ public UnaryCallSettings.Builder
+ submitAnswerFeedbackSettings() {
+ return getStubSettingsBuilder().submitAnswerFeedbackSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json
index d53ae8a2b94d..8d2eac975953 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/gapic_metadata.json
@@ -366,6 +366,9 @@
},
"StreamingDetectIntent": {
"methods": ["streamingDetectIntentCallable"]
+ },
+ "SubmitAnswerFeedback": {
+ "methods": ["submitAnswerFeedback", "submitAnswerFeedbackCallable"]
}
}
}
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStub.java
index 32a0f9c08d76..8d2c9e50aae5 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStub.java
@@ -44,15 +44,6 @@
@Generated("by gapic-generator-java")
public abstract class EntityTypesStub implements BackgroundResource {
- public UnaryCallable
- listEntityTypesPagedCallable() {
- throw new UnsupportedOperationException("Not implemented: listEntityTypesPagedCallable()");
- }
-
- public UnaryCallable listEntityTypesCallable() {
- throw new UnsupportedOperationException("Not implemented: listEntityTypesCallable()");
- }
-
public UnaryCallable getEntityTypeCallable() {
throw new UnsupportedOperationException("Not implemented: getEntityTypeCallable()");
}
@@ -69,6 +60,15 @@ public UnaryCallable deleteEntityTypeCallable()
throw new UnsupportedOperationException("Not implemented: deleteEntityTypeCallable()");
}
+ public UnaryCallable
+ listEntityTypesPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listEntityTypesPagedCallable()");
+ }
+
+ public UnaryCallable listEntityTypesCallable() {
+ throw new UnsupportedOperationException("Not implemented: listEntityTypesCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
index 631540b272eb..a2f762c9cab2 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/EntityTypesStubSettings.java
@@ -111,13 +111,13 @@ public class EntityTypesStubSettings extends StubSettings
- listEntityTypesSettings;
private final UnaryCallSettings getEntityTypeSettings;
private final UnaryCallSettings createEntityTypeSettings;
private final UnaryCallSettings updateEntityTypeSettings;
private final UnaryCallSettings deleteEntityTypeSettings;
+ private final PagedCallSettings<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -232,13 +232,6 @@ public ApiFuture getFuturePagedResponse(
}
};
- /** Returns the object with the settings used for calls to listEntityTypes. */
- public PagedCallSettings<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings() {
- return listEntityTypesSettings;
- }
-
/** Returns the object with the settings used for calls to getEntityType. */
public UnaryCallSettings getEntityTypeSettings() {
return getEntityTypeSettings;
@@ -259,6 +252,13 @@ public UnaryCallSettings deleteEntityTypeSetting
return deleteEntityTypeSettings;
}
+ /** Returns the object with the settings used for calls to listEntityTypes. */
+ public PagedCallSettings<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings() {
+ return listEntityTypesSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -376,11 +376,11 @@ public Builder toBuilder() {
protected EntityTypesStubSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
- listEntityTypesSettings = settingsBuilder.listEntityTypesSettings().build();
getEntityTypeSettings = settingsBuilder.getEntityTypeSettings().build();
createEntityTypeSettings = settingsBuilder.createEntityTypeSettings().build();
updateEntityTypeSettings = settingsBuilder.updateEntityTypeSettings().build();
deleteEntityTypeSettings = settingsBuilder.deleteEntityTypeSettings().build();
+ listEntityTypesSettings = settingsBuilder.listEntityTypesSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
}
@@ -388,9 +388,6 @@ protected EntityTypesStubSettings(Builder settingsBuilder) throws IOException {
/** Builder for EntityTypesStubSettings. */
public static class Builder extends StubSettings.Builder {
private final ImmutableList> unaryMethodSettingsBuilders;
- private final PagedCallSettings.Builder<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings;
private final UnaryCallSettings.Builder getEntityTypeSettings;
private final UnaryCallSettings.Builder
createEntityTypeSettings;
@@ -398,6 +395,9 @@ public static class Builder extends StubSettings.Builder
deleteEntityTypeSettings;
+ private final PagedCallSettings.Builder<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -440,21 +440,21 @@ protected Builder() {
protected Builder(ClientContext clientContext) {
super(clientContext);
- listEntityTypesSettings = PagedCallSettings.newBuilder(LIST_ENTITY_TYPES_PAGE_STR_FACT);
getEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
updateEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listEntityTypesSettings = PagedCallSettings.newBuilder(LIST_ENTITY_TYPES_PAGE_STR_FACT);
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
- listEntityTypesSettings,
getEntityTypeSettings,
createEntityTypeSettings,
updateEntityTypeSettings,
deleteEntityTypeSettings,
+ listEntityTypesSettings,
listLocationsSettings,
getLocationSettings);
initDefaults(this);
@@ -463,21 +463,21 @@ protected Builder(ClientContext clientContext) {
protected Builder(EntityTypesStubSettings settings) {
super(settings);
- listEntityTypesSettings = settings.listEntityTypesSettings.toBuilder();
getEntityTypeSettings = settings.getEntityTypeSettings.toBuilder();
createEntityTypeSettings = settings.createEntityTypeSettings.toBuilder();
updateEntityTypeSettings = settings.updateEntityTypeSettings.toBuilder();
deleteEntityTypeSettings = settings.deleteEntityTypeSettings.toBuilder();
+ listEntityTypesSettings = settings.listEntityTypesSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
- listEntityTypesSettings,
getEntityTypeSettings,
createEntityTypeSettings,
updateEntityTypeSettings,
deleteEntityTypeSettings,
+ listEntityTypesSettings,
listLocationsSettings,
getLocationSettings);
}
@@ -509,11 +509,6 @@ private static Builder createHttpJsonDefault() {
}
private static Builder initDefaults(Builder builder) {
- builder
- .listEntityTypesSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
-
builder
.getEntityTypeSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -534,6 +529,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
+ .listEntityTypesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.listLocationsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -562,13 +562,6 @@ public Builder applyToAllUnaryMethods(
return unaryMethodSettingsBuilders;
}
- /** Returns the builder for the settings used for calls to listEntityTypes. */
- public PagedCallSettings.Builder<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings() {
- return listEntityTypesSettings;
- }
-
/** Returns the builder for the settings used for calls to getEntityType. */
public UnaryCallSettings.Builder getEntityTypeSettings() {
return getEntityTypeSettings;
@@ -591,6 +584,13 @@ public UnaryCallSettings.Builder deleteEntityTyp
return deleteEntityTypeSettings;
}
+ /** Returns the builder for the settings used for calls to listEntityTypes. */
+ public PagedCallSettings.Builder<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings() {
+ return listEntityTypesSettings;
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
index b48498e96752..1d3a7c50d510 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcEntityTypesStub.java
@@ -53,17 +53,6 @@
*/
@Generated("by gapic-generator-java")
public class GrpcEntityTypesStub extends EntityTypesStub {
- private static final MethodDescriptor
- listEntityTypesMethodDescriptor =
- MethodDescriptor.newBuilder()
- .setType(MethodDescriptor.MethodType.UNARY)
- .setFullMethodName("google.cloud.dialogflow.cx.v3.EntityTypes/ListEntityTypes")
- .setRequestMarshaller(
- ProtoUtils.marshaller(ListEntityTypesRequest.getDefaultInstance()))
- .setResponseMarshaller(
- ProtoUtils.marshaller(ListEntityTypesResponse.getDefaultInstance()))
- .build();
-
private static final MethodDescriptor
getEntityTypeMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -104,6 +93,17 @@ public class GrpcEntityTypesStub extends EntityTypesStub {
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ listEntityTypesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.dialogflow.cx.v3.EntityTypes/ListEntityTypes")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListEntityTypesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListEntityTypesResponse.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -123,14 +123,14 @@ public class GrpcEntityTypesStub extends EntityTypesStub {
.setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
.build();
- private final UnaryCallable
- listEntityTypesCallable;
- private final UnaryCallable
- listEntityTypesPagedCallable;
private final UnaryCallable getEntityTypeCallable;
private final UnaryCallable createEntityTypeCallable;
private final UnaryCallable updateEntityTypeCallable;
private final UnaryCallable deleteEntityTypeCallable;
+ private final UnaryCallable
+ listEntityTypesCallable;
+ private final UnaryCallable
+ listEntityTypesPagedCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -178,17 +178,6 @@ protected GrpcEntityTypesStub(
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
- GrpcCallSettings
- listEntityTypesTransportSettings =
- GrpcCallSettings.newBuilder()
- .setMethodDescriptor(listEntityTypesMethodDescriptor)
- .setParamsExtractor(
- request -> {
- RequestParamsBuilder builder = RequestParamsBuilder.create();
- builder.add("parent", String.valueOf(request.getParent()));
- return builder.build();
- })
- .build();
GrpcCallSettings getEntityTypeTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getEntityTypeMethodDescriptor)
@@ -230,6 +219,17 @@ protected GrpcEntityTypesStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ listEntityTypesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(listEntityTypesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -251,12 +251,6 @@ protected GrpcEntityTypesStub(
})
.build();
- this.listEntityTypesCallable =
- callableFactory.createUnaryCallable(
- listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
- this.listEntityTypesPagedCallable =
- callableFactory.createPagedCallable(
- listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
this.getEntityTypeCallable =
callableFactory.createUnaryCallable(
getEntityTypeTransportSettings, settings.getEntityTypeSettings(), clientContext);
@@ -269,6 +263,12 @@ protected GrpcEntityTypesStub(
this.deleteEntityTypeCallable =
callableFactory.createUnaryCallable(
deleteEntityTypeTransportSettings, settings.deleteEntityTypeSettings(), clientContext);
+ this.listEntityTypesCallable =
+ callableFactory.createUnaryCallable(
+ listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
+ this.listEntityTypesPagedCallable =
+ callableFactory.createPagedCallable(
+ listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -287,17 +287,6 @@ public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
- @Override
- public UnaryCallable listEntityTypesCallable() {
- return listEntityTypesCallable;
- }
-
- @Override
- public UnaryCallable
- listEntityTypesPagedCallable() {
- return listEntityTypesPagedCallable;
- }
-
@Override
public UnaryCallable getEntityTypeCallable() {
return getEntityTypeCallable;
@@ -318,6 +307,17 @@ public UnaryCallable deleteEntityTypeCallable()
return deleteEntityTypeCallable;
}
+ @Override
+ public UnaryCallable listEntityTypesCallable() {
+ return listEntityTypesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listEntityTypesPagedCallable() {
+ return listEntityTypesPagedCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
index 95e7dd0cb342..f83b85c1e810 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/GrpcSessionsStub.java
@@ -26,6 +26,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dialogflow.cx.v3.AnswerFeedback;
import com.google.cloud.dialogflow.cx.v3.DetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3.DetectIntentResponse;
import com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest;
@@ -34,6 +35,7 @@
import com.google.cloud.dialogflow.cx.v3.MatchIntentResponse;
import com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse;
+import com.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -95,6 +97,16 @@ public class GrpcSessionsStub extends SessionsStub {
ProtoUtils.marshaller(FulfillIntentResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ submitAnswerFeedbackMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.dialogflow.cx.v3.Sessions/SubmitAnswerFeedback")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(SubmitAnswerFeedbackRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(AnswerFeedback.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -119,6 +131,8 @@ public class GrpcSessionsStub extends SessionsStub {
streamingDetectIntentCallable;
private final UnaryCallable matchIntentCallable;
private final UnaryCallable fulfillIntentCallable;
+ private final UnaryCallable
+ submitAnswerFeedbackCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -201,6 +215,17 @@ protected GrpcSessionsStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ submitAnswerFeedbackTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(submitAnswerFeedbackMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("session", String.valueOf(request.getSession()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -236,6 +261,11 @@ protected GrpcSessionsStub(
this.fulfillIntentCallable =
callableFactory.createUnaryCallable(
fulfillIntentTransportSettings, settings.fulfillIntentSettings(), clientContext);
+ this.submitAnswerFeedbackCallable =
+ callableFactory.createUnaryCallable(
+ submitAnswerFeedbackTransportSettings,
+ settings.submitAnswerFeedbackSettings(),
+ clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -275,6 +305,11 @@ public UnaryCallable fulfillIntentC
return fulfillIntentCallable;
}
+ @Override
+ public UnaryCallable submitAnswerFeedbackCallable() {
+ return submitAnswerFeedbackCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
index 5e3a92d5411f..0b65e120b0bd 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonEntityTypesStub.java
@@ -64,44 +64,6 @@
public class HttpJsonEntityTypesStub extends EntityTypesStub {
private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build();
- private static final ApiMethodDescriptor
- listEntityTypesMethodDescriptor =
- ApiMethodDescriptor.newBuilder()
- .setFullMethodName("google.cloud.dialogflow.cx.v3.EntityTypes/ListEntityTypes")
- .setHttpMethod("GET")
- .setType(ApiMethodDescriptor.MethodType.UNARY)
- .setRequestFormatter(
- ProtoMessageRequestFormatter.newBuilder()
- .setPath(
- "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes",
- request -> {
- Map fields = new HashMap<>();
- ProtoRestSerializer serializer =
- ProtoRestSerializer.create();
- serializer.putPathParam(fields, "parent", request.getParent());
- return fields;
- })
- .setQueryParamsExtractor(
- request -> {
- Map> fields = new HashMap<>();
- ProtoRestSerializer serializer =
- ProtoRestSerializer.create();
- serializer.putQueryParam(
- fields, "languageCode", request.getLanguageCode());
- serializer.putQueryParam(fields, "pageSize", request.getPageSize());
- serializer.putQueryParam(fields, "pageToken", request.getPageToken());
- serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
- return fields;
- })
- .setRequestBodyExtractor(request -> null)
- .build())
- .setResponseParser(
- ProtoMessageResponseParser.newBuilder()
- .setDefaultInstance(ListEntityTypesResponse.getDefaultInstance())
- .setDefaultTypeRegistry(typeRegistry)
- .build())
- .build();
-
private static final ApiMethodDescriptor
getEntityTypeMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -253,6 +215,44 @@ public class HttpJsonEntityTypesStub extends EntityTypesStub {
.build())
.build();
+ private static final ApiMethodDescriptor
+ listEntityTypesMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.dialogflow.cx.v3.EntityTypes/ListEntityTypes")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "parent", request.getParent());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(
+ fields, "languageCode", request.getLanguageCode());
+ serializer.putQueryParam(fields, "pageSize", request.getPageSize());
+ serializer.putQueryParam(fields, "pageToken", request.getPageToken());
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(ListEntityTypesResponse.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private static final ApiMethodDescriptor
listLocationsMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -321,14 +321,14 @@ public class HttpJsonEntityTypesStub extends EntityTypesStub {
.build())
.build();
- private final UnaryCallable
- listEntityTypesCallable;
- private final UnaryCallable
- listEntityTypesPagedCallable;
private final UnaryCallable getEntityTypeCallable;
private final UnaryCallable createEntityTypeCallable;
private final UnaryCallable updateEntityTypeCallable;
private final UnaryCallable deleteEntityTypeCallable;
+ private final UnaryCallable
+ listEntityTypesCallable;
+ private final UnaryCallable
+ listEntityTypesPagedCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -376,18 +376,6 @@ protected HttpJsonEntityTypesStub(
throws IOException {
this.callableFactory = callableFactory;
- HttpJsonCallSettings
- listEntityTypesTransportSettings =
- HttpJsonCallSettings.newBuilder()
- .setMethodDescriptor(listEntityTypesMethodDescriptor)
- .setTypeRegistry(typeRegistry)
- .setParamsExtractor(
- request -> {
- RequestParamsBuilder builder = RequestParamsBuilder.create();
- builder.add("parent", String.valueOf(request.getParent()));
- return builder.build();
- })
- .build();
HttpJsonCallSettings getEntityTypeTransportSettings =
HttpJsonCallSettings.newBuilder()
.setMethodDescriptor(getEntityTypeMethodDescriptor)
@@ -433,6 +421,18 @@ protected HttpJsonEntityTypesStub(
return builder.build();
})
.build();
+ HttpJsonCallSettings
+ listEntityTypesTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(listEntityTypesMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
HttpJsonCallSettings
listLocationsTransportSettings =
HttpJsonCallSettings.newBuilder()
@@ -457,12 +457,6 @@ protected HttpJsonEntityTypesStub(
})
.build();
- this.listEntityTypesCallable =
- callableFactory.createUnaryCallable(
- listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
- this.listEntityTypesPagedCallable =
- callableFactory.createPagedCallable(
- listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
this.getEntityTypeCallable =
callableFactory.createUnaryCallable(
getEntityTypeTransportSettings, settings.getEntityTypeSettings(), clientContext);
@@ -475,6 +469,12 @@ protected HttpJsonEntityTypesStub(
this.deleteEntityTypeCallable =
callableFactory.createUnaryCallable(
deleteEntityTypeTransportSettings, settings.deleteEntityTypeSettings(), clientContext);
+ this.listEntityTypesCallable =
+ callableFactory.createUnaryCallable(
+ listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
+ this.listEntityTypesPagedCallable =
+ callableFactory.createPagedCallable(
+ listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -492,27 +492,16 @@ protected HttpJsonEntityTypesStub(
@InternalApi
public static List getMethodDescriptors() {
List methodDescriptors = new ArrayList<>();
- methodDescriptors.add(listEntityTypesMethodDescriptor);
methodDescriptors.add(getEntityTypeMethodDescriptor);
methodDescriptors.add(createEntityTypeMethodDescriptor);
methodDescriptors.add(updateEntityTypeMethodDescriptor);
methodDescriptors.add(deleteEntityTypeMethodDescriptor);
+ methodDescriptors.add(listEntityTypesMethodDescriptor);
methodDescriptors.add(listLocationsMethodDescriptor);
methodDescriptors.add(getLocationMethodDescriptor);
return methodDescriptors;
}
- @Override
- public UnaryCallable listEntityTypesCallable() {
- return listEntityTypesCallable;
- }
-
- @Override
- public UnaryCallable
- listEntityTypesPagedCallable() {
- return listEntityTypesPagedCallable;
- }
-
@Override
public UnaryCallable getEntityTypeCallable() {
return getEntityTypeCallable;
@@ -533,6 +522,17 @@ public UnaryCallable deleteEntityTypeCallable()
return deleteEntityTypeCallable;
}
+ @Override
+ public UnaryCallable listEntityTypesCallable() {
+ return listEntityTypesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listEntityTypesPagedCallable() {
+ return listEntityTypesPagedCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
index b41ab27b4d6b..892f5c86b3fe 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/HttpJsonSessionsStub.java
@@ -32,6 +32,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dialogflow.cx.v3.AnswerFeedback;
import com.google.cloud.dialogflow.cx.v3.DetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3.DetectIntentResponse;
import com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest;
@@ -40,6 +41,7 @@
import com.google.cloud.dialogflow.cx.v3.MatchIntentResponse;
import com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse;
+import com.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -184,6 +186,43 @@ public class HttpJsonSessionsStub extends SessionsStub {
.build())
.build();
+ private static final ApiMethodDescriptor
+ submitAnswerFeedbackMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.dialogflow.cx.v3.Sessions/SubmitAnswerFeedback")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:submitAnswerFeedback",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "session", request.getSession());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("*", request.toBuilder().clearSession().build(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(AnswerFeedback.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private static final ApiMethodDescriptor
listLocationsMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -255,6 +294,8 @@ public class HttpJsonSessionsStub extends SessionsStub {
private final UnaryCallable detectIntentCallable;
private final UnaryCallable matchIntentCallable;
private final UnaryCallable fulfillIntentCallable;
+ private final UnaryCallable
+ submitAnswerFeedbackCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -337,6 +378,18 @@ protected HttpJsonSessionsStub(
return builder.build();
})
.build();
+ HttpJsonCallSettings
+ submitAnswerFeedbackTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(submitAnswerFeedbackMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("session", String.valueOf(request.getSession()));
+ return builder.build();
+ })
+ .build();
HttpJsonCallSettings
listLocationsTransportSettings =
HttpJsonCallSettings.newBuilder()
@@ -370,6 +423,11 @@ protected HttpJsonSessionsStub(
this.fulfillIntentCallable =
callableFactory.createUnaryCallable(
fulfillIntentTransportSettings, settings.fulfillIntentSettings(), clientContext);
+ this.submitAnswerFeedbackCallable =
+ callableFactory.createUnaryCallable(
+ submitAnswerFeedbackTransportSettings,
+ settings.submitAnswerFeedbackSettings(),
+ clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -390,6 +448,7 @@ public static List getMethodDescriptors() {
methodDescriptors.add(detectIntentMethodDescriptor);
methodDescriptors.add(matchIntentMethodDescriptor);
methodDescriptors.add(fulfillIntentMethodDescriptor);
+ methodDescriptors.add(submitAnswerFeedbackMethodDescriptor);
methodDescriptors.add(listLocationsMethodDescriptor);
methodDescriptors.add(getLocationMethodDescriptor);
return methodDescriptors;
@@ -410,6 +469,11 @@ public UnaryCallable fulfillIntentC
return fulfillIntentCallable;
}
+ @Override
+ public UnaryCallable submitAnswerFeedbackCallable() {
+ return submitAnswerFeedbackCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStub.java
index 3c590b2c7d48..b3ef418d5c8e 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStub.java
@@ -21,6 +21,7 @@
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.BidiStreamingCallable;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dialogflow.cx.v3.AnswerFeedback;
import com.google.cloud.dialogflow.cx.v3.DetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3.DetectIntentResponse;
import com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest;
@@ -29,6 +30,7 @@
import com.google.cloud.dialogflow.cx.v3.MatchIntentResponse;
import com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse;
+import com.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -61,6 +63,10 @@ public UnaryCallable fulfillIntentC
throw new UnsupportedOperationException("Not implemented: fulfillIntentCallable()");
}
+ public UnaryCallable submitAnswerFeedbackCallable() {
+ throw new UnsupportedOperationException("Not implemented: submitAnswerFeedbackCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
index 03335524f5e6..37e6bf3d9968 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/SessionsStubSettings.java
@@ -44,6 +44,7 @@
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dialogflow.cx.v3.AnswerFeedback;
import com.google.cloud.dialogflow.cx.v3.DetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3.DetectIntentResponse;
import com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest;
@@ -52,6 +53,7 @@
import com.google.cloud.dialogflow.cx.v3.MatchIntentResponse;
import com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse;
+import com.google.cloud.dialogflow.cx.v3.SubmitAnswerFeedbackRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -116,6 +118,8 @@ public class SessionsStubSettings extends StubSettings {
private final UnaryCallSettings matchIntentSettings;
private final UnaryCallSettings
fulfillIntentSettings;
+ private final UnaryCallSettings
+ submitAnswerFeedbackSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -195,6 +199,12 @@ public UnaryCallSettings fulfillInt
return fulfillIntentSettings;
}
+ /** Returns the object with the settings used for calls to submitAnswerFeedback. */
+ public UnaryCallSettings
+ submitAnswerFeedbackSettings() {
+ return submitAnswerFeedbackSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -314,6 +324,7 @@ protected SessionsStubSettings(Builder settingsBuilder) throws IOException {
streamingDetectIntentSettings = settingsBuilder.streamingDetectIntentSettings().build();
matchIntentSettings = settingsBuilder.matchIntentSettings().build();
fulfillIntentSettings = settingsBuilder.fulfillIntentSettings().build();
+ submitAnswerFeedbackSettings = settingsBuilder.submitAnswerFeedbackSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
}
@@ -330,6 +341,8 @@ public static class Builder extends StubSettings.Builder
fulfillIntentSettings;
+ private final UnaryCallSettings.Builder
+ submitAnswerFeedbackSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -400,6 +413,7 @@ protected Builder(ClientContext clientContext) {
streamingDetectIntentSettings = StreamingCallSettings.newBuilder();
matchIntentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
fulfillIntentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ submitAnswerFeedbackSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -408,6 +422,7 @@ protected Builder(ClientContext clientContext) {
detectIntentSettings,
matchIntentSettings,
fulfillIntentSettings,
+ submitAnswerFeedbackSettings,
listLocationsSettings,
getLocationSettings);
initDefaults(this);
@@ -420,6 +435,7 @@ protected Builder(SessionsStubSettings settings) {
streamingDetectIntentSettings = settings.streamingDetectIntentSettings.toBuilder();
matchIntentSettings = settings.matchIntentSettings.toBuilder();
fulfillIntentSettings = settings.fulfillIntentSettings.toBuilder();
+ submitAnswerFeedbackSettings = settings.submitAnswerFeedbackSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
@@ -428,6 +444,7 @@ protected Builder(SessionsStubSettings settings) {
detectIntentSettings,
matchIntentSettings,
fulfillIntentSettings,
+ submitAnswerFeedbackSettings,
listLocationsSettings,
getLocationSettings);
}
@@ -474,6 +491,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
+ .submitAnswerFeedbackSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.listLocationsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -527,6 +549,12 @@ public Builder applyToAllUnaryMethods(
return fulfillIntentSettings;
}
+ /** Returns the builder for the settings used for calls to submitAnswerFeedback. */
+ public UnaryCallSettings.Builder
+ submitAnswerFeedbackSettings() {
+ return submitAnswerFeedbackSettings;
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java
index 8c674f8319cd..1a932fd2cb57 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java
@@ -179,175 +179,6 @@ public EntityTypesStub getStub() {
return stub;
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
- * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The agent to list all entity types for. Format: `projects/<Project
- * ID>/locations/<Location ID>/agents/<Agent ID>`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) {
- ListEntityTypesRequest request =
- ListEntityTypesRequest.newBuilder()
- .setParent(parent == null ? null : parent.toString())
- .build();
- return listEntityTypes(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
- * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param parent Required. The agent to list all entity types for. Format: `projects/<Project
- * ID>/locations/<Location ID>/agents/<Agent ID>`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
- ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder().setParent(parent).build();
- return listEntityTypes(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * ListEntityTypesRequest request =
- * ListEntityTypesRequest.newBuilder()
- * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
- * .setLanguageCode("languageCode-2092349083")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * for (EntityType element : entityTypesClient.listEntityTypes(request).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest request) {
- return listEntityTypesPagedCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * ListEntityTypesRequest request =
- * ListEntityTypesRequest.newBuilder()
- * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
- * .setLanguageCode("languageCode-2092349083")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * ApiFuture future =
- * entityTypesClient.listEntityTypesPagedCallable().futureCall(request);
- * // Do something.
- * for (EntityType element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- * }
- */
- public final UnaryCallable
- listEntityTypesPagedCallable() {
- return stub.listEntityTypesPagedCallable();
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD.
- /**
- * Returns the list of all entity types in the specified agent.
- *
- * Sample code:
- *
- *
{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
- * ListEntityTypesRequest request =
- * ListEntityTypesRequest.newBuilder()
- * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
- * .setLanguageCode("languageCode-2092349083")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * while (true) {
- * ListEntityTypesResponse response =
- * entityTypesClient.listEntityTypesCallable().call(request);
- * for (EntityType element : response.getEntityTypesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
- * }
- * }
- */
- public final UnaryCallable
- listEntityTypesCallable() {
- return stub.listEntityTypesCallable();
- }
-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Retrieves the specified entity type.
@@ -824,6 +655,175 @@ public final UnaryCallable deleteEntityTypeCalla
return stub.deleteEntityTypeCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
+ * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The agent to list all entity types for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) {
+ ListEntityTypesRequest request =
+ ListEntityTypesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listEntityTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
+ * for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The agent to list all entity types for. Format: `projects/<Project
+ * ID>/locations/<Location ID>/agents/<Agent ID>`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
+ ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder().setParent(parent).build();
+ return listEntityTypes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setLanguageCode("languageCode-2092349083")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (EntityType element : entityTypesClient.listEntityTypes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest request) {
+ return listEntityTypesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setLanguageCode("languageCode-2092349083")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * entityTypesClient.listEntityTypesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (EntityType element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listEntityTypesPagedCallable() {
+ return stub.listEntityTypesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns the list of all entity types in the specified agent.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
+ * ListEntityTypesRequest request =
+ * ListEntityTypesRequest.newBuilder()
+ * .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
+ * .setLanguageCode("languageCode-2092349083")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListEntityTypesResponse response =
+ * entityTypesClient.listEntityTypesCallable().call(request);
+ * for (EntityType element : response.getEntityTypesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listEntityTypesCallable() {
+ return stub.listEntityTypesCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesSettings.java
index 41278d1a0680..24d96d653cdd 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesSettings.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesSettings.java
@@ -81,13 +81,6 @@
@Generated("by gapic-generator-java")
public class EntityTypesSettings extends ClientSettings {
- /** Returns the object with the settings used for calls to listEntityTypes. */
- public PagedCallSettings<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings() {
- return ((EntityTypesStubSettings) getStubSettings()).listEntityTypesSettings();
- }
-
/** Returns the object with the settings used for calls to getEntityType. */
public UnaryCallSettings getEntityTypeSettings() {
return ((EntityTypesStubSettings) getStubSettings()).getEntityTypeSettings();
@@ -108,6 +101,13 @@ public UnaryCallSettings deleteEntityTypeSetting
return ((EntityTypesStubSettings) getStubSettings()).deleteEntityTypeSettings();
}
+ /** Returns the object with the settings used for calls to listEntityTypes. */
+ public PagedCallSettings<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings() {
+ return ((EntityTypesStubSettings) getStubSettings()).listEntityTypesSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -233,13 +233,6 @@ public Builder applyToAllUnaryMethods(
return this;
}
- /** Returns the builder for the settings used for calls to listEntityTypes. */
- public PagedCallSettings.Builder<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings() {
- return getStubSettingsBuilder().listEntityTypesSettings();
- }
-
/** Returns the builder for the settings used for calls to getEntityType. */
public UnaryCallSettings.Builder getEntityTypeSettings() {
return getStubSettingsBuilder().getEntityTypeSettings();
@@ -262,6 +255,13 @@ public UnaryCallSettings.Builder deleteEntityTyp
return getStubSettingsBuilder().deleteEntityTypeSettings();
}
+ /** Returns the builder for the settings used for calls to listEntityTypes. */
+ public PagedCallSettings.Builder<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings() {
+ return getStubSettingsBuilder().listEntityTypesSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java
index ad7c349ada95..748a249f79de 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java
@@ -444,6 +444,75 @@ public final UnaryCallable fulfillI
return stub.fulfillIntentCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the feedback received from the user for a single turn of the bot response.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SessionsClient sessionsClient = SessionsClient.create()) {
+ * SubmitAnswerFeedbackRequest request =
+ * SubmitAnswerFeedbackRequest.newBuilder()
+ * .setSession(
+ * SessionName.ofProjectLocationAgentSessionName(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
+ * .toString())
+ * .setResponseId("responseId-633138884")
+ * .setAnswerFeedback(AnswerFeedback.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * AnswerFeedback response = sessionsClient.submitAnswerFeedback(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 AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest request) {
+ return submitAnswerFeedbackCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the feedback received from the user for a single turn of the bot response.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SessionsClient sessionsClient = SessionsClient.create()) {
+ * SubmitAnswerFeedbackRequest request =
+ * SubmitAnswerFeedbackRequest.newBuilder()
+ * .setSession(
+ * SessionName.ofProjectLocationAgentSessionName(
+ * "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
+ * .toString())
+ * .setResponseId("responseId-633138884")
+ * .setAnswerFeedback(AnswerFeedback.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * sessionsClient.submitAnswerFeedbackCallable().futureCall(request);
+ * // Do something.
+ * AnswerFeedback response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ submitAnswerFeedbackCallable() {
+ return stub.submitAnswerFeedbackCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsSettings.java
index 40ddfd90aca8..6efaf8224881 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsSettings.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsSettings.java
@@ -101,6 +101,12 @@ public UnaryCallSettings fulfillInt
return ((SessionsStubSettings) getStubSettings()).fulfillIntentSettings();
}
+ /** Returns the object with the settings used for calls to submitAnswerFeedback. */
+ public UnaryCallSettings
+ submitAnswerFeedbackSettings() {
+ return ((SessionsStubSettings) getStubSettings()).submitAnswerFeedbackSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -251,6 +257,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().fulfillIntentSettings();
}
+ /** Returns the builder for the settings used for calls to submitAnswerFeedback. */
+ public UnaryCallSettings.Builder
+ submitAnswerFeedbackSettings() {
+ return getStubSettingsBuilder().submitAnswerFeedbackSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json
index a91c6cee44a9..4d6ac3d7bed2 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/gapic_metadata.json
@@ -366,6 +366,9 @@
},
"StreamingDetectIntent": {
"methods": ["streamingDetectIntentCallable"]
+ },
+ "SubmitAnswerFeedback": {
+ "methods": ["submitAnswerFeedback", "submitAnswerFeedbackCallable"]
}
}
}
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStub.java
index 25ea025822eb..fa98e4db89cc 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStub.java
@@ -46,15 +46,6 @@
@Generated("by gapic-generator-java")
public abstract class EntityTypesStub implements BackgroundResource {
- public UnaryCallable
- listEntityTypesPagedCallable() {
- throw new UnsupportedOperationException("Not implemented: listEntityTypesPagedCallable()");
- }
-
- public UnaryCallable listEntityTypesCallable() {
- throw new UnsupportedOperationException("Not implemented: listEntityTypesCallable()");
- }
-
public UnaryCallable getEntityTypeCallable() {
throw new UnsupportedOperationException("Not implemented: getEntityTypeCallable()");
}
@@ -71,6 +62,15 @@ public UnaryCallable deleteEntityTypeCallable()
throw new UnsupportedOperationException("Not implemented: deleteEntityTypeCallable()");
}
+ public UnaryCallable
+ listEntityTypesPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listEntityTypesPagedCallable()");
+ }
+
+ public UnaryCallable listEntityTypesCallable() {
+ throw new UnsupportedOperationException("Not implemented: listEntityTypesCallable()");
+ }
+
public UnaryCallable
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
index 3ae5d9478b94..66bed7081dec 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/EntityTypesStubSettings.java
@@ -112,13 +112,13 @@ public class EntityTypesStubSettings extends StubSettings
- listEntityTypesSettings;
private final UnaryCallSettings getEntityTypeSettings;
private final UnaryCallSettings createEntityTypeSettings;
private final UnaryCallSettings updateEntityTypeSettings;
private final UnaryCallSettings deleteEntityTypeSettings;
+ private final PagedCallSettings<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings;
private final PagedCallSettings<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -233,13 +233,6 @@ public ApiFuture getFuturePagedResponse(
}
};
- /** Returns the object with the settings used for calls to listEntityTypes. */
- public PagedCallSettings<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings() {
- return listEntityTypesSettings;
- }
-
/** Returns the object with the settings used for calls to getEntityType. */
public UnaryCallSettings getEntityTypeSettings() {
return getEntityTypeSettings;
@@ -260,6 +253,13 @@ public UnaryCallSettings deleteEntityTypeSetting
return deleteEntityTypeSettings;
}
+ /** Returns the object with the settings used for calls to listEntityTypes. */
+ public PagedCallSettings<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings() {
+ return listEntityTypesSettings;
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -377,11 +377,11 @@ public Builder toBuilder() {
protected EntityTypesStubSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
- listEntityTypesSettings = settingsBuilder.listEntityTypesSettings().build();
getEntityTypeSettings = settingsBuilder.getEntityTypeSettings().build();
createEntityTypeSettings = settingsBuilder.createEntityTypeSettings().build();
updateEntityTypeSettings = settingsBuilder.updateEntityTypeSettings().build();
deleteEntityTypeSettings = settingsBuilder.deleteEntityTypeSettings().build();
+ listEntityTypesSettings = settingsBuilder.listEntityTypesSettings().build();
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
getLocationSettings = settingsBuilder.getLocationSettings().build();
}
@@ -389,9 +389,6 @@ protected EntityTypesStubSettings(Builder settingsBuilder) throws IOException {
/** Builder for EntityTypesStubSettings. */
public static class Builder extends StubSettings.Builder {
private final ImmutableList> unaryMethodSettingsBuilders;
- private final PagedCallSettings.Builder<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings;
private final UnaryCallSettings.Builder getEntityTypeSettings;
private final UnaryCallSettings.Builder
createEntityTypeSettings;
@@ -399,6 +396,9 @@ public static class Builder extends StubSettings.Builder
deleteEntityTypeSettings;
+ private final PagedCallSettings.Builder<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings;
private final PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings;
@@ -441,21 +441,21 @@ protected Builder() {
protected Builder(ClientContext clientContext) {
super(clientContext);
- listEntityTypesSettings = PagedCallSettings.newBuilder(LIST_ENTITY_TYPES_PAGE_STR_FACT);
getEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
updateEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
deleteEntityTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listEntityTypesSettings = PagedCallSettings.newBuilder(LIST_ENTITY_TYPES_PAGE_STR_FACT);
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
- listEntityTypesSettings,
getEntityTypeSettings,
createEntityTypeSettings,
updateEntityTypeSettings,
deleteEntityTypeSettings,
+ listEntityTypesSettings,
listLocationsSettings,
getLocationSettings);
initDefaults(this);
@@ -464,21 +464,21 @@ protected Builder(ClientContext clientContext) {
protected Builder(EntityTypesStubSettings settings) {
super(settings);
- listEntityTypesSettings = settings.listEntityTypesSettings.toBuilder();
getEntityTypeSettings = settings.getEntityTypeSettings.toBuilder();
createEntityTypeSettings = settings.createEntityTypeSettings.toBuilder();
updateEntityTypeSettings = settings.updateEntityTypeSettings.toBuilder();
deleteEntityTypeSettings = settings.deleteEntityTypeSettings.toBuilder();
+ listEntityTypesSettings = settings.listEntityTypesSettings.toBuilder();
listLocationsSettings = settings.listLocationsSettings.toBuilder();
getLocationSettings = settings.getLocationSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
- listEntityTypesSettings,
getEntityTypeSettings,
createEntityTypeSettings,
updateEntityTypeSettings,
deleteEntityTypeSettings,
+ listEntityTypesSettings,
listLocationsSettings,
getLocationSettings);
}
@@ -510,11 +510,6 @@ private static Builder createHttpJsonDefault() {
}
private static Builder initDefaults(Builder builder) {
- builder
- .listEntityTypesSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
-
builder
.getEntityTypeSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -535,6 +530,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
+ .listEntityTypesSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.listLocationsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
@@ -563,13 +563,6 @@ public Builder applyToAllUnaryMethods(
return unaryMethodSettingsBuilders;
}
- /** Returns the builder for the settings used for calls to listEntityTypes. */
- public PagedCallSettings.Builder<
- ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
- listEntityTypesSettings() {
- return listEntityTypesSettings;
- }
-
/** Returns the builder for the settings used for calls to getEntityType. */
public UnaryCallSettings.Builder getEntityTypeSettings() {
return getEntityTypeSettings;
@@ -592,6 +585,13 @@ public UnaryCallSettings.Builder deleteEntityTyp
return deleteEntityTypeSettings;
}
+ /** Returns the builder for the settings used for calls to listEntityTypes. */
+ public PagedCallSettings.Builder<
+ ListEntityTypesRequest, ListEntityTypesResponse, ListEntityTypesPagedResponse>
+ listEntityTypesSettings() {
+ return listEntityTypesSettings;
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
index c9a4242e4c25..1c26a846be42 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcEntityTypesStub.java
@@ -55,17 +55,6 @@
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcEntityTypesStub extends EntityTypesStub {
- private static final MethodDescriptor
- listEntityTypesMethodDescriptor =
- MethodDescriptor.newBuilder()
- .setType(MethodDescriptor.MethodType.UNARY)
- .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.EntityTypes/ListEntityTypes")
- .setRequestMarshaller(
- ProtoUtils.marshaller(ListEntityTypesRequest.getDefaultInstance()))
- .setResponseMarshaller(
- ProtoUtils.marshaller(ListEntityTypesResponse.getDefaultInstance()))
- .build();
-
private static final MethodDescriptor
getEntityTypeMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -106,6 +95,17 @@ public class GrpcEntityTypesStub extends EntityTypesStub {
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ listEntityTypesMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.EntityTypes/ListEntityTypes")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListEntityTypesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListEntityTypesResponse.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -125,14 +125,14 @@ public class GrpcEntityTypesStub extends EntityTypesStub {
.setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance()))
.build();
- private final UnaryCallable
- listEntityTypesCallable;
- private final UnaryCallable
- listEntityTypesPagedCallable;
private final UnaryCallable getEntityTypeCallable;
private final UnaryCallable createEntityTypeCallable;
private final UnaryCallable updateEntityTypeCallable;
private final UnaryCallable deleteEntityTypeCallable;
+ private final UnaryCallable
+ listEntityTypesCallable;
+ private final UnaryCallable
+ listEntityTypesPagedCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -180,17 +180,6 @@ protected GrpcEntityTypesStub(
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
- GrpcCallSettings
- listEntityTypesTransportSettings =
- GrpcCallSettings.newBuilder()
- .setMethodDescriptor(listEntityTypesMethodDescriptor)
- .setParamsExtractor(
- request -> {
- RequestParamsBuilder builder = RequestParamsBuilder.create();
- builder.add("parent", String.valueOf(request.getParent()));
- return builder.build();
- })
- .build();
GrpcCallSettings getEntityTypeTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(getEntityTypeMethodDescriptor)
@@ -232,6 +221,17 @@ protected GrpcEntityTypesStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ listEntityTypesTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(listEntityTypesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -253,12 +253,6 @@ protected GrpcEntityTypesStub(
})
.build();
- this.listEntityTypesCallable =
- callableFactory.createUnaryCallable(
- listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
- this.listEntityTypesPagedCallable =
- callableFactory.createPagedCallable(
- listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
this.getEntityTypeCallable =
callableFactory.createUnaryCallable(
getEntityTypeTransportSettings, settings.getEntityTypeSettings(), clientContext);
@@ -271,6 +265,12 @@ protected GrpcEntityTypesStub(
this.deleteEntityTypeCallable =
callableFactory.createUnaryCallable(
deleteEntityTypeTransportSettings, settings.deleteEntityTypeSettings(), clientContext);
+ this.listEntityTypesCallable =
+ callableFactory.createUnaryCallable(
+ listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
+ this.listEntityTypesPagedCallable =
+ callableFactory.createPagedCallable(
+ listEntityTypesTransportSettings, settings.listEntityTypesSettings(), clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -289,17 +289,6 @@ public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
- @Override
- public UnaryCallable listEntityTypesCallable() {
- return listEntityTypesCallable;
- }
-
- @Override
- public UnaryCallable
- listEntityTypesPagedCallable() {
- return listEntityTypesPagedCallable;
- }
-
@Override
public UnaryCallable getEntityTypeCallable() {
return getEntityTypeCallable;
@@ -320,6 +309,17 @@ public UnaryCallable deleteEntityTypeCallable()
return deleteEntityTypeCallable;
}
+ @Override
+ public UnaryCallable listEntityTypesCallable() {
+ return listEntityTypesCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listEntityTypesPagedCallable() {
+ return listEntityTypesPagedCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
index af29d9ea3fa2..c423601c1b1e 100644
--- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
+++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/GrpcSessionsStub.java
@@ -27,6 +27,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback;
import com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse;
import com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest;
@@ -35,6 +36,7 @@
import com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse;
import com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest;
import com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse;
+import com.google.cloud.dialogflow.cx.v3beta1.SubmitAnswerFeedbackRequest;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
@@ -98,6 +100,16 @@ public class GrpcSessionsStub extends SessionsStub {
ProtoUtils.marshaller(FulfillIntentResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ submitAnswerFeedbackMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.dialogflow.cx.v3beta1.Sessions/SubmitAnswerFeedback")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(SubmitAnswerFeedbackRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(AnswerFeedback.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.