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.
166 167 168 |
# File 'lib/google/apis/chat_v1/classes.rb', line 166 def initialize(**args) update!(**args) end |
Instance Attribute Details
#status_code ⇒ String
The status code.
Corresponds to the JSON property statusCode
158 159 160 |
# File 'lib/google/apis/chat_v1/classes.rb', line 158 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
164 165 166 |
# File 'lib/google/apis/chat_v1/classes.rb', line 164 def @user_facing_message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
171 172 173 174 |
# File 'lib/google/apis/chat_v1/classes.rb', line 171 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 |