Skip to content

Commit 8cca9aa

Browse files
feat: [dialogflow-cx] add agent answer feedback capability (#10066)
* feat: add agent answer feedback capability feat: add fields for supporting barge-in in StreamingDetectIntent API feat: add end_user_metadata to QueryParameters feat: add boost & bury and filter ES controls PiperOrigin-RevId: 583522403 Source-Link: googleapis/googleapis@86c7ca6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/42f2c6e979a1d2a6faedd772e23d49e6ef019470 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI0MmYyYzZlOTc5YTFkMmE2ZmFlZGQ3NzJlMjNkNDllNmVmMDE5NDcwIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: add agent answer feedback capability feat: add fields for supporting barge-in in StreamingDetectIntent API feat: add end_user_metadata to QueryParameters feat: add boost & bury and filter ES controls PiperOrigin-RevId: 583523426 Source-Link: googleapis/googleapis@c73d0da Source-Link: https://github.com/googleapis/googleapis-gen/commit/1b5ed29498b34e1016e1f69ecb2808168bd34d15 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiIxYjVlZDI5NDk4YjM0ZTEwMTZlMWY2OWVjYjI4MDgxNjhiZDM0ZDE1In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8a2c241 commit 8cca9aa

File tree

113 files changed

+32186
-2301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+32186
-2301
lines changed

java-dialogflow-cx/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.23.0</version>
26+
<version>26.27.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.35.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.41.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java

Lines changed: 169 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -177,175 +177,6 @@ public EntityTypesStub getStub() {
177177
return stub;
178178
}
179179

180-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
181-
/**
182-
* Returns the list of all entity types in the specified agent.
183-
*
184-
* <p>Sample code:
185-
*
186-
* <pre>{@code
187-
* // This snippet has been automatically generated and should be regarded as a code template only.
188-
* // It will require modifications to work:
189-
* // - It may require correct/in-range values for request initialization.
190-
* // - It may require specifying regional endpoints when creating the service client as shown in
191-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
192-
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
193-
* AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
194-
* for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
195-
* // doThingsWith(element);
196-
* }
197-
* }
198-
* }</pre>
199-
*
200-
* @param parent Required. The agent to list all entity types for. Format: `projects/&lt;Project
201-
* ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
202-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
203-
*/
204-
public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) {
205-
ListEntityTypesRequest request =
206-
ListEntityTypesRequest.newBuilder()
207-
.setParent(parent == null ? null : parent.toString())
208-
.build();
209-
return listEntityTypes(request);
210-
}
211-
212-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
213-
/**
214-
* Returns the list of all entity types in the specified agent.
215-
*
216-
* <p>Sample code:
217-
*
218-
* <pre>{@code
219-
* // This snippet has been automatically generated and should be regarded as a code template only.
220-
* // It will require modifications to work:
221-
* // - It may require correct/in-range values for request initialization.
222-
* // - It may require specifying regional endpoints when creating the service client as shown in
223-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
224-
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
225-
* String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
226-
* for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
227-
* // doThingsWith(element);
228-
* }
229-
* }
230-
* }</pre>
231-
*
232-
* @param parent Required. The agent to list all entity types for. Format: `projects/&lt;Project
233-
* ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
234-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
235-
*/
236-
public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
237-
ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder().setParent(parent).build();
238-
return listEntityTypes(request);
239-
}
240-
241-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
242-
/**
243-
* Returns the list of all entity types in the specified agent.
244-
*
245-
* <p>Sample code:
246-
*
247-
* <pre>{@code
248-
* // This snippet has been automatically generated and should be regarded as a code template only.
249-
* // It will require modifications to work:
250-
* // - It may require correct/in-range values for request initialization.
251-
* // - It may require specifying regional endpoints when creating the service client as shown in
252-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
253-
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
254-
* ListEntityTypesRequest request =
255-
* ListEntityTypesRequest.newBuilder()
256-
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
257-
* .setLanguageCode("languageCode-2092349083")
258-
* .setPageSize(883849137)
259-
* .setPageToken("pageToken873572522")
260-
* .build();
261-
* for (EntityType element : entityTypesClient.listEntityTypes(request).iterateAll()) {
262-
* // doThingsWith(element);
263-
* }
264-
* }
265-
* }</pre>
266-
*
267-
* @param request The request object containing all of the parameters for the API call.
268-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
269-
*/
270-
public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest request) {
271-
return listEntityTypesPagedCallable().call(request);
272-
}
273-
274-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
275-
/**
276-
* Returns the list of all entity types in the specified agent.
277-
*
278-
* <p>Sample code:
279-
*
280-
* <pre>{@code
281-
* // This snippet has been automatically generated and should be regarded as a code template only.
282-
* // It will require modifications to work:
283-
* // - It may require correct/in-range values for request initialization.
284-
* // - It may require specifying regional endpoints when creating the service client as shown in
285-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
286-
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
287-
* ListEntityTypesRequest request =
288-
* ListEntityTypesRequest.newBuilder()
289-
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
290-
* .setLanguageCode("languageCode-2092349083")
291-
* .setPageSize(883849137)
292-
* .setPageToken("pageToken873572522")
293-
* .build();
294-
* ApiFuture<EntityType> future =
295-
* entityTypesClient.listEntityTypesPagedCallable().futureCall(request);
296-
* // Do something.
297-
* for (EntityType element : future.get().iterateAll()) {
298-
* // doThingsWith(element);
299-
* }
300-
* }
301-
* }</pre>
302-
*/
303-
public final UnaryCallable<ListEntityTypesRequest, ListEntityTypesPagedResponse>
304-
listEntityTypesPagedCallable() {
305-
return stub.listEntityTypesPagedCallable();
306-
}
307-
308-
// AUTO-GENERATED DOCUMENTATION AND METHOD.
309-
/**
310-
* Returns the list of all entity types in the specified agent.
311-
*
312-
* <p>Sample code:
313-
*
314-
* <pre>{@code
315-
* // This snippet has been automatically generated and should be regarded as a code template only.
316-
* // It will require modifications to work:
317-
* // - It may require correct/in-range values for request initialization.
318-
* // - It may require specifying regional endpoints when creating the service client as shown in
319-
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
320-
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
321-
* ListEntityTypesRequest request =
322-
* ListEntityTypesRequest.newBuilder()
323-
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
324-
* .setLanguageCode("languageCode-2092349083")
325-
* .setPageSize(883849137)
326-
* .setPageToken("pageToken873572522")
327-
* .build();
328-
* while (true) {
329-
* ListEntityTypesResponse response =
330-
* entityTypesClient.listEntityTypesCallable().call(request);
331-
* for (EntityType element : response.getEntityTypesList()) {
332-
* // doThingsWith(element);
333-
* }
334-
* String nextPageToken = response.getNextPageToken();
335-
* if (!Strings.isNullOrEmpty(nextPageToken)) {
336-
* request = request.toBuilder().setPageToken(nextPageToken).build();
337-
* } else {
338-
* break;
339-
* }
340-
* }
341-
* }
342-
* }</pre>
343-
*/
344-
public final UnaryCallable<ListEntityTypesRequest, ListEntityTypesResponse>
345-
listEntityTypesCallable() {
346-
return stub.listEntityTypesCallable();
347-
}
348-
349180
// AUTO-GENERATED DOCUMENTATION AND METHOD.
350181
/**
351182
* Retrieves the specified entity type.
@@ -834,6 +665,175 @@ public final UnaryCallable<DeleteEntityTypeRequest, Empty> deleteEntityTypeCalla
834665
return stub.deleteEntityTypeCallable();
835666
}
836667

668+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
669+
/**
670+
* Returns the list of all entity types in the specified agent.
671+
*
672+
* <p>Sample code:
673+
*
674+
* <pre>{@code
675+
* // This snippet has been automatically generated and should be regarded as a code template only.
676+
* // It will require modifications to work:
677+
* // - It may require correct/in-range values for request initialization.
678+
* // - It may require specifying regional endpoints when creating the service client as shown in
679+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
680+
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
681+
* AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
682+
* for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
683+
* // doThingsWith(element);
684+
* }
685+
* }
686+
* }</pre>
687+
*
688+
* @param parent Required. The agent to list all entity types for. Format: `projects/&lt;Project
689+
* ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
690+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
691+
*/
692+
public final ListEntityTypesPagedResponse listEntityTypes(AgentName parent) {
693+
ListEntityTypesRequest request =
694+
ListEntityTypesRequest.newBuilder()
695+
.setParent(parent == null ? null : parent.toString())
696+
.build();
697+
return listEntityTypes(request);
698+
}
699+
700+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
701+
/**
702+
* Returns the list of all entity types in the specified agent.
703+
*
704+
* <p>Sample code:
705+
*
706+
* <pre>{@code
707+
* // This snippet has been automatically generated and should be regarded as a code template only.
708+
* // It will require modifications to work:
709+
* // - It may require correct/in-range values for request initialization.
710+
* // - It may require specifying regional endpoints when creating the service client as shown in
711+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
712+
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
713+
* String parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString();
714+
* for (EntityType element : entityTypesClient.listEntityTypes(parent).iterateAll()) {
715+
* // doThingsWith(element);
716+
* }
717+
* }
718+
* }</pre>
719+
*
720+
* @param parent Required. The agent to list all entity types for. Format: `projects/&lt;Project
721+
* ID&gt;/locations/&lt;Location ID&gt;/agents/&lt;Agent ID&gt;`.
722+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
723+
*/
724+
public final ListEntityTypesPagedResponse listEntityTypes(String parent) {
725+
ListEntityTypesRequest request = ListEntityTypesRequest.newBuilder().setParent(parent).build();
726+
return listEntityTypes(request);
727+
}
728+
729+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
730+
/**
731+
* Returns the list of all entity types in the specified agent.
732+
*
733+
* <p>Sample code:
734+
*
735+
* <pre>{@code
736+
* // This snippet has been automatically generated and should be regarded as a code template only.
737+
* // It will require modifications to work:
738+
* // - It may require correct/in-range values for request initialization.
739+
* // - It may require specifying regional endpoints when creating the service client as shown in
740+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
741+
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
742+
* ListEntityTypesRequest request =
743+
* ListEntityTypesRequest.newBuilder()
744+
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
745+
* .setLanguageCode("languageCode-2092349083")
746+
* .setPageSize(883849137)
747+
* .setPageToken("pageToken873572522")
748+
* .build();
749+
* for (EntityType element : entityTypesClient.listEntityTypes(request).iterateAll()) {
750+
* // doThingsWith(element);
751+
* }
752+
* }
753+
* }</pre>
754+
*
755+
* @param request The request object containing all of the parameters for the API call.
756+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
757+
*/
758+
public final ListEntityTypesPagedResponse listEntityTypes(ListEntityTypesRequest request) {
759+
return listEntityTypesPagedCallable().call(request);
760+
}
761+
762+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
763+
/**
764+
* Returns the list of all entity types in the specified agent.
765+
*
766+
* <p>Sample code:
767+
*
768+
* <pre>{@code
769+
* // This snippet has been automatically generated and should be regarded as a code template only.
770+
* // It will require modifications to work:
771+
* // - It may require correct/in-range values for request initialization.
772+
* // - It may require specifying regional endpoints when creating the service client as shown in
773+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
774+
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
775+
* ListEntityTypesRequest request =
776+
* ListEntityTypesRequest.newBuilder()
777+
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
778+
* .setLanguageCode("languageCode-2092349083")
779+
* .setPageSize(883849137)
780+
* .setPageToken("pageToken873572522")
781+
* .build();
782+
* ApiFuture<EntityType> future =
783+
* entityTypesClient.listEntityTypesPagedCallable().futureCall(request);
784+
* // Do something.
785+
* for (EntityType element : future.get().iterateAll()) {
786+
* // doThingsWith(element);
787+
* }
788+
* }
789+
* }</pre>
790+
*/
791+
public final UnaryCallable<ListEntityTypesRequest, ListEntityTypesPagedResponse>
792+
listEntityTypesPagedCallable() {
793+
return stub.listEntityTypesPagedCallable();
794+
}
795+
796+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
797+
/**
798+
* Returns the list of all entity types in the specified agent.
799+
*
800+
* <p>Sample code:
801+
*
802+
* <pre>{@code
803+
* // This snippet has been automatically generated and should be regarded as a code template only.
804+
* // It will require modifications to work:
805+
* // - It may require correct/in-range values for request initialization.
806+
* // - It may require specifying regional endpoints when creating the service client as shown in
807+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
808+
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
809+
* ListEntityTypesRequest request =
810+
* ListEntityTypesRequest.newBuilder()
811+
* .setParent(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
812+
* .setLanguageCode("languageCode-2092349083")
813+
* .setPageSize(883849137)
814+
* .setPageToken("pageToken873572522")
815+
* .build();
816+
* while (true) {
817+
* ListEntityTypesResponse response =
818+
* entityTypesClient.listEntityTypesCallable().call(request);
819+
* for (EntityType element : response.getEntityTypesList()) {
820+
* // doThingsWith(element);
821+
* }
822+
* String nextPageToken = response.getNextPageToken();
823+
* if (!Strings.isNullOrEmpty(nextPageToken)) {
824+
* request = request.toBuilder().setPageToken(nextPageToken).build();
825+
* } else {
826+
* break;
827+
* }
828+
* }
829+
* }
830+
* }</pre>
831+
*/
832+
public final UnaryCallable<ListEntityTypesRequest, ListEntityTypesResponse>
833+
listEntityTypesCallable() {
834+
return stub.listEntityTypesCallable();
835+
}
836+
837837
// AUTO-GENERATED DOCUMENTATION AND METHOD.
838838
/**
839839
* Lists information about the supported locations for this service.

0 commit comments

Comments
 (0)