Class ExistenceFilter.Builder (3.5.0)

public static final class ExistenceFilter.Builder extends GeneratedMessageV3.Builder<ExistenceFilter.Builder> implements ExistenceFilterOrBuilder

A digest of all the documents that match a given target.

Protobuf type google.firestore.v1.ExistenceFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExistenceFilter build()
Returns
TypeDescription
ExistenceFilter

buildPartial()

public ExistenceFilter buildPartial()
Returns
TypeDescription
ExistenceFilter

clear()

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

clearCount()

public ExistenceFilter.Builder clearCount()

The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target.

int32 count = 2;

Returns
TypeDescription
ExistenceFilter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetId()

public ExistenceFilter.Builder clearTargetId()

The target ID to which this filter applies.

int32 target_id = 1;

Returns
TypeDescription
ExistenceFilter.Builder

This builder for chaining.

clone()

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

getCount()

public int getCount()

The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target.

int32 count = 2;

Returns
TypeDescription
int

The count.

getDefaultInstanceForType()

public ExistenceFilter getDefaultInstanceForType()
Returns
TypeDescription
ExistenceFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTargetId()

public int getTargetId()

The target ID to which this filter applies.

int32 target_id = 1;

Returns
TypeDescription
int

The targetId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExistenceFilter other)

public ExistenceFilter.Builder mergeFrom(ExistenceFilter other)
Parameter
NameDescription
otherExistenceFilter
Returns
TypeDescription
ExistenceFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(int value)

public ExistenceFilter.Builder setCount(int value)

The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target.

int32 count = 2;

Parameter
NameDescription
valueint

The count to set.

Returns
TypeDescription
ExistenceFilter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTargetId(int value)

public ExistenceFilter.Builder setTargetId(int value)

The target ID to which this filter applies.

int32 target_id = 1;

Parameter
NameDescription
valueint

The targetId to set.

Returns
TypeDescription
ExistenceFilter.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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