Class: Google::Cloud::Dialogflow::CX::V3::EventHandler
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::CX::V3::EventHandler
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/cx/v3/page.rb
Overview
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.
Instance Attribute Summary collapse
-
#event ⇒ ::String
Required.
-
#name ⇒ ::String
readonly
Output only.
-
#target_flow ⇒ ::String
The target flow to transition to.
-
#target_page ⇒ ::String
The target page to transition to.
-
#trigger_fulfillment ⇒ ::Google::Cloud::Dialogflow::CX::V3::Fulfillment
The fulfillment to call when the event occurs.
Instance Attribute Details
#event ⇒ ::String
Returns Required. The name of the event to handle.
265 266 267 268 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/page.rb', line 265 class EventHandler include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String (readonly)
Returns Output only. The unique identifier of this event handler.
265 266 267 268 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/page.rb', line 265 class EventHandler include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#target_flow ⇒ ::String
Returns The target flow to transition to.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>
.
265 266 267 268 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/page.rb', line 265 class EventHandler include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#target_page ⇒ ::String
Returns The target page to transition to.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>
.
265 266 267 268 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/page.rb', line 265 class EventHandler include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#trigger_fulfillment ⇒ ::Google::Cloud::Dialogflow::CX::V3::Fulfillment
Returns 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.
265 266 267 268 |
# File 'proto_docs/google/cloud/dialogflow/cx/v3/page.rb', line 265 class EventHandler include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |