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.



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

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



1078
1079
1080
# File 'lib/google/apis/chat_v1/classes.rb', line 1078

def action_status
  @action_status
end

#dialogGoogle::Apis::ChatV1::Dialog

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



1083
1084
1085
# File 'lib/google/apis/chat_v1/classes.rb', line 1083

def dialog
  @dialog
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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