GoogleCloudDialogflowCxV3EventHandlerResponse 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
-
GoogleCloudDialogflowCxV3EventHandlerResponse({required Input<
String> event, required Input<String> name, required Input<String> targetFlow, required Input<String> targetPage, required Input<GoogleCloudDialogflowCxV3FulfillmentResponse> triggerFulfillment}) -
Creates a new GoogleCloudDialogflowCxV3EventHandlerResponse.
eventThe name of the event to handle.nameThe unique identifier of this event handler.targetFlowThe target flow to transition to. Format:projects//locations//agents//flows/.targetPageThe target page to transition to. Format:projects//locations//agents//flows//pages/.triggerFulfillmentThe 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 -
GoogleCloudDialogflowCxV3EventHandlerResponse.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
-
name
→ Input<
String> -
The unique identifier of this event handler.
final
- 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<
GoogleCloudDialogflowCxV3FulfillmentResponse> -
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