Class DeletionMetadata (0.3.0)

public final class DeletionMetadata extends GeneratedMessageV3 implements DeletionMetadataOrBuilder

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

Protobuf type google.chat.v1.DeletionMetadata

Static Fields

DELETION_TYPE_FIELD_NUMBER

public static final int DELETION_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DeletionMetadata getDefaultInstance()
Returns
TypeDescription
DeletionMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DeletionMetadata.Builder newBuilder()
Returns
TypeDescription
DeletionMetadata.Builder

newBuilder(DeletionMetadata prototype)

public static DeletionMetadata.Builder newBuilder(DeletionMetadata prototype)
Parameter
NameDescription
prototypeDeletionMetadata
Returns
TypeDescription
DeletionMetadata.Builder

parseDelimitedFrom(InputStream input)

public static DeletionMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeletionMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DeletionMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DeletionMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DeletionMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DeletionMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DeletionMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DeletionMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DeletionMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeletionMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DeletionMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DeletionMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeletionMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DeletionMetadata> parser()
Returns
TypeDescription
Parser<DeletionMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

getParserForType()

public Parser<DeletionMetadata> getParserForType()
Returns
TypeDescription
Parser<DeletionMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DeletionMetadata.Builder newBuilderForType()
Returns
TypeDescription
DeletionMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DeletionMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DeletionMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DeletionMetadata.Builder toBuilder()
Returns
TypeDescription
DeletionMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException