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.



1093
1094
1095
# File 'lib/google/apis/chat_v1/classes.rb', line 1093

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



1086
1087
1088
# File 'lib/google/apis/chat_v1/classes.rb', line 1086

def action_status
  @action_status
end

#dialogGoogle::Apis::ChatV1::Dialog

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



1091
1092
1093
# File 'lib/google/apis/chat_v1/classes.rb', line 1091

def dialog
  @dialog
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1098
1099
1100
1101
# File 'lib/google/apis/chat_v1/classes.rb', line 1098

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