Class DeletionMetadata.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeletionMetadata build()
Returns
TypeDescription
DeletionMetadata

buildPartial()

public DeletionMetadata buildPartial()
Returns
TypeDescription
DeletionMetadata

clear()

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

clearDeletionType()

public DeletionMetadata.Builder clearDeletionType()

Indicates who deleted the message.

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

Returns
TypeDescription
DeletionMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeletionMetadata getDefaultInstanceForType()
Returns
TypeDescription
DeletionMetadata

getDeletionType()

public DeletionMetadata.DeletionType getDeletionType()

Indicates who deleted the message.

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

Returns
TypeDescription
DeletionMetadata.DeletionType

The deletionType.

getDeletionTypeValue()

public int getDeletionTypeValue()

Indicates who deleted the message.

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

Returns
TypeDescription
int

The enum numeric value on the wire for deletionType.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeletionMetadata other)

public DeletionMetadata.Builder mergeFrom(DeletionMetadata other)
Parameter
NameDescription
otherDeletionMetadata
Returns
TypeDescription
DeletionMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeletionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDeletionMetadata.DeletionType

The deletionType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
DeletionMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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