Class DeletionMetadata.Builder (0.49.0)

public static final class DeletionMetadata.Builder extends GeneratedMessage.Builder<DeletionMetadata.Builder> implements DeletionMetadataOrBuilder

Information about a deleted message. A message is deleted when delete_time is set.

Protobuf type google.chat.v1.DeletionMetadata

Static Methods

getDescriptor()

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

Methods

build()

public DeletionMetadata build()
Returns
Type Description
DeletionMetadata

buildPartial()

public DeletionMetadata buildPartial()
Returns
Type Description
DeletionMetadata

clear()

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

clearDeletionType()

public DeletionMetadata.Builder clearDeletionType()

Indicates who deleted the message.

.google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1;

Returns
Type Description
DeletionMetadata.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeletionMetadata getDefaultInstanceForType()
Returns
Type Description
DeletionMetadata

getDeletionType()

public DeletionMetadata.DeletionType getDeletionType()

Indicates who deleted the message.

.google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1;

Returns
Type Description
DeletionMetadata.DeletionType

The deletionType.

getDeletionTypeValue()

public int getDeletionTypeValue()

Indicates who deleted the message.

.google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for deletionType.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeletionMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDeletionType(DeletionMetadata.DeletionType value)

public DeletionMetadata.Builder setDeletionType(DeletionMetadata.DeletionType value)

Indicates who deleted the message.

.google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1;

Parameter
Name Description
value DeletionMetadata.DeletionType

The deletionType to set.

Returns
Type Description
DeletionMetadata.Builder

This builder for chaining.

setDeletionTypeValue(int value)

public DeletionMetadata.Builder setDeletionTypeValue(int value)

Indicates who deleted the message.

.google.chat.v1.DeletionMetadata.DeletionType deletion_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for deletionType to set.

Returns
Type Description
DeletionMetadata.Builder

This builder for chaining.