public final class TransitionRoute extends com.google.protobuf.GeneratedMessageV3 implements TransitionRouteOrBuilder
A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.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.v3.TransitionRoute.trigger_fulfillment] associated with the transition, it will be called. * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.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.v3.TransitionRoute.target_flow] associated with the transition, the session will transition into the specified flow.Protobuf type
google.cloud.dialogflow.cx.v3.TransitionRoute| Modifier and Type | Class and Description |
|---|---|
static class |
TransitionRoute.Builder
A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent]
that can be matched and/or a data condition that can be evaluated during a
session.
|
static class |
TransitionRoute.TargetCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONDITION_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
INTENT_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
TARGET_FLOW_FIELD_NUMBER |
static int |
TARGET_PAGE_FIELD_NUMBER |
static int |
TRIGGER_FULFILLMENT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCondition()
The condition to evaluate against [form
parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
|
com.google.protobuf.ByteString |
getConditionBytes()
The condition to evaluate against [form
parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
|
static TransitionRoute |
getDefaultInstance() |
TransitionRoute |
getDefaultInstanceForType() |
String |
getDescription()
Optional.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
Optional.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getIntent()
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent].
|
com.google.protobuf.ByteString |
getIntentBytes()
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent].
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<TransitionRoute> |
getParserForType() |
int |
getSerializedSize() |
TransitionRoute.TargetCase |
getTargetCase() |
String |
getTargetFlow()
The target flow to transition to.
|
com.google.protobuf.ByteString |
getTargetFlowBytes()
The target flow to transition to.
|
String |
getTargetPage()
The target page to transition to.
|
com.google.protobuf.ByteString |
getTargetPageBytes()
The target page to transition to.
|
Fulfillment |
getTriggerFulfillment()
The fulfillment to call when the condition is satisfied.
|
FulfillmentOrBuilder |
getTriggerFulfillmentOrBuilder()
The fulfillment to call when the condition is satisfied.
|
int |
hashCode() |
boolean |
hasTargetFlow()
The target flow to transition to.
|
boolean |
hasTargetPage()
The target page to transition to.
|
boolean |
hasTriggerFulfillment()
The fulfillment to call when the condition is satisfied.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TransitionRoute.Builder |
newBuilder() |
static TransitionRoute.Builder |
newBuilder(TransitionRoute prototype) |
TransitionRoute.Builder |
newBuilderForType() |
protected TransitionRoute.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TransitionRoute |
parseDelimitedFrom(InputStream input) |
static TransitionRoute |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitionRoute |
parseFrom(byte[] data) |
static TransitionRoute |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitionRoute |
parseFrom(ByteBuffer data) |
static TransitionRoute |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitionRoute |
parseFrom(com.google.protobuf.ByteString data) |
static TransitionRoute |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitionRoute |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TransitionRoute |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransitionRoute |
parseFrom(InputStream input) |
static TransitionRoute |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TransitionRoute> |
parser() |
TransitionRoute.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int INTENT_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER
public static final int TRIGGER_FULFILLMENT_FIELD_NUMBER
public static final int TARGET_PAGE_FIELD_NUMBER
public static final int TARGET_FLOW_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public TransitionRoute.TargetCase getTargetCase()
getTargetCase in interface TransitionRouteOrBuilderpublic String getName()
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface TransitionRouteOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The unique identifier of this transition route.
string name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface TransitionRouteOrBuilderpublic String getDescription()
Optional. The description of the transition route. The maximum length is 500 characters.
string description = 8 [(.google.api.field_behavior) = OPTIONAL];getDescription in interface TransitionRouteOrBuilderpublic 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];getDescriptionBytes in interface TransitionRouteOrBuilderpublic String getIntent()
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.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) = { ... }getIntent in interface TransitionRouteOrBuilderpublic com.google.protobuf.ByteString getIntentBytes()
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.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) = { ... }getIntentBytes in interface TransitionRouteOrBuilderpublic String getCondition()
The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3.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;getCondition in interface TransitionRouteOrBuilderpublic com.google.protobuf.ByteString getConditionBytes()
The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3.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;getConditionBytes in interface TransitionRouteOrBuilderpublic 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.v3.Fulfillment trigger_fulfillment = 3;hasTriggerFulfillment in interface TransitionRouteOrBuilderpublic Fulfillment 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.v3.Fulfillment trigger_fulfillment = 3;getTriggerFulfillment in interface TransitionRouteOrBuilderpublic FulfillmentOrBuilder 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.v3.Fulfillment trigger_fulfillment = 3;getTriggerFulfillmentOrBuilder in interface TransitionRouteOrBuilderpublic 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) = { ... }hasTargetPage in interface TransitionRouteOrBuilderpublic String 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) = { ... }getTargetPage in interface TransitionRouteOrBuilderpublic 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) = { ... }getTargetPageBytes in interface TransitionRouteOrBuilderpublic 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) = { ... }hasTargetFlow in interface TransitionRouteOrBuilderpublic String getTargetFlow()
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }getTargetFlow in interface TransitionRouteOrBuilderpublic 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) = { ... }getTargetFlowBytes in interface TransitionRouteOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TransitionRoute parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitionRoute parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitionRoute parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitionRoute parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitionRoute parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitionRoute parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransitionRoute parseFrom(InputStream input) throws IOException
IOExceptionpublic static TransitionRoute parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TransitionRoute parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TransitionRoute parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TransitionRoute parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TransitionRoute parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TransitionRoute.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TransitionRoute.Builder newBuilder()
public static TransitionRoute.Builder newBuilder(TransitionRoute prototype)
public TransitionRoute.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TransitionRoute.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TransitionRoute getDefaultInstance()
public static com.google.protobuf.Parser<TransitionRoute> parser()
public com.google.protobuf.Parser<TransitionRoute> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TransitionRoute getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.