Class TransitionRoute (2.1.0)

public sealed class TransitionRoute : IMessage<TransitionRoute>, IEquatable<TransitionRoute>, IDeepCloneable<TransitionRoute>, IBufferMessage, IMessage

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.

Inheritance

Object > TransitionRoute

Namespace

Google.Cloud.Dialogflow.Cx.V3

Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

Constructors

TransitionRoute()

public TransitionRoute()

TransitionRoute(TransitionRoute)

public TransitionRoute(TransitionRoute other)
Parameter
NameDescription
otherTransitionRoute

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
TypeDescription
String

Intent

public string Intent { get; set; }

The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent]. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/agents/&lt;Agent ID>/intents/&lt;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
TypeDescription
String

IntentAsIntentName

public IntentName IntentAsIntentName { get; set; }

IntentName-typed view over the Intent resource name property.

Property Value
TypeDescription
IntentName

Name

public string Name { get; set; }

Output only. The unique identifier of this transition route.

Property Value
TypeDescription
String

TargetCase

public TransitionRoute.TargetOneofCase TargetCase { get; }
Property Value
TypeDescription
TransitionRoute.TargetOneofCase

TargetFlow

public string TargetFlow { get; set; }

The target flow to transition to. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/agents/&lt;Agent ID>/flows/&lt;Flow ID>.

Property Value
TypeDescription
String

TargetFlowAsFlowName

public FlowName TargetFlowAsFlowName { get; set; }

FlowName-typed view over the TargetFlow resource name property.

Property Value
TypeDescription
FlowName

TargetPage

public string TargetPage { get; set; }

The target page to transition to. Format: projects/&lt;Project ID>/locations/&lt;Location ID>/agents/&lt;Agent ID>/flows/&lt;Flow ID>/pages/&lt;Page ID>.

Property Value
TypeDescription
String

TargetPageAsPageName

public PageName TargetPageAsPageName { get; set; }

PageName-typed view over the TargetPage resource name property.

Property Value
TypeDescription
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
TypeDescription
Fulfillment