Class: Google::Apis::ChatV1::ActionStatus
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::ActionStatus
- 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
-
#status_code ⇒ String
The status code.
-
#user_facing_message ⇒ String
The message to send users about the status of their request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ActionStatus
constructor
A new instance of ActionStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
The status code.
Corresponds to the JSON property statusCode
160 161 162 |
# File 'lib/google/apis/chat_v1/classes.rb', line 160 def status_code @status_code end |
#user_facing_message ⇒ String
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
166 167 168 |
# File 'lib/google/apis/chat_v1/classes.rb', line 166 def @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 |