Class: Google::Apis::ChatV1::MessageCreatedEventData

Inherits:
Object
  • Object
show all
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

Event payload for a new message. Event type: google.workspace.chat.message.v1. created

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MessageCreatedEventData

Returns a new instance of MessageCreatedEventData.



4449
4450
4451
# File 'lib/google/apis/chat_v1/classes.rb', line 4449

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#messageGoogle::Apis::ChatV1::Message

A message in a Google Chat space. Corresponds to the JSON property message



4447
4448
4449
# File 'lib/google/apis/chat_v1/classes.rb', line 4447

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4454
4455
4456
# File 'lib/google/apis/chat_v1/classes.rb', line 4454

def update!(**args)
  @message = args[:message] if args.key?(:message)
end