Class TransitionRoute.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransitionRoute.Builder>
com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder
- All Implemented Interfaces:
TransitionRouteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TransitionRoute
public static final class TransitionRoute.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TransitionRoute.Builder>
implements TransitionRouteOrBuilder
A transition route specifies a [intent][google.cloud.dialogflow.cx.v3beta1.Intent] that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order: * If there is a [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.trigger_fulfillment] associated with the transition, it will be called. * If there is a [`target_page`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.target_page] associated with the transition, the session will transition into the specified page. * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.target_flow] associated with the transition, the session will transition into the specified flow.Protobuf type
google.cloud.dialogflow.cx.v3beta1.TransitionRoute-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].Optional.The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent].Output only.The target flow to transition to.The target page to transition to.The fulfillment to call when the condition is satisfied.The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].com.google.protobuf.ByteStringThe condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent].com.google.protobuf.ByteStringThe unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent].getName()Output only.com.google.protobuf.ByteStringOutput only.The target flow to transition to.com.google.protobuf.ByteStringThe target flow to transition to.The target page to transition to.com.google.protobuf.ByteStringThe target page to transition to.The fulfillment to call when the condition is satisfied.The fulfillment to call when the condition is satisfied.The fulfillment to call when the condition is satisfied.booleanThe target flow to transition to.booleanThe target page to transition to.booleanThe fulfillment to call when the condition is satisfied.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TransitionRoute other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The fulfillment to call when the condition is satisfied.setCondition(String value) The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].setConditionBytes(com.google.protobuf.ByteString value) The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters].setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent].setIntentBytes(com.google.protobuf.ByteString value) The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent].Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setTargetFlow(String value) The target flow to transition to.setTargetFlowBytes(com.google.protobuf.ByteString value) The target flow to transition to.setTargetPage(String value) The target page to transition to.setTargetPageBytes(com.google.protobuf.ByteString value) The target page to transition to.setTriggerFulfillment(Fulfillment value) The fulfillment to call when the condition is satisfied.setTriggerFulfillment(Fulfillment.Builder builderForValue) The fulfillment to call when the condition is satisfied.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TransitionRoute.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TransitionRoute.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TransitionRoute.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransitionRoute.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TransitionRoute.Builder>
-
mergeFrom
public TransitionRoute.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransitionRoute.Builder>- Throws:
IOException
-
getTargetCase
- Specified by:
getTargetCasein interfaceTransitionRouteOrBuilder
-
clearTarget
-
getName
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceTransitionRouteOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceTransitionRouteOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setNameBytes
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. The description of the transition route. The maximum length is 500 characters.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceTransitionRouteOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. The description of the transition route. The maximum length is 500 characters.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceTransitionRouteOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. The description of the transition route. The maximum length is 500 characters.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. The description of the transition route. The maximum length is 500 characters.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. The description of the transition route. The maximum length is 500 characters.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getIntent
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string intent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getIntentin interfaceTransitionRouteOrBuilder- Returns:
- The intent.
-
getIntentBytes
public com.google.protobuf.ByteString getIntentBytes()The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string intent = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getIntentBytesin interfaceTransitionRouteOrBuilder- Returns:
- The bytes for intent.
-
setIntent
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string intent = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The intent to set.- Returns:
- This builder for chaining.
-
clearIntent
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string intent = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setIntentBytes
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3beta1.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string intent = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for intent to set.- Returns:
- This builder for chaining.
-
getCondition
The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters]. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string condition = 2;- Specified by:
getConditionin interfaceTransitionRouteOrBuilder- Returns:
- The condition.
-
getConditionBytes
public com.google.protobuf.ByteString getConditionBytes()The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters]. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string condition = 2;- Specified by:
getConditionBytesin interfaceTransitionRouteOrBuilder- Returns:
- The bytes for condition.
-
setCondition
The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters]. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string condition = 2;- Parameters:
value- The condition to set.- Returns:
- This builder for chaining.
-
clearCondition
The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters]. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string condition = 2;- Returns:
- This builder for chaining.
-
setConditionBytes
The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters]. See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.
string condition = 2;- Parameters:
value- The bytes for condition to set.- Returns:
- This builder for chaining.
-
hasTriggerFulfillment
public boolean hasTriggerFulfillment()The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;- Specified by:
hasTriggerFulfillmentin interfaceTransitionRouteOrBuilder- Returns:
- Whether the triggerFulfillment field is set.
-
getTriggerFulfillment
The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;- Specified by:
getTriggerFulfillmentin interfaceTransitionRouteOrBuilder- Returns:
- The triggerFulfillment.
-
setTriggerFulfillment
The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3; -
setTriggerFulfillment
The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3; -
mergeTriggerFulfillment
The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3; -
clearTriggerFulfillment
The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3; -
getTriggerFulfillmentBuilder
The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3; -
getTriggerFulfillmentOrBuilder
The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.
.google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3;- Specified by:
getTriggerFulfillmentOrBuilderin interfaceTransitionRouteOrBuilder
-
hasTargetPage
public boolean hasTargetPage()The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetPagein interfaceTransitionRouteOrBuilder- Returns:
- Whether the targetPage field is set.
-
getTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetPagein interfaceTransitionRouteOrBuilder- Returns:
- The targetPage.
-
getTargetPageBytes
public com.google.protobuf.ByteString getTargetPageBytes()The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetPageBytesin interfaceTransitionRouteOrBuilder- Returns:
- The bytes for targetPage.
-
setTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Parameters:
value- The targetPage to set.- Returns:
- This builder for chaining.
-
clearTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTargetPageBytes
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for targetPage to set.- Returns:
- This builder for chaining.
-
hasTargetFlow
public boolean hasTargetFlow()The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetFlowin interfaceTransitionRouteOrBuilder- Returns:
- Whether the targetFlow field is set.
-
getTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetFlowin interfaceTransitionRouteOrBuilder- Returns:
- The targetFlow.
-
getTargetFlowBytes
public com.google.protobuf.ByteString getTargetFlowBytes()The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetFlowBytesin interfaceTransitionRouteOrBuilder- Returns:
- The bytes for targetFlow.
-
setTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The targetFlow to set.- Returns:
- This builder for chaining.
-
clearTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTargetFlowBytes
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for targetFlow to set.- Returns:
- This builder for chaining.
-