Class: Google::Apis::ChatV1::DialogAction

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

Instance Method Summary collapse

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_statusGoogle::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

#dialogGoogle::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