Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Handler
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Handler
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Overview
Handler can be used to define custom logic to be executed based on the user- specified triggers.
Instance Attribute Summary collapse
-
#event_handler ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1HandlerEventHandler
A handler that is triggered by the specified event.
-
#lifecycle_handler ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1HandlerLifecycleHandler
A handler that is triggered on the specific lifecycle_stage of the playbook execution.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Handler
constructor
A new instance of GoogleCloudDialogflowCxV3beta1Handler.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Handler
Returns a new instance of GoogleCloudDialogflowCxV3beta1Handler.
9216 9217 9218 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9216 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_handler ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1HandlerEventHandler
A handler that is triggered by the specified event.
Corresponds to the JSON property eventHandler
9208 9209 9210 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9208 def event_handler @event_handler end |
#lifecycle_handler ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1HandlerLifecycleHandler
A handler that is triggered on the specific lifecycle_stage of the playbook
execution.
Corresponds to the JSON property lifecycleHandler
9214 9215 9216 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9214 def lifecycle_handler @lifecycle_handler end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9221 9222 9223 9224 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9221 def update!(**args) @event_handler = args[:event_handler] if args.key?(:event_handler) @lifecycle_handler = args[:lifecycle_handler] if args.key?(:lifecycle_handler) end |