Skip to content

Commit aaf97a6

Browse files
feat: [dialogflow] added support for AssistQueryParameters and SynthesizeSpeechConfig (#9123)
* feat: added support for AssistQueryParameters and SynthesizeSpeechConfig docs: add more meaningful comments PiperOrigin-RevId: 510042252 Source-Link: googleapis/googleapis@7b30db7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/17beb9941750b31faa423a29d7a018346a6b88b5 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiIxN2JlYjk5NDE3NTBiMzFmYWE0MjNhMjlkN2EwMTgzNDZhNmI4OGI1In0= * 🦉 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 bfc6efb commit aaf97a6

26 files changed

+1644
-947
lines changed

java-dialogflow/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>google-cloud-dialogflow</artifactId>
22-
<version>4.15.0</version>
22+
<version>4.16.0</version>
2323
</dependency>
2424
```
2525

2626
If you are using Gradle without BOM, add this to your dependencies:
2727

2828
```Groovy
29-
implementation 'com.google.cloud:google-cloud-dialogflow:4.15.0'
29+
implementation 'com.google.cloud:google-cloud-dialogflow:4.16.0'
3030
```
3131

3232
If you are using SBT, add this to your dependencies:
3333

3434
```Scala
35-
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.15.0"
35+
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.16.0"
3636
```
3737

3838
## Authentication

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,7 @@ public final SuggestConversationSummaryResponse suggestConversationSummary(Strin
11451145
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
11461146
* .toString())
11471147
* .setContextSize(1116903569)
1148+
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
11481149
* .build();
11491150
* SuggestConversationSummaryResponse response =
11501151
* conversationsClient.suggestConversationSummary(request);
@@ -1183,6 +1184,7 @@ public final SuggestConversationSummaryResponse suggestConversationSummary(
11831184
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
11841185
* .toString())
11851186
* .setContextSize(1116903569)
1187+
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
11861188
* .build();
11871189
* ApiFuture<SuggestConversationSummaryResponse> future =
11881190
* conversationsClient.suggestConversationSummaryCallable().futureCall(request);

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ public void getConversationProfileTest() throws Exception {
261261
.setLanguageCode("languageCode-2092349083")
262262
.setTimeZone("timeZone-2077180903")
263263
.setSecuritySettings("securitySettings-1062971517")
264+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
264265
.build();
265266
mockService.addResponse(expectedResponse);
266267

@@ -325,6 +326,7 @@ public void getConversationProfileTest2() throws Exception {
325326
.setLanguageCode("languageCode-2092349083")
326327
.setTimeZone("timeZone-2077180903")
327328
.setSecuritySettings("securitySettings-1062971517")
329+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
328330
.build();
329331
mockService.addResponse(expectedResponse);
330332

@@ -385,6 +387,7 @@ public void createConversationProfileTest() throws Exception {
385387
.setLanguageCode("languageCode-2092349083")
386388
.setTimeZone("timeZone-2077180903")
387389
.setSecuritySettings("securitySettings-1062971517")
390+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
388391
.build();
389392
mockService.addResponse(expectedResponse);
390393

@@ -448,6 +451,7 @@ public void createConversationProfileTest2() throws Exception {
448451
.setLanguageCode("languageCode-2092349083")
449452
.setTimeZone("timeZone-2077180903")
450453
.setSecuritySettings("securitySettings-1062971517")
454+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
451455
.build();
452456
mockService.addResponse(expectedResponse);
453457

@@ -511,6 +515,7 @@ public void createConversationProfileTest3() throws Exception {
511515
.setLanguageCode("languageCode-2092349083")
512516
.setTimeZone("timeZone-2077180903")
513517
.setSecuritySettings("securitySettings-1062971517")
518+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
514519
.build();
515520
mockService.addResponse(expectedResponse);
516521

@@ -574,6 +579,7 @@ public void updateConversationProfileTest() throws Exception {
574579
.setLanguageCode("languageCode-2092349083")
575580
.setTimeZone("timeZone-2077180903")
576581
.setSecuritySettings("securitySettings-1062971517")
582+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
577583
.build();
578584
mockService.addResponse(expectedResponse);
579585

@@ -596,6 +602,7 @@ public void updateConversationProfileTest() throws Exception {
596602
.setLanguageCode("languageCode-2092349083")
597603
.setTimeZone("timeZone-2077180903")
598604
.setSecuritySettings("securitySettings-1062971517")
605+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
599606
.build();
600607
FieldMask updateMask = FieldMask.newBuilder().build();
601608

@@ -645,6 +652,7 @@ public void updateConversationProfileExceptionTest() throws Exception {
645652
.setLanguageCode("languageCode-2092349083")
646653
.setTimeZone("timeZone-2077180903")
647654
.setSecuritySettings("securitySettings-1062971517")
655+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
648656
.build();
649657
FieldMask updateMask = FieldMask.newBuilder().build();
650658
client.updateConversationProfile(conversationProfile, updateMask);
@@ -759,6 +767,7 @@ public void setSuggestionFeatureConfigTest() throws Exception {
759767
.setLanguageCode("languageCode-2092349083")
760768
.setTimeZone("timeZone-2077180903")
761769
.setSecuritySettings("securitySettings-1062971517")
770+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
762771
.build();
763772
Operation resultOperation =
764773
Operation.newBuilder()
@@ -827,6 +836,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception {
827836
.setLanguageCode("languageCode-2092349083")
828837
.setTimeZone("timeZone-2077180903")
829838
.setSecuritySettings("securitySettings-1062971517")
839+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
830840
.build();
831841
Operation resultOperation =
832842
Operation.newBuilder()

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ public void getConversationProfileTest() throws Exception {
253253
.setLanguageCode("languageCode-2092349083")
254254
.setTimeZone("timeZone-2077180903")
255255
.setSecuritySettings("securitySettings-1062971517")
256+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
256257
.build();
257258
mockConversationProfiles.addResponse(expectedResponse);
258259

@@ -312,6 +313,7 @@ public void getConversationProfileTest2() throws Exception {
312313
.setLanguageCode("languageCode-2092349083")
313314
.setTimeZone("timeZone-2077180903")
314315
.setSecuritySettings("securitySettings-1062971517")
316+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
315317
.build();
316318
mockConversationProfiles.addResponse(expectedResponse);
317319

@@ -367,6 +369,7 @@ public void createConversationProfileTest() throws Exception {
367369
.setLanguageCode("languageCode-2092349083")
368370
.setTimeZone("timeZone-2077180903")
369371
.setSecuritySettings("securitySettings-1062971517")
372+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
370373
.build();
371374
mockConversationProfiles.addResponse(expectedResponse);
372375

@@ -426,6 +429,7 @@ public void createConversationProfileTest2() throws Exception {
426429
.setLanguageCode("languageCode-2092349083")
427430
.setTimeZone("timeZone-2077180903")
428431
.setSecuritySettings("securitySettings-1062971517")
432+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
429433
.build();
430434
mockConversationProfiles.addResponse(expectedResponse);
431435

@@ -485,6 +489,7 @@ public void createConversationProfileTest3() throws Exception {
485489
.setLanguageCode("languageCode-2092349083")
486490
.setTimeZone("timeZone-2077180903")
487491
.setSecuritySettings("securitySettings-1062971517")
492+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
488493
.build();
489494
mockConversationProfiles.addResponse(expectedResponse);
490495

@@ -544,6 +549,7 @@ public void updateConversationProfileTest() throws Exception {
544549
.setLanguageCode("languageCode-2092349083")
545550
.setTimeZone("timeZone-2077180903")
546551
.setSecuritySettings("securitySettings-1062971517")
552+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
547553
.build();
548554
mockConversationProfiles.addResponse(expectedResponse);
549555

@@ -677,6 +683,7 @@ public void setSuggestionFeatureConfigTest() throws Exception {
677683
.setLanguageCode("languageCode-2092349083")
678684
.setTimeZone("timeZone-2077180903")
679685
.setSecuritySettings("securitySettings-1062971517")
686+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
680687
.build();
681688
Operation resultOperation =
682689
Operation.newBuilder()
@@ -741,6 +748,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception {
741748
.setLanguageCode("languageCode-2092349083")
742749
.setTimeZone("timeZone-2077180903")
743750
.setSecuritySettings("securitySettings-1062971517")
751+
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
744752
.build();
745753
Operation resultOperation =
746754
Operation.newBuilder()

java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Agent.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ public boolean getEnableLogging() {
10421042
* </code>
10431043
*
10441044
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
1045-
* google/cloud/dialogflow/v2/agent.proto;l=353
1045+
* google/cloud/dialogflow/v2/agent.proto;l=354
10461046
* @return The enum numeric value on the wire for matchMode.
10471047
*/
10481048
@java.lang.Override
@@ -1062,7 +1062,7 @@ public int getMatchModeValue() {
10621062
* </code>
10631063
*
10641064
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
1065-
* google/cloud/dialogflow/v2/agent.proto;l=353
1065+
* google/cloud/dialogflow/v2/agent.proto;l=354
10661066
* @return The matchMode.
10671067
*/
10681068
@java.lang.Override
@@ -2766,7 +2766,7 @@ public Builder clearEnableLogging() {
27662766
* </code>
27672767
*
27682768
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
2769-
* google/cloud/dialogflow/v2/agent.proto;l=353
2769+
* google/cloud/dialogflow/v2/agent.proto;l=354
27702770
* @return The enum numeric value on the wire for matchMode.
27712771
*/
27722772
@java.lang.Override
@@ -2786,7 +2786,7 @@ public int getMatchModeValue() {
27862786
* </code>
27872787
*
27882788
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
2789-
* google/cloud/dialogflow/v2/agent.proto;l=353
2789+
* google/cloud/dialogflow/v2/agent.proto;l=354
27902790
* @param value The enum numeric value on the wire for matchMode to set.
27912791
* @return This builder for chaining.
27922792
*/
@@ -2809,7 +2809,7 @@ public Builder setMatchModeValue(int value) {
28092809
* </code>
28102810
*
28112811
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
2812-
* google/cloud/dialogflow/v2/agent.proto;l=353
2812+
* google/cloud/dialogflow/v2/agent.proto;l=354
28132813
* @return The matchMode.
28142814
*/
28152815
@java.lang.Override
@@ -2831,7 +2831,7 @@ public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() {
28312831
* </code>
28322832
*
28332833
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
2834-
* google/cloud/dialogflow/v2/agent.proto;l=353
2834+
* google/cloud/dialogflow/v2/agent.proto;l=354
28352835
* @param value The matchMode to set.
28362836
* @return This builder for chaining.
28372837
*/
@@ -2857,7 +2857,7 @@ public Builder setMatchMode(com.google.cloud.dialogflow.v2.Agent.MatchMode value
28572857
* </code>
28582858
*
28592859
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
2860-
* google/cloud/dialogflow/v2/agent.proto;l=353
2860+
* google/cloud/dialogflow/v2/agent.proto;l=354
28612861
* @return This builder for chaining.
28622862
*/
28632863
@java.lang.Deprecated

java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentOrBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public interface AgentOrBuilder
285285
* </code>
286286
*
287287
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
288-
* google/cloud/dialogflow/v2/agent.proto;l=353
288+
* google/cloud/dialogflow/v2/agent.proto;l=354
289289
* @return The enum numeric value on the wire for matchMode.
290290
*/
291291
@java.lang.Deprecated
@@ -302,7 +302,7 @@ public interface AgentOrBuilder
302302
* </code>
303303
*
304304
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
305-
* google/cloud/dialogflow/v2/agent.proto;l=353
305+
* google/cloud/dialogflow/v2/agent.proto;l=354
306306
* @return The matchMode.
307307
*/
308308
@java.lang.Deprecated

0 commit comments

Comments
 (0)