Class MessageCreatedEventData.Builder (0.18.0)

public static final class MessageCreatedEventData.Builder extends GeneratedMessageV3.Builder<MessageCreatedEventData.Builder> implements MessageCreatedEventDataOrBuilder

Event payload for a new message.

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

Protobuf type google.chat.v1.MessageCreatedEventData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MessageCreatedEventData build()
Returns
Type Description
MessageCreatedEventData

buildPartial()

public MessageCreatedEventData buildPartial()
Returns
Type Description
MessageCreatedEventData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public MessageCreatedEventData.Builder clearMessage()

The new message.

.google.chat.v1.Message message = 1;

Returns
Type Description
MessageCreatedEventData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MessageCreatedEventData getDefaultInstanceForType()
Returns
Type Description
MessageCreatedEventData

getDescriptorForType()

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

getMessage()

public Message getMessage()

The new message.

.google.chat.v1.Message message = 1;

Returns
Type Description
Message

The message.

getMessageBuilder()

public Message.Builder getMessageBuilder()

The new message.

.google.chat.v1.Message message = 1;

Returns
Type Description
Message.Builder

getMessageOrBuilder()

public MessageOrBuilder getMessageOrBuilder()

The new message.

.google.chat.v1.Message message = 1;

Returns
Type Description
MessageOrBuilder

hasMessage()

public boolean hasMessage()

The new message.

.google.chat.v1.Message message = 1;

Returns
Type Description
boolean

Whether the message field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MessageCreatedEventData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMessage(Message value)

public MessageCreatedEventData.Builder mergeMessage(Message value)

The new message.

.google.chat.v1.Message message = 1;

Parameter
Name Description
value Message
Returns
Type Description
MessageCreatedEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMessage(Message value)

public MessageCreatedEventData.Builder setMessage(Message value)

The new message.

.google.chat.v1.Message message = 1;

Parameter
Name Description
value Message
Returns
Type Description
MessageCreatedEventData.Builder

setMessage(Message.Builder builderForValue)

public MessageCreatedEventData.Builder setMessage(Message.Builder builderForValue)

The new message.

.google.chat.v1.Message message = 1;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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