Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TransitionRoute.
A transition route specifies a 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
associated with the transition, it will be called. -
If there is a
target_page
associated with the transition, the session will transition into the specified page. - If there is a
target_flow
associated with the transition, the session will transition into the specified flow.
Generated from protobuf message google.cloud.dialogflow.cx.v3.TransitionRoute
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3Methods
__construct
Constructor.
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 an Intent
. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>
. 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.
↳ condition
string
The condition to evaluate against form parameters
or session parameters
. See the conditions reference
. 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.
↳ trigger_fulfillment
Google\Cloud\Dialogflow\Cx\V3\Fulfillment
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.
↳ target_page
string
The target page to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>
.
↳ target_flow
string
The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>
.
getName
Output only. The unique identifier of this transition route.
string
setName
Output only. The unique identifier of this transition route.
var
string
$this
getDescription
Optional. The description of the transition route. The maximum length is 500 characters.
string
setDescription
Optional. The description of the transition route. The maximum length is 500 characters.
var
string
$this
getIntent
The unique identifier of an Intent .
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/intents/<Intent ID>
.
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
setIntent
The unique identifier of an Intent .
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/intents/<Intent ID>
.
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.
var
string
$this
getCondition
The condition to evaluate against form parameters or session parameters .
See the conditions
reference
.
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
setCondition
The condition to evaluate against form parameters or session parameters .
See the conditions
reference
.
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.
var
string
$this
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.
hasTriggerFulfillment
clearTriggerFulfillment
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.
$this
getTargetPage
The target page to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>
.
string
hasTargetPage
setTargetPage
The target page to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>
.
var
string
$this
getTargetFlow
The target flow to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>
.
string
hasTargetFlow
setTargetFlow
The target flow to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>
.
var
string
$this
getTarget
string