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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DeletionMetadata.BuilderImplements
DeletionMetadataOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public DeletionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DeletionMetadata.Builder |
clone()
public DeletionMetadata.Builder clone()
Returns | |
---|---|
Type | Description |
DeletionMetadata.Builder |
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 |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DeletionMetadata.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DeletionMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DeletionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DeletionMetadata.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final DeletionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DeletionMetadata.Builder |