public static final class DocumentChange.Builder extends GeneratedMessageV3.Builder<DocumentChange.Builder> implements DocumentChangeOrBuilderA Document has changed. May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document. Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected.
Protobuf type google.firestore.v1.DocumentChange
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DocumentChange.BuilderImplements
DocumentChangeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Type | Description |
| Descriptor |
Methods
addAllRemovedTargetIds(Iterable<? extends Integer> values)
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;
| Name | Description |
| values | Iterable<? extends java.lang.Integer>The removedTargetIds to add. |
| Type | Description |
| DocumentChange.Builder | This builder for chaining. |
addAllTargetIds(Iterable<? extends Integer> values)
public DocumentChange.Builder addAllTargetIds(Iterable<? extends Integer> values)A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
| Name | Description |
| values | Iterable<? extends java.lang.Integer>The targetIds to add. |
| Type | Description |
| DocumentChange.Builder | This builder for chaining. |
addRemovedTargetIds(int value)
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;
| Name | Description |
| value | intThe removedTargetIds to add. |
| Type | Description |
| DocumentChange.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DocumentChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| DocumentChange.Builder |
addTargetIds(int value)
public DocumentChange.Builder addTargetIds(int value)A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
| Name | Description |
| value | intThe targetIds to add. |
| Type | Description |
| DocumentChange.Builder | This builder for chaining. |
build()
public DocumentChange build()| Type | Description |
| DocumentChange |
buildPartial()
public DocumentChange buildPartial()| Type | Description |
| DocumentChange |
clear()
public DocumentChange.Builder clear()| Type | Description |
| DocumentChange.Builder |
clearDocument()
public DocumentChange.Builder clearDocument() The new state of the Document.
If mask is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;
| Type | Description |
| DocumentChange.Builder |
clearField(Descriptors.FieldDescriptor field)
public DocumentChange.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| DocumentChange.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DocumentChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| DocumentChange.Builder |
clearRemovedTargetIds()
public DocumentChange.Builder clearRemovedTargetIds()A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
| Type | Description |
| DocumentChange.Builder | This builder for chaining. |
clearTargetIds()
public DocumentChange.Builder clearTargetIds()A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
| Type | Description |
| DocumentChange.Builder | This builder for chaining. |
clone()
public DocumentChange.Builder clone()| Type | Description |
| DocumentChange.Builder |
getDefaultInstanceForType()
public DocumentChange getDefaultInstanceForType()| Type | Description |
| DocumentChange |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Type | Description |
| Descriptor |
getDocument()
public Document getDocument() The new state of the Document.
If mask is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;
| Type | Description |
| Document | The document. |
getDocumentBuilder()
public Document.Builder getDocumentBuilder() The new state of the Document.
If mask is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;
| Type | Description |
| Document.Builder |
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder() The new state of the Document.
If mask is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;
| Type | Description |
| DocumentOrBuilder |
getRemovedTargetIds(int index)
public int getRemovedTargetIds(int index)A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| int | The removedTargetIds at the given index. |
getRemovedTargetIdsCount()
public int getRemovedTargetIdsCount()A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
| Type | Description |
| int | The count of removedTargetIds. |
getRemovedTargetIdsList()
public List<Integer> getRemovedTargetIdsList()A set of target IDs for targets that no longer match this document.
repeated int32 removed_target_ids = 6;
| Type | Description |
| List<Integer> | A list containing the removedTargetIds. |
getTargetIds(int index)
public int getTargetIds(int index)A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
| Name | Description |
| index | intThe index of the element to return. |
| Type | Description |
| int | The targetIds at the given index. |
getTargetIdsCount()
public int getTargetIdsCount()A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
| Type | Description |
| int | The count of targetIds. |
getTargetIdsList()
public List<Integer> getTargetIdsList()A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
| Type | Description |
| List<Integer> | A list containing the targetIds. |
hasDocument()
public boolean hasDocument() The new state of the Document.
If mask is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;
| Type | Description |
| boolean | Whether the document field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeDocument(Document value)
public DocumentChange.Builder mergeDocument(Document value) The new state of the Document.
If mask is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;
| Name | Description |
| value | Document |
| Type | Description |
| DocumentChange.Builder |
mergeFrom(DocumentChange other)
public DocumentChange.Builder mergeFrom(DocumentChange other)| Name | Description |
| other | DocumentChange |
| Type | Description |
| DocumentChange.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DocumentChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| DocumentChange.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public DocumentChange.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| Type | Description |
| DocumentChange.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DocumentChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| DocumentChange.Builder |
setDocument(Document value)
public DocumentChange.Builder setDocument(Document value) The new state of the Document.
If mask is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;
| Name | Description |
| value | Document |
| Type | Description |
| DocumentChange.Builder |
setDocument(Document.Builder builderForValue)
public DocumentChange.Builder setDocument(Document.Builder builderForValue) The new state of the Document.
If mask is set, contains only fields that were updated or added.
.google.firestore.v1.Document document = 1;
| Name | Description |
| builderForValue | Document.Builder |
| Type | Description |
| DocumentChange.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DocumentChange.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| DocumentChange.Builder |
setRemovedTargetIds(int index, int value)
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;
| Name | Description |
| index | intThe index to set the value at. |
| value | intThe removedTargetIds to set. |
| Type | Description |
| DocumentChange.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DocumentChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| DocumentChange.Builder |
setTargetIds(int index, int value)
public DocumentChange.Builder setTargetIds(int index, int value)A set of target IDs of targets that match this document.
repeated int32 target_ids = 5;
| Name | Description |
| index | intThe index to set the value at. |
| value | intThe targetIds to set. |
| Type | Description |
| DocumentChange.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final DocumentChange.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| DocumentChange.Builder |