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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MessageCreatedEventData.BuilderImplements
MessageCreatedEventDataOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public MessageCreatedEventData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
MessageCreatedEventData.Builder |
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 |
clone()
public MessageCreatedEventData.Builder clone()
Returns | |
---|---|
Type | Description |
MessageCreatedEventData.Builder |
getDefaultInstanceForType()
public MessageCreatedEventData getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MessageCreatedEventData |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MessageCreatedEventData.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
MessageCreatedEventData.Builder |
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 |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final MessageCreatedEventData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MessageCreatedEventData.Builder |