public sealed class TransitionRoute : IMessage<TransitionRoute>, IEquatable<TransitionRoute>, IDeepCloneable<TransitionRoute>, IBufferMessage, IMessage
Reference documentation and code samples for the Dialogflow v3 API class TransitionRoute.
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.
Implements
IMessage<TransitionRoute>, IEquatable<TransitionRoute>, IDeepCloneable<TransitionRoute>, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
TransitionRoute()
public TransitionRoute()
TransitionRoute(TransitionRoute)
public TransitionRoute(TransitionRoute other)
Parameter | |
---|---|
Name | Description |
other | TransitionRoute |
Properties
Condition
public string Condition { get; set; }
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.
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.
Property Value | |
---|---|
Type | Description |
String |
Intent
public string Intent { get; set; }
The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.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.
Property Value | |
---|---|
Type | Description |
String |
IntentAsIntentName
public IntentName IntentAsIntentName { get; set; }
IntentName-typed view over the Intent resource name property.
Property Value | |
---|---|
Type | Description |
IntentName |
Name
public string Name { get; set; }
Output only. The unique identifier of this transition route.
Property Value | |
---|---|
Type | Description |
String |
TargetCase
public TransitionRoute.TargetOneofCase TargetCase { get; }
Property Value | |
---|---|
Type | Description |
TransitionRoute.TargetOneofCase |
TargetFlow
public string TargetFlow { get; set; }
The target flow to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>
.
Property Value | |
---|---|
Type | Description |
String |
TargetFlowAsFlowName
public FlowName TargetFlowAsFlowName { get; set; }
FlowName-typed view over the TargetFlow resource name property.
Property Value | |
---|---|
Type | Description |
FlowName |
TargetPage
public string TargetPage { get; set; }
The target page to transition to.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
ID>/flows/<Flow ID>/pages/<Page ID>
.
Property Value | |
---|---|
Type | Description |
String |
TargetPageAsPageName
public PageName TargetPageAsPageName { get; set; }
PageName-typed view over the TargetPage resource name property.
Property Value | |
---|---|
Type | Description |
PageName |
TriggerFulfillment
public Fulfillment TriggerFulfillment { get; set; }
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.
Property Value | |
---|---|
Type | Description |
Fulfillment |