class Google::Apis::ChatV1::DeprecatedEvent
Google
Chat events.
Attributes
A form action describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form. Corresponds to the JSON property `action` @return [Google::Apis::ChatV1::FormAction]
Next available ID = 8 Corresponds to the JSON property `common` @return [Google::Apis::ChatV1::CommonEventObject]
The URL the bot should redirect the user to after they have completed an authorization or configuration flow outside of Google
Chat. See the [ Authorizing access to 3p services guide](/chat/how-tos/auth-3p) for more information. Corresponds to the JSON property `configCompleteRedirectUrl` @return [String]
The type of dialog event we have received. Corresponds to the JSON property `dialogEventType` @return [String]
The timestamp indicating when the event was dispatched. Corresponds to the JSON property `eventTime` @return [String]
Whether or not this event is related to dialogs request, submit or cancel. This will be set to true when we want a request/submit/cancel event. Corresponds to the JSON property `isDialogEvent` @return [Boolean]
Whether or not this event is related to dialogs request, submit or cancel. This will be set to true when we want a request/submit/cancel event. Corresponds to the JSON property `isDialogEvent` @return [Boolean]
A message in Hangouts Chat. Corresponds to the JSON property `message` @return [Google::Apis::ChatV1::Message]
A room or DM in Hangouts Chat. Corresponds to the JSON property `space` @return [Google::Apis::ChatV1::Space]
The bot-defined key for the thread related to the event. See the thread_key
field of the `spaces.message.create` request for more information. Corresponds to the JSON property `threadKey` @return [String]
A secret value that bots can use to verify if a request is from Google
. The token is randomly generated by Google
, remains static, and can be obtained from the Google
Chat API configuration page in the Cloud Console. Developers can revoke/regenerate it if needed from the same page. Corresponds to the JSON property `token` @return [String]
The type of the event. Corresponds to the JSON property `type` @return [String]
A user in Google
Chat. Corresponds to the JSON property `user` @return [Google::Apis::ChatV1::User]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 653 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 658 def update!(**args) @action = args[:action] if args.key?(:action) @common = args[:common] if args.key?(:common) @config_complete_redirect_url = args[:config_complete_redirect_url] if args.key?(:config_complete_redirect_url) @dialog_event_type = args[:dialog_event_type] if args.key?(:dialog_event_type) @event_time = args[:event_time] if args.key?(:event_time) @is_dialog_event = args[:is_dialog_event] if args.key?(:is_dialog_event) @message = args[:message] if args.key?(:message) @space = args[:space] if args.key?(:space) @thread_key = args[:thread_key] if args.key?(:thread_key) @token = args[:token] if args.key?(:token) @type = args[:type] if args.key?(:type) @user = args[:user] if args.key?(:user) end