public static final class DocumentRemove.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DocumentRemove.Builder> implements DocumentRemoveOrBuilder
A [Document][google.firestore.v1.Document] has been removed from the view of the targets. Sent if the document is no longer relevant to a target and is out of view. Can be sent instead of a DocumentDelete or a DocumentChange if the server can not send the new value of the document. Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be returned for the same logical write or delete, if multiple targets are affected.Protobuf type
google.firestore.v1.DocumentRemove
Modifier and Type | Method and Description |
---|---|
DocumentRemove.Builder |
addAllRemovedTargetIds(Iterable<? extends Integer> values)
A set of target IDs for targets that previously matched this document.
|
DocumentRemove.Builder |
addRemovedTargetIds(int value)
A set of target IDs for targets that previously matched this document.
|
DocumentRemove.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentRemove |
build() |
DocumentRemove |
buildPartial() |
DocumentRemove.Builder |
clear() |
DocumentRemove.Builder |
clearDocument()
The resource name of the [Document][google.firestore.v1.Document] that has
gone out of view.
|
DocumentRemove.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DocumentRemove.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DocumentRemove.Builder |
clearReadTime()
The read timestamp at which the remove was observed.
|
DocumentRemove.Builder |
clearRemovedTargetIds()
A set of target IDs for targets that previously matched this document.
|
DocumentRemove.Builder |
clone() |
DocumentRemove |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDocument()
The resource name of the [Document][google.firestore.v1.Document] that has
gone out of view.
|
com.google.protobuf.ByteString |
getDocumentBytes()
The resource name of the [Document][google.firestore.v1.Document] that has
gone out of view.
|
com.google.protobuf.Timestamp |
getReadTime()
The read timestamp at which the remove was observed.
|
com.google.protobuf.Timestamp.Builder |
getReadTimeBuilder()
The read timestamp at which the remove was observed.
|
com.google.protobuf.TimestampOrBuilder |
getReadTimeOrBuilder()
The read timestamp at which the remove was observed.
|
int |
getRemovedTargetIds(int index)
A set of target IDs for targets that previously matched this document.
|
int |
getRemovedTargetIdsCount()
A set of target IDs for targets that previously matched this document.
|
List<Integer> |
getRemovedTargetIdsList()
A set of target IDs for targets that previously matched this document.
|
boolean |
hasReadTime()
The read timestamp at which the remove was observed.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DocumentRemove.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DocumentRemove.Builder |
mergeFrom(DocumentRemove other) |
DocumentRemove.Builder |
mergeFrom(com.google.protobuf.Message other) |
DocumentRemove.Builder |
mergeReadTime(com.google.protobuf.Timestamp value)
The read timestamp at which the remove was observed.
|
DocumentRemove.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DocumentRemove.Builder |
setDocument(String value)
The resource name of the [Document][google.firestore.v1.Document] that has
gone out of view.
|
DocumentRemove.Builder |
setDocumentBytes(com.google.protobuf.ByteString value)
The resource name of the [Document][google.firestore.v1.Document] that has
gone out of view.
|
DocumentRemove.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentRemove.Builder |
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
The read timestamp at which the remove was observed.
|
DocumentRemove.Builder |
setReadTime(com.google.protobuf.Timestamp value)
The read timestamp at which the remove was observed.
|
DocumentRemove.Builder |
setRemovedTargetIds(int index,
int value)
A set of target IDs for targets that previously matched this document.
|
DocumentRemove.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DocumentRemove.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<DocumentRemove.Builder>
public DocumentRemove.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<DocumentRemove.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<DocumentRemove.Builder>
public DocumentRemove getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public DocumentRemove build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public DocumentRemove buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public DocumentRemove.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<DocumentRemove.Builder>
public DocumentRemove.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<DocumentRemove.Builder>
public DocumentRemove.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentRemove.Builder>
public DocumentRemove.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentRemove.Builder>
public DocumentRemove.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<DocumentRemove.Builder>
public DocumentRemove.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<DocumentRemove.Builder>
public DocumentRemove.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<DocumentRemove.Builder>
public DocumentRemove.Builder mergeFrom(DocumentRemove other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentRemove.Builder>
public DocumentRemove.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<DocumentRemove.Builder>
IOException
public String getDocument()
The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
string document = 1;
getDocument
in interface DocumentRemoveOrBuilder
public com.google.protobuf.ByteString getDocumentBytes()
The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
string document = 1;
getDocumentBytes
in interface DocumentRemoveOrBuilder
public DocumentRemove.Builder setDocument(String value)
The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
string document = 1;
value
- The document to set.public DocumentRemove.Builder clearDocument()
The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
string document = 1;
public DocumentRemove.Builder setDocumentBytes(com.google.protobuf.ByteString value)
The resource name of the [Document][google.firestore.v1.Document] that has gone out of view.
string document = 1;
value
- The bytes for document to set.public List<Integer> getRemovedTargetIdsList()
A set of target IDs for targets that previously matched this document.
repeated int32 removed_target_ids = 2;
getRemovedTargetIdsList
in interface DocumentRemoveOrBuilder
public int getRemovedTargetIdsCount()
A set of target IDs for targets that previously matched this document.
repeated int32 removed_target_ids = 2;
getRemovedTargetIdsCount
in interface DocumentRemoveOrBuilder
public int getRemovedTargetIds(int index)
A set of target IDs for targets that previously matched this document.
repeated int32 removed_target_ids = 2;
getRemovedTargetIds
in interface DocumentRemoveOrBuilder
index
- The index of the element to return.public DocumentRemove.Builder setRemovedTargetIds(int index, int value)
A set of target IDs for targets that previously matched this document.
repeated int32 removed_target_ids = 2;
index
- The index to set the value at.value
- The removedTargetIds to set.public DocumentRemove.Builder addRemovedTargetIds(int value)
A set of target IDs for targets that previously matched this document.
repeated int32 removed_target_ids = 2;
value
- The removedTargetIds to add.public DocumentRemove.Builder addAllRemovedTargetIds(Iterable<? extends Integer> values)
A set of target IDs for targets that previously matched this document.
repeated int32 removed_target_ids = 2;
values
- The removedTargetIds to add.public DocumentRemove.Builder clearRemovedTargetIds()
A set of target IDs for targets that previously matched this document.
repeated int32 removed_target_ids = 2;
public boolean hasReadTime()
The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
.google.protobuf.Timestamp read_time = 4;
hasReadTime
in interface DocumentRemoveOrBuilder
public com.google.protobuf.Timestamp getReadTime()
The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
.google.protobuf.Timestamp read_time = 4;
getReadTime
in interface DocumentRemoveOrBuilder
public DocumentRemove.Builder setReadTime(com.google.protobuf.Timestamp value)
The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
.google.protobuf.Timestamp read_time = 4;
public DocumentRemove.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
.google.protobuf.Timestamp read_time = 4;
public DocumentRemove.Builder mergeReadTime(com.google.protobuf.Timestamp value)
The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
.google.protobuf.Timestamp read_time = 4;
public DocumentRemove.Builder clearReadTime()
The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
.google.protobuf.Timestamp read_time = 4;
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
.google.protobuf.Timestamp read_time = 4;
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
.google.protobuf.Timestamp read_time = 4;
getReadTimeOrBuilder
in interface DocumentRemoveOrBuilder
public final DocumentRemove.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentRemove.Builder>
public final DocumentRemove.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentRemove.Builder>
Copyright © 2023 Google LLC. All rights reserved.