From 4cd514ef83d153730be2d27bf1bdcdb5c76dddfc Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 6 Apr 2021 15:13:13 -0700 Subject: [PATCH] feat: support setting current_page to resume sessions; expose transition_route_groups in flows and language_code in webhook PiperOrigin-RevId: 367042726 Source-Author: Google APIs Source-Date: Tue Apr 6 11:04:50 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 163ed6c0450949662bf2e6997eb7e0782cd4d800 Source-Link: https://github.com/googleapis/googleapis/commit/163ed6c0450949662bf2e6997eb7e0782cd4d800 --- .../dialogflow/cx/v3/FlowsClientTest.java | 5 + .../google/cloud/dialogflow/cx/v3/Flow.java | 391 ++++++++++++++++++ .../cloud/dialogflow/cx/v3/FlowOrBuilder.java | 83 ++++ .../cloud/dialogflow/cx/v3/FlowProto.java | 171 ++++---- .../google/cloud/dialogflow/cx/v3/Intent.java | 72 ++-- .../dialogflow/cx/v3/IntentOrBuilder.java | 28 +- .../cloud/dialogflow/cx/v3/IntentProto.java | 136 +++--- .../dialogflow/cx/v3/QueryParameters.java | 242 +++++++++++ .../cx/v3/QueryParametersOrBuilder.java | 43 ++ .../cloud/dialogflow/cx/v3/SessionProto.java | 234 +++++------ .../cloud/dialogflow/cx/v3/WebhookProto.java | 200 ++++----- .../dialogflow/cx/v3/WebhookRequest.java | 186 +++++++++ .../cx/v3/WebhookRequestOrBuilder.java | 27 ++ .../google/cloud/dialogflow/cx/v3/flow.proto | 14 + .../cloud/dialogflow/cx/v3/intent.proto | 8 +- .../cloud/dialogflow/cx/v3/session.proto | 15 + .../cloud/dialogflow/cx/v3/webhook.proto | 4 + synth.metadata | 10 +- 18 files changed, 1443 insertions(+), 426 deletions(-) diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java index 1436fff40..1d53b0877 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3/FlowsClientTest.java @@ -95,6 +95,7 @@ public void createFlowTest() throws Exception { .setDescription("description-1724546052") .addAllTransitionRoutes(new ArrayList()) .addAllEventHandlers(new ArrayList()) + .addAllTransitionRouteGroups(new ArrayList()) .setNluSettings(NluSettings.newBuilder().build()) .build(); mockFlows.addResponse(expectedResponse); @@ -141,6 +142,7 @@ public void createFlowTest2() throws Exception { .setDescription("description-1724546052") .addAllTransitionRoutes(new ArrayList()) .addAllEventHandlers(new ArrayList()) + .addAllTransitionRouteGroups(new ArrayList()) .setNluSettings(NluSettings.newBuilder().build()) .build(); mockFlows.addResponse(expectedResponse); @@ -343,6 +345,7 @@ public void getFlowTest() throws Exception { .setDescription("description-1724546052") .addAllTransitionRoutes(new ArrayList()) .addAllEventHandlers(new ArrayList()) + .addAllTransitionRouteGroups(new ArrayList()) .setNluSettings(NluSettings.newBuilder().build()) .build(); mockFlows.addResponse(expectedResponse); @@ -386,6 +389,7 @@ public void getFlowTest2() throws Exception { .setDescription("description-1724546052") .addAllTransitionRoutes(new ArrayList()) .addAllEventHandlers(new ArrayList()) + .addAllTransitionRouteGroups(new ArrayList()) .setNluSettings(NluSettings.newBuilder().build()) .build(); mockFlows.addResponse(expectedResponse); @@ -429,6 +433,7 @@ public void updateFlowTest() throws Exception { .setDescription("description-1724546052") .addAllTransitionRoutes(new ArrayList()) .addAllEventHandlers(new ArrayList()) + .addAllTransitionRouteGroups(new ArrayList()) .setNluSettings(NluSettings.newBuilder().build()) .build(); mockFlows.addResponse(expectedResponse); diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java index 4f0e7e6c5..e143ee73c 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java @@ -54,6 +54,7 @@ private Flow() { description_ = ""; transitionRoutes_ = java.util.Collections.emptyList(); eventHandlers_ = java.util.Collections.emptyList(); + transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -146,6 +147,16 @@ private Flow( nluSettings_ = subBuilder.buildPartial(); } + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + transitionRouteGroups_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + transitionRouteGroups_.add(s); break; } default: @@ -168,6 +179,9 @@ private Flow( if (((mutable_bitField0_ & 0x00000002) != 0)) { eventHandlers_ = java.util.Collections.unmodifiableList(eventHandlers_); } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + transitionRouteGroups_ = transitionRouteGroups_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -582,6 +596,99 @@ public com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlersO return eventHandlers_.get(index); } + public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 15; + private com.google.protobuf.LazyStringList transitionRouteGroups_; + /** + * + * + *
+   * A flow's transition route group serve two purposes:
+   * *   They are responsible for matching the user's first utterances in the
+   * flow.
+   * *   They are inherited by every page's [transition
+   * route groups][Page.transition_route_groups]. Transition route groups
+   * defined in the page have higher priority than those defined in the flow.
+   * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+   * 
+ * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the transitionRouteGroups. + */ + public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() { + return transitionRouteGroups_; + } + /** + * + * + *
+   * A flow's transition route group serve two purposes:
+   * *   They are responsible for matching the user's first utterances in the
+   * flow.
+   * *   They are inherited by every page's [transition
+   * route groups][Page.transition_route_groups]. Transition route groups
+   * defined in the page have higher priority than those defined in the flow.
+   * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+   * 
+ * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of transitionRouteGroups. + */ + public int getTransitionRouteGroupsCount() { + return transitionRouteGroups_.size(); + } + /** + * + * + *
+   * A flow's transition route group serve two purposes:
+   * *   They are responsible for matching the user's first utterances in the
+   * flow.
+   * *   They are inherited by every page's [transition
+   * route groups][Page.transition_route_groups]. Transition route groups
+   * defined in the page have higher priority than those defined in the flow.
+   * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+   * 
+ * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The transitionRouteGroups at the given index. + */ + public java.lang.String getTransitionRouteGroups(int index) { + return transitionRouteGroups_.get(index); + } + /** + * + * + *
+   * A flow's transition route group serve two purposes:
+   * *   They are responsible for matching the user's first utterances in the
+   * flow.
+   * *   They are inherited by every page's [transition
+   * route groups][Page.transition_route_groups]. Transition route groups
+   * defined in the page have higher priority than those defined in the flow.
+   * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+   * 
+ * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the transitionRouteGroups at the given index. + */ + public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { + return transitionRouteGroups_.getByteString(index); + } + public static final int NLU_SETTINGS_FIELD_NUMBER = 11; private com.google.cloud.dialogflow.cx.v3.NluSettings nluSettings_; /** @@ -662,6 +769,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (nluSettings_ != null) { output.writeMessage(11, getNluSettings()); } + for (int i = 0; i < transitionRouteGroups_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 15, transitionRouteGroups_.getRaw(i)); + } unknownFields.writeTo(output); } @@ -689,6 +800,14 @@ public int getSerializedSize() { if (nluSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getNluSettings()); } + { + int dataSize = 0; + for (int i = 0; i < transitionRouteGroups_.size(); i++) { + dataSize += computeStringSizeNoTag(transitionRouteGroups_.getRaw(i)); + } + size += dataSize; + size += 1 * getTransitionRouteGroupsList().size(); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -709,6 +828,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (!getTransitionRoutesList().equals(other.getTransitionRoutesList())) return false; if (!getEventHandlersList().equals(other.getEventHandlersList())) return false; + if (!getTransitionRouteGroupsList().equals(other.getTransitionRouteGroupsList())) return false; if (hasNluSettings() != other.hasNluSettings()) return false; if (hasNluSettings()) { if (!getNluSettings().equals(other.getNluSettings())) return false; @@ -738,6 +858,10 @@ public int hashCode() { hash = (37 * hash) + EVENT_HANDLERS_FIELD_NUMBER; hash = (53 * hash) + getEventHandlersList().hashCode(); } + if (getTransitionRouteGroupsCount() > 0) { + hash = (37 * hash) + TRANSITION_ROUTE_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getTransitionRouteGroupsList().hashCode(); + } if (hasNluSettings()) { hash = (37 * hash) + NLU_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getNluSettings().hashCode(); @@ -919,6 +1043,8 @@ public Builder clear() { } else { eventHandlersBuilder_.clear(); } + transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); if (nluSettingsBuilder_ == null) { nluSettings_ = null; } else { @@ -974,6 +1100,11 @@ public com.google.cloud.dialogflow.cx.v3.Flow buildPartial() { } else { result.eventHandlers_ = eventHandlersBuilder_.build(); } + if (((bitField0_ & 0x00000004) != 0)) { + transitionRouteGroups_ = transitionRouteGroups_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.transitionRouteGroups_ = transitionRouteGroups_; if (nluSettingsBuilder_ == null) { result.nluSettings_ = nluSettings_; } else { @@ -1094,6 +1225,16 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Flow other) { } } } + if (!other.transitionRouteGroups_.isEmpty()) { + if (transitionRouteGroups_.isEmpty()) { + transitionRouteGroups_ = other.transitionRouteGroups_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureTransitionRouteGroupsIsMutable(); + transitionRouteGroups_.addAll(other.transitionRouteGroups_); + } + onChanged(); + } if (other.hasNluSettings()) { mergeNluSettings(other.getNluSettings()); } @@ -2542,6 +2683,256 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBu return eventHandlersBuilder_; } + private com.google.protobuf.LazyStringList transitionRouteGroups_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureTransitionRouteGroupsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + transitionRouteGroups_ = + new com.google.protobuf.LazyStringArrayList(transitionRouteGroups_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the transitionRouteGroups. + */ + public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() { + return transitionRouteGroups_.getUnmodifiableView(); + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of transitionRouteGroups. + */ + public int getTransitionRouteGroupsCount() { + return transitionRouteGroups_.size(); + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The transitionRouteGroups at the given index. + */ + public java.lang.String getTransitionRouteGroups(int index) { + return transitionRouteGroups_.get(index); + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the transitionRouteGroups at the given index. + */ + public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { + return transitionRouteGroups_.getByteString(index); + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The transitionRouteGroups to set. + * @return This builder for chaining. + */ + public Builder setTransitionRouteGroups(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransitionRouteGroupsIsMutable(); + transitionRouteGroups_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param value The transitionRouteGroups to add. + * @return This builder for chaining. + */ + public Builder addTransitionRouteGroups(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTransitionRouteGroupsIsMutable(); + transitionRouteGroups_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param values The transitionRouteGroups to add. + * @return This builder for chaining. + */ + public Builder addAllTransitionRouteGroups(java.lang.Iterable values) { + ensureTransitionRouteGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitionRouteGroups_); + onChanged(); + return this; + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTransitionRouteGroups() { + transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A flow's transition route group serve two purposes:
+     * *   They are responsible for matching the user's first utterances in the
+     * flow.
+     * *   They are inherited by every page's [transition
+     * route groups][Page.transition_route_groups]. Transition route groups
+     * defined in the page have higher priority than those defined in the flow.
+     * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+     * 
+ * + * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the transitionRouteGroups to add. + * @return This builder for chaining. + */ + public Builder addTransitionRouteGroupsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTransitionRouteGroupsIsMutable(); + transitionRouteGroups_.add(value); + onChanged(); + return this; + } + private com.google.cloud.dialogflow.cx.v3.NluSettings nluSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.NluSettings, diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java index bcec815d1..991154d04 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java @@ -309,6 +309,89 @@ com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOr */ com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlersOrBuilder(int index); + /** + * + * + *
+   * A flow's transition route group serve two purposes:
+   * *   They are responsible for matching the user's first utterances in the
+   * flow.
+   * *   They are inherited by every page's [transition
+   * route groups][Page.transition_route_groups]. Transition route groups
+   * defined in the page have higher priority than those defined in the flow.
+   * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+   * 
+ * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @return A list containing the transitionRouteGroups. + */ + java.util.List getTransitionRouteGroupsList(); + /** + * + * + *
+   * A flow's transition route group serve two purposes:
+   * *   They are responsible for matching the user's first utterances in the
+   * flow.
+   * *   They are inherited by every page's [transition
+   * route groups][Page.transition_route_groups]. Transition route groups
+   * defined in the page have higher priority than those defined in the flow.
+   * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+   * 
+ * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @return The count of transitionRouteGroups. + */ + int getTransitionRouteGroupsCount(); + /** + * + * + *
+   * A flow's transition route group serve two purposes:
+   * *   They are responsible for matching the user's first utterances in the
+   * flow.
+   * *   They are inherited by every page's [transition
+   * route groups][Page.transition_route_groups]. Transition route groups
+   * defined in the page have higher priority than those defined in the flow.
+   * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+   * 
+ * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The transitionRouteGroups at the given index. + */ + java.lang.String getTransitionRouteGroups(int index); + /** + * + * + *
+   * A flow's transition route group serve two purposes:
+   * *   They are responsible for matching the user's first utterances in the
+   * flow.
+   * *   They are inherited by every page's [transition
+   * route groups][Page.transition_route_groups]. Transition route groups
+   * defined in the page have higher priority than those defined in the flow.
+   * Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
+   * 
+ * + * repeated string transition_route_groups = 15 [(.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the transitionRouteGroups at the given index. + */ + com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java index a1aa60f19..bcbd58db8 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java @@ -105,95 +105,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "CED\020\003\"{\n\021ModelTrainingMode\022#\n\037MODEL_TRAI" + "NING_MODE_UNSPECIFIED\020\000\022!\n\035MODEL_TRAININ" + "G_MODE_AUTOMATIC\020\001\022\036\n\032MODEL_TRAINING_MOD" - + "E_MANUAL\020\002\"\200\003\n\004Flow\022\014\n\004name\030\001 \001(\t\022\031\n\014dis" + + "E_MANUAL\020\002\"\326\003\n\004Flow\022\014\n\004name\030\001 \001(\t\022\031\n\014dis" + "play_name\030\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(" + "\t\022I\n\021transition_routes\030\004 \003(\0132..google.cl" + "oud.dialogflow.cx.v3.TransitionRoute\022C\n\016" + "event_handlers\030\n \003(\0132+.google.cloud.dial" - + "ogflow.cx.v3.EventHandler\022@\n\014nlu_setting" - + "s\030\013 \001(\0132*.google.cloud.dialogflow.cx.v3." - + "NluSettings:h\352Ae\n\036dialogflow.googleapis." - + "com/Flow\022Cprojects/{project}/locations/{" - + "location}/agents/{agent}/flows/{flow}\"\232\001" - + "\n\021CreateFlowRequest\0226\n\006parent\030\001 \001(\tB&\340A\002" - + "\372A \022\036dialogflow.googleapis.com/Flow\0226\n\004f" - + "low\030\002 \001(\0132#.google.cloud.dialogflow.cx.v" - + "3.FlowB\003\340A\002\022\025\n\rlanguage_code\030\003 \001(\t\"X\n\021De" - + "leteFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036d" - + "ialogflow.googleapis.com/Flow\022\r\n\005force\030\002" - + " \001(\010\"\210\001\n\020ListFlowsRequest\0226\n\006parent\030\001 \001(" - + "\tB&\340A\002\372A \022\036dialogflow.googleapis.com/Flo" - + "w\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" - + "\022\025\n\rlanguage_code\030\004 \001(\t\"`\n\021ListFlowsResp" - + "onse\0222\n\005flows\030\001 \003(\0132#.google.cloud.dialo" - + "gflow.cx.v3.Flow\022\027\n\017next_page_token\030\002 \001(" - + "\t\"]\n\016GetFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A" - + " \n\036dialogflow.googleapis.com/Flow\022\025\n\rlan" - + "guage_code\030\002 \001(\t\"\230\001\n\021UpdateFlowRequest\0226" - + "\n\004flow\030\001 \001(\0132#.google.cloud.dialogflow.c" - + "x.v3.FlowB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\022\025\n\rlanguage" - + "_code\030\003 \001(\t\"H\n\020TrainFlowRequest\0224\n\004name\030" - + "\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapis.com" - + "/Flow\"b\n\023ValidateFlowRequest\0224\n\004name\030\001 \001" - + "(\tB&\340A\002\372A \n\036dialogflow.googleapis.com/Fl" - + "ow\022\025\n\rlanguage_code\030\002 \001(\t\"}\n\036GetFlowVali" - + "dationResultRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A" - + "0\n.dialogflow.googleapis.com/FlowValidat" - + "ionResult\022\025\n\rlanguage_code\030\002 \001(\t\"\261\002\n\024Flo" - + "wValidationResult\022\014\n\004name\030\001 \001(\t\022M\n\023valid" - + "ation_messages\030\002 \003(\01320.google.cloud.dial" - + "ogflow.cx.v3.ValidationMessage\022/\n\013update" - + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp:" - + "\212\001\352A\206\001\n.dialogflow.googleapis.com/FlowVa" - + "lidationResult\022Tprojects/{project}/locat" + + "ogflow.cx.v3.EventHandler\022T\n\027transition_" + + "route_groups\030\017 \003(\tB3\372A0\n.dialogflow.goog" + + "leapis.com/TransitionRouteGroup\022@\n\014nlu_s" + + "ettings\030\013 \001(\0132*.google.cloud.dialogflow." + + "cx.v3.NluSettings:h\352Ae\n\036dialogflow.googl" + + "eapis.com/Flow\022Cprojects/{project}/locat" + "ions/{location}/agents/{agent}/flows/{fl" - + "ow}/validationResult2\356\014\n\005Flows\022\263\001\n\nCreat" - + "eFlow\0220.google.cloud.dialogflow.cx.v3.Cr" - + "eateFlowRequest\032#.google.cloud.dialogflo" - + "w.cx.v3.Flow\"N\202\323\344\223\002:\"2/v3/{parent=projec" - + "ts/*/locations/*/agents/*}/flows:\004flow\332A" - + "\013parent,flow\022\231\001\n\nDeleteFlow\0220.google.clo" - + "ud.dialogflow.cx.v3.DeleteFlowRequest\032\026." - + "google.protobuf.Empty\"A\202\323\344\223\0024*2/v3/{name" - + "=projects/*/locations/*/agents/*/flows/*" - + "}\332A\004name\022\263\001\n\tListFlows\022/.google.cloud.di" - + "alogflow.cx.v3.ListFlowsRequest\0320.google" - + ".cloud.dialogflow.cx.v3.ListFlowsRespons" - + "e\"C\202\323\344\223\0024\0222/v3/{parent=projects/*/locati" - + "ons/*/agents/*}/flows\332A\006parent\022\240\001\n\007GetFl" - + "ow\022-.google.cloud.dialogflow.cx.v3.GetFl" - + "owRequest\032#.google.cloud.dialogflow.cx.v" - + "3.Flow\"A\202\323\344\223\0024\0222/v3/{name=projects/*/loc" - + "ations/*/agents/*/flows/*}\332A\004name\022\275\001\n\nUp" - + "dateFlow\0220.google.cloud.dialogflow.cx.v3" - + ".UpdateFlowRequest\032#.google.cloud.dialog" - + "flow.cx.v3.Flow\"X\202\323\344\223\002?27/v3/{flow.name=" - + "projects/*/locations/*/agents/*/flows/*}" - + ":\004flow\332A\020flow,update_mask\022\331\001\n\tTrainFlow\022" - + "/.google.cloud.dialogflow.cx.v3.TrainFlo" - + "wRequest\032\035.google.longrunning.Operation\"" - + "|\202\323\344\223\002=\"8/v3/{name=projects/*/locations/" - + "*/agents/*/flows/*}:train:\001*\332A\004name\312A/\n\025" - + "google.protobuf.Empty\022\026google.protobuf.S" - + "truct\022\277\001\n\014ValidateFlow\0222.google.cloud.di" - + "alogflow.cx.v3.ValidateFlowRequest\0323.goo" - + "gle.cloud.dialogflow.cx.v3.FlowValidatio" - + "nResult\"F\202\323\344\223\002@\";/v3/{name=projects/*/lo" - + "cations/*/agents/*/flows/*}:validate:\001*\022" - + "\341\001\n\027GetFlowValidationResult\022=.google.clo" - + "ud.dialogflow.cx.v3.GetFlowValidationRes" - + "ultRequest\0323.google.cloud.dialogflow.cx." - + "v3.FlowValidationResult\"R\202\323\344\223\002E\022C/v3/{na" - + "me=projects/*/locations/*/agents/*/flows" - + "/*/validationResult}\332A\004name\032x\312A\031dialogfl" - + "ow.googleapis.com\322AYhttps://www.googleap" - + "is.com/auth/cloud-platform,https://www.g" - + "oogleapis.com/auth/dialogflowB\231\001\n!com.go" - + "ogle.cloud.dialogflow.cx.v3B\tFlowProtoP\001" - + "Z?google.golang.org/genproto/googleapis/" - + "cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Goog" - + "le.Cloud.Dialogflow.Cx.V3b\006proto3" + + "ow}\"\232\001\n\021CreateFlowRequest\0226\n\006parent\030\001 \001(" + + "\tB&\340A\002\372A \022\036dialogflow.googleapis.com/Flo" + + "w\0226\n\004flow\030\002 \001(\0132#.google.cloud.dialogflo" + + "w.cx.v3.FlowB\003\340A\002\022\025\n\rlanguage_code\030\003 \001(\t" + + "\"X\n\021DeleteFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002" + + "\372A \n\036dialogflow.googleapis.com/Flow\022\r\n\005f" + + "orce\030\002 \001(\010\"\210\001\n\020ListFlowsRequest\0226\n\006paren" + + "t\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.googleapis.c" + + "om/Flow\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\022\025\n\rlanguage_code\030\004 \001(\t\"`\n\021ListFlo" + + "wsResponse\0222\n\005flows\030\001 \003(\0132#.google.cloud" + + ".dialogflow.cx.v3.Flow\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"]\n\016GetFlowRequest\0224\n\004name\030\001 \001(\tB" + + "&\340A\002\372A \n\036dialogflow.googleapis.com/Flow\022" + + "\025\n\rlanguage_code\030\002 \001(\t\"\230\001\n\021UpdateFlowReq" + + "uest\0226\n\004flow\030\001 \001(\0132#.google.cloud.dialog" + + "flow.cx.v3.FlowB\003\340A\002\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\025\n\rla" + + "nguage_code\030\003 \001(\t\"H\n\020TrainFlowRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleap" + + "is.com/Flow\"b\n\023ValidateFlowRequest\0224\n\004na" + + "me\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapis." + + "com/Flow\022\025\n\rlanguage_code\030\002 \001(\t\"}\n\036GetFl" + + "owValidationResultRequest\022D\n\004name\030\001 \001(\tB" + + "6\340A\002\372A0\n.dialogflow.googleapis.com/FlowV" + + "alidationResult\022\025\n\rlanguage_code\030\002 \001(\t\"\261" + + "\002\n\024FlowValidationResult\022\014\n\004name\030\001 \001(\t\022M\n" + + "\023validation_messages\030\002 \003(\01320.google.clou" + + "d.dialogflow.cx.v3.ValidationMessage\022/\n\013" + + "update_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stamp:\212\001\352A\206\001\n.dialogflow.googleapis.com/" + + "FlowValidationResult\022Tprojects/{project}" + + "/locations/{location}/agents/{agent}/flo" + + "ws/{flow}/validationResult2\356\014\n\005Flows\022\263\001\n" + + "\nCreateFlow\0220.google.cloud.dialogflow.cx" + + ".v3.CreateFlowRequest\032#.google.cloud.dia" + + "logflow.cx.v3.Flow\"N\202\323\344\223\002:\"2/v3/{parent=" + + "projects/*/locations/*/agents/*}/flows:\004" + + "flow\332A\013parent,flow\022\231\001\n\nDeleteFlow\0220.goog" + + "le.cloud.dialogflow.cx.v3.DeleteFlowRequ" + + "est\032\026.google.protobuf.Empty\"A\202\323\344\223\0024*2/v3" + + "/{name=projects/*/locations/*/agents/*/f" + + "lows/*}\332A\004name\022\263\001\n\tListFlows\022/.google.cl" + + "oud.dialogflow.cx.v3.ListFlowsRequest\0320." + + "google.cloud.dialogflow.cx.v3.ListFlowsR" + + "esponse\"C\202\323\344\223\0024\0222/v3/{parent=projects/*/" + + "locations/*/agents/*}/flows\332A\006parent\022\240\001\n" + + "\007GetFlow\022-.google.cloud.dialogflow.cx.v3" + + ".GetFlowRequest\032#.google.cloud.dialogflo" + + "w.cx.v3.Flow\"A\202\323\344\223\0024\0222/v3/{name=projects" + + "/*/locations/*/agents/*/flows/*}\332A\004name\022" + + "\275\001\n\nUpdateFlow\0220.google.cloud.dialogflow" + + ".cx.v3.UpdateFlowRequest\032#.google.cloud." + + "dialogflow.cx.v3.Flow\"X\202\323\344\223\002?27/v3/{flow" + + ".name=projects/*/locations/*/agents/*/fl" + + "ows/*}:\004flow\332A\020flow,update_mask\022\331\001\n\tTrai" + + "nFlow\022/.google.cloud.dialogflow.cx.v3.Tr" + + "ainFlowRequest\032\035.google.longrunning.Oper" + + "ation\"|\202\323\344\223\002=\"8/v3/{name=projects/*/loca" + + "tions/*/agents/*/flows/*}:train:\001*\332A\004nam" + + "e\312A/\n\025google.protobuf.Empty\022\026google.prot" + + "obuf.Struct\022\277\001\n\014ValidateFlow\0222.google.cl" + + "oud.dialogflow.cx.v3.ValidateFlowRequest" + + "\0323.google.cloud.dialogflow.cx.v3.FlowVal" + + "idationResult\"F\202\323\344\223\002@\";/v3/{name=project" + + "s/*/locations/*/agents/*/flows/*}:valida" + + "te:\001*\022\341\001\n\027GetFlowValidationResult\022=.goog" + + "le.cloud.dialogflow.cx.v3.GetFlowValidat" + + "ionResultRequest\0323.google.cloud.dialogfl" + + "ow.cx.v3.FlowValidationResult\"R\202\323\344\223\002E\022C/" + + "v3/{name=projects/*/locations/*/agents/*" + + "/flows/*/validationResult}\332A\004name\032x\312A\031di" + + "alogflow.googleapis.com\322AYhttps://www.go" + + "ogleapis.com/auth/cloud-platform,https:/" + + "/www.googleapis.com/auth/dialogflowB\231\001\n!" + + "com.google.cloud.dialogflow.cx.v3B\tFlowP" + + "rotoP\001Z?google.golang.org/genproto/googl" + + "eapis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252" + + "\002\035Google.Cloud.Dialogflow.Cx.V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -229,6 +231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "TransitionRoutes", "EventHandlers", + "TransitionRouteGroups", "NluSettings", }); internal_static_google_cloud_dialogflow_cx_v3_CreateFlowRequest_descriptor = diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java index e24505e05..905f5d549 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java @@ -4300,7 +4300,7 @@ public int getLabelsCount() { * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -4313,7 +4313,7 @@ public int getLabelsCount() {
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -4332,7 +4332,7 @@ public java.util.Map getLabels() { * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -4345,7 +4345,7 @@ public java.util.Map getLabels() {
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -4355,7 +4355,7 @@ public java.util.Map getLabelsMap() { * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -4368,7 +4368,7 @@ public java.util.Map getLabelsMap() {
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { @@ -4382,7 +4382,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -4395,7 +4395,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -4415,11 +4415,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
-   * Optional. Human readable description for better understanding an intent like its
+   * Human readable description for better understanding an intent like its
    * scope, content, result etc. Maximum character limit: 140 characters.
    * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @return The description. */ @@ -4439,11 +4439,11 @@ public java.lang.String getDescription() { * * *
-   * Optional. Human readable description for better understanding an intent like its
+   * Human readable description for better understanding an intent like its
    * scope, content, result etc. Maximum character limit: 140 characters.
    * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @return The bytes for description. */ @@ -6153,7 +6153,7 @@ public int getLabelsCount() { * * *
-     * Optional. The key/value metadata to label an intent. Labels can contain
+     * The key/value metadata to label an intent. Labels can contain
      * lowercase letters, digits and the symbols '-' and '_'. International
      * characters are allowed, including letters from unicase alphabets. Keys must
      * start with a letter. Keys and values can be no longer than 63 characters
@@ -6166,7 +6166,7 @@ public int getLabelsCount() {
      * head intent. "sys.contextual" means the intent is a contextual intent.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -6185,7 +6185,7 @@ public java.util.Map getLabels() { * * *
-     * Optional. The key/value metadata to label an intent. Labels can contain
+     * The key/value metadata to label an intent. Labels can contain
      * lowercase letters, digits and the symbols '-' and '_'. International
      * characters are allowed, including letters from unicase alphabets. Keys must
      * start with a letter. Keys and values can be no longer than 63 characters
@@ -6198,7 +6198,7 @@ public java.util.Map getLabels() {
      * head intent. "sys.contextual" means the intent is a contextual intent.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -6208,7 +6208,7 @@ public java.util.Map getLabelsMap() { * * *
-     * Optional. The key/value metadata to label an intent. Labels can contain
+     * The key/value metadata to label an intent. Labels can contain
      * lowercase letters, digits and the symbols '-' and '_'. International
      * characters are allowed, including letters from unicase alphabets. Keys must
      * start with a letter. Keys and values can be no longer than 63 characters
@@ -6221,7 +6221,7 @@ public java.util.Map getLabelsMap() {
      * head intent. "sys.contextual" means the intent is a contextual intent.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrDefault( @@ -6236,7 +6236,7 @@ public java.lang.String getLabelsOrDefault( * * *
-     * Optional. The key/value metadata to label an intent. Labels can contain
+     * The key/value metadata to label an intent. Labels can contain
      * lowercase letters, digits and the symbols '-' and '_'. International
      * characters are allowed, including letters from unicase alphabets. Keys must
      * start with a letter. Keys and values can be no longer than 63 characters
@@ -6249,7 +6249,7 @@ public java.lang.String getLabelsOrDefault(
      * head intent. "sys.contextual" means the intent is a contextual intent.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -6271,7 +6271,7 @@ public Builder clearLabels() { * * *
-     * Optional. The key/value metadata to label an intent. Labels can contain
+     * The key/value metadata to label an intent. Labels can contain
      * lowercase letters, digits and the symbols '-' and '_'. International
      * characters are allowed, including letters from unicase alphabets. Keys must
      * start with a letter. Keys and values can be no longer than 63 characters
@@ -6284,7 +6284,7 @@ public Builder clearLabels() {
      * head intent. "sys.contextual" means the intent is a contextual intent.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -6302,7 +6302,7 @@ public java.util.Map getMutableLabels() { * * *
-     * Optional. The key/value metadata to label an intent. Labels can contain
+     * The key/value metadata to label an intent. Labels can contain
      * lowercase letters, digits and the symbols '-' and '_'. International
      * characters are allowed, including letters from unicase alphabets. Keys must
      * start with a letter. Keys and values can be no longer than 63 characters
@@ -6315,7 +6315,7 @@ public java.util.Map getMutableLabels() {
      * head intent. "sys.contextual" means the intent is a contextual intent.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -6331,7 +6331,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * Optional. The key/value metadata to label an intent. Labels can contain
+     * The key/value metadata to label an intent. Labels can contain
      * lowercase letters, digits and the symbols '-' and '_'. International
      * characters are allowed, including letters from unicase alphabets. Keys must
      * start with a letter. Keys and values can be no longer than 63 characters
@@ -6344,7 +6344,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      * head intent. "sys.contextual" means the intent is a contextual intent.
      * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -6356,11 +6356,11 @@ public Builder putAllLabels(java.util.Map va * * *
-     * Optional. Human readable description for better understanding an intent like its
+     * Human readable description for better understanding an intent like its
      * scope, content, result etc. Maximum character limit: 140 characters.
      * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @return The description. */ @@ -6379,11 +6379,11 @@ public java.lang.String getDescription() { * * *
-     * Optional. Human readable description for better understanding an intent like its
+     * Human readable description for better understanding an intent like its
      * scope, content, result etc. Maximum character limit: 140 characters.
      * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @return The bytes for description. */ @@ -6402,11 +6402,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Optional. Human readable description for better understanding an intent like its
+     * Human readable description for better understanding an intent like its
      * scope, content, result etc. Maximum character limit: 140 characters.
      * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @param value The description to set. * @return This builder for chaining. @@ -6424,11 +6424,11 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Optional. Human readable description for better understanding an intent like its
+     * Human readable description for better understanding an intent like its
      * scope, content, result etc. Maximum character limit: 140 characters.
      * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @return This builder for chaining. */ @@ -6442,11 +6442,11 @@ public Builder clearDescription() { * * *
-     * Optional. Human readable description for better understanding an intent like its
+     * Human readable description for better understanding an intent like its
      * scope, content, result etc. Maximum character limit: 140 characters.
      * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @param value The bytes for description to set. * @return This builder for chaining. diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java index d0753e8f6..e588e0545 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java @@ -237,7 +237,7 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -250,14 +250,14 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ int getLabelsCount(); /** * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -270,7 +270,7 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -280,7 +280,7 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -293,14 +293,14 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ java.util.Map getLabelsMap(); /** * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -313,14 +313,14 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
-   * Optional. The key/value metadata to label an intent. Labels can contain
+   * The key/value metadata to label an intent. Labels can contain
    * lowercase letters, digits and the symbols '-' and '_'. International
    * characters are allowed, including letters from unicase alphabets. Keys must
    * start with a letter. Keys and values can be no longer than 63 characters
@@ -333,7 +333,7 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra
    * head intent. "sys.contextual" means the intent is a contextual intent.
    * 
* - * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> labels = 7; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -341,11 +341,11 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra * * *
-   * Optional. Human readable description for better understanding an intent like its
+   * Human readable description for better understanding an intent like its
    * scope, content, result etc. Maximum character limit: 140 characters.
    * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @return The description. */ @@ -354,11 +354,11 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra * * *
-   * Optional. Human readable description for better understanding an intent like its
+   * Human readable description for better understanding an intent like its
    * scope, content, result etc. Maximum character limit: 140 characters.
    * 
* - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * string description = 8; * * @return The bytes for description. */ diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java index 9e84bc559..e68bd9190 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java @@ -86,80 +86,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ient.proto\032\037google/api/field_behavior.pr" + "oto\032\031google/api/resource.proto\032\033google/p" + "rotobuf/empty.proto\032 google/protobuf/fie" - + "ld_mask.proto\"\246\006\n\006Intent\022\014\n\004name\030\001 \001(\t\022\031" + + "ld_mask.proto\"\234\006\n\006Intent\022\014\n\004name\030\001 \001(\t\022\031" + "\n\014display_name\030\002 \001(\tB\003\340A\002\022N\n\020training_ph" + "rases\030\003 \003(\01324.google.cloud.dialogflow.cx" + ".v3.Intent.TrainingPhrase\022C\n\nparameters\030" + "\004 \003(\0132/.google.cloud.dialogflow.cx.v3.In" + "tent.Parameter\022\020\n\010priority\030\005 \001(\005\022\023\n\013is_f" - + "allback\030\006 \001(\010\022F\n\006labels\030\007 \003(\01321.google.c" + + "allback\030\006 \001(\010\022A\n\006labels\030\007 \003(\01321.google.c" + "loud.dialogflow.cx.v3.Intent.LabelsEntry" - + "B\003\340A\001\022\030\n\013description\030\010 \001(\tB\003\340A\001\032\262\001\n\016Trai" - + "ningPhrase\022\n\n\002id\030\001 \001(\t\022M\n\005parts\030\002 \003(\01329." - + "google.cloud.dialogflow.cx.v3.Intent.Tra" - + "iningPhrase.PartB\003\340A\002\022\024\n\014repeat_count\030\003 " - + "\001(\005\032/\n\004Part\022\021\n\004text\030\001 \001(\tB\003\340A\002\022\024\n\014parame" - + "ter_id\030\002 \001(\t\032\200\001\n\tParameter\022\017\n\002id\030\001 \001(\tB\003" - + "\340A\002\022A\n\013entity_type\030\002 \001(\tB,\340A\002\372A&\n$dialog" - + "flow.googleapis.com/EntityType\022\017\n\007is_lis" - + "t\030\003 \001(\010\022\016\n\006redact\030\004 \001(\010\032-\n\013LabelsEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:n\352Ak\n dia" - + "logflow.googleapis.com/Intent\022Gprojects/" - + "{project}/locations/{location}/agents/{a" - + "gent}/intents/{intent}\"\314\001\n\022ListIntentsRe" - + "quest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 dialogflo" - + "w.googleapis.com/Intent\022\025\n\rlanguage_code" - + "\030\002 \001(\t\022>\n\013intent_view\030\005 \001(\0162).google.clo" - + "ud.dialogflow.cx.v3.IntentView\022\021\n\tpage_s" - + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"f\n\023ListInt" - + "entsResponse\0226\n\007intents\030\001 \003(\0132%.google.c" - + "loud.dialogflow.cx.v3.Intent\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"a\n\020GetIntentRequest\0226\n\004nam" - + "e\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.googleapis.c" - + "om/Intent\022\025\n\rlanguage_code\030\002 \001(\t\"\242\001\n\023Cre" - + "ateIntentRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"" - + "\022 dialogflow.googleapis.com/Intent\022:\n\006in" - + "tent\030\002 \001(\0132%.google.cloud.dialogflow.cx." - + "v3.IntentB\003\340A\002\022\025\n\rlanguage_code\030\003 \001(\t\"\231\001" - + "\n\023UpdateIntentRequest\022:\n\006intent\030\001 \001(\0132%." - + "google.cloud.dialogflow.cx.v3.IntentB\003\340A" - + "\002\022\025\n\rlanguage_code\030\002 \001(\t\022/\n\013update_mask\030" - + "\003 \001(\0132\032.google.protobuf.FieldMask\"M\n\023Del" - + "eteIntentRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n " - + "dialogflow.googleapis.com/Intent*X\n\nInte" - + "ntView\022\033\n\027INTENT_VIEW_UNSPECIFIED\020\000\022\027\n\023I" - + "NTENT_VIEW_PARTIAL\020\001\022\024\n\020INTENT_VIEW_FULL" - + "\020\0022\236\010\n\007Intents\022\273\001\n\013ListIntents\0221.google." - + "cloud.dialogflow.cx.v3.ListIntentsReques" - + "t\0322.google.cloud.dialogflow.cx.v3.ListIn" - + "tentsResponse\"E\202\323\344\223\0026\0224/v3/{parent=proje" - + "cts/*/locations/*/agents/*}/intents\332A\006pa" - + "rent\022\250\001\n\tGetIntent\022/.google.cloud.dialog" - + "flow.cx.v3.GetIntentRequest\032%.google.clo" - + "ud.dialogflow.cx.v3.Intent\"C\202\323\344\223\0026\0224/v3/" - + "{name=projects/*/locations/*/agents/*/in" - + "tents/*}\332A\004name\022\277\001\n\014CreateIntent\0222.googl" - + "e.cloud.dialogflow.cx.v3.CreateIntentReq" - + "uest\032%.google.cloud.dialogflow.cx.v3.Int" - + "ent\"T\202\323\344\223\002>\"4/v3/{parent=projects/*/loca" - + "tions/*/agents/*}/intents:\006intent\332A\rpare" - + "nt,intent\022\313\001\n\014UpdateIntent\0222.google.clou" - + "d.dialogflow.cx.v3.UpdateIntentRequest\032%" - + ".google.cloud.dialogflow.cx.v3.Intent\"`\202" - + "\323\344\223\002E2;/v3/{intent.name=projects/*/locat" - + "ions/*/agents/*/intents/*}:\006intent\332A\022int" - + "ent,update_mask\022\237\001\n\014DeleteIntent\0222.googl" - + "e.cloud.dialogflow.cx.v3.DeleteIntentReq" - + "uest\032\026.google.protobuf.Empty\"C\202\323\344\223\0026*4/v" - + "3/{name=projects/*/locations/*/agents/*/" - + "intents/*}\332A\004name\032x\312A\031dialogflow.googlea" - + "pis.com\322AYhttps://www.googleapis.com/aut" - + "h/cloud-platform,https://www.googleapis." - + "com/auth/dialogflowB\233\001\n!com.google.cloud" - + ".dialogflow.cx.v3B\013IntentProtoP\001Z?google" - + ".golang.org/genproto/googleapis/cloud/di" - + "alogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud" - + ".Dialogflow.Cx.V3b\006proto3" + + "\022\023\n\013description\030\010 \001(\t\032\262\001\n\016TrainingPhrase" + + "\022\n\n\002id\030\001 \001(\t\022M\n\005parts\030\002 \003(\01329.google.clo" + + "ud.dialogflow.cx.v3.Intent.TrainingPhras" + + "e.PartB\003\340A\002\022\024\n\014repeat_count\030\003 \001(\005\032/\n\004Par" + + "t\022\021\n\004text\030\001 \001(\tB\003\340A\002\022\024\n\014parameter_id\030\002 \001" + + "(\t\032\200\001\n\tParameter\022\017\n\002id\030\001 \001(\tB\003\340A\002\022A\n\013ent" + + "ity_type\030\002 \001(\tB,\340A\002\372A&\n$dialogflow.googl" + + "eapis.com/EntityType\022\017\n\007is_list\030\003 \001(\010\022\016\n" + + "\006redact\030\004 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001:n\352Ak\n dialogflow.go" + + "ogleapis.com/Intent\022Gprojects/{project}/" + + "locations/{location}/agents/{agent}/inte" + + "nts/{intent}\"\314\001\n\022ListIntentsRequest\0228\n\006p" + + "arent\030\001 \001(\tB(\340A\002\372A\"\022 dialogflow.googleap" + + "is.com/Intent\022\025\n\rlanguage_code\030\002 \001(\t\022>\n\013" + + "intent_view\030\005 \001(\0162).google.cloud.dialogf" + + "low.cx.v3.IntentView\022\021\n\tpage_size\030\003 \001(\005\022" + + "\022\n\npage_token\030\004 \001(\t\"f\n\023ListIntentsRespon" + + "se\0226\n\007intents\030\001 \003(\0132%.google.cloud.dialo" + + "gflow.cx.v3.Intent\022\027\n\017next_page_token\030\002 " + + "\001(\t\"a\n\020GetIntentRequest\0226\n\004name\030\001 \001(\tB(\340" + + "A\002\372A\"\n dialogflow.googleapis.com/Intent\022" + + "\025\n\rlanguage_code\030\002 \001(\t\"\242\001\n\023CreateIntentR" + + "equest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 dialogfl" + + "ow.googleapis.com/Intent\022:\n\006intent\030\002 \001(\013" + + "2%.google.cloud.dialogflow.cx.v3.IntentB" + + "\003\340A\002\022\025\n\rlanguage_code\030\003 \001(\t\"\231\001\n\023UpdateIn" + + "tentRequest\022:\n\006intent\030\001 \001(\0132%.google.clo" + + "ud.dialogflow.cx.v3.IntentB\003\340A\002\022\025\n\rlangu" + + "age_code\030\002 \001(\t\022/\n\013update_mask\030\003 \001(\0132\032.go" + + "ogle.protobuf.FieldMask\"M\n\023DeleteIntentR" + + "equest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dialogflow" + + ".googleapis.com/Intent*X\n\nIntentView\022\033\n\027" + + "INTENT_VIEW_UNSPECIFIED\020\000\022\027\n\023INTENT_VIEW" + + "_PARTIAL\020\001\022\024\n\020INTENT_VIEW_FULL\020\0022\236\010\n\007Int" + + "ents\022\273\001\n\013ListIntents\0221.google.cloud.dial" + + "ogflow.cx.v3.ListIntentsRequest\0322.google" + + ".cloud.dialogflow.cx.v3.ListIntentsRespo" + + "nse\"E\202\323\344\223\0026\0224/v3/{parent=projects/*/loca" + + "tions/*/agents/*}/intents\332A\006parent\022\250\001\n\tG" + + "etIntent\022/.google.cloud.dialogflow.cx.v3" + + ".GetIntentRequest\032%.google.cloud.dialogf" + + "low.cx.v3.Intent\"C\202\323\344\223\0026\0224/v3/{name=proj" + + "ects/*/locations/*/agents/*/intents/*}\332A" + + "\004name\022\277\001\n\014CreateIntent\0222.google.cloud.di" + + "alogflow.cx.v3.CreateIntentRequest\032%.goo" + + "gle.cloud.dialogflow.cx.v3.Intent\"T\202\323\344\223\002" + + ">\"4/v3/{parent=projects/*/locations/*/ag" + + "ents/*}/intents:\006intent\332A\rparent,intent\022" + + "\313\001\n\014UpdateIntent\0222.google.cloud.dialogfl" + + "ow.cx.v3.UpdateIntentRequest\032%.google.cl" + + "oud.dialogflow.cx.v3.Intent\"`\202\323\344\223\002E2;/v3" + + "/{intent.name=projects/*/locations/*/age" + + "nts/*/intents/*}:\006intent\332A\022intent,update" + + "_mask\022\237\001\n\014DeleteIntent\0222.google.cloud.di" + + "alogflow.cx.v3.DeleteIntentRequest\032\026.goo" + + "gle.protobuf.Empty\"C\202\323\344\223\0026*4/v3/{name=pr" + + "ojects/*/locations/*/agents/*/intents/*}" + + "\332A\004name\032x\312A\031dialogflow.googleapis.com\322AY" + + "https://www.googleapis.com/auth/cloud-pl" + + "atform,https://www.googleapis.com/auth/d" + + "ialogflowB\233\001\n!com.google.cloud.dialogflo" + + "w.cx.v3B\013IntentProtoP\001Z?google.golang.or" + + "g/genproto/googleapis/cloud/dialogflow/c" + + "x/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflo" + + "w.Cx.V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java index 165395924..cdf647298 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java @@ -40,6 +40,7 @@ private QueryParameters(com.google.protobuf.GeneratedMessageV3.Builder builde private QueryParameters() { timeZone_ = ""; sessionEntityTypes_ = java.util.Collections.emptyList(); + currentPage_ = ""; } @java.lang.Override @@ -133,6 +134,13 @@ private QueryParameters( parameters_ = subBuilder.buildPartial(); } + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + currentPage_ = s; break; } case 56: @@ -540,6 +548,73 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { return getParameters(); } + public static final int CURRENT_PAGE_FIELD_NUMBER = 6; + private volatile java.lang.Object currentPage_; + /** + * + * + *
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+   * page][QueryResult.current_page] in the session. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+   * If `current_page` is specified, the previous state of the session will be
+   * ignored by Dialogflow, including the [previous
+   * page][QueryResult.current_page] and the [previous session
+   * parameters][QueryResult.parameters].
+   * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+   * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+   * direct a session to a specific state.
+   * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @return The currentPage. + */ + @java.lang.Override + public java.lang.String getCurrentPage() { + java.lang.Object ref = currentPage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentPage_ = s; + return s; + } + } + /** + * + * + *
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+   * page][QueryResult.current_page] in the session. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+   * If `current_page` is specified, the previous state of the session will be
+   * ignored by Dialogflow, including the [previous
+   * page][QueryResult.current_page] and the [previous session
+   * parameters][QueryResult.parameters].
+   * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+   * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+   * direct a session to a specific state.
+   * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for currentPage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrentPageBytes() { + java.lang.Object ref = currentPage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentPage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DISABLE_WEBHOOK_FIELD_NUMBER = 7; private boolean disableWebhook_; /** @@ -735,6 +810,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (parameters_ != null) { output.writeMessage(5, getParameters()); } + if (!getCurrentPageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currentPage_); + } if (disableWebhook_ != false) { output.writeBool(7, disableWebhook_); } @@ -768,6 +846,9 @@ public int getSerializedSize() { if (parameters_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getParameters()); } + if (!getCurrentPageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currentPage_); + } if (disableWebhook_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, disableWebhook_); } @@ -814,6 +895,7 @@ public boolean equals(final java.lang.Object obj) { if (hasParameters()) { if (!getParameters().equals(other.getParameters())) return false; } + if (!getCurrentPage().equals(other.getCurrentPage())) return false; if (getDisableWebhook() != other.getDisableWebhook()) return false; if (getAnalyzeQueryTextSentiment() != other.getAnalyzeQueryTextSentiment()) return false; if (!internalGetWebhookHeaders().equals(other.internalGetWebhookHeaders())) return false; @@ -846,6 +928,8 @@ public int hashCode() { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParameters().hashCode(); } + hash = (37 * hash) + CURRENT_PAGE_FIELD_NUMBER; + hash = (53 * hash) + getCurrentPage().hashCode(); hash = (37 * hash) + DISABLE_WEBHOOK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableWebhook()); hash = (37 * hash) + ANALYZE_QUERY_TEXT_SENTIMENT_FIELD_NUMBER; @@ -1047,6 +1131,8 @@ public Builder clear() { parameters_ = null; parametersBuilder_ = null; } + currentPage_ = ""; + disableWebhook_ = false; analyzeQueryTextSentiment_ = false; @@ -1105,6 +1191,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryParameters buildPartial() { } else { result.parameters_ = parametersBuilder_.build(); } + result.currentPage_ = currentPage_; result.disableWebhook_ = disableWebhook_; result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_; result.webhookHeaders_ = internalGetWebhookHeaders(); @@ -1199,6 +1286,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other if (other.hasParameters()) { mergeParameters(other.getParameters()); } + if (!other.getCurrentPage().isEmpty()) { + currentPage_ = other.currentPage_; + onChanged(); + } if (other.getDisableWebhook() != false) { setDisableWebhook(other.getDisableWebhook()); } @@ -2463,6 +2554,157 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { return parametersBuilder_; } + private java.lang.Object currentPage_ = ""; + /** + * + * + *
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+     * page][QueryResult.current_page] in the session. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * If `current_page` is specified, the previous state of the session will be
+     * ignored by Dialogflow, including the [previous
+     * page][QueryResult.current_page] and the [previous session
+     * parameters][QueryResult.parameters].
+     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+     * direct a session to a specific state.
+     * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @return The currentPage. + */ + public java.lang.String getCurrentPage() { + java.lang.Object ref = currentPage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentPage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+     * page][QueryResult.current_page] in the session. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * If `current_page` is specified, the previous state of the session will be
+     * ignored by Dialogflow, including the [previous
+     * page][QueryResult.current_page] and the [previous session
+     * parameters][QueryResult.parameters].
+     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+     * direct a session to a specific state.
+     * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for currentPage. + */ + public com.google.protobuf.ByteString getCurrentPageBytes() { + java.lang.Object ref = currentPage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentPage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+     * page][QueryResult.current_page] in the session. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * If `current_page` is specified, the previous state of the session will be
+     * ignored by Dialogflow, including the [previous
+     * page][QueryResult.current_page] and the [previous session
+     * parameters][QueryResult.parameters].
+     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+     * direct a session to a specific state.
+     * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @param value The currentPage to set. + * @return This builder for chaining. + */ + public Builder setCurrentPage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + currentPage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+     * page][QueryResult.current_page] in the session. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * If `current_page` is specified, the previous state of the session will be
+     * ignored by Dialogflow, including the [previous
+     * page][QueryResult.current_page] and the [previous session
+     * parameters][QueryResult.parameters].
+     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+     * direct a session to a specific state.
+     * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCurrentPage() { + + currentPage_ = getDefaultInstance().getCurrentPage(); + onChanged(); + return this; + } + /** + * + * + *
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+     * page][QueryResult.current_page] in the session. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+     * If `current_page` is specified, the previous state of the session will be
+     * ignored by Dialogflow, including the [previous
+     * page][QueryResult.current_page] and the [previous session
+     * parameters][QueryResult.parameters].
+     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+     * direct a session to a specific state.
+     * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for currentPage to set. + * @return This builder for chaining. + */ + public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + currentPage_ = value; + onChanged(); + return this; + } + private boolean disableWebhook_; /** * diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java index bb027f3da..7c8f54f8a 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java @@ -278,6 +278,49 @@ com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTyp */ com.google.protobuf.StructOrBuilder getParametersOrBuilder(); + /** + * + * + *
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+   * page][QueryResult.current_page] in the session. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+   * If `current_page` is specified, the previous state of the session will be
+   * ignored by Dialogflow, including the [previous
+   * page][QueryResult.current_page] and the [previous session
+   * parameters][QueryResult.parameters].
+   * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+   * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+   * direct a session to a specific state.
+   * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @return The currentPage. + */ + java.lang.String getCurrentPage(); + /** + * + * + *
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
+   * page][QueryResult.current_page] in the session. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
+   * If `current_page` is specified, the previous state of the session will be
+   * ignored by Dialogflow, including the [previous
+   * page][QueryResult.current_page] and the [previous session
+   * parameters][QueryResult.parameters].
+   * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
+   * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
+   * direct a session to a specific state.
+   * 
+ * + * string current_page = 6 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for currentPage. + */ + com.google.protobuf.ByteString getCurrentPageBytes(); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java index 632f5c840..1d042f220 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java @@ -167,128 +167,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ch_end_offset\030\010 \001(\0132\031.google.protobuf.Du" + "ration\"X\n\013MessageType\022\034\n\030MESSAGE_TYPE_UN" + "SPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_SI" - + "NGLE_UTTERANCE\020\002\"\311\003\n\017QueryParameters\022\021\n\t" + + "NGLE_UTTERANCE\020\002\"\204\004\n\017QueryParameters\022\021\n\t" + "time_zone\030\001 \001(\t\022)\n\014geo_location\030\002 \001(\0132\023." + "google.type.LatLng\022N\n\024session_entity_typ" + "es\030\003 \003(\01320.google.cloud.dialogflow.cx.v3" + ".SessionEntityType\022(\n\007payload\030\004 \001(\0132\027.go" + "ogle.protobuf.Struct\022+\n\nparameters\030\005 \001(\013" - + "2\027.google.protobuf.Struct\022\027\n\017disable_web" - + "hook\030\007 \001(\010\022$\n\034analyze_query_text_sentime" - + "nt\030\010 \001(\010\022[\n\017webhook_headers\030\n \003(\0132B.goog" - + "le.cloud.dialogflow.cx.v3.QueryParameter" - + "s.WebhookHeadersEntry\0325\n\023WebhookHeadersE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\333\002\n" - + "\nQueryInput\0228\n\004text\030\002 \001(\0132(.google.cloud" - + ".dialogflow.cx.v3.TextInputH\000\022<\n\006intent\030" - + "\003 \001(\0132*.google.cloud.dialogflow.cx.v3.In" - + "tentInputH\000\022:\n\005audio\030\005 \001(\0132).google.clou" - + "d.dialogflow.cx.v3.AudioInputH\000\022:\n\005event" - + "\030\006 \001(\0132).google.cloud.dialogflow.cx.v3.E" - + "ventInputH\000\0228\n\004dtmf\030\007 \001(\0132(.google.cloud" - + ".dialogflow.cx.v3.DtmfInputH\000\022\032\n\rlanguag" - + "e_code\030\004 \001(\tB\003\340A\002B\007\n\005input\"\347\005\n\013QueryResu" - + "lt\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\013 \001" - + "(\tB%\372A\"\n dialogflow.googleapis.com/Inten" - + "tH\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger_eve" - + "nt\030\016 \001(\tH\000\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\npar" - + "ameters\030\003 \001(\0132\027.google.protobuf.Struct\022I" - + "\n\021response_messages\030\004 \003(\0132..google.cloud" - + ".dialogflow.cx.v3.ResponseMessage\022,\n\020web" - + "hook_statuses\030\r \003(\0132\022.google.rpc.Status\022" - + "1\n\020webhook_payloads\030\006 \003(\0132\027.google.proto" - + "buf.Struct\0229\n\014current_page\030\007 \001(\0132#.googl" - + "e.cloud.dialogflow.cx.v3.Page\0229\n\006intent\030" - + "\010 \001(\0132%.google.cloud.dialogflow.cx.v3.In" - + "tentB\002\030\001\022\'\n\033intent_detection_confidence\030" - + "\t \001(\002B\002\030\001\0223\n\005match\030\017 \001(\0132$.google.cloud." - + "dialogflow.cx.v3.Match\0220\n\017diagnostic_inf" - + "o\030\n \001(\0132\027.google.protobuf.Struct\022Y\n\031sent" - + "iment_analysis_result\030\021 \001(\01326.google.clo" - + "ud.dialogflow.cx.v3.SentimentAnalysisRes" - + "ultB\007\n\005query\"\036\n\tTextInput\022\021\n\004text\030\001 \001(\tB" - + "\003\340A\002\"G\n\013IntentInput\0228\n\006intent\030\001 \001(\tB(\340A\002" - + "\372A\"\n dialogflow.googleapis.com/Intent\"a\n" - + "\nAudioInput\022D\n\006config\030\001 \001(\0132/.google.clo" - + "ud.dialogflow.cx.v3.InputAudioConfigB\003\340A" - + "\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005event\030" - + "\001 \001(\t\"1\n\tDtmfInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014fi" - + "nish_digit\030\002 \001(\t\"\361\002\n\005Match\0225\n\006intent\030\001 \001" - + "(\0132%.google.cloud.dialogflow.cx.v3.Inten" - + "t\022\r\n\005event\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.g" - + "oogle.protobuf.Struct\022\026\n\016resolved_input\030" - + "\003 \001(\t\022B\n\nmatch_type\030\004 \001(\0162..google.cloud" - + ".dialogflow.cx.v3.Match.MatchType\022\022\n\ncon" - + "fidence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYP" - + "E_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_IN" - + "TENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATC" - + "H\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\333\001\n\022MatchIn" - + "tentRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!di" - + "alogflow.googleapis.com/Session\022D\n\014query" - + "_params\030\002 \001(\0132..google.cloud.dialogflow." - + "cx.v3.QueryParameters\022C\n\013query_input\030\003 \001" - + "(\0132).google.cloud.dialogflow.cx.v3.Query" - + "InputB\003\340A\002\"\220\002\n\023MatchIntentResponse\022\016\n\004te" - + "xt\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%\372A\"\n" - + " dialogflow.googleapis.com/IntentH\000\022\024\n\nt" - + "ranscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 \001(\t" - + "H\000\0225\n\007matches\030\004 \003(\0132$.google.cloud.dialo" - + "gflow.cx.v3.Match\0229\n\014current_page\030\005 \001(\0132" - + "#.google.cloud.dialogflow.cx.v3.PageB\007\n\005" - + "query\"\353\001\n\024FulfillIntentRequest\022O\n\024match_" - + "intent_request\030\001 \001(\01321.google.cloud.dial" - + "ogflow.cx.v3.MatchIntentRequest\0223\n\005match" - + "\030\002 \001(\0132$.google.cloud.dialogflow.cx.v3.M" - + "atch\022M\n\023output_audio_config\030\003 \001(\01320.goog" - + "le.cloud.dialogflow.cx.v3.OutputAudioCon" - + "fig\"\323\001\n\025FulfillIntentResponse\022\023\n\013respons" - + "e_id\030\001 \001(\t\022@\n\014query_result\030\002 \001(\0132*.googl" - + "e.cloud.dialogflow.cx.v3.QueryResult\022\024\n\014" - + "output_audio\030\003 \001(\014\022M\n\023output_audio_confi" - + "g\030\004 \001(\01320.google.cloud.dialogflow.cx.v3." - + "OutputAudioConfig\";\n\027SentimentAnalysisRe" - + "sult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\304" - + "\t\n\010Sessions\022\246\002\n\014DetectIntent\0222.google.cl" - + "oud.dialogflow.cx.v3.DetectIntentRequest" - + "\0323.google.cloud.dialogflow.cx.v3.DetectI" - + "ntentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=pr" - + "ojects/*/locations/*/agents/*/sessions/*" - + "}:detectIntent:\001*ZY\"T/v3/{session=projec" - + "ts/*/locations/*/agents/*/environments/*" - + "/sessions/*}:detectIntent:\001*\022\230\001\n\025Streami" - + "ngDetectIntent\022;.google.cloud.dialogflow" - + ".cx.v3.StreamingDetectIntentRequest\032<.go" - + "ogle.cloud.dialogflow.cx.v3.StreamingDet" - + "ectIntentResponse\"\000(\0010\001\022\241\002\n\013MatchIntent\022" + + "2\027.google.protobuf.Struct\0229\n\014current_pag" + + "e\030\006 \001(\tB#\372A \n\036dialogflow.googleapis.com/" + + "Page\022\027\n\017disable_webhook\030\007 \001(\010\022$\n\034analyze" + + "_query_text_sentiment\030\010 \001(\010\022[\n\017webhook_h" + + "eaders\030\n \003(\0132B.google.cloud.dialogflow.c" + + "x.v3.QueryParameters.WebhookHeadersEntry" + + "\0325\n\023WebhookHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\333\002\n\nQueryInput\0228\n\004text\030\002" + + " \001(\0132(.google.cloud.dialogflow.cx.v3.Tex" + + "tInputH\000\022<\n\006intent\030\003 \001(\0132*.google.cloud." + + "dialogflow.cx.v3.IntentInputH\000\022:\n\005audio\030" + + "\005 \001(\0132).google.cloud.dialogflow.cx.v3.Au" + + "dioInputH\000\022:\n\005event\030\006 \001(\0132).google.cloud" + + ".dialogflow.cx.v3.EventInputH\000\0228\n\004dtmf\030\007" + + " \001(\0132(.google.cloud.dialogflow.cx.v3.Dtm" + + "fInputH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007\n\005" + + "input\"\347\005\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022?\n" + + "\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogflow.g" + + "oogleapis.com/IntentH\000\022\024\n\ntranscript\030\014 \001" + + "(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\022\025\n\rlanguag" + + "e_code\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132\027.googl" + + "e.protobuf.Struct\022I\n\021response_messages\030\004" + + " \003(\0132..google.cloud.dialogflow.cx.v3.Res" + + "ponseMessage\022,\n\020webhook_statuses\030\r \003(\0132\022" + + ".google.rpc.Status\0221\n\020webhook_payloads\030\006" + + " \003(\0132\027.google.protobuf.Struct\0229\n\014current" + + "_page\030\007 \001(\0132#.google.cloud.dialogflow.cx" + + ".v3.Page\0229\n\006intent\030\010 \001(\0132%.google.cloud." + + "dialogflow.cx.v3.IntentB\002\030\001\022\'\n\033intent_de" + + "tection_confidence\030\t \001(\002B\002\030\001\0223\n\005match\030\017 " + + "\001(\0132$.google.cloud.dialogflow.cx.v3.Matc" + + "h\0220\n\017diagnostic_info\030\n \001(\0132\027.google.prot" + + "obuf.Struct\022Y\n\031sentiment_analysis_result" + + "\030\021 \001(\01326.google.cloud.dialogflow.cx.v3.S" + + "entimentAnalysisResultB\007\n\005query\"\036\n\tTextI" + + "nput\022\021\n\004text\030\001 \001(\tB\003\340A\002\"G\n\013IntentInput\0228" + + "\n\006intent\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.googl" + + "eapis.com/Intent\"a\n\nAudioInput\022D\n\006config" + + "\030\001 \001(\0132/.google.cloud.dialogflow.cx.v3.I" + + "nputAudioConfigB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nE" + + "ventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDtmfInput\022\016\n" + + "\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002 \001(\t\"\361\002\n\005" + + "Match\0225\n\006intent\030\001 \001(\0132%.google.cloud.dia" + + "logflow.cx.v3.Intent\022\r\n\005event\030\006 \001(\t\022+\n\np" + + "arameters\030\002 \001(\0132\027.google.protobuf.Struct" + + "\022\026\n\016resolved_input\030\003 \001(\t\022B\n\nmatch_type\030\004" + + " \001(\0162..google.cloud.dialogflow.cx.v3.Mat" + + "ch.MatchType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\tMat" + + "chType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n\006IN" + + "TENT\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETER_F" + + "ILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005" + + "EVENT\020\006\"\333\001\n\022MatchIntentRequest\022:\n\007sessio" + + "n\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis.c" + + "om/Session\022D\n\014query_params\030\002 \001(\0132..googl" + + "e.cloud.dialogflow.cx.v3.QueryParameters" + + "\022C\n\013query_input\030\003 \001(\0132).google.cloud.dia" + + "logflow.cx.v3.QueryInputB\003\340A\002\"\220\002\n\023MatchI" + + "ntentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger" + + "_intent\030\002 \001(\tB%\372A\"\n dialogflow.googleapi" + + "s.com/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\r" + + "trigger_event\030\006 \001(\tH\000\0225\n\007matches\030\004 \003(\0132$" + + ".google.cloud.dialogflow.cx.v3.Match\0229\n\014" + + "current_page\030\005 \001(\0132#.google.cloud.dialog" + + "flow.cx.v3.PageB\007\n\005query\"\353\001\n\024FulfillInte" + + "ntRequest\022O\n\024match_intent_request\030\001 \001(\0132" + "1.google.cloud.dialogflow.cx.v3.MatchInt" - + "entRequest\0322.google.cloud.dialogflow.cx." - + "v3.MatchIntentResponse\"\252\001\202\323\344\223\002\243\001\"D/v3/{s" - + "ession=projects/*/locations/*/agents/*/s" - + "essions/*}:matchIntent:\001*ZX\"S/v3/{sessio" - + "n=projects/*/locations/*/agents/*/enviro" - + "nments/*/sessions/*}:matchIntent:\001*\022\325\002\n\r" - + "FulfillIntent\0223.google.cloud.dialogflow." - + "cx.v3.FulfillIntentRequest\0324.google.clou" - + "d.dialogflow.cx.v3.FulfillIntentResponse" - + "\"\330\001\202\323\344\223\002\321\001\"[/v3/{match_intent_request.se" - + "ssion=projects/*/locations/*/agents/*/se" - + "ssions/*}:fulfillIntent:\001*Zo\"j/v3/{match" - + "_intent_request.session=projects/*/locat" - + "ions/*/agents/*/environments/*/sessions/" - + "*}:fulfillIntent:\001*\032x\312A\031dialogflow.googl" - + "eapis.com\322AYhttps://www.googleapis.com/a" - + "uth/cloud-platform,https://www.googleapi" - + "s.com/auth/dialogflowB\364\002\n!com.google.clo" - + "ud.dialogflow.cx.v3B\014SessionProtoP\001Z?goo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cl" - + "oud.Dialogflow.Cx.V3\352A\324\001\n!dialogflow.goo" - + "gleapis.com/Session\022Iprojects/{project}/" - + "locations/{location}/agents/{agent}/sess" - + "ions/{session}\022dprojects/{project}/locat" - + "ions/{location}/agents/{agent}/environme" - + "nts/{environment}/sessions/{session}b\006pr" - + "oto3" + + "entRequest\0223\n\005match\030\002 \001(\0132$.google.cloud" + + ".dialogflow.cx.v3.Match\022M\n\023output_audio_" + + "config\030\003 \001(\01320.google.cloud.dialogflow.c" + + "x.v3.OutputAudioConfig\"\323\001\n\025FulfillIntent" + + "Response\022\023\n\013response_id\030\001 \001(\t\022@\n\014query_r" + + "esult\030\002 \001(\0132*.google.cloud.dialogflow.cx" + + ".v3.QueryResult\022\024\n\014output_audio\030\003 \001(\014\022M\n" + + "\023output_audio_config\030\004 \001(\01320.google.clou" + + "d.dialogflow.cx.v3.OutputAudioConfig\";\n\027" + + "SentimentAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021" + + "\n\tmagnitude\030\002 \001(\0022\304\t\n\010Sessions\022\246\002\n\014Detec" + + "tIntent\0222.google.cloud.dialogflow.cx.v3." + + "DetectIntentRequest\0323.google.cloud.dialo" + + "gflow.cx.v3.DetectIntentResponse\"\254\001\202\323\344\223\002" + + "\245\001\"E/v3/{session=projects/*/locations/*/" + + "agents/*/sessions/*}:detectIntent:\001*ZY\"T" + + "/v3/{session=projects/*/locations/*/agen" + + "ts/*/environments/*/sessions/*}:detectIn" + + "tent:\001*\022\230\001\n\025StreamingDetectIntent\022;.goog" + + "le.cloud.dialogflow.cx.v3.StreamingDetec" + + "tIntentRequest\032<.google.cloud.dialogflow" + + ".cx.v3.StreamingDetectIntentResponse\"\000(\001" + + "0\001\022\241\002\n\013MatchIntent\0221.google.cloud.dialog" + + "flow.cx.v3.MatchIntentRequest\0322.google.c" + + "loud.dialogflow.cx.v3.MatchIntentRespons" + + "e\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=projects/*/loc" + + "ations/*/agents/*/sessions/*}:matchInten" + + "t:\001*ZX\"S/v3/{session=projects/*/location" + + "s/*/agents/*/environments/*/sessions/*}:" + + "matchIntent:\001*\022\325\002\n\rFulfillIntent\0223.googl" + + "e.cloud.dialogflow.cx.v3.FulfillIntentRe" + + "quest\0324.google.cloud.dialogflow.cx.v3.Fu" + + "lfillIntentResponse\"\330\001\202\323\344\223\002\321\001\"[/v3/{matc" + + "h_intent_request.session=projects/*/loca" + + "tions/*/agents/*/sessions/*}:fulfillInte" + + "nt:\001*Zo\"j/v3/{match_intent_request.sessi" + + "on=projects/*/locations/*/agents/*/envir" + + "onments/*/sessions/*}:fulfillIntent:\001*\032x" + + "\312A\031dialogflow.googleapis.com\322AYhttps://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/dialogflow" + + "B\364\002\n!com.google.cloud.dialogflow.cx.v3B\014" + + "SessionProtoP\001Z?google.golang.org/genpro" + + "to/googleapis/cloud/dialogflow/cx/v3;cx\370" + + "\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352" + + "A\324\001\n!dialogflow.googleapis.com/Session\022I" + + "projects/{project}/locations/{location}/" + + "agents/{agent}/sessions/{session}\022dproje" + + "cts/{project}/locations/{location}/agent" + + "s/{agent}/environments/{environment}/ses" + + "sions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -366,6 +367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionEntityTypes", "Payload", "Parameters", + "CurrentPage", "DisableWebhook", "AnalyzeQueryTextSentiment", "WebhookHeaders", diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java index 68fff44a9..12d969188 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java @@ -164,109 +164,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + ".FieldMask\"^\n\024DeleteWebhookRequest\0227\n\004na" + "me\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapis." - + "com/Webhook\022\r\n\005force\030\002 \001(\010\"\323\t\n\016WebhookRe" + + "com/Webhook\022\r\n\005force\030\002 \001(\010\"\352\t\n\016WebhookRe" + "quest\022!\n\031detect_intent_response_id\030\001 \001(\t" + "\022\016\n\004text\030\n \001(\tH\000\022?\n\016trigger_intent\030\013 \001(\t" + "B%\372A\"\n dialogflow.googleapis.com/IntentH" + "\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger_event" - + "\030\016 \001(\tH\000\022W\n\020fulfillment_info\030\006 \001(\0132=.goo" - + "gle.cloud.dialogflow.cx.v3.WebhookReques" - + "t.FulfillmentInfo\022M\n\013intent_info\030\003 \001(\01328" - + ".google.cloud.dialogflow.cx.v3.WebhookRe" - + "quest.IntentInfo\022:\n\tpage_info\030\004 \001(\0132\'.go" - + "ogle.cloud.dialogflow.cx.v3.PageInfo\022@\n\014" - + "session_info\030\005 \001(\0132*.google.cloud.dialog" - + "flow.cx.v3.SessionInfo\022@\n\010messages\030\007 \003(\013" - + "2..google.cloud.dialogflow.cx.v3.Respons" - + "eMessage\022(\n\007payload\030\010 \001(\0132\027.google.proto" - + "buf.Struct\022h\n\031sentiment_analysis_result\030" - + "\t \001(\0132E.google.cloud.dialogflow.cx.v3.We" - + "bhookRequest.SentimentAnalysisResult\032\036\n\017" - + "FulfillmentInfo\022\013\n\003tag\030\001 \001(\t\032\273\003\n\nIntentI" - + "nfo\022B\n\023last_matched_intent\030\001 \001(\tB%\372A\"\n d" - + "ialogflow.googleapis.com/Intent\022\024\n\014displ" - + "ay_name\030\003 \001(\t\022\\\n\nparameters\030\002 \003(\0132H.goog" - + "le.cloud.dialogflow.cx.v3.WebhookRequest" - + ".IntentInfo.ParametersEntry\022\022\n\nconfidenc" - + "e\030\004 \001(\002\032^\n\024IntentParameterValue\022\026\n\016origi" - + "nal_value\030\001 \001(\t\022.\n\016resolved_value\030\002 \001(\0132" - + "\026.google.protobuf.Value\032\200\001\n\017ParametersEn" - + "try\022\013\n\003key\030\001 \001(\t\022\\\n\005value\030\002 \001(\0132M.google" - + ".cloud.dialogflow.cx.v3.WebhookRequest.I" - + "ntentInfo.IntentParameterValue:\0028\001\032;\n\027Se" - + "ntimentAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\t" - + "magnitude\030\002 \001(\002B\007\n\005query\"\257\005\n\017WebhookResp" - + "onse\022`\n\024fulfillment_response\030\001 \001(\0132B.goo" - + "gle.cloud.dialogflow.cx.v3.WebhookRespon" - + "se.FulfillmentResponse\022:\n\tpage_info\030\002 \001(" - + "\0132\'.google.cloud.dialogflow.cx.v3.PageIn" - + "fo\022@\n\014session_info\030\003 \001(\0132*.google.cloud." - + "dialogflow.cx.v3.SessionInfo\022(\n\007payload\030" - + "\004 \001(\0132\027.google.protobuf.Struct\022:\n\013target" - + "_page\030\005 \001(\tB#\372A \n\036dialogflow.googleapis." - + "com/PageH\000\022:\n\013target_flow\030\006 \001(\tB#\372A \n\036di" - + "alogflow.googleapis.com/FlowH\000\032\213\002\n\023Fulfi" - + "llmentResponse\022@\n\010messages\030\001 \003(\0132..googl" - + "e.cloud.dialogflow.cx.v3.ResponseMessage" - + "\022h\n\016merge_behavior\030\002 \001(\0162P.google.cloud." - + "dialogflow.cx.v3.WebhookResponse.Fulfill" - + "mentResponse.MergeBehavior\"H\n\rMergeBehav" - + "ior\022\036\n\032MERGE_BEHAVIOR_UNSPECIFIED\020\000\022\n\n\006A" - + "PPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\ntransition\"\235\004\n\010P" - + "ageInfo\0229\n\014current_page\030\001 \001(\tB#\372A \n\036dial" - + "ogflow.googleapis.com/Page\022C\n\tform_info\030" - + "\003 \001(\01320.google.cloud.dialogflow.cx.v3.Pa" - + "geInfo.FormInfo\032\220\003\n\010FormInfo\022V\n\016paramete" - + "r_info\030\002 \003(\0132>.google.cloud.dialogflow.c" - + "x.v3.PageInfo.FormInfo.ParameterInfo\032\253\002\n" - + "\rParameterInfo\022\024\n\014display_name\030\001 \001(\t\022\020\n\010" - + "required\030\002 \001(\010\022\\\n\005state\030\003 \001(\0162M.google.c" - + "loud.dialogflow.cx.v3.PageInfo.FormInfo." - + "ParameterInfo.ParameterState\022%\n\005value\030\004 " - + "\001(\0132\026.google.protobuf.Value\022\026\n\016just_coll" - + "ected\030\005 \001(\010\"U\n\016ParameterState\022\037\n\033PARAMET" - + "ER_STATE_UNSPECIFIED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INV" - + "ALID\020\002\022\n\n\006FILLED\020\003\"\341\001\n\013SessionInfo\0227\n\007se" - + "ssion\030\001 \001(\tB&\372A#\n!dialogflow.googleapis." - + "com/Session\022N\n\nparameters\030\002 \003(\0132:.google" - + ".cloud.dialogflow.cx.v3.SessionInfo.Para" - + "metersEntry\032I\n\017ParametersEntry\022\013\n\003key\030\001 " - + "\001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Val" - + "ue:\0028\0012\267\010\n\010Webhooks\022\277\001\n\014ListWebhooks\0222.g" - + "oogle.cloud.dialogflow.cx.v3.ListWebhook" - + "sRequest\0323.google.cloud.dialogflow.cx.v3" - + ".ListWebhooksResponse\"F\202\323\344\223\0027\0225/v3/{pare" - + "nt=projects/*/locations/*/agents/*}/webh" - + "ooks\332A\006parent\022\254\001\n\nGetWebhook\0220.google.cl" - + "oud.dialogflow.cx.v3.GetWebhookRequest\032&" - + ".google.cloud.dialogflow.cx.v3.Webhook\"D" - + "\202\323\344\223\0027\0225/v3/{name=projects/*/locations/*" - + "/agents/*/webhooks/*}\332A\004name\022\305\001\n\rCreateW" - + "ebhook\0223.google.cloud.dialogflow.cx.v3.C" - + "reateWebhookRequest\032&.google.cloud.dialo" - + "gflow.cx.v3.Webhook\"W\202\323\344\223\002@\"5/v3/{parent" - + "=projects/*/locations/*/agents/*}/webhoo" - + "ks:\007webhook\332A\016parent,webhook\022\322\001\n\rUpdateW" - + "ebhook\0223.google.cloud.dialogflow.cx.v3.U" - + "pdateWebhookRequest\032&.google.cloud.dialo" - + "gflow.cx.v3.Webhook\"d\202\323\344\223\002H2=/v3/{webhoo" - + "k.name=projects/*/locations/*/agents/*/w" - + "ebhooks/*}:\007webhook\332A\023webhook,update_mas" - + "k\022\242\001\n\rDeleteWebhook\0223.google.cloud.dialo" - + "gflow.cx.v3.DeleteWebhookRequest\032\026.googl" - + "e.protobuf.Empty\"D\202\323\344\223\0027*5/v3/{name=proj" - + "ects/*/locations/*/agents/*/webhooks/*}\332" - + "A\004name\032x\312A\031dialogflow.googleapis.com\322AYh" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform,https://www.googleapis.com/auth/di" - + "alogflowB\233\002\n!com.google.cloud.dialogflow" - + ".cx.v3B\014WebhookProtoP\001Z?google.golang.or" - + "g/genproto/googleapis/cloud/dialogflow/c" - + "x/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflo" - + "w.Cx.V3\352A|\n\'servicedirectory.googleapis." - + "com/Service\022Qprojects/{project}/location" - + "s/{location}/namespaces/{namespace}/serv" - + "ices/{service}b\006proto3" + + "\030\016 \001(\tH\000\022\025\n\rlanguage_code\030\017 \001(\t\022W\n\020fulfi" + + "llment_info\030\006 \001(\0132=.google.cloud.dialogf" + + "low.cx.v3.WebhookRequest.FulfillmentInfo" + + "\022M\n\013intent_info\030\003 \001(\01328.google.cloud.dia" + + "logflow.cx.v3.WebhookRequest.IntentInfo\022" + + ":\n\tpage_info\030\004 \001(\0132\'.google.cloud.dialog" + + "flow.cx.v3.PageInfo\022@\n\014session_info\030\005 \001(" + + "\0132*.google.cloud.dialogflow.cx.v3.Sessio" + + "nInfo\022@\n\010messages\030\007 \003(\0132..google.cloud.d" + + "ialogflow.cx.v3.ResponseMessage\022(\n\007paylo" + + "ad\030\010 \001(\0132\027.google.protobuf.Struct\022h\n\031sen" + + "timent_analysis_result\030\t \001(\0132E.google.cl" + + "oud.dialogflow.cx.v3.WebhookRequest.Sent" + + "imentAnalysisResult\032\036\n\017FulfillmentInfo\022\013" + + "\n\003tag\030\001 \001(\t\032\273\003\n\nIntentInfo\022B\n\023last_match" + + "ed_intent\030\001 \001(\tB%\372A\"\n dialogflow.googlea" + + "pis.com/Intent\022\024\n\014display_name\030\003 \001(\t\022\\\n\n" + + "parameters\030\002 \003(\0132H.google.cloud.dialogfl" + + "ow.cx.v3.WebhookRequest.IntentInfo.Param" + + "etersEntry\022\022\n\nconfidence\030\004 \001(\002\032^\n\024Intent" + + "ParameterValue\022\026\n\016original_value\030\001 \001(\t\022." + + "\n\016resolved_value\030\002 \001(\0132\026.google.protobuf" + + ".Value\032\200\001\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022" + + "\\\n\005value\030\002 \001(\0132M.google.cloud.dialogflow" + + ".cx.v3.WebhookRequest.IntentInfo.IntentP" + + "arameterValue:\0028\001\032;\n\027SentimentAnalysisRe" + + "sult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\002B\007" + + "\n\005query\"\257\005\n\017WebhookResponse\022`\n\024fulfillme" + + "nt_response\030\001 \001(\0132B.google.cloud.dialogf" + + "low.cx.v3.WebhookResponse.FulfillmentRes" + + "ponse\022:\n\tpage_info\030\002 \001(\0132\'.google.cloud." + + "dialogflow.cx.v3.PageInfo\022@\n\014session_inf" + + "o\030\003 \001(\0132*.google.cloud.dialogflow.cx.v3." + + "SessionInfo\022(\n\007payload\030\004 \001(\0132\027.google.pr" + + "otobuf.Struct\022:\n\013target_page\030\005 \001(\tB#\372A \n" + + "\036dialogflow.googleapis.com/PageH\000\022:\n\013tar" + + "get_flow\030\006 \001(\tB#\372A \n\036dialogflow.googleap" + + "is.com/FlowH\000\032\213\002\n\023FulfillmentResponse\022@\n" + + "\010messages\030\001 \003(\0132..google.cloud.dialogflo" + + "w.cx.v3.ResponseMessage\022h\n\016merge_behavio" + + "r\030\002 \001(\0162P.google.cloud.dialogflow.cx.v3." + + "WebhookResponse.FulfillmentResponse.Merg" + + "eBehavior\"H\n\rMergeBehavior\022\036\n\032MERGE_BEHA" + + "VIOR_UNSPECIFIED\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPLAC" + + "E\020\002B\014\n\ntransition\"\235\004\n\010PageInfo\0229\n\014curren" + + "t_page\030\001 \001(\tB#\372A \n\036dialogflow.googleapis" + + ".com/Page\022C\n\tform_info\030\003 \001(\01320.google.cl" + + "oud.dialogflow.cx.v3.PageInfo.FormInfo\032\220" + + "\003\n\010FormInfo\022V\n\016parameter_info\030\002 \003(\0132>.go" + + "ogle.cloud.dialogflow.cx.v3.PageInfo.For" + + "mInfo.ParameterInfo\032\253\002\n\rParameterInfo\022\024\n" + + "\014display_name\030\001 \001(\t\022\020\n\010required\030\002 \001(\010\022\\\n" + + "\005state\030\003 \001(\0162M.google.cloud.dialogflow.c" + + "x.v3.PageInfo.FormInfo.ParameterInfo.Par" + + "ameterState\022%\n\005value\030\004 \001(\0132\026.google.prot" + + "obuf.Value\022\026\n\016just_collected\030\005 \001(\010\"U\n\016Pa" + + "rameterState\022\037\n\033PARAMETER_STATE_UNSPECIF" + + "IED\020\000\022\t\n\005EMPTY\020\001\022\013\n\007INVALID\020\002\022\n\n\006FILLED\020" + + "\003\"\341\001\n\013SessionInfo\0227\n\007session\030\001 \001(\tB&\372A#\n" + + "!dialogflow.googleapis.com/Session\022N\n\npa" + + "rameters\030\002 \003(\0132:.google.cloud.dialogflow" + + ".cx.v3.SessionInfo.ParametersEntry\032I\n\017Pa" + + "rametersEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(" + + "\0132\026.google.protobuf.Value:\0028\0012\267\010\n\010Webhoo" + + "ks\022\277\001\n\014ListWebhooks\0222.google.cloud.dialo" + + "gflow.cx.v3.ListWebhooksRequest\0323.google" + + ".cloud.dialogflow.cx.v3.ListWebhooksResp" + + "onse\"F\202\323\344\223\0027\0225/v3/{parent=projects/*/loc" + + "ations/*/agents/*}/webhooks\332A\006parent\022\254\001\n" + + "\nGetWebhook\0220.google.cloud.dialogflow.cx" + + ".v3.GetWebhookRequest\032&.google.cloud.dia" + + "logflow.cx.v3.Webhook\"D\202\323\344\223\0027\0225/v3/{name" + + "=projects/*/locations/*/agents/*/webhook" + + "s/*}\332A\004name\022\305\001\n\rCreateWebhook\0223.google.c" + + "loud.dialogflow.cx.v3.CreateWebhookReque" + + "st\032&.google.cloud.dialogflow.cx.v3.Webho" + + "ok\"W\202\323\344\223\002@\"5/v3/{parent=projects/*/locat" + + "ions/*/agents/*}/webhooks:\007webhook\332A\016par" + + "ent,webhook\022\322\001\n\rUpdateWebhook\0223.google.c" + + "loud.dialogflow.cx.v3.UpdateWebhookReque" + + "st\032&.google.cloud.dialogflow.cx.v3.Webho" + + "ok\"d\202\323\344\223\002H2=/v3/{webhook.name=projects/*" + + "/locations/*/agents/*/webhooks/*}:\007webho" + + "ok\332A\023webhook,update_mask\022\242\001\n\rDeleteWebho" + + "ok\0223.google.cloud.dialogflow.cx.v3.Delet" + + "eWebhookRequest\032\026.google.protobuf.Empty\"" + + "D\202\323\344\223\0027*5/v3/{name=projects/*/locations/" + + "*/agents/*/webhooks/*}\332A\004name\032x\312A\031dialog" + + "flow.googleapis.com\322AYhttps://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/dialogflowB\233\002\n!com." + + "google.cloud.dialogflow.cx.v3B\014WebhookPr" + + "otoP\001Z?google.golang.org/genproto/google" + + "apis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002" + + "\035Google.Cloud.Dialogflow.Cx.V3\352A|\n\'servi" + + "cedirectory.googleapis.com/Service\022Qproj" + + "ects/{project}/locations/{location}/name" + + "spaces/{namespace}/services/{service}b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -367,6 +368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TriggerIntent", "Transcript", "TriggerEvent", + "LanguageCode", "FulfillmentInfo", "IntentInfo", "PageInfo", diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java index 4752a869a..811697319 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java @@ -40,6 +40,7 @@ private WebhookRequest(com.google.protobuf.GeneratedMessageV3.Builder builder private WebhookRequest() { detectIntentResponseId_ = ""; + languageCode_ = ""; messages_ = java.util.Collections.emptyList(); } @@ -221,6 +222,13 @@ private WebhookRequest( query_ = s; break; } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4591,6 +4599,57 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { } } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 15; + private volatile java.lang.Object languageCode_; + /** + * + * + *
+   * The language code specified in the [original
+   * request][QueryInput.language_code].
+   * 
+ * + * string language_code = 15; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + /** + * + * + *
+   * The language code specified in the [original
+   * request][QueryInput.language_code].
+   * 
+ * + * string language_code = 15; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int FULFILLMENT_INFO_FIELD_NUMBER = 6; private com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillmentInfo_; /** @@ -5028,6 +5087,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queryCase_ == 14) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, query_); } + if (!getLanguageCodeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, languageCode_); + } unknownFields.writeTo(output); } @@ -5074,6 +5136,9 @@ public int getSerializedSize() { if (queryCase_ == 14) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, query_); } + if (!getLanguageCodeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, languageCode_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -5091,6 +5156,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dialogflow.cx.v3.WebhookRequest) obj; if (!getDetectIntentResponseId().equals(other.getDetectIntentResponseId())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (hasFulfillmentInfo() != other.hasFulfillmentInfo()) return false; if (hasFulfillmentInfo()) { if (!getFulfillmentInfo().equals(other.getFulfillmentInfo())) return false; @@ -5146,6 +5212,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER; hash = (53 * hash) + getDetectIntentResponseId().hashCode(); + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); if (hasFulfillmentInfo()) { hash = (37 * hash) + FULFILLMENT_INFO_FIELD_NUMBER; hash = (53 * hash) + getFulfillmentInfo().hashCode(); @@ -5344,6 +5412,8 @@ public Builder clear() { super.clear(); detectIntentResponseId_ = ""; + languageCode_ = ""; + if (fulfillmentInfoBuilder_ == null) { fulfillmentInfo_ = null; } else { @@ -5429,6 +5499,7 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest buildPartial() { if (queryCase_ == 14) { result.query_ = query_; } + result.languageCode_ = languageCode_; if (fulfillmentInfoBuilder_ == null) { result.fulfillmentInfo_ = fulfillmentInfo_; } else { @@ -5523,6 +5594,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other) detectIntentResponseId_ = other.detectIntentResponseId_; onChanged(); } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } if (other.hasFulfillmentInfo()) { mergeFulfillmentInfo(other.getFulfillmentInfo()); } @@ -6330,6 +6405,117 @@ public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object languageCode_ = ""; + /** + * + * + *
+     * The language code specified in the [original
+     * request][QueryInput.language_code].
+     * 
+ * + * string language_code = 15; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The language code specified in the [original
+     * request][QueryInput.language_code].
+     * 
+ * + * string language_code = 15; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The language code specified in the [original
+     * request][QueryInput.language_code].
+     * 
+ * + * string language_code = 15; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + languageCode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The language code specified in the [original
+     * request][QueryInput.language_code].
+     * 
+ * + * string language_code = 15; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + + languageCode_ = getDefaultInstance().getLanguageCode(); + onChanged(); + return this; + } + /** + * + * + *
+     * The language code specified in the [original
+     * request][QueryInput.language_code].
+     * 
+ * + * string language_code = 15; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + languageCode_ = value; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillmentInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo, diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java index acd6013db..e3683c1b8 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java @@ -216,6 +216,33 @@ public interface WebhookRequestOrBuilder */ com.google.protobuf.ByteString getTriggerEventBytes(); + /** + * + * + *
+   * The language code specified in the [original
+   * request][QueryInput.language_code].
+   * 
+ * + * string language_code = 15; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + /** + * + * + *
+   * The language code specified in the [original
+   * request][QueryInput.language_code].
+   * 
+ * + * string language_code = 15; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + /** * * diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto index 7560e77a4..7b253538c 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/flow.proto @@ -225,6 +225,20 @@ message Flow { // get executed, with the rest being ignored. repeated EventHandler event_handlers = 10; + // A flow's transition route group serve two purposes: + // + // * They are responsible for matching the user's first utterances in the + // flow. + // * They are inherited by every page's [transition + // route groups][Page.transition_route_groups]. Transition route groups + // defined in the page have higher priority than those defined in the flow. + // + // Format:`projects//locations//agents//flows//transitionRouteGroups/`. + repeated string transition_route_groups = 15 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TransitionRouteGroup" + }]; + // NLU related settings of the flow. NluSettings nlu_settings = 11; } diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto index 1e2924ff8..f4f4c6184 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto @@ -199,7 +199,7 @@ message Intent { // fallback intents act as negative examples that triggers no-match event. bool is_fallback = 6; - // Optional. The key/value metadata to label an intent. Labels can contain + // The key/value metadata to label an intent. Labels can contain // lowercase letters, digits and the symbols '-' and '_'. International // characters are allowed, including letters from unicase alphabets. Keys must // start with a letter. Keys and values can be no longer than 63 characters @@ -211,11 +211,11 @@ message Intent { // * sys.contextual // The above labels do not require value. "sys.head" means the intent is a // head intent. "sys.contextual" means the intent is a contextual intent. - map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + map labels = 7; - // Optional. Human readable description for better understanding an intent like its + // Human readable description for better understanding an intent like its // scope, content, result etc. Maximum character limit: 140 characters. - string description = 8 [(google.api.field_behavior) = OPTIONAL]; + string description = 8; } // The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto index b2d6c049b..8d5763736 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto @@ -388,6 +388,21 @@ message QueryParameters { // - Else: parameter value google.protobuf.Struct parameters = 5; + // The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current + // page][QueryResult.current_page] in the session. Format: `projects//locations//agents//pages/`. + // + // If `current_page` is specified, the previous state of the session will be + // ignored by Dialogflow, including the [previous + // page][QueryResult.current_page] and the [previous session + // parameters][QueryResult.parameters]. + // In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and + // [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to + // direct a session to a specific state. + string current_page = 6 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + }]; + // Whether to disable webhook calls for this request. bool disable_webhook = 7; diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto index 6d367b3ef..3424d9c21 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto @@ -314,6 +314,10 @@ message WebhookRequest { string trigger_event = 14; } + // The language code specified in the [original + // request][QueryInput.language_code]. + string language_code = 15; + // Always present. Information about the fulfillment that triggered this // webhook call. FulfillmentInfo fulfillment_info = 6; diff --git a/synth.metadata b/synth.metadata index fc288d270..e3dc5aa16 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-dialogflow-cx.git", - "sha": "f745beb41ed7844909c7acd43235a490faefc619" + "sha": "43cdc986d04472760a42f61e8318090bd5565052" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "35593f2d62a2e6a11ad74ea64a664159939f52dd", - "internalRef": "364838477" + "sha": "163ed6c0450949662bf2e6997eb7e0782cd4d800", + "internalRef": "367042726" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "35593f2d62a2e6a11ad74ea64a664159939f52dd", - "internalRef": "364838477" + "sha": "163ed6c0450949662bf2e6997eb7e0782cd4d800", + "internalRef": "367042726" } }, {