public static final class DocumentChange.Builder extends GeneratedMessageV3.Builder<DocumentChange.Builder> implements DocumentChangeOrBuilder
A [Document][google.firestore.v1beta1.Document] has changed. May be the result of multiple [writes][google.firestore.v1beta1.Write], including deletes, that ultimately resulted in a new value for the [Document][google.firestore.v1beta1.Document]. Multiple [DocumentChange][google.firestore.v1beta1.DocumentChange] messages may be returned for the same logical change, if multiple targets are affected.Protobuf type
google.firestore.v1beta1.DocumentChange
Modifier and Type | Method and Description |
---|---|
DocumentChange.Builder |
addAllRemovedTargetIds(java.lang.Iterable<? extends java.lang.Integer> values)
A set of target IDs for targets that no longer match this document.
|
DocumentChange.Builder |
addAllTargetIds(java.lang.Iterable<? extends java.lang.Integer> values)
A set of target IDs of targets that match this document.
|
DocumentChange.Builder |
addRemovedTargetIds(int value)
A set of target IDs for targets that no longer match this document.
|
DocumentChange.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
DocumentChange.Builder |
addTargetIds(int value)
A set of target IDs of targets that match this document.
|
DocumentChange |
build() |
DocumentChange |
buildPartial() |
DocumentChange.Builder |
clear() |
DocumentChange.Builder |
clearDocument()
The new state of the [Document][google.firestore.v1beta1.Document].
|
DocumentChange.Builder |
clearField(Descriptors.FieldDescriptor field) |
DocumentChange.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
DocumentChange.Builder |
clearRemovedTargetIds()
A set of target IDs for targets that no longer match this document.
|
DocumentChange.Builder |
clearTargetIds()
A set of target IDs of targets that match this document.
|
DocumentChange.Builder |
clone() |
DocumentChange |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Document |
getDocument()
The new state of the [Document][google.firestore.v1beta1.Document].
|
Document.Builder |
getDocumentBuilder()
The new state of the [Document][google.firestore.v1beta1.Document].
|
DocumentOrBuilder |
getDocumentOrBuilder()
The new state of the [Document][google.firestore.v1beta1.Document].
|
int |
getRemovedTargetIds(int index)
A set of target IDs for targets that no longer match this document.
|
int |
getRemovedTargetIdsCount()
A set of target IDs for targets that no longer match this document.
|
java.util.List<java.lang.Integer> |
getRemovedTargetIdsList()
A set of target IDs for targets that no longer match this document.
|
int |
getTargetIds(int index)
A set of target IDs of targets that match this document.
|
int |
getTargetIdsCount()
A set of target IDs of targets that match this document.
|
java.util.List<java.lang.Integer> |
getTargetIdsList()
A set of target IDs of targets that match this document.
|
boolean |
hasDocument()
The new state of the [Document][google.firestore.v1beta1.Document].
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DocumentChange.Builder |
mergeDocument(Document value)
The new state of the [Document][google.firestore.v1beta1.Document].
|
DocumentChange.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
DocumentChange.Builder |
mergeFrom(DocumentChange other) |
DocumentChange.Builder |
mergeFrom(Message other) |
DocumentChange.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
DocumentChange.Builder |
setDocument(Document.Builder builderForValue)
The new state of the [Document][google.firestore.v1beta1.Document].
|
DocumentChange.Builder |
setDocument(Document value)
The new state of the [Document][google.firestore.v1beta1.Document].
|
DocumentChange.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
DocumentChange.Builder |
setRemovedTargetIds(int index,
int value)
A set of target IDs for targets that no longer match this document.
|
DocumentChange.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
DocumentChange.Builder |
setTargetIds(int index,
int value)
A set of target IDs of targets that match this document.
|
DocumentChange.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public DocumentChange build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public DocumentChange buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public DocumentChange.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<DocumentChange.Builder>
public DocumentChange.Builder mergeFrom(DocumentChange other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public DocumentChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<DocumentChange.Builder>
java.io.IOException
public boolean hasDocument()
The new state of the [Document][google.firestore.v1beta1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1beta1.Document document = 1;
hasDocument
in interface DocumentChangeOrBuilder
public Document getDocument()
The new state of the [Document][google.firestore.v1beta1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1beta1.Document document = 1;
getDocument
in interface DocumentChangeOrBuilder
public DocumentChange.Builder setDocument(Document value)
The new state of the [Document][google.firestore.v1beta1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1beta1.Document document = 1;
public DocumentChange.Builder setDocument(Document.Builder builderForValue)
The new state of the [Document][google.firestore.v1beta1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1beta1.Document document = 1;
public DocumentChange.Builder mergeDocument(Document value)
The new state of the [Document][google.firestore.v1beta1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1beta1.Document document = 1;
public DocumentChange.Builder clearDocument()
The new state of the [Document][google.firestore.v1beta1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1beta1.Document document = 1;
public Document.Builder getDocumentBuilder()
The new state of the [Document][google.firestore.v1beta1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1beta1.Document document = 1;
public DocumentOrBuilder getDocumentOrBuilder()
The new state of the [Document][google.firestore.v1beta1.Document]. If `mask` is set, contains only fields that were updated or added.
.google.firestore.v1beta1.Document document = 1;
getDocumentOrBuilder
in interface DocumentChangeOrBuilder
public java.util.List<java.lang.Integer> getTargetIdsList()
A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
getTargetIdsList
in interface DocumentChangeOrBuilder
public int getTargetIdsCount()
A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
getTargetIdsCount
in interface DocumentChangeOrBuilder
public int getTargetIds(int index)
A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
getTargetIds
in interface DocumentChangeOrBuilder
public DocumentChange.Builder setTargetIds(int index, int value)
A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
public DocumentChange.Builder addTargetIds(int value)
A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
public DocumentChange.Builder addAllTargetIds(java.lang.Iterable<? extends java.lang.Integer> values)
A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
public DocumentChange.Builder clearTargetIds()
A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
public java.util.List<java.lang.Integer> getRemovedTargetIdsList()
A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
getRemovedTargetIdsList
in interface DocumentChangeOrBuilder
public int getRemovedTargetIdsCount()
A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
getRemovedTargetIdsCount
in interface DocumentChangeOrBuilder
public int getRemovedTargetIds(int index)
A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
getRemovedTargetIds
in interface DocumentChangeOrBuilder
public DocumentChange.Builder setRemovedTargetIds(int index, int value)
A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
public DocumentChange.Builder addRemovedTargetIds(int value)
A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
public DocumentChange.Builder addAllRemovedTargetIds(java.lang.Iterable<? extends java.lang.Integer> values)
A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
public DocumentChange.Builder clearRemovedTargetIds()
A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
public final DocumentChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<DocumentChange.Builder>
public final DocumentChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<DocumentChange.Builder>