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 a dialog and request status code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DialogAction

Returns a new instance of DialogAction.



1048
1049
1050
# File 'lib/google/apis/chat_v1/classes.rb', line 1048

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#action_statusGoogle::Apis::ChatV1::ActionStatus

Represents the status for a request to either invoke or submit a dialog. Corresponds to the JSON property actionStatus



1041
1042
1043
# File 'lib/google/apis/chat_v1/classes.rb', line 1041

def action_status
  @action_status
end

#dialogGoogle::Apis::ChatV1::Dialog

Wrapper around the card body of the dialog. Corresponds to the JSON property dialog



1046
1047
1048
# File 'lib/google/apis/chat_v1/classes.rb', line 1046

def dialog
  @dialog
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1053
1054
1055
1056
# File 'lib/google/apis/chat_v1/classes.rb', line 1053

def update!(**args)
  @action_status = args[:action_status] if args.key?(:action_status)
  @dialog = args[:dialog] if args.key?(:dialog)
end