Class: Google::Apis::ChatV1::MessageBatchCreatedEventData

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 multiple new messages. Event type: google.workspace.chat. message.v1.batchCreated

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MessageBatchCreatedEventData

Returns a new instance of MessageBatchCreatedEventData.



4117
4118
4119
# File 'lib/google/apis/chat_v1/classes.rb', line 4117

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

Instance Attribute Details

#messagesArray<Google::Apis::ChatV1::MessageCreatedEventData>

A list of new messages. Corresponds to the JSON property messages



4115
4116
4117
# File 'lib/google/apis/chat_v1/classes.rb', line 4115

def messages
  @messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4122
4123
4124
# File 'lib/google/apis/chat_v1/classes.rb', line 4122

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