Class UpdateMessageRequest.Builder (0.3.0)

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

Protobuf type google.chat.v1.UpdateMessageRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateMessageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateMessageRequest.Builder
Overrides

build()

public UpdateMessageRequest build()
Returns
TypeDescription
UpdateMessageRequest

buildPartial()

public UpdateMessageRequest buildPartial()
Returns
TypeDescription
UpdateMessageRequest

clear()

public UpdateMessageRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateMessageRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UpdateMessageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateMessageRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateMessageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateMessageRequest.Builder

clone()

public UpdateMessageRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateMessageRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateMessageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public Message getMessage()

Required. Message with fields updated.

.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
Message.Builder

getMessageOrBuilder()

public MessageOrBuilder getMessageOrBuilder()

Required. Message with fields updated.

.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

hasMessage()

public boolean hasMessage()

Required. Message with fields updated.

.google.chat.v1.Message message = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateMessageRequest other)

public UpdateMessageRequest.Builder mergeFrom(UpdateMessageRequest other)
Parameter
NameDescription
otherUpdateMessageRequest
Returns
TypeDescription
UpdateMessageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateMessageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateMessageRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateMessageRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMessage
Returns
TypeDescription
UpdateMessageRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateMessageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueboolean

The allowMissing to set.

Returns
TypeDescription
UpdateMessageRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateMessageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMessage
Returns
TypeDescription
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
NameDescription
builderForValueMessage.Builder
Returns
TypeDescription
UpdateMessageRequest.Builder

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

public UpdateMessageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateMessageRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateMessageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateMessageRequest.Builder