Class DocumentEventData.Builder (0.16.0)

public static final class DocumentEventData.Builder extends GeneratedMessageV3.Builder<DocumentEventData.Builder> implements DocumentEventDataOrBuilder

The data within all Firestore document events.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentEventData build()
Returns
Type Description
DocumentEventData

buildPartial()

public DocumentEventData buildPartial()
Returns
Type Description
DocumentEventData

clear()

public DocumentEventData.Builder clear()
Returns
Type Description
DocumentEventData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOldValue()

public DocumentEventData.Builder clearOldValue()

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
Type Description
DocumentEventData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public DocumentEventData.Builder clearUpdateMask()

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

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

Returns
Type Description
DocumentEventData.Builder

clearValue()

public DocumentEventData.Builder clearValue()

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
Type Description
DocumentEventData.Builder

clone()

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

getDefaultInstanceForType()

public DocumentEventData getDefaultInstanceForType()
Returns
Type Description
DocumentEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
Document

The oldValue.

getOldValueBuilder()

public Document.Builder getOldValueBuilder()

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
Type Description
Document.Builder

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
Type Description
DocumentOrBuilder

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
Type Description
DocumentMask

The updateMask.

getUpdateMaskBuilder()

public DocumentMask.Builder getUpdateMaskBuilder()

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

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

Returns
Type Description
DocumentMask.Builder

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
Type Description
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
Type Description
Document

The value.

getValueBuilder()

public Document.Builder getValueBuilder()

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
Type Description
Document.Builder

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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DocumentEventData other)

public DocumentEventData.Builder mergeFrom(DocumentEventData other)
Parameter
Name Description
other DocumentEventData
Returns
Type Description
DocumentEventData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DocumentEventData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DocumentEventData.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DocumentEventData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DocumentEventData.Builder
Overrides

mergeOldValue(Document value)

public DocumentEventData.Builder mergeOldValue(Document value)

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;

Parameter
Name Description
value Document
Returns
Type Description
DocumentEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentEventData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DocumentEventData.Builder
Overrides

mergeUpdateMask(DocumentMask value)

public DocumentEventData.Builder mergeUpdateMask(DocumentMask value)

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

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

Parameter
Name Description
value DocumentMask
Returns
Type Description
DocumentEventData.Builder

mergeValue(Document value)

public DocumentEventData.Builder mergeValue(Document value)

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

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

Parameter
Name Description
value Document
Returns
Type Description
DocumentEventData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOldValue(Document value)

public DocumentEventData.Builder setOldValue(Document value)

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;

Parameter
Name Description
value Document
Returns
Type Description
DocumentEventData.Builder

setOldValue(Document.Builder builderForValue)

public DocumentEventData.Builder setOldValue(Document.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
DocumentEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(DocumentMask value)

public DocumentEventData.Builder setUpdateMask(DocumentMask value)

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

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

Parameter
Name Description
value DocumentMask
Returns
Type Description
DocumentEventData.Builder

setUpdateMask(DocumentMask.Builder builderForValue)

public DocumentEventData.Builder setUpdateMask(DocumentMask.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue DocumentMask.Builder
Returns
Type Description
DocumentEventData.Builder

setValue(Document value)

public DocumentEventData.Builder setValue(Document value)

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

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

Parameter
Name Description
value Document
Returns
Type Description
DocumentEventData.Builder

setValue(Document.Builder builderForValue)

public DocumentEventData.Builder setValue(Document.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
DocumentEventData.Builder