Class DocumentDelete.Builder (3.14.4)

public static final class DocumentDelete.Builder extends GeneratedMessageV3.Builder<DocumentDelete.Builder> implements DocumentDeleteOrBuilder

A Document has been deleted.

May be the result of multiple writes, including updates, the last of which deleted the Document.

Multiple DocumentDelete messages may be returned for the same logical delete, if multiple targets are affected.

Protobuf type google.firestore.v1.DocumentDelete

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRemovedTargetIds(Iterable<? extends Integer> values)

public DocumentDelete.Builder addAllRemovedTargetIds(Iterable<? extends Integer> values)

A set of target IDs for targets that previously matched this entity.

repeated int32 removed_target_ids = 6;

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The removedTargetIds to add.

Returns
TypeDescription
DocumentDelete.Builder

This builder for chaining.

addRemovedTargetIds(int value)

public DocumentDelete.Builder addRemovedTargetIds(int value)

A set of target IDs for targets that previously matched this entity.

repeated int32 removed_target_ids = 6;

Parameter
NameDescription
valueint

The removedTargetIds to add.

Returns
TypeDescription
DocumentDelete.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentDelete build()
Returns
TypeDescription
DocumentDelete

buildPartial()

public DocumentDelete buildPartial()
Returns
TypeDescription
DocumentDelete

clear()

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

clearDocument()

public DocumentDelete.Builder clearDocument()

The resource name of the Document that was deleted.

string document = 1;

Returns
TypeDescription
DocumentDelete.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DocumentDelete.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DocumentDelete.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentDelete.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DocumentDelete.Builder
Overrides

clearReadTime()

public DocumentDelete.Builder clearReadTime()

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

.google.protobuf.Timestamp read_time = 4;

Returns
TypeDescription
DocumentDelete.Builder

clearRemovedTargetIds()

public DocumentDelete.Builder clearRemovedTargetIds()

A set of target IDs for targets that previously matched this entity.

repeated int32 removed_target_ids = 6;

Returns
TypeDescription
DocumentDelete.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DocumentDelete getDefaultInstanceForType()
Returns
TypeDescription
DocumentDelete

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocument()

public String getDocument()

The resource name of the Document that was deleted.

string document = 1;

Returns
TypeDescription
String

The document.

getDocumentBytes()

public ByteString getDocumentBytes()

The resource name of the Document that was deleted.

string document = 1;

Returns
TypeDescription
ByteString

The bytes for document.

getReadTime()

public Timestamp getReadTime()

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

.google.protobuf.Timestamp read_time = 4;

Returns
TypeDescription
Timestamp

The readTime.

getReadTimeBuilder()

public Timestamp.Builder getReadTimeBuilder()

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

.google.protobuf.Timestamp read_time = 4;

Returns
TypeDescription
Builder

getReadTimeOrBuilder()

public TimestampOrBuilder getReadTimeOrBuilder()

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

.google.protobuf.Timestamp read_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getRemovedTargetIds(int index)

public int getRemovedTargetIds(int index)

A set of target IDs for targets that previously matched this entity.

repeated int32 removed_target_ids = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The removedTargetIds at the given index.

getRemovedTargetIdsCount()

public int getRemovedTargetIdsCount()

A set of target IDs for targets that previously matched this entity.

repeated int32 removed_target_ids = 6;

Returns
TypeDescription
int

The count of removedTargetIds.

getRemovedTargetIdsList()

public List<Integer> getRemovedTargetIdsList()

A set of target IDs for targets that previously matched this entity.

repeated int32 removed_target_ids = 6;

Returns
TypeDescription
List<Integer>

A list containing the removedTargetIds.

hasReadTime()

public boolean hasReadTime()

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

.google.protobuf.Timestamp read_time = 4;

Returns
TypeDescription
boolean

Whether the readTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentDelete other)

public DocumentDelete.Builder mergeFrom(DocumentDelete other)
Parameter
NameDescription
otherDocumentDelete
Returns
TypeDescription
DocumentDelete.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DocumentDelete.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DocumentDelete.Builder
Overrides

mergeReadTime(Timestamp value)

public DocumentDelete.Builder mergeReadTime(Timestamp value)

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

.google.protobuf.Timestamp read_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DocumentDelete.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentDelete.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentDelete.Builder
Overrides

setDocument(String value)

public DocumentDelete.Builder setDocument(String value)

The resource name of the Document that was deleted.

string document = 1;

Parameter
NameDescription
valueString

The document to set.

Returns
TypeDescription
DocumentDelete.Builder

This builder for chaining.

setDocumentBytes(ByteString value)

public DocumentDelete.Builder setDocumentBytes(ByteString value)

The resource name of the Document that was deleted.

string document = 1;

Parameter
NameDescription
valueByteString

The bytes for document to set.

Returns
TypeDescription
DocumentDelete.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setReadTime(Timestamp value)

public DocumentDelete.Builder setReadTime(Timestamp value)

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

.google.protobuf.Timestamp read_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DocumentDelete.Builder

setReadTime(Timestamp.Builder builderForValue)

public DocumentDelete.Builder setReadTime(Timestamp.Builder builderForValue)

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

.google.protobuf.Timestamp read_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DocumentDelete.Builder

setRemovedTargetIds(int index, int value)

public DocumentDelete.Builder setRemovedTargetIds(int index, int value)

A set of target IDs for targets that previously matched this entity.

repeated int32 removed_target_ids = 6;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The removedTargetIds to set.

Returns
TypeDescription
DocumentDelete.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentDelete.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentDelete.Builder
Overrides