Class UpdateMessageRequest.Builder (0.8.0)

public static final class UpdateMessageRequest.Builder extends GeneratedMessageV3.Builder<UpdateMessageRequest.Builder> implements UpdateMessageRequestOrBuilder

Request to update a message.

Protobuf type google.chat.v1.UpdateMessageRequest

Static 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
Overrides

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
Overrides

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
Overrides

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
Overrides

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:

.google.protobuf.FieldMask update_mask = 2;

Returns
Type Description
UpdateMessageRequest.Builder

clone()

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

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
Overrides

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:

.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:

.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:

.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:

.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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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
Overrides

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:

.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
Overrides

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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

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:

.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:

.google.protobuf.FieldMask update_mask = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateMessageRequest.Builder