Class: Google::Apis::ChatV1::DialogAction
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::DialogAction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
Contains dialog if present as well as the ActionStatus for the request sent from user.
Instance Attribute Summary collapse
-
#action_status ⇒ Google::Apis::ChatV1::ActionStatus
ActionStatus represents status of a request from the bot developer's side.
-
#dialog ⇒ Google::Apis::ChatV1::Dialog
Wrapper around the card body of the dialog.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DialogAction
constructor
A new instance of DialogAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DialogAction
Returns a new instance of DialogAction.
596 597 598 |
# File 'lib/google/apis/chat_v1/classes.rb', line 596 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_status ⇒ Google::Apis::ChatV1::ActionStatus
ActionStatus represents status of a request from the bot developer's side. In
specific, for each request a bot gets, the bot developer will set both fields
below in relation to what the response status and message related to status
should be.
Corresponds to the JSON property actionStatus
589 590 591 |
# File 'lib/google/apis/chat_v1/classes.rb', line 589 def action_status @action_status end |
#dialog ⇒ Google::Apis::ChatV1::Dialog
Wrapper around the card body of the dialog.
Corresponds to the JSON property dialog
594 595 596 |
# File 'lib/google/apis/chat_v1/classes.rb', line 594 def dialog @dialog end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
601 602 603 604 |
# File 'lib/google/apis/chat_v1/classes.rb', line 601 def update!(**args) @action_status = args[:action_status] if args.key?(:action_status) @dialog = args[:dialog] if args.key?(:dialog) end |