diff --git a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java index da49b2e57..9e9b209f7 100644 --- a/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClientTest.java +++ b/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java index e4ddacffb..e03d454b9 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/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 @@ -149,6 +150,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: @@ -171,6 +182,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(); } @@ -591,6 +605,99 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder getEventHand 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.v3beta1.NluSettings nluSettings_; /** @@ -671,6 +778,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); } @@ -698,6 +809,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; @@ -719,6 +838,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; @@ -748,6 +868,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(); @@ -929,6 +1053,8 @@ public Builder clear() { } else { eventHandlersBuilder_.clear(); } + transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); if (nluSettingsBuilder_ == null) { nluSettings_ = null; } else { @@ -984,6 +1110,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.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 { @@ -1104,6 +1235,16 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.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()); } @@ -2576,6 +2717,256 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder addEventHandl 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.v3beta1.NluSettings nluSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.NluSettings, diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java index 1d4f81ae0..f070e1b19 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowOrBuilder.java @@ -314,6 +314,89 @@ com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRou */ com.google.cloud.dialogflow.cx.v3beta1.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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java index 006520cc3..fe14c7340 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowProto.java @@ -106,99 +106,101 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "odelTrainingMode\022#\n\037MODEL_TRAINING_MODE_" + "UNSPECIFIED\020\000\022!\n\035MODEL_TRAINING_MODE_AUT" + "OMATIC\020\001\022\036\n\032MODEL_TRAINING_MODE_MANUAL\020\002" - + "\"\217\003\n\004Flow\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030" + + "\"\345\003\n\004Flow\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030" + "\002 \001(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022N\n\021trans" + "ition_routes\030\004 \003(\01323.google.cloud.dialog" + "flow.cx.v3beta1.TransitionRoute\022H\n\016event" + "_handlers\030\n \003(\01320.google.cloud.dialogflo" - + "w.cx.v3beta1.EventHandler\022E\n\014nlu_setting" - + "s\030\013 \001(\0132/.google.cloud.dialogflow.cx.v3b" - + "eta1.NluSettings:h\352Ae\n\036dialogflow.google" - + "apis.com/Flow\022Cprojects/{project}/locati" - + "ons/{location}/agents/{agent}/flows/{flo" - + "w}\"\237\001\n\021CreateFlowRequest\0226\n\006parent\030\001 \001(\t" - + "B&\340A\002\372A \022\036dialogflow.googleapis.com/Flow" - + "\022;\n\004flow\030\002 \001(\0132(.google.cloud.dialogflow" - + ".cx.v3beta1.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\005force\030\002 \001(\010\"\210\001\n\020ListFlowsRequest\0226\n\006p" - + "arent\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.googleap" - + "is.com/Flow\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\022\025\n\rlanguage_code\030\004 \001(\t\"e\n\021Lis" - + "tFlowsResponse\0227\n\005flows\030\001 \003(\0132(.google.c" - + "loud.dialogflow.cx.v3beta1.Flow\022\027\n\017next_" - + "page_token\030\002 \001(\t\"]\n\016GetFlowRequest\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\"\235\001\n\021Upda" - + "teFlowRequest\022;\n\004flow\030\001 \001(\0132(.google.clo" - + "ud.dialogflow.cx.v3beta1.FlowB\003\340A\002\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\022\025\n\rlanguage_code\030\003 \001(\t\"H\n\020Train" - + "FlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialo" - + "gflow.googleapis.com/Flow\"b\n\023ValidateFlo" - + "wRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogfl" - + "ow.googleapis.com/Flow\022\025\n\rlanguage_code\030" - + "\002 \001(\t\"}\n\036GetFlowValidationResultRequest\022" - + "D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.dialogflow.google" - + "apis.com/FlowValidationResult\022\025\n\rlanguag" - + "e_code\030\002 \001(\t\"\266\002\n\024FlowValidationResult\022\014\n" - + "\004name\030\001 \001(\t\022R\n\023validation_messages\030\002 \003(\013" - + "25.google.cloud.dialogflow.cx.v3beta1.Va" - + "lidationMessage\022/\n\013update_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.Timestamp:\212\001\352A\206\001\n.dialogf" - + "low.googleapis.com/FlowValidationResult\022" - + "Tprojects/{project}/locations/{location}" - + "/agents/{agent}/flows/{flow}/validationR" - + "esult2\335\r\n\005Flows\022\302\001\n\nCreateFlow\0225.google." - + "cloud.dialogflow.cx.v3beta1.CreateFlowRe" + + "w.cx.v3beta1.EventHandler\022T\n\027transition_" + + "route_groups\030\017 \003(\tB3\372A0\n.dialogflow.goog" + + "leapis.com/TransitionRouteGroup\022E\n\014nlu_s" + + "ettings\030\013 \001(\0132/.google.cloud.dialogflow." + + "cx.v3beta1.NluSettings:h\352Ae\n\036dialogflow." + + "googleapis.com/Flow\022Cprojects/{project}/" + + "locations/{location}/agents/{agent}/flow" + + "s/{flow}\"\237\001\n\021CreateFlowRequest\0226\n\006parent" + + "\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.googleapis.co" + + "m/Flow\022;\n\004flow\030\002 \001(\0132(.google.cloud.dial" + + "ogflow.cx.v3beta1.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\005force\030\002 \001(\010\"\210\001\n\020ListFlowsReques" + + "t\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036dialogflow.go" + + "ogleapis.com/Flow\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\022\025\n\rlanguage_code\030\004 \001(\t\"" + + "e\n\021ListFlowsResponse\0227\n\005flows\030\001 \003(\0132(.go" + + "ogle.cloud.dialogflow.cx.v3beta1.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.googl" + + "eapis.com/Flow\022\025\n\rlanguage_code\030\002 \001(\t\"\235\001" + + "\n\021UpdateFlowRequest\022;\n\004flow\030\001 \001(\0132(.goog" + + "le.cloud.dialogflow.cx.v3beta1.FlowB\003\340A\002" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.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\023Valid" + + "ateFlowRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036di" + + "alogflow.googleapis.com/Flow\022\025\n\rlanguage" + + "_code\030\002 \001(\t\"}\n\036GetFlowValidationResultRe" + + "quest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.dialogflow." + + "googleapis.com/FlowValidationResult\022\025\n\rl" + + "anguage_code\030\002 \001(\t\"\266\002\n\024FlowValidationRes" + + "ult\022\014\n\004name\030\001 \001(\t\022R\n\023validation_messages" + + "\030\002 \003(\01325.google.cloud.dialogflow.cx.v3be" + + "ta1.ValidationMessage\022/\n\013update_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp:\212\001\352A\206\001\n.d" + + "ialogflow.googleapis.com/FlowValidationR" + + "esult\022Tprojects/{project}/locations/{loc" + + "ation}/agents/{agent}/flows/{flow}/valid" + + "ationResult2\335\r\n\005Flows\022\302\001\n\nCreateFlow\0225.g" + + "oogle.cloud.dialogflow.cx.v3beta1.Create" + + "FlowRequest\032(.google.cloud.dialogflow.cx" + + ".v3beta1.Flow\"S\202\323\344\223\002?\"7/v3beta1/{parent=" + + "projects/*/locations/*/agents/*}/flows:\004" + + "flow\332A\013parent,flow\022\243\001\n\nDeleteFlow\0225.goog" + + "le.cloud.dialogflow.cx.v3beta1.DeleteFlo" + + "wRequest\032\026.google.protobuf.Empty\"F\202\323\344\223\0029" + + "*7/v3beta1/{name=projects/*/locations/*/" + + "agents/*/flows/*}\332A\004name\022\302\001\n\tListFlows\0224" + + ".google.cloud.dialogflow.cx.v3beta1.List" + + "FlowsRequest\0325.google.cloud.dialogflow.c" + + "x.v3beta1.ListFlowsResponse\"H\202\323\344\223\0029\0227/v3" + + "beta1/{parent=projects/*/locations/*/age" + + "nts/*}/flows\332A\006parent\022\257\001\n\007GetFlow\0222.goog" + + "le.cloud.dialogflow.cx.v3beta1.GetFlowRe" + "quest\032(.google.cloud.dialogflow.cx.v3bet" - + "a1.Flow\"S\202\323\344\223\002?\"7/v3beta1/{parent=projec" - + "ts/*/locations/*/agents/*}/flows:\004flow\332A" - + "\013parent,flow\022\243\001\n\nDeleteFlow\0225.google.clo" - + "ud.dialogflow.cx.v3beta1.DeleteFlowReque" - + "st\032\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v3b" + + "a1.Flow\"F\202\323\344\223\0029\0227/v3beta1/{name=projects" + + "/*/locations/*/agents/*/flows/*}\332A\004name\022" + + "\314\001\n\nUpdateFlow\0225.google.cloud.dialogflow" + + ".cx.v3beta1.UpdateFlowRequest\032(.google.c" + + "loud.dialogflow.cx.v3beta1.Flow\"]\202\323\344\223\002D2" + + " - * 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 @@ -4341,7 +4341,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) { @@ -4360,7 +4360,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
@@ -4373,7 +4373,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() { @@ -4383,7 +4383,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
@@ -4396,7 +4396,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) { @@ -4410,7 +4410,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
@@ -4423,7 +4423,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) { @@ -4443,11 +4443,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. */ @@ -4467,11 +4467,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. */ @@ -6208,7 +6208,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
@@ -6221,7 +6221,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) { @@ -6240,7 +6240,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
@@ -6253,7 +6253,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() { @@ -6263,7 +6263,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
@@ -6276,7 +6276,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( @@ -6291,7 +6291,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
@@ -6304,7 +6304,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) { @@ -6326,7 +6326,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
@@ -6339,7 +6339,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) { @@ -6357,7 +6357,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
@@ -6370,7 +6370,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) { @@ -6386,7 +6386,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
@@ -6399,7 +6399,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); @@ -6411,11 +6411,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. */ @@ -6434,11 +6434,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. */ @@ -6457,11 +6457,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. @@ -6479,11 +6479,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. */ @@ -6497,11 +6497,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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java index 236dbc600..f0961ec14 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java @@ -239,7 +239,7 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr * * *
-   * 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
@@ -252,14 +252,14 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr
    * 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
@@ -272,7 +272,7 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr
    * 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. */ @@ -282,7 +282,7 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr * * *
-   * 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
@@ -295,14 +295,14 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr
    * 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
@@ -315,14 +315,14 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr
    * 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
@@ -335,7 +335,7 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr
    * 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); @@ -343,11 +343,11 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr * * *
-   * 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. */ @@ -356,11 +356,11 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr * * *
-   * 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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentProto.java index 331340b9c..110c7b5cc 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentProto.java @@ -86,83 +86,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/api/client.proto\032\037google/api/field_b" + "ehavior.proto\032\031google/api/resource.proto" + "\032\033google/protobuf/empty.proto\032 google/pr" - + "otobuf/field_mask.proto\"\272\006\n\006Intent\022\014\n\004na" + + "otobuf/field_mask.proto\"\260\006\n\006Intent\022\014\n\004na" + "me\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022S\n\020t" + "raining_phrases\030\003 \003(\01329.google.cloud.dia" + "logflow.cx.v3beta1.Intent.TrainingPhrase" + "\022H\n\nparameters\030\004 \003(\01324.google.cloud.dial" + "ogflow.cx.v3beta1.Intent.Parameter\022\020\n\010pr" - + "iority\030\005 \001(\005\022\023\n\013is_fallback\030\006 \001(\010\022K\n\006lab" + + "iority\030\005 \001(\005\022\023\n\013is_fallback\030\006 \001(\010\022F\n\006lab" + "els\030\007 \003(\01326.google.cloud.dialogflow.cx.v" - + "3beta1.Intent.LabelsEntryB\003\340A\001\022\030\n\013descri" - + "ption\030\010 \001(\tB\003\340A\001\032\267\001\n\016TrainingPhrase\022\n\n\002i" - + "d\030\001 \001(\t\022R\n\005parts\030\002 \003(\0132>.google.cloud.di" - + "alogflow.cx.v3beta1.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}\"\321\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\022C\n\013" - + "intent_view\030\005 \001(\0162..google.cloud.dialogf" - + "low.cx.v3beta1.IntentView\022\021\n\tpage_size\030\003" - + " \001(\005\022\022\n\npage_token\030\004 \001(\t\"k\n\023ListIntentsR" - + "esponse\022;\n\007intents\030\001 \003(\0132*.google.cloud." - + "dialogflow.cx.v3beta1.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\"\247\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." - + "v3beta1.IntentB\003\340A\002\022\025\n\rlanguage_code\030\003 \001" - + "(\t\"\236\001\n\023UpdateIntentRequest\022?\n\006intent\030\001 \001" - + "(\0132*.google.cloud.dialogflow.cx.v3beta1." - + "IntentB\003\340A\002\022\025\n\rlanguage_code\030\002 \001(\t\022/\n\013up" - + "date_mask\030\003 \001(\0132\032.google.protobuf.FieldM" - + "ask\"M\n\023DeleteIntentRequest\0226\n\004name\030\001 \001(\t" - + "B(\340A\002\372A\"\n dialogflow.googleapis.com/Inte" - + "nt*X\n\nIntentView\022\033\n\027INTENT_VIEW_UNSPECIF" - + "IED\020\000\022\027\n\023INTENT_VIEW_PARTIAL\020\001\022\024\n\020INTENT" - + "_VIEW_FULL\020\0022\344\010\n\007Intents\022\312\001\n\013ListIntents" - + "\0226.google.cloud.dialogflow.cx.v3beta1.Li" - + "stIntentsRequest\0327.google.cloud.dialogfl" - + "ow.cx.v3beta1.ListIntentsResponse\"J\202\323\344\223\002" - + ";\0229/v3beta1/{parent=projects/*/locations" - + "/*/agents/*}/intents\332A\006parent\022\267\001\n\tGetInt" - + "ent\0224.google.cloud.dialogflow.cx.v3beta1" - + ".GetIntentRequest\032*.google.cloud.dialogf" - + "low.cx.v3beta1.Intent\"H\202\323\344\223\002;\0229/v3beta1/" - + "{name=projects/*/locations/*/agents/*/in" - + "tents/*}\332A\004name\022\316\001\n\014CreateIntent\0227.googl" - + "e.cloud.dialogflow.cx.v3beta1.CreateInte" - + "ntRequest\032*.google.cloud.dialogflow.cx.v" - + "3beta1.Intent\"Y\202\323\344\223\002C\"9/v3beta1/{parent=" - + "projects/*/locations/*/agents/*}/intents" - + ":\006intent\332A\rparent,intent\022\332\001\n\014UpdateInten" - + "t\0227.google.cloud.dialogflow.cx.v3beta1.U" - + "pdateIntentRequest\032*.google.cloud.dialog" - + "flow.cx.v3beta1.Intent\"e\202\323\344\223\002J2@/v3beta1" - + "/{intent.name=projects/*/locations/*/age" - + "nts/*/intents/*}:\006intent\332A\022intent,update" - + "_mask\022\251\001\n\014DeleteIntent\0227.google.cloud.di" - + "alogflow.cx.v3beta1.DeleteIntentRequest\032" - + "\026.google.protobuf.Empty\"H\202\323\344\223\002;*9/v3beta" - + "1/{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\252\001\n&com.google.cloud" - + ".dialogflow.cx.v3beta1B\013IntentProtoP\001ZDg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/dialogflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Go" - + "ogle.Cloud.Dialogflow.Cx.V3Beta1b\006proto3" + + "3beta1.Intent.LabelsEntry\022\023\n\013description" + + "\030\010 \001(\t\032\267\001\n\016TrainingPhrase\022\n\n\002id\030\001 \001(\t\022R\n" + + "\005parts\030\002 \003(\0132>.google.cloud.dialogflow.c" + + "x.v3beta1.Intent.TrainingPhrase.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\014parameter_id\030\002 \001(\t\032\200\001\n\tPar" + + "ameter\022\017\n\002id\030\001 \001(\tB\003\340A\002\022A\n\013entity_type\030\002" + + " \001(\tB,\340A\002\372A&\n$dialogflow.googleapis.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.googleapis.c" + + "om/Intent\022Gprojects/{project}/locations/" + + "{location}/agents/{agent}/intents/{inten" + + "t}\"\321\001\n\022ListIntentsRequest\0228\n\006parent\030\001 \001(" + + "\tB(\340A\002\372A\"\022 dialogflow.googleapis.com/Int" + + "ent\022\025\n\rlanguage_code\030\002 \001(\t\022C\n\013intent_vie" + + "w\030\005 \001(\0162..google.cloud.dialogflow.cx.v3b" + + "eta1.IntentView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npa" + + "ge_token\030\004 \001(\t\"k\n\023ListIntentsResponse\022;\n" + + "\007intents\030\001 \003(\0132*.google.cloud.dialogflow" + + ".cx.v3beta1.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\"\247\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.v3beta1.In" + + "tentB\003\340A\002\022\025\n\rlanguage_code\030\003 \001(\t\"\236\001\n\023Upd" + + "ateIntentRequest\022?\n\006intent\030\001 \001(\0132*.googl" + + "e.cloud.dialogflow.cx.v3beta1.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\344\010\n\007Intents\022\312\001\n\013ListIntents\0226.google." + + "cloud.dialogflow.cx.v3beta1.ListIntentsR" + + "equest\0327.google.cloud.dialogflow.cx.v3be" + + "ta1.ListIntentsResponse\"J\202\323\344\223\002;\0229/v3beta" + + "1/{parent=projects/*/locations/*/agents/" + + "*}/intents\332A\006parent\022\267\001\n\tGetIntent\0224.goog" + + "le.cloud.dialogflow.cx.v3beta1.GetIntent" + + "Request\032*.google.cloud.dialogflow.cx.v3b" + + "eta1.Intent\"H\202\323\344\223\002;\0229/v3beta1/{name=proj" + + "ects/*/locations/*/agents/*/intents/*}\332A" + + "\004name\022\316\001\n\014CreateIntent\0227.google.cloud.di" + + "alogflow.cx.v3beta1.CreateIntentRequest\032" + + "*.google.cloud.dialogflow.cx.v3beta1.Int" + + "ent\"Y\202\323\344\223\002C\"9/v3beta1/{parent=projects/*" + + "/locations/*/agents/*}/intents:\006intent\332A" + + "\rparent,intent\022\332\001\n\014UpdateIntent\0227.google" + + ".cloud.dialogflow.cx.v3beta1.UpdateInten" + + "tRequest\032*.google.cloud.dialogflow.cx.v3" + + "beta1.Intent\"e\202\323\344\223\002J2@/v3beta1/{intent.n" + + "ame=projects/*/locations/*/agents/*/inte" + + "nts/*}:\006intent\332A\022intent,update_mask\022\251\001\n\014" + + "DeleteIntent\0227.google.cloud.dialogflow.c" + + "x.v3beta1.DeleteIntentRequest\032\026.google.p" + + "rotobuf.Empty\"H\202\323\344\223\002;*9/v3beta1/{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\252\001\n&com.google.cloud.dialogflo" + + "w.cx.v3beta1B\013IntentProtoP\001ZDgoogle.gola" + + "ng.org/genproto/googleapis/cloud/dialogf" + + "low/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud" + + ".Dialogflow.Cx.V3Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java index 87509615a..b56525a93 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/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 @@ -134,6 +135,13 @@ private QueryParameters( parameters_ = subBuilder.buildPartial(); } + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + currentPage_ = s; break; } case 56: @@ -542,6 +550,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.v3beta1.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.v3beta1.QueryParameters.current_page] and
+   * [parameters][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.QueryParameters.current_page] and
+   * [parameters][google.cloud.dialogflow.cx.v3beta1.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_; /** @@ -737,6 +812,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_); } @@ -770,6 +848,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_); } @@ -816,6 +897,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; @@ -848,6 +930,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; @@ -1050,6 +1134,8 @@ public Builder clear() { parameters_ = null; parametersBuilder_ = null; } + currentPage_ = ""; + disableWebhook_ = false; analyzeQueryTextSentiment_ = false; @@ -1108,6 +1194,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters buildPartial() { } else { result.parameters_ = parametersBuilder_.build(); } + result.currentPage_ = currentPage_; result.disableWebhook_ = disableWebhook_; result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_; result.webhookHeaders_ = internalGetWebhookHeaders(); @@ -1202,6 +1289,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters if (other.hasParameters()) { mergeParameters(other.getParameters()); } + if (!other.getCurrentPage().isEmpty()) { + currentPage_ = other.currentPage_; + onChanged(); + } if (other.getDisableWebhook() != false) { setDisableWebhook(other.getDisableWebhook()); } @@ -2490,6 +2581,157 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { return parametersBuilder_; } + private java.lang.Object currentPage_ = ""; + /** + * + * + *
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.QueryParameters.current_page] and
+     * [parameters][google.cloud.dialogflow.cx.v3beta1.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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java index d085c9036..c206f1b6b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java @@ -279,6 +279,49 @@ com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder getSessionEnti */ com.google.protobuf.StructOrBuilder getParametersOrBuilder(); + /** + * + * + *
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.QueryParameters.current_page] and
+   * [parameters][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.QueryParameters.current_page] and
+   * [parameters][google.cloud.dialogflow.cx.v3beta1.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-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java index 8551574d4..55e6d9afd 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java @@ -169,133 +169,135 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eechWordInfo\0224\n\021speech_end_offset\030\010 \001(\0132" + "\031.google.protobuf.Duration\"X\n\013MessageTyp" + "e\022\034\n\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\016\n\nTRANS" - + "CRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTERANCE\020\002\"\323\003\n" + + "CRIPT\020\001\022\033\n\027END_OF_SINGLE_UTTERANCE\020\002\"\216\004\n" + "\017QueryParameters\022\021\n\ttime_zone\030\001 \001(\t\022)\n\014g" + "eo_location\030\002 \001(\0132\023.google.type.LatLng\022S" + "\n\024session_entity_types\030\003 \003(\01325.google.cl" + "oud.dialogflow.cx.v3beta1.SessionEntityT" + "ype\022(\n\007payload\030\004 \001(\0132\027.google.protobuf.S" + "truct\022+\n\nparameters\030\005 \001(\0132\027.google.proto" - + "buf.Struct\022\027\n\017disable_webhook\030\007 \001(\010\022$\n\034a" - + "nalyze_query_text_sentiment\030\010 \001(\010\022`\n\017web" - + "hook_headers\030\n \003(\0132G.google.cloud.dialog" - + "flow.cx.v3beta1.QueryParameters.WebhookH" - + "eadersEntry\0325\n\023WebhookHeadersEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\364\002\n\nQueryInpu" - + "t\022=\n\004text\030\002 \001(\0132-.google.cloud.dialogflo" - + "w.cx.v3beta1.TextInputH\000\022A\n\006intent\030\003 \001(\013" - + "2/.google.cloud.dialogflow.cx.v3beta1.In" - + "tentInputH\000\022?\n\005audio\030\005 \001(\0132..google.clou" - + "d.dialogflow.cx.v3beta1.AudioInputH\000\022?\n\005" - + "event\030\006 \001(\0132..google.cloud.dialogflow.cx" - + ".v3beta1.EventInputH\000\022=\n\004dtmf\030\007 \001(\0132-.go" - + "ogle.cloud.dialogflow.cx.v3beta1.DtmfInp" - + "utH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007\n\005inpu" - + "t\"\200\006\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022?\n\016tri" - + "gger_intent\030\013 \001(\tB%\372A\"\n dialogflow.googl" - + "eapis.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\rlanguage_co" - + "de\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132\027.google.pr" - + "otobuf.Struct\022N\n\021response_messages\030\004 \003(\013" - + "23.google.cloud.dialogflow.cx.v3beta1.Re" - + "sponseMessage\022,\n\020webhook_statuses\030\r \003(\0132" - + "\022.google.rpc.Status\0221\n\020webhook_payloads\030" - + "\006 \003(\0132\027.google.protobuf.Struct\022>\n\014curren" - + "t_page\030\007 \001(\0132(.google.cloud.dialogflow.c" - + "x.v3beta1.Page\022>\n\006intent\030\010 \001(\0132*.google." - + "cloud.dialogflow.cx.v3beta1.IntentB\002\030\001\022\'" - + "\n\033intent_detection_confidence\030\t \001(\002B\002\030\001\022" - + "8\n\005match\030\017 \001(\0132).google.cloud.dialogflow" - + ".cx.v3beta1.Match\0220\n\017diagnostic_info\030\n \001" - + "(\0132\027.google.protobuf.Struct\022^\n\031sentiment" - + "_analysis_result\030\021 \001(\0132;.google.cloud.di" - + "alogflow.cx.v3beta1.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\"f\n" - + "\nAudioInput\022I\n\006config\030\001 \001(\01324.google.clo" - + "ud.dialogflow.cx.v3beta1.InputAudioConfi" - + "gB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005e" - + "vent\030\001 \001(\t\"1\n\tDtmfInput\022\016\n\006digits\030\001 \001(\t\022" - + "\024\n\014finish_digit\030\002 \001(\t\"\373\002\n\005Match\022:\n\006inten" - + "t\030\001 \001(\0132*.google.cloud.dialogflow.cx.v3b" - + "eta1.Intent\022\r\n\005event\030\006 \001(\t\022+\n\nparameters" - + "\030\002 \001(\0132\027.google.protobuf.Struct\022\026\n\016resol" - + "ved_input\030\003 \001(\t\022G\n\nmatch_type\030\004 \001(\01623.go" - + "ogle.cloud.dialogflow.cx.v3beta1.Match.M" - + "atchType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\tMatchTy" - + "pe\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n\006INTENT" - + "\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETER_FILLI" - + "NG\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVEN" - + "T\020\006\"\345\001\n\022MatchIntentRequest\022:\n\007session\030\001 " - + "\001(\tB)\340A\002\372A#\n!dialogflow.googleapis.com/S" - + "ession\022I\n\014query_params\030\002 \001(\01323.google.cl" - + "oud.dialogflow.cx.v3beta1.QueryParameter" - + "s\022H\n\013query_input\030\003 \001(\0132..google.cloud.di" - + "alogflow.cx.v3beta1.QueryInputB\003\340A\002\"\232\002\n\023" - + "MatchIntentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016t" - + "rigger_intent\030\002 \001(\tB%\372A\"\n dialogflow.goo" - + "gleapis.com/IntentH\000\022\024\n\ntranscript\030\003 \001(\t" - + "H\000\022\027\n\rtrigger_event\030\006 \001(\tH\000\022:\n\007matches\030\004" - + " \003(\0132).google.cloud.dialogflow.cx.v3beta" - + "1.Match\022>\n\014current_page\030\005 \001(\0132(.google.c" - + "loud.dialogflow.cx.v3beta1.PageB\007\n\005query" - + "\"\372\001\n\024FulfillIntentRequest\022T\n\024match_inten" - + "t_request\030\001 \001(\01326.google.cloud.dialogflo" - + "w.cx.v3beta1.MatchIntentRequest\0228\n\005match" - + "\030\002 \001(\0132).google.cloud.dialogflow.cx.v3be" - + "ta1.Match\022R\n\023output_audio_config\030\003 \001(\01325" - + ".google.cloud.dialogflow.cx.v3beta1.Outp" - + "utAudioConfig\"\335\001\n\025FulfillIntentResponse\022" - + "\023\n\013response_id\030\001 \001(\t\022E\n\014query_result\030\002 \001" - + "(\0132/.google.cloud.dialogflow.cx.v3beta1." - + "QueryResult\022\024\n\014output_audio\030\003 \001(\014\022R\n\023out" - + "put_audio_config\030\004 \001(\01325.google.cloud.di" - + "alogflow.cx.v3beta1.OutputAudioConfig\";\n" - + "\027SentimentAnalysisResult\022\r\n\005score\030\001 \001(\002\022" - + "\021\n\tmagnitude\030\002 \001(\0022\212\n\n\010Sessions\022\272\002\n\014Dete" - + "ctIntent\0227.google.cloud.dialogflow.cx.v3" - + "beta1.DetectIntentRequest\0328.google.cloud" - + ".dialogflow.cx.v3beta1.DetectIntentRespo" - + "nse\"\266\001\202\323\344\223\002\257\001\"J/v3beta1/{session=project" - + "s/*/locations/*/agents/*/sessions/*}:det" - + "ectIntent:\001*Z^\"Y/v3beta1/{session=projec" - + "ts/*/locations/*/agents/*/environments/*" - + "/sessions/*}:detectIntent:\001*\022\242\001\n\025Streami" - + "ngDetectIntent\022@.google.cloud.dialogflow" - + ".cx.v3beta1.StreamingDetectIntentRequest" - + "\032A.google.cloud.dialogflow.cx.v3beta1.St" - + "reamingDetectIntentResponse\"\000(\0010\001\022\265\002\n\013Ma" - + "tchIntent\0226.google.cloud.dialogflow.cx.v" - + "3beta1.MatchIntentRequest\0327.google.cloud" - + ".dialogflow.cx.v3beta1.MatchIntentRespon" - + "se\"\264\001\202\323\344\223\002\255\001\"I/v3beta1/{session=projects" - + "/*/locations/*/agents/*/sessions/*}:matc" - + "hIntent:\001*Z]\"X/v3beta1/{session=projects" - + "/*/locations/*/agents/*/environments/*/s" - + "essions/*}:matchIntent:\001*\022\351\002\n\rFulfillInt" - + "ent\0228.google.cloud.dialogflow.cx.v3beta1" - + ".FulfillIntentRequest\0329.google.cloud.dia" - + "logflow.cx.v3beta1.FulfillIntentResponse" - + "\"\342\001\202\323\344\223\002\333\001\"`/v3beta1/{match_intent_reque" - + "st.session=projects/*/locations/*/agents" - + "/*/sessions/*}:fulfillIntent:\001*Zt\"o/v3be" - + "ta1/{match_intent_request.session=projec" - + "ts/*/locations/*/agents/*/environments/*" - + "/sessions/*}:fulfillIntent:\001*\032x\312A\031dialog" - + "flow.googleapis.com\322AYhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/dialogflowB\203\003\n&com." - + "google.cloud.dialogflow.cx.v3beta1B\014Sess" - + "ionProtoP\001ZDgoogle.golang.org/genproto/g" - + "oogleapis/cloud/dialogflow/cx/v3beta1;cx" - + "\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3" - + "Beta1\352A\324\001\n!dialogflow.googleapis.com/Ses" - + "sion\022Iprojects/{project}/locations/{loca" - + "tion}/agents/{agent}/sessions/{session}\022" - + "dprojects/{project}/locations/{location}" - + "/agents/{agent}/environments/{environmen" - + "t}/sessions/{session}b\006proto3" + + "buf.Struct\0229\n\014current_page\030\006 \001(\tB#\372A \n\036d" + + "ialogflow.googleapis.com/Page\022\027\n\017disable" + + "_webhook\030\007 \001(\010\022$\n\034analyze_query_text_sen" + + "timent\030\010 \001(\010\022`\n\017webhook_headers\030\n \003(\0132G." + + "google.cloud.dialogflow.cx.v3beta1.Query" + + "Parameters.WebhookHeadersEntry\0325\n\023Webhoo" + + "kHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\"\364\002\n\nQueryInput\022=\n\004text\030\002 \001(\0132-.goo" + + "gle.cloud.dialogflow.cx.v3beta1.TextInpu" + + "tH\000\022A\n\006intent\030\003 \001(\0132/.google.cloud.dialo" + + "gflow.cx.v3beta1.IntentInputH\000\022?\n\005audio\030" + + "\005 \001(\0132..google.cloud.dialogflow.cx.v3bet" + + "a1.AudioInputH\000\022?\n\005event\030\006 \001(\0132..google." + + "cloud.dialogflow.cx.v3beta1.EventInputH\000" + + "\022=\n\004dtmf\030\007 \001(\0132-.google.cloud.dialogflow" + + ".cx.v3beta1.DtmfInputH\000\022\032\n\rlanguage_code" + + "\030\004 \001(\tB\003\340A\002B\007\n\005input\"\200\006\n\013QueryResult\022\016\n\004" + + "text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\013 \001(\tB%\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\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\nparameter" + + "s\030\003 \001(\0132\027.google.protobuf.Struct\022N\n\021resp" + + "onse_messages\030\004 \003(\01323.google.cloud.dialo" + + "gflow.cx.v3beta1.ResponseMessage\022,\n\020webh" + + "ook_statuses\030\r \003(\0132\022.google.rpc.Status\0221" + + "\n\020webhook_payloads\030\006 \003(\0132\027.google.protob" + + "uf.Struct\022>\n\014current_page\030\007 \001(\0132(.google" + + ".cloud.dialogflow.cx.v3beta1.Page\022>\n\006int" + + "ent\030\010 \001(\0132*.google.cloud.dialogflow.cx.v" + + "3beta1.IntentB\002\030\001\022\'\n\033intent_detection_co" + + "nfidence\030\t \001(\002B\002\030\001\0228\n\005match\030\017 \001(\0132).goog" + + "le.cloud.dialogflow.cx.v3beta1.Match\0220\n\017" + + "diagnostic_info\030\n \001(\0132\027.google.protobuf." + + "Struct\022^\n\031sentiment_analysis_result\030\021 \001(" + + "\0132;.google.cloud.dialogflow.cx.v3beta1.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\"f\n\nAudioInput\022I\n\006config" + + "\030\001 \001(\01324.google.cloud.dialogflow.cx.v3be" + + "ta1.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\tDtmfInp" + + "ut\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002 \001(\t" + + "\"\373\002\n\005Match\022:\n\006intent\030\001 \001(\0132*.google.clou" + + "d.dialogflow.cx.v3beta1.Intent\022\r\n\005event\030" + + "\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.google.proto" + + "buf.Struct\022\026\n\016resolved_input\030\003 \001(\t\022G\n\nma" + + "tch_type\030\004 \001(\01623.google.cloud.dialogflow" + + ".cx.v3beta1.Match.MatchType\022\022\n\nconfidenc" + + "e\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYPE_UNSP" + + "ECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INTENT\020\002" + + "\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n" + + "\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\345\001\n\022MatchIntentRe" + + "quest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dialogfl" + + "ow.googleapis.com/Session\022I\n\014query_param" + + "s\030\002 \001(\01323.google.cloud.dialogflow.cx.v3b" + + "eta1.QueryParameters\022H\n\013query_input\030\003 \001(" + + "\0132..google.cloud.dialogflow.cx.v3beta1.Q" + + "ueryInputB\003\340A\002\"\232\002\n\023MatchIntentResponse\022\016" + + "\n\004text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%" + + "\372A\"\n dialogflow.googleapis.com/IntentH\000\022" + + "\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006" + + " \001(\tH\000\022:\n\007matches\030\004 \003(\0132).google.cloud.d" + + "ialogflow.cx.v3beta1.Match\022>\n\014current_pa" + + "ge\030\005 \001(\0132(.google.cloud.dialogflow.cx.v3" + + "beta1.PageB\007\n\005query\"\372\001\n\024FulfillIntentReq" + + "uest\022T\n\024match_intent_request\030\001 \001(\01326.goo" + + "gle.cloud.dialogflow.cx.v3beta1.MatchInt" + + "entRequest\0228\n\005match\030\002 \001(\0132).google.cloud" + + ".dialogflow.cx.v3beta1.Match\022R\n\023output_a" + + "udio_config\030\003 \001(\01325.google.cloud.dialogf" + + "low.cx.v3beta1.OutputAudioConfig\"\335\001\n\025Ful" + + "fillIntentResponse\022\023\n\013response_id\030\001 \001(\t\022" + + "E\n\014query_result\030\002 \001(\0132/.google.cloud.dia" + + "logflow.cx.v3beta1.QueryResult\022\024\n\014output" + + "_audio\030\003 \001(\014\022R\n\023output_audio_config\030\004 \001(" + + "\01325.google.cloud.dialogflow.cx.v3beta1.O" + + "utputAudioConfig\";\n\027SentimentAnalysisRes" + + "ult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\212\n" + + "\n\010Sessions\022\272\002\n\014DetectIntent\0227.google.clo" + + "ud.dialogflow.cx.v3beta1.DetectIntentReq" + + "uest\0328.google.cloud.dialogflow.cx.v3beta" + + "1.DetectIntentResponse\"\266\001\202\323\344\223\002\257\001\"J/v3bet" + + "a1/{session=projects/*/locations/*/agent" + + "s/*/sessions/*}:detectIntent:\001*Z^\"Y/v3be" + + "ta1/{session=projects/*/locations/*/agen" + + "ts/*/environments/*/sessions/*}:detectIn" + + "tent:\001*\022\242\001\n\025StreamingDetectIntent\022@.goog" + + "le.cloud.dialogflow.cx.v3beta1.Streaming" + + "DetectIntentRequest\032A.google.cloud.dialo" + + "gflow.cx.v3beta1.StreamingDetectIntentRe" + + "sponse\"\000(\0010\001\022\265\002\n\013MatchIntent\0226.google.cl" + + "oud.dialogflow.cx.v3beta1.MatchIntentReq" + + "uest\0327.google.cloud.dialogflow.cx.v3beta" + + "1.MatchIntentResponse\"\264\001\202\323\344\223\002\255\001\"I/v3beta" + + "1/{session=projects/*/locations/*/agents" + + "/*/sessions/*}:matchIntent:\001*Z]\"X/v3beta" + + "1/{session=projects/*/locations/*/agents" + + "/*/environments/*/sessions/*}:matchInten" + + "t:\001*\022\351\002\n\rFulfillIntent\0228.google.cloud.di" + + "alogflow.cx.v3beta1.FulfillIntentRequest" + + "\0329.google.cloud.dialogflow.cx.v3beta1.Fu" + + "lfillIntentResponse\"\342\001\202\323\344\223\002\333\001\"`/v3beta1/" + + "{match_intent_request.session=projects/*" + + "/locations/*/agents/*/sessions/*}:fulfil" + + "lIntent:\001*Zt\"o/v3beta1/{match_intent_req" + + "uest.session=projects/*/locations/*/agen" + + "ts/*/environments/*/sessions/*}:fulfillI" + + "ntent:\001*\032x\312A\031dialogflow.googleapis.com\322A" + + "Yhttps://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "dialogflowB\203\003\n&com.google.cloud.dialogfl" + + "ow.cx.v3beta1B\014SessionProtoP\001ZDgoogle.go" + + "lang.org/genproto/googleapis/cloud/dialo" + + "gflow/cx/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Clo" + + "ud.Dialogflow.Cx.V3Beta1\352A\324\001\n!dialogflow" + + ".googleapis.com/Session\022Iprojects/{proje" + + "ct}/locations/{location}/agents/{agent}/" + + "sessions/{session}\022dprojects/{project}/l" + + "ocations/{location}/agents/{agent}/envir" + + "onments/{environment}/sessions/{session}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -373,6 +375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SessionEntityTypes", "Payload", "Parameters", + "CurrentPage", "DisableWebhook", "AnalyzeQueryTextSentiment", "WebhookHeaders", diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java index 2010f28b3..c25c59100 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookProto.java @@ -165,113 +165,114 @@ 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\"\373\t\n\016WebhookRe" + + "com/Webhook\022\r\n\005force\030\002 \001(\010\"\222\n\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\022\\\n\020fulfillment_info\030\006 \001(\0132B.goo" - + "gle.cloud.dialogflow.cx.v3beta1.WebhookR" - + "equest.FulfillmentInfo\022R\n\013intent_info\030\003 " - + "\001(\0132=.google.cloud.dialogflow.cx.v3beta1" - + ".WebhookRequest.IntentInfo\022?\n\tpage_info\030" - + "\004 \001(\0132,.google.cloud.dialogflow.cx.v3bet" - + "a1.PageInfo\022E\n\014session_info\030\005 \001(\0132/.goog" - + "le.cloud.dialogflow.cx.v3beta1.SessionIn" - + "fo\022E\n\010messages\030\007 \003(\01323.google.cloud.dial" - + "ogflow.cx.v3beta1.ResponseMessage\022(\n\007pay" - + "load\030\010 \001(\0132\027.google.protobuf.Struct\022m\n\031s" - + "entiment_analysis_result\030\t \001(\0132J.google." - + "cloud.dialogflow.cx.v3beta1.WebhookReque" - + "st.SentimentAnalysisResult\032\036\n\017Fulfillmen" - + "tInfo\022\013\n\003tag\030\001 \001(\t\032\305\003\n\nIntentInfo\022B\n\023las" - + "t_matched_intent\030\001 \001(\tB%\372A\"\n dialogflow." - + "googleapis.com/Intent\022\024\n\014display_name\030\003 " - + "\001(\t\022a\n\nparameters\030\002 \003(\0132M.google.cloud.d" - + "ialogflow.cx.v3beta1.WebhookRequest.Inte" - + "ntInfo.ParametersEntry\022\022\n\nconfidence\030\004 \001" - + "(\002\032^\n\024IntentParameterValue\022\026\n\016original_v" - + "alue\030\001 \001(\t\022.\n\016resolved_value\030\002 \001(\0132\026.goo" - + "gle.protobuf.Value\032\205\001\n\017ParametersEntry\022\013" - + "\n\003key\030\001 \001(\t\022a\n\005value\030\002 \001(\0132R.google.clou" + + "\030\016 \001(\tH\000\022\025\n\rlanguage_code\030\017 \001(\t\022\\\n\020fulfi" + + "llment_info\030\006 \001(\0132B.google.cloud.dialogf" + + "low.cx.v3beta1.WebhookRequest.Fulfillmen" + + "tInfo\022R\n\013intent_info\030\003 \001(\0132=.google.clou" + "d.dialogflow.cx.v3beta1.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\"\310\005\n\017WebhookResp" - + "onse\022e\n\024fulfillment_response\030\001 \001(\0132G.goo" - + "gle.cloud.dialogflow.cx.v3beta1.WebhookR" - + "esponse.FulfillmentResponse\022?\n\tpage_info" - + "\030\002 \001(\0132,.google.cloud.dialogflow.cx.v3be" - + "ta1.PageInfo\022E\n\014session_info\030\003 \001(\0132/.goo" - + "gle.cloud.dialogflow.cx.v3beta1.SessionI" - + "nfo\022(\n\007payload\030\004 \001(\0132\027.google.protobuf.S" - + "truct\022:\n\013target_page\030\005 \001(\tB#\372A \n\036dialogf" - + "low.googleapis.com/PageH\000\022:\n\013target_flow" - + "\030\006 \001(\tB#\372A \n\036dialogflow.googleapis.com/F" - + "lowH\000\032\225\002\n\023FulfillmentResponse\022E\n\010message" - + "s\030\001 \003(\01323.google.cloud.dialogflow.cx.v3b" - + "eta1.ResponseMessage\022m\n\016merge_behavior\030\002" - + " \001(\0162U.google.cloud.dialogflow.cx.v3beta" - + "1.WebhookResponse.FulfillmentResponse.Me" - + "rgeBehavior\"H\n\rMergeBehavior\022\036\n\032MERGE_BE" - + "HAVIOR_UNSPECIFIED\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPL" - + "ACE\020\002B\014\n\ntransition\"\254\004\n\010PageInfo\0229\n\014curr" - + "ent_page\030\001 \001(\tB#\372A \n\036dialogflow.googleap" - + "is.com/Page\022H\n\tform_info\030\003 \001(\01325.google." - + "cloud.dialogflow.cx.v3beta1.PageInfo.For" - + "mInfo\032\232\003\n\010FormInfo\022[\n\016parameter_info\030\002 \003" - + "(\0132C.google.cloud.dialogflow.cx.v3beta1." - + "PageInfo.FormInfo.ParameterInfo\032\260\002\n\rPara" - + "meterInfo\022\024\n\014display_name\030\001 \001(\t\022\020\n\010requi" - + "red\030\002 \001(\010\022a\n\005state\030\003 \001(\0162R.google.cloud." - + "dialogflow.cx.v3beta1.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\"\346\001\n\013SessionInfo\0227\n\007se" - + "ssion\030\001 \001(\tB&\372A#\n!dialogflow.googleapis." - + "com/Session\022S\n\nparameters\030\002 \003(\0132?.google" - + ".cloud.dialogflow.cx.v3beta1.SessionInfo" - + ".ParametersEntry\032I\n\017ParametersEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobu" - + "f.Value:\0028\0012\375\010\n\010Webhooks\022\316\001\n\014ListWebhook" - + "s\0227.google.cloud.dialogflow.cx.v3beta1.L" - + "istWebhooksRequest\0328.google.cloud.dialog" - + "flow.cx.v3beta1.ListWebhooksResponse\"K\202\323" - + "\344\223\002<\022:/v3beta1/{parent=projects/*/locati" - + "ons/*/agents/*}/webhooks\332A\006parent\022\273\001\n\nGe" - + "tWebhook\0225.google.cloud.dialogflow.cx.v3" - + "beta1.GetWebhookRequest\032+.google.cloud.d" - + "ialogflow.cx.v3beta1.Webhook\"I\202\323\344\223\002<\022:/v" - + "3beta1/{name=projects/*/locations/*/agen" - + "ts/*/webhooks/*}\332A\004name\022\324\001\n\rCreateWebhoo" - + "k\0228.google.cloud.dialogflow.cx.v3beta1.C" - + "reateWebhookRequest\032+.google.cloud.dialo" - + "gflow.cx.v3beta1.Webhook\"\\\202\323\344\223\002E\":/v3bet" - + "a1/{parent=projects/*/locations/*/agents" - + "/*}/webhooks:\007webhook\332A\016parent,webhook\022\341" - + "\001\n\rUpdateWebhook\0228.google.cloud.dialogfl" - + "ow.cx.v3beta1.UpdateWebhookRequest\032+.goo" - + "gle.cloud.dialogflow.cx.v3beta1.Webhook\"" - + "i\202\323\344\223\002M2B/v3beta1/{webhook.name=projects" - + "/*/locations/*/agents/*/webhooks/*}:\007web" - + "hook\332A\023webhook,update_mask\022\254\001\n\rDeleteWeb" - + "hook\0228.google.cloud.dialogflow.cx.v3beta" - + "1.DeleteWebhookRequest\032\026.google.protobuf" - + ".Empty\"I\202\323\344\223\002<*:/v3beta1/{name=projects/" - + "*/locations/*/agents/*/webhooks/*}\332A\004nam" - + "e\032x\312A\031dialogflow.googleapis.com\322AYhttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/dialogf" - + "lowB\252\002\n&com.google.cloud.dialogflow.cx.v" - + "3beta1B\014WebhookProtoP\001ZDgoogle.golang.or" - + "g/genproto/googleapis/cloud/dialogflow/c" - + "x/v3beta1;cx\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dial" - + "ogflow.Cx.V3Beta1\352A|\n\'servicedirectory.g" - + "oogleapis.com/Service\022Qprojects/{project" - + "}/locations/{location}/namespaces/{names" - + "pace}/services/{service}b\006proto3" + + "ntentInfo\022?\n\tpage_info\030\004 \001(\0132,.google.cl" + + "oud.dialogflow.cx.v3beta1.PageInfo\022E\n\014se" + + "ssion_info\030\005 \001(\0132/.google.cloud.dialogfl" + + "ow.cx.v3beta1.SessionInfo\022E\n\010messages\030\007 " + + "\003(\01323.google.cloud.dialogflow.cx.v3beta1" + + ".ResponseMessage\022(\n\007payload\030\010 \001(\0132\027.goog" + + "le.protobuf.Struct\022m\n\031sentiment_analysis" + + "_result\030\t \001(\0132J.google.cloud.dialogflow." + + "cx.v3beta1.WebhookRequest.SentimentAnaly" + + "sisResult\032\036\n\017FulfillmentInfo\022\013\n\003tag\030\001 \001(" + + "\t\032\305\003\n\nIntentInfo\022B\n\023last_matched_intent\030" + + "\001 \001(\tB%\372A\"\n dialogflow.googleapis.com/In" + + "tent\022\024\n\014display_name\030\003 \001(\t\022a\n\nparameters" + + "\030\002 \003(\0132M.google.cloud.dialogflow.cx.v3be" + + "ta1.WebhookRequest.IntentInfo.Parameters" + + "Entry\022\022\n\nconfidence\030\004 \001(\002\032^\n\024IntentParam" + + "eterValue\022\026\n\016original_value\030\001 \001(\t\022.\n\016res" + + "olved_value\030\002 \001(\0132\026.google.protobuf.Valu" + + "e\032\205\001\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022a\n\005va" + + "lue\030\002 \001(\0132R.google.cloud.dialogflow.cx.v" + + "3beta1.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\"\310\005\n\017WebhookResponse\022e\n\024fulfillme" + + "nt_response\030\001 \001(\0132G.google.cloud.dialogf" + + "low.cx.v3beta1.WebhookResponse.Fulfillme" + + "ntResponse\022?\n\tpage_info\030\002 \001(\0132,.google.c" + + "loud.dialogflow.cx.v3beta1.PageInfo\022E\n\014s" + + "ession_info\030\003 \001(\0132/.google.cloud.dialogf" + + "low.cx.v3beta1.SessionInfo\022(\n\007payload\030\004 " + + "\001(\0132\027.google.protobuf.Struct\022:\n\013target_p" + + "age\030\005 \001(\tB#\372A \n\036dialogflow.googleapis.co" + + "m/PageH\000\022:\n\013target_flow\030\006 \001(\tB#\372A \n\036dial" + + "ogflow.googleapis.com/FlowH\000\032\225\002\n\023Fulfill" + + "mentResponse\022E\n\010messages\030\001 \003(\01323.google." + + "cloud.dialogflow.cx.v3beta1.ResponseMess" + + "age\022m\n\016merge_behavior\030\002 \001(\0162U.google.clo" + + "ud.dialogflow.cx.v3beta1.WebhookResponse" + + ".FulfillmentResponse.MergeBehavior\"H\n\rMe" + + "rgeBehavior\022\036\n\032MERGE_BEHAVIOR_UNSPECIFIE" + + "D\020\000\022\n\n\006APPEND\020\001\022\013\n\007REPLACE\020\002B\014\n\ntransiti" + + "on\"\254\004\n\010PageInfo\0229\n\014current_page\030\001 \001(\tB#\372" + + "A \n\036dialogflow.googleapis.com/Page\022H\n\tfo" + + "rm_info\030\003 \001(\01325.google.cloud.dialogflow." + + "cx.v3beta1.PageInfo.FormInfo\032\232\003\n\010FormInf" + + "o\022[\n\016parameter_info\030\002 \003(\0132C.google.cloud" + + ".dialogflow.cx.v3beta1.PageInfo.FormInfo" + + ".ParameterInfo\032\260\002\n\rParameterInfo\022\024\n\014disp" + + "lay_name\030\001 \001(\t\022\020\n\010required\030\002 \001(\010\022a\n\005stat" + + "e\030\003 \001(\0162R.google.cloud.dialogflow.cx.v3b" + + "eta1.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\"\346\001\n\013SessionInfo\0227\n\007session\030\001 \001(\tB&\372A#\n" + + "!dialogflow.googleapis.com/Session\022S\n\npa" + + "rameters\030\002 \003(\0132?.google.cloud.dialogflow" + + ".cx.v3beta1.SessionInfo.ParametersEntry\032" + + "I\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value" + + "\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\375\010\n\010W" + + "ebhooks\022\316\001\n\014ListWebhooks\0227.google.cloud." + + "dialogflow.cx.v3beta1.ListWebhooksReques" + + "t\0328.google.cloud.dialogflow.cx.v3beta1.L" + + "istWebhooksResponse\"K\202\323\344\223\002<\022:/v3beta1/{p" + + "arent=projects/*/locations/*/agents/*}/w" + + "ebhooks\332A\006parent\022\273\001\n\nGetWebhook\0225.google" + + ".cloud.dialogflow.cx.v3beta1.GetWebhookR" + + "equest\032+.google.cloud.dialogflow.cx.v3be" + + "ta1.Webhook\"I\202\323\344\223\002<\022:/v3beta1/{name=proj" + + "ects/*/locations/*/agents/*/webhooks/*}\332" + + "A\004name\022\324\001\n\rCreateWebhook\0228.google.cloud." + + "dialogflow.cx.v3beta1.CreateWebhookReque" + + "st\032+.google.cloud.dialogflow.cx.v3beta1." + + "Webhook\"\\\202\323\344\223\002E\":/v3beta1/{parent=projec" + + "ts/*/locations/*/agents/*}/webhooks:\007web" + + "hook\332A\016parent,webhook\022\341\001\n\rUpdateWebhook\022" + + "8.google.cloud.dialogflow.cx.v3beta1.Upd" + + "ateWebhookRequest\032+.google.cloud.dialogf" + + "low.cx.v3beta1.Webhook\"i\202\323\344\223\002M2B/v3beta1" + + "/{webhook.name=projects/*/locations/*/ag" + + "ents/*/webhooks/*}:\007webhook\332A\023webhook,up" + + "date_mask\022\254\001\n\rDeleteWebhook\0228.google.clo" + + "ud.dialogflow.cx.v3beta1.DeleteWebhookRe" + + "quest\032\026.google.protobuf.Empty\"I\202\323\344\223\002<*:/" + + "v3beta1/{name=projects/*/locations/*/age" + + "nts/*/webhooks/*}\332A\004name\032x\312A\031dialogflow." + + "googleapis.com\322AYhttps://www.googleapis." + + "com/auth/cloud-platform,https://www.goog" + + "leapis.com/auth/dialogflowB\252\002\n&com.googl" + + "e.cloud.dialogflow.cx.v3beta1B\014WebhookPr" + + "otoP\001ZDgoogle.golang.org/genproto/google" + + "apis/cloud/dialogflow/cx/v3beta1;cx\370\001\001\242\002" + + "\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Beta1" + + "\352A|\n\'servicedirectory.googleapis.com/Ser" + + "vice\022Qprojects/{project}/locations/{loca" + + "tion}/namespaces/{namespace}/services/{s" + + "ervice}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -374,6 +375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TriggerIntent", "Transcript", "TriggerEvent", + "LanguageCode", "FulfillmentInfo", "IntentInfo", "PageInfo", diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java index f4b8f8fca..50639052a 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java @@ -40,6 +40,7 @@ private WebhookRequest(com.google.protobuf.GeneratedMessageV3.Builder builder private WebhookRequest() { detectIntentResponseId_ = ""; + languageCode_ = ""; messages_ = java.util.Collections.emptyList(); } @@ -225,6 +226,13 @@ private WebhookRequest( query_ = s; break; } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -4638,6 +4646,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.v3beta1.WebhookRequest.FulfillmentInfo fulfillmentInfo_; /** @@ -5076,6 +5135,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); } @@ -5122,6 +5184,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; @@ -5139,6 +5204,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dialogflow.cx.v3beta1.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; @@ -5194,6 +5260,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(); @@ -5393,6 +5461,8 @@ public Builder clear() { super.clear(); detectIntentResponseId_ = ""; + languageCode_ = ""; + if (fulfillmentInfoBuilder_ == null) { fulfillmentInfo_ = null; } else { @@ -5478,6 +5548,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest buildPartial() { if (queryCase_ == 14) { result.query_ = query_; } + result.languageCode_ = languageCode_; if (fulfillmentInfoBuilder_ == null) { result.fulfillmentInfo_ = fulfillmentInfo_; } else { @@ -5572,6 +5643,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest o detectIntentResponseId_ = other.detectIntentResponseId_; onChanged(); } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + onChanged(); + } if (other.hasFulfillmentInfo()) { mergeFulfillmentInfo(other.getFulfillmentInfo()); } @@ -6380,6 +6455,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.v3beta1.WebhookRequest.FulfillmentInfo fulfillmentInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo, diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequestOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequestOrBuilder.java index 97d24041b..6c13788d6 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequestOrBuilder.java +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/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-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/flow.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/flow.proto index f8b92b5eb..088611818 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/flow.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/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-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/intent.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/intent.proto index c0479c472..96d994d26 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/intent.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/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.v3beta1.Intents.ListIntents]. diff --git a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index 62291cb81..f331f1a2b 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/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.v3beta1.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.v3beta1.QueryParameters.current_page] and + // [parameters][google.cloud.dialogflow.cx.v3beta1.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-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto index 522ff9cae..d0fb224f6 100644 --- a/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/webhook.proto +++ b/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/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 e3dc5aa16..8251aed1e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,16 +11,16 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "163ed6c0450949662bf2e6997eb7e0782cd4d800", - "internalRef": "367042726" + "sha": "9a386bc12400c03f81c97f599d7ba7cb0b440577", + "internalRef": "367052612" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "163ed6c0450949662bf2e6997eb7e0782cd4d800", - "internalRef": "367042726" + "sha": "9a386bc12400c03f81c97f599d7ba7cb0b440577", + "internalRef": "367052612" } }, {