Skip to content

Commit 16f75a7

Browse files
feat: [dialogflow] add sections field to HumanAgentAssistantConfig.SuggestionQueryConfig (#10158)
* feat: add sections field to HumanAgentAssistantConfig.SuggestionQueryConfig feat: add enable_conversation_augmented_query field to HumanAgentAssistantConfig.SuggestionFeatureConfig message feat: add INTENT enum in SearchKnowledgeAnswer.AnswerType message feat: add rewritten_query in field in SearchKnowledgeResponse message docs: improved comments on audio_config proto PiperOrigin-RevId: 591042460 Source-Link: googleapis/googleapis@8e2e403 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8cdc4d386352c860fce2b6efc5c02e680403a3d Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiJjOGNkYzRkMzg2MzUyYzg2MGZjZTJiNmVmYzVjMDJlNjgwNDAzYTNkIn0= * 🦉 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 sections field to HumanAgentAssistantConfig.SuggestionQueryConfig feat: add enable_conversation_augmented_query field to HumanAgentAssistantConfig.SuggestionFeatureConfig message feat: add INTENT enum in SearchKnowledgeAnswer.AnswerType message feat: add rewritten_query in field in SearchKnowledgeResponse message docs: improved comments on audio_config proto PiperOrigin-RevId: 591055870 Source-Link: googleapis/googleapis@2f93f44 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2154bfc0d50dba0b8b8980e80243d928c9977108 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93Ly5Pd2xCb3QueWFtbCIsImgiOiIyMTU0YmZjMGQ1MGRiYTBiOGI4OTgwZTgwMjQzZDkyOGM5OTc3MTA4In0= * 🦉 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 b1f9213 commit 16f75a7

File tree

37 files changed

+5669
-1164
lines changed

37 files changed

+5669
-1164
lines changed

java-dialogflow/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
195195
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
196196
[stability-image]: https://img.shields.io/badge/stability-stable-green
197197
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg
198-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.36.0
198+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.38.0
199199
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
200200
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
201201
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,6 +2933,33 @@
29332933
"allDeclaredClasses": true,
29342934
"allPublicClasses": true
29352935
},
2936+
{
2937+
"name": "com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections",
2938+
"queryAllDeclaredConstructors": true,
2939+
"queryAllPublicConstructors": true,
2940+
"queryAllDeclaredMethods": true,
2941+
"allPublicMethods": true,
2942+
"allDeclaredClasses": true,
2943+
"allPublicClasses": true
2944+
},
2945+
{
2946+
"name": "com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections$Builder",
2947+
"queryAllDeclaredConstructors": true,
2948+
"queryAllPublicConstructors": true,
2949+
"queryAllDeclaredMethods": true,
2950+
"allPublicMethods": true,
2951+
"allDeclaredClasses": true,
2952+
"allPublicClasses": true
2953+
},
2954+
{
2955+
"name": "com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections$SectionType",
2956+
"queryAllDeclaredConstructors": true,
2957+
"queryAllPublicConstructors": true,
2958+
"queryAllDeclaredMethods": true,
2959+
"allPublicMethods": true,
2960+
"allDeclaredClasses": true,
2961+
"allPublicClasses": true
2962+
},
29362963
{
29372964
"name": "com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig$SuggestionTriggerSettings",
29382965
"queryAllDeclaredConstructors": true,

java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,6 +2627,33 @@
26272627
"allDeclaredClasses": true,
26282628
"allPublicClasses": true
26292629
},
2630+
{
2631+
"name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections",
2632+
"queryAllDeclaredConstructors": true,
2633+
"queryAllPublicConstructors": true,
2634+
"queryAllDeclaredMethods": true,
2635+
"allPublicMethods": true,
2636+
"allDeclaredClasses": true,
2637+
"allPublicClasses": true
2638+
},
2639+
{
2640+
"name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections$Builder",
2641+
"queryAllDeclaredConstructors": true,
2642+
"queryAllPublicConstructors": true,
2643+
"queryAllDeclaredMethods": true,
2644+
"allPublicMethods": true,
2645+
"allDeclaredClasses": true,
2646+
"allPublicClasses": true
2647+
},
2648+
{
2649+
"name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionQueryConfig$Sections$SectionType",
2650+
"queryAllDeclaredConstructors": true,
2651+
"queryAllPublicConstructors": true,
2652+
"queryAllDeclaredMethods": true,
2653+
"allPublicMethods": true,
2654+
"allDeclaredClasses": true,
2655+
"allPublicClasses": true
2656+
},
26302657
{
26312658
"name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$SuggestionTriggerSettings",
26322659
"queryAllDeclaredConstructors": true,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,7 @@ public void searchKnowledgeTest() throws Exception {
900900
SearchKnowledgeResponse expectedResponse =
901901
SearchKnowledgeResponse.newBuilder()
902902
.addAllAnswers(new ArrayList<SearchKnowledgeAnswer>())
903+
.setRewrittenQuery("rewrittenQuery-1572767836")
903904
.build();
904905
mockService.addResponse(expectedResponse);
905906

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ public void searchKnowledgeTest() throws Exception {
822822
SearchKnowledgeResponse expectedResponse =
823823
SearchKnowledgeResponse.newBuilder()
824824
.addAllAnswers(new ArrayList<SearchKnowledgeAnswer>())
825+
.setRewrittenQuery("rewrittenQuery-1572767836")
825826
.build();
826827
mockConversations.addResponse(expectedResponse);
827828

java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientHttpJsonTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,7 @@ public void searchKnowledgeTest() throws Exception {
986986
SearchKnowledgeResponse expectedResponse =
987987
SearchKnowledgeResponse.newBuilder()
988988
.addAllAnswers(new ArrayList<SearchKnowledgeAnswer>())
989+
.setRewrittenQuery("rewrittenQuery-1572767836")
989990
.build();
990991
mockService.addResponse(expectedResponse);
991992

java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationsClientTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ public void searchKnowledgeTest() throws Exception {
896896
SearchKnowledgeResponse expectedResponse =
897897
SearchKnowledgeResponse.newBuilder()
898898
.addAllAnswers(new ArrayList<SearchKnowledgeAnswer>())
899+
.setRewrittenQuery("rewrittenQuery-1572767836")
899900
.build();
900901
mockConversations.addResponse(expectedResponse);
901902

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

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ public com.google.protobuf.ByteString getAgentBytes() {
155155
*
156156
*
157157
* <pre>
158-
* Optional. Sets Dialogflow CX session life time.
158+
* Optional. Configure lifetime of the Dialogflow session.
159159
* By default, a Dialogflow CX session remains active and its data is stored
160-
* for 30 minutes after the last request is sent for the session. This value
161-
* should be no longer than 1 day.
160+
* for 30 minutes after the last request is sent for the session.
161+
* This value should be no longer than 1 day.
162162
* </pre>
163163
*
164164
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -174,10 +174,10 @@ public boolean hasSessionTtl() {
174174
*
175175
*
176176
* <pre>
177-
* Optional. Sets Dialogflow CX session life time.
177+
* Optional. Configure lifetime of the Dialogflow session.
178178
* By default, a Dialogflow CX session remains active and its data is stored
179-
* for 30 minutes after the last request is sent for the session. This value
180-
* should be no longer than 1 day.
179+
* for 30 minutes after the last request is sent for the session.
180+
* This value should be no longer than 1 day.
181181
* </pre>
182182
*
183183
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -193,10 +193,10 @@ public com.google.protobuf.Duration getSessionTtl() {
193193
*
194194
*
195195
* <pre>
196-
* Optional. Sets Dialogflow CX session life time.
196+
* Optional. Configure lifetime of the Dialogflow session.
197197
* By default, a Dialogflow CX session remains active and its data is stored
198-
* for 30 minutes after the last request is sent for the session. This value
199-
* should be no longer than 1 day.
198+
* for 30 minutes after the last request is sent for the session.
199+
* This value should be no longer than 1 day.
200200
* </pre>
201201
*
202202
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -786,10 +786,10 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) {
786786
*
787787
*
788788
* <pre>
789-
* Optional. Sets Dialogflow CX session life time.
789+
* Optional. Configure lifetime of the Dialogflow session.
790790
* By default, a Dialogflow CX session remains active and its data is stored
791-
* for 30 minutes after the last request is sent for the session. This value
792-
* should be no longer than 1 day.
791+
* for 30 minutes after the last request is sent for the session.
792+
* This value should be no longer than 1 day.
793793
* </pre>
794794
*
795795
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -804,10 +804,10 @@ public boolean hasSessionTtl() {
804804
*
805805
*
806806
* <pre>
807-
* Optional. Sets Dialogflow CX session life time.
807+
* Optional. Configure lifetime of the Dialogflow session.
808808
* By default, a Dialogflow CX session remains active and its data is stored
809-
* for 30 minutes after the last request is sent for the session. This value
810-
* should be no longer than 1 day.
809+
* for 30 minutes after the last request is sent for the session.
810+
* This value should be no longer than 1 day.
811811
* </pre>
812812
*
813813
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -828,10 +828,10 @@ public com.google.protobuf.Duration getSessionTtl() {
828828
*
829829
*
830830
* <pre>
831-
* Optional. Sets Dialogflow CX session life time.
831+
* Optional. Configure lifetime of the Dialogflow session.
832832
* By default, a Dialogflow CX session remains active and its data is stored
833-
* for 30 minutes after the last request is sent for the session. This value
834-
* should be no longer than 1 day.
833+
* for 30 minutes after the last request is sent for the session.
834+
* This value should be no longer than 1 day.
835835
* </pre>
836836
*
837837
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -854,10 +854,10 @@ public Builder setSessionTtl(com.google.protobuf.Duration value) {
854854
*
855855
*
856856
* <pre>
857-
* Optional. Sets Dialogflow CX session life time.
857+
* Optional. Configure lifetime of the Dialogflow session.
858858
* By default, a Dialogflow CX session remains active and its data is stored
859-
* for 30 minutes after the last request is sent for the session. This value
860-
* should be no longer than 1 day.
859+
* for 30 minutes after the last request is sent for the session.
860+
* This value should be no longer than 1 day.
861861
* </pre>
862862
*
863863
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -877,10 +877,10 @@ public Builder setSessionTtl(com.google.protobuf.Duration.Builder builderForValu
877877
*
878878
*
879879
* <pre>
880-
* Optional. Sets Dialogflow CX session life time.
880+
* Optional. Configure lifetime of the Dialogflow session.
881881
* By default, a Dialogflow CX session remains active and its data is stored
882-
* for 30 minutes after the last request is sent for the session. This value
883-
* should be no longer than 1 day.
882+
* for 30 minutes after the last request is sent for the session.
883+
* This value should be no longer than 1 day.
884884
* </pre>
885885
*
886886
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -906,10 +906,10 @@ public Builder mergeSessionTtl(com.google.protobuf.Duration value) {
906906
*
907907
*
908908
* <pre>
909-
* Optional. Sets Dialogflow CX session life time.
909+
* Optional. Configure lifetime of the Dialogflow session.
910910
* By default, a Dialogflow CX session remains active and its data is stored
911-
* for 30 minutes after the last request is sent for the session. This value
912-
* should be no longer than 1 day.
911+
* for 30 minutes after the last request is sent for the session.
912+
* This value should be no longer than 1 day.
913913
* </pre>
914914
*
915915
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -929,10 +929,10 @@ public Builder clearSessionTtl() {
929929
*
930930
*
931931
* <pre>
932-
* Optional. Sets Dialogflow CX session life time.
932+
* Optional. Configure lifetime of the Dialogflow session.
933933
* By default, a Dialogflow CX session remains active and its data is stored
934-
* for 30 minutes after the last request is sent for the session. This value
935-
* should be no longer than 1 day.
934+
* for 30 minutes after the last request is sent for the session.
935+
* This value should be no longer than 1 day.
936936
* </pre>
937937
*
938938
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -947,10 +947,10 @@ public com.google.protobuf.Duration.Builder getSessionTtlBuilder() {
947947
*
948948
*
949949
* <pre>
950-
* Optional. Sets Dialogflow CX session life time.
950+
* Optional. Configure lifetime of the Dialogflow session.
951951
* By default, a Dialogflow CX session remains active and its data is stored
952-
* for 30 minutes after the last request is sent for the session. This value
953-
* should be no longer than 1 day.
952+
* for 30 minutes after the last request is sent for the session.
953+
* This value should be no longer than 1 day.
954954
* </pre>
955955
*
956956
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -969,10 +969,10 @@ public com.google.protobuf.DurationOrBuilder getSessionTtlOrBuilder() {
969969
*
970970
*
971971
* <pre>
972-
* Optional. Sets Dialogflow CX session life time.
972+
* Optional. Configure lifetime of the Dialogflow session.
973973
* By default, a Dialogflow CX session remains active and its data is stored
974-
* for 30 minutes after the last request is sent for the session. This value
975-
* should be no longer than 1 day.
974+
* for 30 minutes after the last request is sent for the session.
975+
* This value should be no longer than 1 day.
976976
* </pre>
977977
*
978978
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ public interface AutomatedAgentConfigOrBuilder
8888
*
8989
*
9090
* <pre>
91-
* Optional. Sets Dialogflow CX session life time.
91+
* Optional. Configure lifetime of the Dialogflow session.
9292
* By default, a Dialogflow CX session remains active and its data is stored
93-
* for 30 minutes after the last request is sent for the session. This value
94-
* should be no longer than 1 day.
93+
* for 30 minutes after the last request is sent for the session.
94+
* This value should be no longer than 1 day.
9595
* </pre>
9696
*
9797
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -104,10 +104,10 @@ public interface AutomatedAgentConfigOrBuilder
104104
*
105105
*
106106
* <pre>
107-
* Optional. Sets Dialogflow CX session life time.
107+
* Optional. Configure lifetime of the Dialogflow session.
108108
* By default, a Dialogflow CX session remains active and its data is stored
109-
* for 30 minutes after the last request is sent for the session. This value
110-
* should be no longer than 1 day.
109+
* for 30 minutes after the last request is sent for the session.
110+
* This value should be no longer than 1 day.
111111
* </pre>
112112
*
113113
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];
@@ -120,10 +120,10 @@ public interface AutomatedAgentConfigOrBuilder
120120
*
121121
*
122122
* <pre>
123-
* Optional. Sets Dialogflow CX session life time.
123+
* Optional. Configure lifetime of the Dialogflow session.
124124
* By default, a Dialogflow CX session remains active and its data is stored
125-
* for 30 minutes after the last request is sent for the session. This value
126-
* should be no longer than 1 day.
125+
* for 30 minutes after the last request is sent for the session.
126+
* This value should be no longer than 1 day.
127127
* </pre>
128128
*
129129
* <code>.google.protobuf.Duration session_ttl = 3 [(.google.api.field_behavior) = OPTIONAL];

0 commit comments

Comments
 (0)