Class DocumentEventData (0.14.1)

public final class DocumentEventData extends GeneratedMessageV3 implements DocumentEventDataOrBuilder

The data within all Firestore document events.

Protobuf type google.events.cloud.firestore.v1.DocumentEventData

Static Fields

OLD_VALUE_FIELD_NUMBER

public static final int OLD_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DocumentEventData getDefaultInstance()
Returns
TypeDescription
DocumentEventData

getDescriptor()

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

newBuilder()

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

newBuilder(DocumentEventData prototype)

public static DocumentEventData.Builder newBuilder(DocumentEventData prototype)
Parameter
NameDescription
prototypeDocumentEventData
Returns
TypeDescription
DocumentEventData.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DocumentEventData getDefaultInstanceForType()
Returns
TypeDescription
DocumentEventData

getOldValue()

public Document getOldValue()

A Document object containing a pre-operation document snapshot. This is only populated for update and delete events.

.google.events.cloud.firestore.v1.Document old_value = 2;

Returns
TypeDescription
Document

The oldValue.

getOldValueOrBuilder()

public DocumentOrBuilder getOldValueOrBuilder()

A Document object containing a pre-operation document snapshot. This is only populated for update and delete events.

.google.events.cloud.firestore.v1.Document old_value = 2;

Returns
TypeDescription
DocumentOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateMask()

public DocumentMask getUpdateMask()

A DocumentMask object that lists changed fields. This is only populated for update events.

.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;

Returns
TypeDescription
DocumentMask

The updateMask.

getUpdateMaskOrBuilder()

public DocumentMaskOrBuilder getUpdateMaskOrBuilder()

A DocumentMask object that lists changed fields. This is only populated for update events.

.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;

Returns
TypeDescription
DocumentMaskOrBuilder

getValue()

public Document getValue()

A Document object containing a post-operation document snapshot. This is not populated for delete events.

.google.events.cloud.firestore.v1.Document value = 1;

Returns
TypeDescription
Document

The value.

getValueOrBuilder()

public DocumentOrBuilder getValueOrBuilder()

A Document object containing a post-operation document snapshot. This is not populated for delete events.

.google.events.cloud.firestore.v1.Document value = 1;

Returns
TypeDescription
DocumentOrBuilder

hasOldValue()

public boolean hasOldValue()

A Document object containing a pre-operation document snapshot. This is only populated for update and delete events.

.google.events.cloud.firestore.v1.Document old_value = 2;

Returns
TypeDescription
boolean

Whether the oldValue field is set.

hasUpdateMask()

public boolean hasUpdateMask()

A DocumentMask object that lists changed fields. This is only populated for update events.

.google.events.cloud.firestore.v1.DocumentMask update_mask = 3;

Returns
TypeDescription
boolean

Whether the updateMask field is set.

hasValue()

public boolean hasValue()

A Document object containing a post-operation document snapshot. This is not populated for delete events.

.google.events.cloud.firestore.v1.Document value = 1;

Returns
TypeDescription
boolean

Whether the value field is set.

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 DocumentEventData.Builder newBuilderForType()
Returns
TypeDescription
DocumentEventData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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