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.
729 730 731 |
# File 'lib/google/apis/chat_v1/classes.rb', line 729 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
722 723 724 |
# File 'lib/google/apis/chat_v1/classes.rb', line 722 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
727 728 729 |
# File 'lib/google/apis/chat_v1/classes.rb', line 727 def dialog @dialog end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
734 735 736 737 |
# File 'lib/google/apis/chat_v1/classes.rb', line 734 def update!(**args) @action_status = args[:action_status] if args.key?(:action_status) @dialog = args[:dialog] if args.key?(:dialog) end |