Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit 65ef11a

Browse files
feat: support document metadata filter in article suggestion and smart reply model in human agent assistant (#769)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 409190373 Source-Link: googleapis/googleapis@29bb98c Source-Link: https://github.com/googleapis/googleapis-gen/commit/e90c22e9275b91aabc6c820a767af2fd6954f624 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTkwYzIyZTkyNzViOTFhYWJjNmM4MjBhNzY3YWYyZmQ2OTU0ZjYyNCJ9
1 parent f98bfa6 commit 65ef11a

32 files changed

+3573
-480
lines changed

google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ public final AnalyzeContentResponse analyzeContent(String participant, TextInput
752752
* .toString())
753753
* .setReplyAudioConfig(OutputAudioConfig.newBuilder().build())
754754
* .setQueryParams(QueryParameters.newBuilder().build())
755+
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
755756
* .setRequestId("requestId693933066")
756757
* .build();
757758
* AnalyzeContentResponse response = participantsClient.analyzeContent(request);
@@ -785,6 +786,7 @@ public final AnalyzeContentResponse analyzeContent(AnalyzeContentRequest request
785786
* .toString())
786787
* .setReplyAudioConfig(OutputAudioConfig.newBuilder().build())
787788
* .setQueryParams(QueryParameters.newBuilder().build())
789+
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
788790
* .setRequestId("requestId693933066")
789791
* .build();
790792
* ApiFuture<AnalyzeContentResponse> future =
@@ -872,6 +874,7 @@ public final SuggestArticlesResponse suggestArticles(String parent) {
872874
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
873875
* .toString())
874876
* .setContextSize(1116903569)
877+
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
875878
* .build();
876879
* SuggestArticlesResponse response = participantsClient.suggestArticles(request);
877880
* }
@@ -903,6 +906,7 @@ public final SuggestArticlesResponse suggestArticles(SuggestArticlesRequest requ
903906
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
904907
* .toString())
905908
* .setContextSize(1116903569)
909+
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
906910
* .build();
907911
* ApiFuture<SuggestArticlesResponse> future =
908912
* participantsClient.suggestArticlesCallable().futureCall(request);
@@ -990,6 +994,7 @@ public final SuggestFaqAnswersResponse suggestFaqAnswers(String parent) {
990994
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
991995
* .toString())
992996
* .setContextSize(1116903569)
997+
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
993998
* .build();
994999
* SuggestFaqAnswersResponse response = participantsClient.suggestFaqAnswers(request);
9951000
* }
@@ -1021,6 +1026,7 @@ public final SuggestFaqAnswersResponse suggestFaqAnswers(SuggestFaqAnswersReques
10211026
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
10221027
* .toString())
10231028
* .setContextSize(1116903569)
1029+
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
10241030
* .build();
10251031
* ApiFuture<SuggestFaqAnswersResponse> future =
10261032
* participantsClient.suggestFaqAnswersCallable().futureCall(request);

google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.io.IOException;
3333
import java.util.ArrayList;
3434
import java.util.Arrays;
35+
import java.util.HashMap;
3536
import java.util.List;
3637
import java.util.UUID;
3738
import javax.annotation.Generated;
@@ -89,6 +90,7 @@ public void createParticipantTest() throws Exception {
8990
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
9091
.toString())
9192
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
93+
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
9294
.build();
9395
mockParticipants.addResponse(expectedResponse);
9496

@@ -136,6 +138,7 @@ public void createParticipantTest2() throws Exception {
136138
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
137139
.toString())
138140
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
141+
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
139142
.build();
140143
mockParticipants.addResponse(expectedResponse);
141144

@@ -181,6 +184,7 @@ public void getParticipantTest() throws Exception {
181184
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
182185
.toString())
183186
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
187+
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
184188
.build();
185189
mockParticipants.addResponse(expectedResponse);
186190

@@ -227,6 +231,7 @@ public void getParticipantTest2() throws Exception {
227231
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
228232
.toString())
229233
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
234+
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
230235
.build();
231236
mockParticipants.addResponse(expectedResponse);
232237

@@ -359,6 +364,7 @@ public void updateParticipantTest() throws Exception {
359364
"[PROJECT]", "[CONVERSATION]", "[PARTICIPANT]")
360365
.toString())
361366
.setSipRecordingMediaLabel("sipRecordingMediaLabel-1887770873")
367+
.putAllDocumentsMetadataFilters(new HashMap<String, String>())
362368
.build();
363369
mockParticipants.addResponse(expectedResponse);
364370

0 commit comments

Comments
 (0)