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.



102
103
104
# File 'lib/google/apis/chat_v1/classes.rb', line 102

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

Instance Attribute Details

#status_codeString

The status code. Corresponds to the JSON property statusCode

Returns:

  • (String)


94
95
96
# File 'lib/google/apis/chat_v1/classes.rb', line 94

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)


100
101
102
# File 'lib/google/apis/chat_v1/classes.rb', line 100

def user_facing_message
  @user_facing_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



107
108
109
110
# File 'lib/google/apis/chat_v1/classes.rb', line 107

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