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