Class DeleteMessageRequest.Builder (0.15.0)

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

Request to delete a message.

Protobuf type google.chat.v1.DeleteMessageRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeleteMessageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeleteMessageRequest.Builder
Overrides

build()

public DeleteMessageRequest build()
Returns
Type Description
DeleteMessageRequest

buildPartial()

public DeleteMessageRequest buildPartial()
Returns
Type Description
DeleteMessageRequest

clear()

public DeleteMessageRequest.Builder clear()
Returns
Type Description
DeleteMessageRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeleteMessageRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
DeleteMessageRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeleteMessageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeleteMessageRequest.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public DeleteMessageRequest getDefaultInstanceForType()
Returns
Type Description
DeleteMessageRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteMessageRequest other)

public DeleteMessageRequest.Builder mergeFrom(DeleteMessageRequest other)
Parameter
Name Description
other DeleteMessageRequest
Returns
Type Description
DeleteMessageRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeleteMessageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeleteMessageRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeleteMessageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeleteMessageRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeleteMessageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value boolean

The force to set.

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeleteMessageRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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