Class DeleteMessageRequest.Builder (0.3.0)

public static final class DeleteMessageRequest.Builder extends GeneratedMessageV3.Builder<DeleteMessageRequest.Builder> implements DeleteMessageRequestOrBuilder

Protobuf type google.chat.v1.DeleteMessageRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteMessageRequest build()
Returns
TypeDescription
DeleteMessageRequest

buildPartial()

public DeleteMessageRequest buildPartial()
Returns
TypeDescription
DeleteMessageRequest

clear()

public DeleteMessageRequest.Builder clear()
Returns
TypeDescription
DeleteMessageRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeleteMessageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeleteMessageRequest.Builder
Overrides

clearForce()

public DeleteMessageRequest.Builder clearForce()

When true, deleting a message also deletes its threaded replies. When false, if a message has threaded replies, deletion fails.

Only applies when authenticating as a user. Has no effect when authenticating as a Chat app.

bool force = 2;

Returns
TypeDescription
DeleteMessageRequest.Builder

This builder for chaining.

clearName()

public DeleteMessageRequest.Builder clearName()

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
DeleteMessageRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeleteMessageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeleteMessageRequest.Builder
Overrides

clone()

public DeleteMessageRequest.Builder clone()
Returns
TypeDescription
DeleteMessageRequest.Builder
Overrides

getDefaultInstanceForType()

public DeleteMessageRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteMessageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForce()

public boolean getForce()

When true, deleting a message also deletes its threaded replies. When false, if a message has threaded replies, deletion fails.

Only applies when authenticating as a user. Has no effect when authenticating as a Chat app.

bool force = 2;

Returns
TypeDescription
boolean

The force.

getName()

public String getName()

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteMessageRequest other)

public DeleteMessageRequest.Builder mergeFrom(DeleteMessageRequest other)
Parameter
NameDescription
otherDeleteMessageRequest
Returns
TypeDescription
DeleteMessageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DeleteMessageRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeleteMessageRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeleteMessageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteMessageRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setForce(boolean value)

public DeleteMessageRequest.Builder setForce(boolean value)

When true, deleting a message also deletes its threaded replies. When false, if a message has threaded replies, deletion fails.

Only applies when authenticating as a user. Has no effect when authenticating as a Chat app.

bool force = 2;

Parameter
NameDescription
valueboolean

The force to set.

Returns
TypeDescription
DeleteMessageRequest.Builder

This builder for chaining.

setName(String value)

public DeleteMessageRequest.Builder setName(String value)

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteMessageRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteMessageRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message}. For details, see Name a message.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteMessageRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DeleteMessageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteMessageRequest.Builder
Overrides