GoogleCloudDialogflowCxV3beta1EventHandler class

An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a trigger_fulfillment associated with the event, it will be called. * If there is a target_page associated with the event, the session will transition into the specified page. * If there is a target_flow associated with the event, the session will transition into the specified flow.

Constructors

GoogleCloudDialogflowCxV3beta1EventHandler({required Input<String> event, Input<String>? targetFlow, Input<String>? targetPage, Input<GoogleCloudDialogflowCxV3beta1Fulfillment>? triggerFulfillment})
Creates a new GoogleCloudDialogflowCxV3beta1EventHandler. event The name of the event to handle. targetFlow The target flow to transition to. Format: projects//locations//agents//flows/. targetPage The target page to transition to. Format: projects//locations//agents//flows//pages/. triggerFulfillment The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
const
GoogleCloudDialogflowCxV3beta1EventHandler.fromMap(Map<String, dynamic> map)
factory

Properties

event → Input<String>
The name of the event to handle.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetFlow → Input<String>?
The target flow to transition to. Format: projects//locations//agents//flows/.
final
targetPage → Input<String>?
The target page to transition to. Format: projects//locations//agents//flows//pages/.
final
triggerFulfillment → Input<GoogleCloudDialogflowCxV3beta1Fulfillment>?
The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited