class Google::Apis::ChatV1::ActionStatus
ActionStatus
represents status of a request from the bot developer's side. In specific, for each request a bot gets, the bot developer will set both fields below in relation to what the response status and message related to status should be.
Attributes
status_code[RW]
The status code. Corresponds to the JSON property `statusCode` @return [String]
user_facing_message[RW]
This message will be the corresponding string to the above status_code. If unset, an appropriate generic message based on the status_code
will be shown to the user. If this field is set then the message will be surfaced to the user for both successes and errors. Corresponds to the JSON property `userFacingMessage` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 105 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 110 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