Class: Google::Cloud::Dialogflow::CX::V3::EventHandler

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#event::String

Returns Required. The name of the event to handle.

Returns:

  • (::String)

    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.

Returns:

  • (::String)

    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>.

Returns:

  • (::String)

    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>.

Returns:

  • (::String)

    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.

Returns:

  • (::Google::Cloud::Dialogflow::CX::V3::Fulfillment)

    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