Class DeletionMetadata.Builder (0.19.0)

public static final class DeletionMetadata.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

public DeletionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeletionMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeletionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DeletionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeletionMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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