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