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.



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

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

Instance Attribute Details

#status_codeString

The status code. Corresponds to the JSON property statusCode

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/chat_v1/classes.rb', line 160

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)


166
167
168
# File 'lib/google/apis/chat_v1/classes.rb', line 166

def user_facing_message
  @user_facing_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



173
174
175
176
# File 'lib/google/apis/chat_v1/classes.rb', line 173

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