Class: Google::Apis::ChatV1::ActionStatus

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

Represents the status for a request to either invoke or submit a dialog.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActionStatus

Returns a new instance of ActionStatus.



164
165
166
# File 'lib/google/apis/chat_v1/classes.rb', line 164

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

Instance Attribute Details

#status_codeString

The status code. Corresponds to the JSON property statusCode

Returns:

  • (String)


156
157
158
# File 'lib/google/apis/chat_v1/classes.rb', line 156

def status_code
  @status_code
end

#user_facing_messageString

The message to send users about the status of their request. If unset, a generic message based on the status_code is sent. Corresponds to the JSON property userFacingMessage

Returns:

  • (String)


162
163
164
# File 'lib/google/apis/chat_v1/classes.rb', line 162

def user_facing_message
  @user_facing_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



169
170
171
172
# File 'lib/google/apis/chat_v1/classes.rb', line 169

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