Skip to content

Commit

Permalink
feat: [dialogflow] added support for AssistQueryParameters and Synthe…
Browse files Browse the repository at this point in the history
…sizeSpeechConfig (#9123)

* feat: added support for AssistQueryParameters and SynthesizeSpeechConfig
docs: add more meaningful comments

PiperOrigin-RevId: 510042252

Source-Link: googleapis/googleapis@7b30db7

Source-Link: googleapis/googleapis-gen@17beb99
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Feb 16, 2023
1 parent bfc6efb commit aaf97a6
Show file tree
Hide file tree
Showing 26 changed files with 1,644 additions and 947 deletions.
6 changes: 3 additions & 3 deletions java-dialogflow/README.md
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-dialogflow</artifactId>
<version>4.15.0</version>
<version>4.16.0</version>
</dependency>
```

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

```Groovy
implementation 'com.google.cloud:google-cloud-dialogflow:4.15.0'
implementation 'com.google.cloud:google-cloud-dialogflow:4.16.0'
```

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

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.15.0"
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.16.0"
```

## Authentication
Expand Down
Expand Up @@ -1145,6 +1145,7 @@ public final SuggestConversationSummaryResponse suggestConversationSummary(Strin
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
* .toString())
* .setContextSize(1116903569)
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
* .build();
* SuggestConversationSummaryResponse response =
* conversationsClient.suggestConversationSummary(request);
Expand Down Expand Up @@ -1183,6 +1184,7 @@ public final SuggestConversationSummaryResponse suggestConversationSummary(
* "[PROJECT]", "[CONVERSATION]", "[MESSAGE]")
* .toString())
* .setContextSize(1116903569)
* .setAssistQueryParams(AssistQueryParameters.newBuilder().build())
* .build();
* ApiFuture<SuggestConversationSummaryResponse> future =
* conversationsClient.suggestConversationSummaryCallable().futureCall(request);
Expand Down
Expand Up @@ -261,6 +261,7 @@ public void getConversationProfileTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -325,6 +326,7 @@ public void getConversationProfileTest2() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -385,6 +387,7 @@ public void createConversationProfileTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -448,6 +451,7 @@ public void createConversationProfileTest2() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -511,6 +515,7 @@ public void createConversationProfileTest3() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -574,6 +579,7 @@ public void updateConversationProfileTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -596,6 +602,7 @@ public void updateConversationProfileTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -645,6 +652,7 @@ public void updateConversationProfileExceptionTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateConversationProfile(conversationProfile, updateMask);
Expand Down Expand Up @@ -759,6 +767,7 @@ public void setSuggestionFeatureConfigTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -827,6 +836,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down
Expand Up @@ -253,6 +253,7 @@ public void getConversationProfileTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -312,6 +313,7 @@ public void getConversationProfileTest2() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -367,6 +369,7 @@ public void createConversationProfileTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -426,6 +429,7 @@ public void createConversationProfileTest2() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -485,6 +489,7 @@ public void createConversationProfileTest3() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -544,6 +549,7 @@ public void updateConversationProfileTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
mockConversationProfiles.addResponse(expectedResponse);

Expand Down Expand Up @@ -677,6 +683,7 @@ public void setSuggestionFeatureConfigTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down Expand Up @@ -741,6 +748,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception {
.setLanguageCode("languageCode-2092349083")
.setTimeZone("timeZone-2077180903")
.setSecuritySettings("securitySettings-1062971517")
.setTtsConfig(SynthesizeSpeechConfig.newBuilder().build())
.build();
Operation resultOperation =
Operation.newBuilder()
Expand Down
Expand Up @@ -1042,7 +1042,7 @@ public boolean getEnableLogging() {
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @return The enum numeric value on the wire for matchMode.
*/
@java.lang.Override
Expand All @@ -1062,7 +1062,7 @@ public int getMatchModeValue() {
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @return The matchMode.
*/
@java.lang.Override
Expand Down Expand Up @@ -2766,7 +2766,7 @@ public Builder clearEnableLogging() {
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @return The enum numeric value on the wire for matchMode.
*/
@java.lang.Override
Expand All @@ -2786,7 +2786,7 @@ public int getMatchModeValue() {
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @param value The enum numeric value on the wire for matchMode to set.
* @return This builder for chaining.
*/
Expand All @@ -2809,7 +2809,7 @@ public Builder setMatchModeValue(int value) {
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @return The matchMode.
*/
@java.lang.Override
Expand All @@ -2831,7 +2831,7 @@ public com.google.cloud.dialogflow.v2.Agent.MatchMode getMatchMode() {
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @param value The matchMode to set.
* @return This builder for chaining.
*/
Expand All @@ -2857,7 +2857,7 @@ public Builder setMatchMode(com.google.cloud.dialogflow.v2.Agent.MatchMode value
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand Down
Expand Up @@ -285,7 +285,7 @@ public interface AgentOrBuilder
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @return The enum numeric value on the wire for matchMode.
*/
@java.lang.Deprecated
Expand All @@ -302,7 +302,7 @@ public interface AgentOrBuilder
* </code>
*
* @deprecated google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See
* google/cloud/dialogflow/v2/agent.proto;l=353
* google/cloud/dialogflow/v2/agent.proto;l=354
* @return The matchMode.
*/
@java.lang.Deprecated
Expand Down

0 comments on commit aaf97a6

Please sign in to comment.