class Google::Apis::ChatV1::DeprecatedEvent

Google Chat events.

Attributes

action[RW]

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]

common[RW]

Next available ID = 8 Corresponds to the JSON property `common` @return [Google::Apis::ChatV1::CommonEventObject]

config_complete_redirect_url[RW]

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]

dialog_event_type[RW]

The type of dialog event we have received. Corresponds to the JSON property `dialogEventType` @return [String]

event_time[RW]

The timestamp indicating when the event was dispatched. Corresponds to the JSON property `eventTime` @return [String]

is_dialog_event[RW]

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]

is_dialog_event?[RW]

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]

message[RW]

A message in Hangouts Chat. Corresponds to the JSON property `message` @return [Google::Apis::ChatV1::Message]

space[RW]

A room or DM in Hangouts Chat. Corresponds to the JSON property `space` @return [Google::Apis::ChatV1::Space]

thread_key[RW]

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]

token[RW]

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]

type[RW]

The type of the event. Corresponds to the JSON property `type` @return [String]

user[RW]

A user in Google Chat. Corresponds to the JSON property `user` @return [Google::Apis::ChatV1::User]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 653
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 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