Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TransitionRoute.
A transition route specifies aintentthat 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 atrigger_fulfillmentassociated with the transition, it will be called.
If there is atarget_pageassociated with the transition, the session will transition into the
specified page.
If there is atarget_flowassociated with the transition, the session will transition into the
specified flow.
Generated from protobuf messagegoogle.cloud.dialogflow.cx.v3.TransitionRoute
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The unique identifier of this transition route.
↳ description
string
Optional. The description of the transition route. The maximum length is 500 characters.
↳ intent
string
The unique identifier of anIntent. 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 ofintentorconditionmust be specified. When bothintentandconditionare specified, the transition can only happen when both are fulfilled.
↳ condition
string
The condition to evaluate againstform parametersorsession parameters. See theconditions reference. At least one ofintentorconditionmust be specified. When bothintentandconditionare specified, the transition can only happen when both are fulfilled.
The fulfillment to call when the condition is satisfied. At least one oftrigger_fulfillmentandtargetmust be specified. When both are defined,trigger_fulfillmentis executed first.
↳ target_page
string
The target page to transition to. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>.
↳ target_flow
string
The target flow to transition to. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>.
getName
Output only. The unique identifier of this transition route.
Returns
Type
Description
string
setName
Output only. The unique identifier of this transition route.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDescription
Optional. The description of the transition route. The maximum length is
500 characters.
Returns
Type
Description
string
setDescription
Optional. The description of the transition route. The maximum length is
500 characters.
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 ofintentorconditionmust be specified. When bothintentandconditionare specified, the transition can only happen
when both are fulfilled.
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 ofintentorconditionmust be specified. When bothintentandconditionare specified, the transition can only happen
when both are fulfilled.
See theconditions
reference.
At least one ofintentorconditionmust be specified. When bothintentandconditionare specified, the transition can only happen
when both are fulfilled.
See theconditions
reference.
At least one ofintentorconditionmust be specified. When bothintentandconditionare specified, the transition can only happen
when both are fulfilled.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTriggerFulfillment
The fulfillment to call when the condition is satisfied. At least one oftrigger_fulfillmentandtargetmust be specified. When both are
defined,trigger_fulfillmentis executed first.
The fulfillment to call when the condition is satisfied. At least one oftrigger_fulfillmentandtargetmust be specified. When both are
defined,trigger_fulfillmentis executed first.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow Cx V3 Client - Class TransitionRoute (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionRoute)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.TransitionRoute)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.TransitionRoute)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.TransitionRoute)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.TransitionRoute)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.TransitionRoute)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.TransitionRoute)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.TransitionRoute)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.TransitionRoute) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TransitionRoute.\n\nA transition route specifies a [intent](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent)\nthat can be matched and/or a data condition that can be evaluated during a\nsession. When a specified transition is matched, the following actions are\ntaken in order:\n\n- If there is a\n [`trigger_fulfillment`](/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionRoute#_Google_Cloud_Dialogflow_Cx_V3_TransitionRoute__getTriggerFulfillment__)\n associated with the transition, it will be called.\n\n- If there is a\n [`target_page`](/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionRoute#_Google_Cloud_Dialogflow_Cx_V3_TransitionRoute__getTargetPage__)\n associated with the transition, the session will transition into the\n specified page.\n\n- If there is a [`target_flow`](/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionRoute#_Google_Cloud_Dialogflow_Cx_V3_TransitionRoute__getTargetFlow__) associated with the transition, the session will transition into the specified flow.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.TransitionRoute`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The unique identifier of this transition route.\n\n### setName\n\nOutput only. The unique identifier of this transition route.\n\n### getDescription\n\nOptional. The description of the transition route. The maximum length is\n500 characters.\n\n### setDescription\n\nOptional. The description of the transition route. The maximum length is\n500 characters.\n\n### getIntent\n\nThe unique identifier of an [Intent](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent).\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/intents/\u003cIntentID\u003e`.\nIndicates that the transition can only happen when the given intent is\nmatched.\nAt least one of `intent` or `condition` must be specified. When both\n`intent` and `condition` are specified, the transition can only happen\nwhen both are fulfilled.\n\n### setIntent\n\nThe unique identifier of an [Intent](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent).\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/intents/\u003cIntentID\u003e`.\nIndicates that the transition can only happen when the given intent is\nmatched.\nAt least one of `intent` or `condition` must be specified. When both\n`intent` and `condition` are specified, the transition can only happen\nwhen both are fulfilled.\n\n### getCondition\n\nThe condition to evaluate against [form\nparameters](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Form#_Google_Cloud_Dialogflow_Cx_V3_Form__getParameters__) or [session\nparameters](/php/docs/reference/cloud-dialogflow-cx/latest/V3.SessionInfo#_Google_Cloud_Dialogflow_Cx_V3_SessionInfo__getParameters__).\n\nSee the [conditions\nreference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).\nAt least one of `intent` or `condition` must be specified. When both\n`intent` and `condition` are specified, the transition can only happen\nwhen both are fulfilled.\n\n### setCondition\n\nThe condition to evaluate against [form\nparameters](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Form#_Google_Cloud_Dialogflow_Cx_V3_Form__getParameters__) or [session\nparameters](/php/docs/reference/cloud-dialogflow-cx/latest/V3.SessionInfo#_Google_Cloud_Dialogflow_Cx_V3_SessionInfo__getParameters__).\n\nSee the [conditions\nreference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).\nAt least one of `intent` or `condition` must be specified. When both\n`intent` and `condition` are specified, the transition can only happen\nwhen both are fulfilled.\n\n### getTriggerFulfillment\n\nThe fulfillment to call when the condition is satisfied. At least one of\n`trigger_fulfillment` and `target` must be specified. When both are\ndefined, `trigger_fulfillment` is executed first.\n\n### hasTriggerFulfillment\n\n### clearTriggerFulfillment\n\n### setTriggerFulfillment\n\nThe fulfillment to call when the condition is satisfied. At least one of\n`trigger_fulfillment` and `target` must be specified. When both are\ndefined, `trigger_fulfillment` is executed first.\n\n### getTargetPage\n\nThe target page to transition to.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/flows/\u003cFlowID\u003e/pages/\u003cPageID\u003e`.\n\n### hasTargetPage\n\n### setTargetPage\n\nThe target page to transition to.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/flows/\u003cFlowID\u003e/pages/\u003cPageID\u003e`.\n\n### getTargetFlow\n\nThe target flow to transition to.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/flows/\u003cFlowID\u003e`.\n\n### hasTargetFlow\n\n### setTargetFlow\n\nThe target flow to transition to.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/flows/\u003cFlowID\u003e`.\n\n### getTarget"]]