Class DocumentEventData.Builder (0.14.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentEventData build()
Returns
TypeDescription
DocumentEventData

buildPartial()

public DocumentEventData buildPartial()
Returns
TypeDescription
DocumentEventData

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DocumentEventData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
DocumentEventData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentEventData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DocumentEventData.Builder

clone()

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

getDefaultInstanceForType()

public DocumentEventData getDefaultInstanceForType()
Returns
TypeDescription
DocumentEventData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentEventData other)

public DocumentEventData.Builder mergeFrom(DocumentEventData other)
Parameter
NameDescription
otherDocumentEventData
Returns
TypeDescription
DocumentEventData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DocumentEventData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDocument
Returns
TypeDescription
DocumentEventData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentEventData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDocumentMask
Returns
TypeDescription
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
NameDescription
valueDocument
Returns
TypeDescription
DocumentEventData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DocumentEventData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueDocument
Returns
TypeDescription
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
NameDescription
builderForValueDocument.Builder
Returns
TypeDescription
DocumentEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentEventData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDocumentMask
Returns
TypeDescription
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
NameDescription
builderForValueDocumentMask.Builder
Returns
TypeDescription
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
NameDescription
valueDocument
Returns
TypeDescription
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
NameDescription
builderForValueDocument.Builder
Returns
TypeDescription
DocumentEventData.Builder