Class MessageBatchDeletedEventData.Builder (0.16.0)

public static final class MessageBatchDeletedEventData.Builder extends GeneratedMessageV3.Builder<MessageBatchDeletedEventData.Builder> implements MessageBatchDeletedEventDataOrBuilder

Event payload for multiple deleted messages.

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

Protobuf type google.chat.v1.MessageBatchDeletedEventData

Static Methods

getDescriptor()

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

Methods

addAllMessages(Iterable<? extends MessageDeletedEventData> values)

public MessageBatchDeletedEventData.Builder addAllMessages(Iterable<? extends MessageDeletedEventData> values)

A list of deleted messages.

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

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

addMessages(MessageDeletedEventData value)

public MessageBatchDeletedEventData.Builder addMessages(MessageDeletedEventData value)

A list of deleted messages.

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

Parameter
Name Description
value MessageDeletedEventData
Returns
Type Description
MessageBatchDeletedEventData.Builder

addMessages(MessageDeletedEventData.Builder builderForValue)

public MessageBatchDeletedEventData.Builder addMessages(MessageDeletedEventData.Builder builderForValue)

A list of deleted messages.

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

Parameter
Name Description
builderForValue MessageDeletedEventData.Builder
Returns
Type Description
MessageBatchDeletedEventData.Builder

addMessages(int index, MessageDeletedEventData value)

public MessageBatchDeletedEventData.Builder addMessages(int index, MessageDeletedEventData value)

A list of deleted messages.

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

Parameters
Name Description
index int
value MessageDeletedEventData
Returns
Type Description
MessageBatchDeletedEventData.Builder

addMessages(int index, MessageDeletedEventData.Builder builderForValue)

public MessageBatchDeletedEventData.Builder addMessages(int index, MessageDeletedEventData.Builder builderForValue)

A list of deleted messages.

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

Parameters
Name Description
index int
builderForValue MessageDeletedEventData.Builder
Returns
Type Description
MessageBatchDeletedEventData.Builder

addMessagesBuilder()

public MessageDeletedEventData.Builder addMessagesBuilder()

A list of deleted messages.

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

Returns
Type Description
MessageDeletedEventData.Builder

addMessagesBuilder(int index)

public MessageDeletedEventData.Builder addMessagesBuilder(int index)

A list of deleted messages.

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

Parameter
Name Description
index int
Returns
Type Description
MessageDeletedEventData.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MessageBatchDeletedEventData build()
Returns
Type Description
MessageBatchDeletedEventData

buildPartial()

public MessageBatchDeletedEventData buildPartial()
Returns
Type Description
MessageBatchDeletedEventData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessages()

public MessageBatchDeletedEventData.Builder clearMessages()

A list of deleted messages.

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

Returns
Type Description
MessageBatchDeletedEventData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MessageBatchDeletedEventData getDefaultInstanceForType()
Returns
Type Description
MessageBatchDeletedEventData

getDescriptorForType()

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

getMessages(int index)

public MessageDeletedEventData getMessages(int index)

A list of deleted messages.

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

Parameter
Name Description
index int
Returns
Type Description
MessageDeletedEventData

getMessagesBuilder(int index)

public MessageDeletedEventData.Builder getMessagesBuilder(int index)

A list of deleted messages.

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

Parameter
Name Description
index int
Returns
Type Description
MessageDeletedEventData.Builder

getMessagesBuilderList()

public List<MessageDeletedEventData.Builder> getMessagesBuilderList()

A list of deleted messages.

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

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

A list of deleted messages.

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

Returns
Type Description
int

getMessagesList()

public List<MessageDeletedEventData> getMessagesList()

A list of deleted messages.

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

Returns
Type Description
List<MessageDeletedEventData>

getMessagesOrBuilder(int index)

public MessageDeletedEventDataOrBuilder getMessagesOrBuilder(int index)

A list of deleted messages.

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

Parameter
Name Description
index int
Returns
Type Description
MessageDeletedEventDataOrBuilder

getMessagesOrBuilderList()

public List<? extends MessageDeletedEventDataOrBuilder> getMessagesOrBuilderList()

A list of deleted messages.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MessageBatchDeletedEventData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessages(int index)

public MessageBatchDeletedEventData.Builder removeMessages(int index)

A list of deleted messages.

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

Parameter
Name Description
index int
Returns
Type Description
MessageBatchDeletedEventData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessages(int index, MessageDeletedEventData value)

public MessageBatchDeletedEventData.Builder setMessages(int index, MessageDeletedEventData value)

A list of deleted messages.

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

Parameters
Name Description
index int
value MessageDeletedEventData
Returns
Type Description
MessageBatchDeletedEventData.Builder

setMessages(int index, MessageDeletedEventData.Builder builderForValue)

public MessageBatchDeletedEventData.Builder setMessages(int index, MessageDeletedEventData.Builder builderForValue)

A list of deleted messages.

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

Parameters
Name Description
index int
builderForValue MessageDeletedEventData.Builder
Returns
Type Description
MessageBatchDeletedEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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