Class MessageBatchCreatedEventData.Builder (0.12.0)

public static final class MessageBatchCreatedEventData.Builder extends GeneratedMessageV3.Builder<MessageBatchCreatedEventData.Builder> implements MessageBatchCreatedEventDataOrBuilder

Event payload for multiple new messages.

Event type: google.workspace.chat.message.v1.batchCreated

Protobuf type google.chat.v1.MessageBatchCreatedEventData

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMessages(Iterable<? extends MessageCreatedEventData> values)

public MessageBatchCreatedEventData.Builder addAllMessages(Iterable<? extends MessageCreatedEventData> values)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameter
Name Description
values Iterable<? extends com.google.chat.v1.MessageCreatedEventData>
Returns
Type Description
MessageBatchCreatedEventData.Builder

addMessages(MessageCreatedEventData value)

public MessageBatchCreatedEventData.Builder addMessages(MessageCreatedEventData value)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameter
Name Description
value MessageCreatedEventData
Returns
Type Description
MessageBatchCreatedEventData.Builder

addMessages(MessageCreatedEventData.Builder builderForValue)

public MessageBatchCreatedEventData.Builder addMessages(MessageCreatedEventData.Builder builderForValue)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameter
Name Description
builderForValue MessageCreatedEventData.Builder
Returns
Type Description
MessageBatchCreatedEventData.Builder

addMessages(int index, MessageCreatedEventData value)

public MessageBatchCreatedEventData.Builder addMessages(int index, MessageCreatedEventData value)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameters
Name Description
index int
value MessageCreatedEventData
Returns
Type Description
MessageBatchCreatedEventData.Builder

addMessages(int index, MessageCreatedEventData.Builder builderForValue)

public MessageBatchCreatedEventData.Builder addMessages(int index, MessageCreatedEventData.Builder builderForValue)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameters
Name Description
index int
builderForValue MessageCreatedEventData.Builder
Returns
Type Description
MessageBatchCreatedEventData.Builder

addMessagesBuilder()

public MessageCreatedEventData.Builder addMessagesBuilder()

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Returns
Type Description
MessageCreatedEventData.Builder

addMessagesBuilder(int index)

public MessageCreatedEventData.Builder addMessagesBuilder(int index)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameter
Name Description
index int
Returns
Type Description
MessageCreatedEventData.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MessageBatchCreatedEventData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

build()

public MessageBatchCreatedEventData build()
Returns
Type Description
MessageBatchCreatedEventData

buildPartial()

public MessageBatchCreatedEventData buildPartial()
Returns
Type Description
MessageBatchCreatedEventData

clear()

public MessageBatchCreatedEventData.Builder clear()
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MessageBatchCreatedEventData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

clearMessages()

public MessageBatchCreatedEventData.Builder clearMessages()

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Returns
Type Description
MessageBatchCreatedEventData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MessageBatchCreatedEventData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

clone()

public MessageBatchCreatedEventData.Builder clone()
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

getDefaultInstanceForType()

public MessageBatchCreatedEventData getDefaultInstanceForType()
Returns
Type Description
MessageBatchCreatedEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMessages(int index)

public MessageCreatedEventData getMessages(int index)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameter
Name Description
index int
Returns
Type Description
MessageCreatedEventData

getMessagesBuilder(int index)

public MessageCreatedEventData.Builder getMessagesBuilder(int index)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameter
Name Description
index int
Returns
Type Description
MessageCreatedEventData.Builder

getMessagesBuilderList()

public List<MessageCreatedEventData.Builder> getMessagesBuilderList()

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Returns
Type Description
int

getMessagesList()

public List<MessageCreatedEventData> getMessagesList()

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Returns
Type Description
List<MessageCreatedEventData>

getMessagesOrBuilder(int index)

public MessageCreatedEventDataOrBuilder getMessagesOrBuilder(int index)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameter
Name Description
index int
Returns
Type Description
MessageCreatedEventDataOrBuilder

getMessagesOrBuilderList()

public List<? extends MessageCreatedEventDataOrBuilder> getMessagesOrBuilderList()

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Returns
Type Description
List<? extends com.google.chat.v1.MessageCreatedEventDataOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MessageBatchCreatedEventData other)

public MessageBatchCreatedEventData.Builder mergeFrom(MessageBatchCreatedEventData other)
Parameter
Name Description
other MessageBatchCreatedEventData
Returns
Type Description
MessageBatchCreatedEventData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MessageBatchCreatedEventData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MessageBatchCreatedEventData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MessageBatchCreatedEventData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

removeMessages(int index)

public MessageBatchCreatedEventData.Builder removeMessages(int index)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameter
Name Description
index int
Returns
Type Description
MessageBatchCreatedEventData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MessageBatchCreatedEventData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

setMessages(int index, MessageCreatedEventData value)

public MessageBatchCreatedEventData.Builder setMessages(int index, MessageCreatedEventData value)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameters
Name Description
index int
value MessageCreatedEventData
Returns
Type Description
MessageBatchCreatedEventData.Builder

setMessages(int index, MessageCreatedEventData.Builder builderForValue)

public MessageBatchCreatedEventData.Builder setMessages(int index, MessageCreatedEventData.Builder builderForValue)

A list of new messages.

repeated .google.chat.v1.MessageCreatedEventData messages = 1;

Parameters
Name Description
index int
builderForValue MessageCreatedEventData.Builder
Returns
Type Description
MessageBatchCreatedEventData.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MessageBatchCreatedEventData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MessageBatchCreatedEventData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MessageBatchCreatedEventData.Builder
Overrides