public static final class UpdateMessageRequest.Builder extends GeneratedMessageV3.Builder<UpdateMessageRequest.Builder> implements UpdateMessageRequestOrBuilder
Request to update a message.
Protobuf type google.chat.v1.UpdateMessageRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UpdateMessageRequest.BuilderImplements
UpdateMessageRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateMessageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
build()
public UpdateMessageRequest build()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
buildPartial()
public UpdateMessageRequest buildPartial()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
clear()
public UpdateMessageRequest.Builder clear()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
clearAllowMissing()
public UpdateMessageRequest.Builder clearAllowMissing()
Optional. If true
and the message isn't found, a new message is created
and updateMask
is ignored. The specified message ID must be
client-assigned
or the request fails.
bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public UpdateMessageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
clearMessage()
public UpdateMessageRequest.Builder clearMessage()
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateMessageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
clearUpdateMask()
public UpdateMessageRequest.Builder clearUpdateMask()
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
clone()
public UpdateMessageRequest.Builder clone()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
getAllowMissing()
public boolean getAllowMissing()
Optional. If true
and the message isn't found, a new message is created
and updateMask
is ignored. The specified message ID must be
client-assigned
or the request fails.
bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The allowMissing. |
getDefaultInstanceForType()
public UpdateMessageRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UpdateMessageRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMessage()
public Message getMessage()
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Message |
The message. |
getMessageBuilder()
public Message.Builder getMessageBuilder()
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Message.Builder |
getMessageOrBuilder()
public MessageOrBuilder getMessageOrBuilder()
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
MessageOrBuilder |
getUpdateMask()
public FieldMask getUpdateMask()
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Returns | |
---|---|
Type | Description |
FieldMask |
The updateMask. |
getUpdateMaskBuilder()
public FieldMask.Builder getUpdateMaskBuilder()
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Returns | |
---|---|
Type | Description |
Builder |
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder()
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Returns | |
---|---|
Type | Description |
FieldMaskOrBuilder |
hasMessage()
public boolean hasMessage()
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the message field is set. |
hasUpdateMask()
public boolean hasUpdateMask()
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the updateMask field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(UpdateMessageRequest other)
public UpdateMessageRequest.Builder mergeFrom(UpdateMessageRequest other)
Parameter | |
---|---|
Name | Description |
other |
UpdateMessageRequest |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UpdateMessageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public UpdateMessageRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
mergeMessage(Message value)
public UpdateMessageRequest.Builder mergeMessage(Message value)
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Message |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateMessageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
mergeUpdateMask(FieldMask value)
public UpdateMessageRequest.Builder mergeUpdateMask(FieldMask value)
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Parameter | |
---|---|
Name | Description |
value |
FieldMask |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
setAllowMissing(boolean value)
public UpdateMessageRequest.Builder setAllowMissing(boolean value)
Optional. If true
and the message isn't found, a new message is created
and updateMask
is ignored. The specified message ID must be
client-assigned
or the request fails.
bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The allowMissing to set. |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateMessageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
setMessage(Message value)
public UpdateMessageRequest.Builder setMessage(Message value)
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Message |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
setMessage(Message.Builder builderForValue)
public UpdateMessageRequest.Builder setMessage(Message.Builder builderForValue)
Required. Message with fields updated.
.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Message.Builder |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateMessageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateMessageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
setUpdateMask(FieldMask value)
public UpdateMessageRequest.Builder setUpdateMask(FieldMask value)
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Parameter | |
---|---|
Name | Description |
value |
FieldMask |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateMessageRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)
Required. The field paths to update. Separate multiple values with commas
or use *
to update all field paths.
Currently supported field paths:
text
attachment
cards
(Requires app authentication.)cards_v2
(Requires app authentication.)accessory_widgets
(Requires app authentication.)
.google.protobuf.FieldMask update_mask = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
UpdateMessageRequest.Builder |