Class StructuredQuery.CompositeFilter.Builder (3.21.0)

public static final class StructuredQuery.CompositeFilter.Builder extends GeneratedMessageV3.Builder<StructuredQuery.CompositeFilter.Builder> implements StructuredQuery.CompositeFilterOrBuilder

A filter that merges multiple other filters using the given operator.

Protobuf type google.firestore.v1.StructuredQuery.CompositeFilter

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllFilters(Iterable<? extends StructuredQuery.Filter> values)

public StructuredQuery.CompositeFilter.Builder addAllFilters(Iterable<? extends StructuredQuery.Filter> values)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameter
Name Description
values Iterable<? extends com.google.firestore.v1.StructuredQuery.Filter>
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

addFilters(StructuredQuery.Filter value)

public StructuredQuery.CompositeFilter.Builder addFilters(StructuredQuery.Filter value)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameter
Name Description
value StructuredQuery.Filter
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

addFilters(StructuredQuery.Filter.Builder builderForValue)

public StructuredQuery.CompositeFilter.Builder addFilters(StructuredQuery.Filter.Builder builderForValue)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameter
Name Description
builderForValue StructuredQuery.Filter.Builder
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

addFilters(int index, StructuredQuery.Filter value)

public StructuredQuery.CompositeFilter.Builder addFilters(int index, StructuredQuery.Filter value)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameters
Name Description
index int
value StructuredQuery.Filter
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

addFilters(int index, StructuredQuery.Filter.Builder builderForValue)

public StructuredQuery.CompositeFilter.Builder addFilters(int index, StructuredQuery.Filter.Builder builderForValue)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameters
Name Description
index int
builderForValue StructuredQuery.Filter.Builder
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

addFiltersBuilder()

public StructuredQuery.Filter.Builder addFiltersBuilder()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Returns
Type Description
StructuredQuery.Filter.Builder

addFiltersBuilder(int index)

public StructuredQuery.Filter.Builder addFiltersBuilder(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
StructuredQuery.Filter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StructuredQuery.CompositeFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

build()

public StructuredQuery.CompositeFilter build()
Returns
Type Description
StructuredQuery.CompositeFilter

buildPartial()

public StructuredQuery.CompositeFilter buildPartial()
Returns
Type Description
StructuredQuery.CompositeFilter

clear()

public StructuredQuery.CompositeFilter.Builder clear()
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public StructuredQuery.CompositeFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

clearFilters()

public StructuredQuery.CompositeFilter.Builder clearFilters()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Returns
Type Description
StructuredQuery.CompositeFilter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public StructuredQuery.CompositeFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

clearOp()

public StructuredQuery.CompositeFilter.Builder clearOp()

The operator for combining multiple filters.

.google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;

Returns
Type Description
StructuredQuery.CompositeFilter.Builder

This builder for chaining.

clone()

public StructuredQuery.CompositeFilter.Builder clone()
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

getDefaultInstanceForType()

public StructuredQuery.CompositeFilter getDefaultInstanceForType()
Returns
Type Description
StructuredQuery.CompositeFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilters(int index)

public StructuredQuery.Filter getFilters(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
StructuredQuery.Filter

getFiltersBuilder(int index)

public StructuredQuery.Filter.Builder getFiltersBuilder(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
StructuredQuery.Filter.Builder

getFiltersBuilderList()

public List<StructuredQuery.Filter.Builder> getFiltersBuilderList()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Returns
Type Description
List<Builder>

getFiltersCount()

public int getFiltersCount()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Returns
Type Description
int

getFiltersList()

public List<StructuredQuery.Filter> getFiltersList()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Returns
Type Description
List<Filter>

getFiltersOrBuilder(int index)

public StructuredQuery.FilterOrBuilder getFiltersOrBuilder(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
StructuredQuery.FilterOrBuilder

getFiltersOrBuilderList()

public List<? extends StructuredQuery.FilterOrBuilder> getFiltersOrBuilderList()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Returns
Type Description
List<? extends com.google.firestore.v1.StructuredQuery.FilterOrBuilder>

getOp()

public StructuredQuery.CompositeFilter.Operator getOp()

The operator for combining multiple filters.

.google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;

Returns
Type Description
StructuredQuery.CompositeFilter.Operator

The op.

getOpValue()

public int getOpValue()

The operator for combining multiple filters.

.google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;

Returns
Type Description
int

The enum numeric value on the wire for op.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StructuredQuery.CompositeFilter other)

public StructuredQuery.CompositeFilter.Builder mergeFrom(StructuredQuery.CompositeFilter other)
Parameter
Name Description
other StructuredQuery.CompositeFilter
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StructuredQuery.CompositeFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StructuredQuery.CompositeFilter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StructuredQuery.CompositeFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

removeFilters(int index)

public StructuredQuery.CompositeFilter.Builder removeFilters(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StructuredQuery.CompositeFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

setFilters(int index, StructuredQuery.Filter value)

public StructuredQuery.CompositeFilter.Builder setFilters(int index, StructuredQuery.Filter value)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameters
Name Description
index int
value StructuredQuery.Filter
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

setFilters(int index, StructuredQuery.Filter.Builder builderForValue)

public StructuredQuery.CompositeFilter.Builder setFilters(int index, StructuredQuery.Filter.Builder builderForValue)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;

Parameters
Name Description
index int
builderForValue StructuredQuery.Filter.Builder
Returns
Type Description
StructuredQuery.CompositeFilter.Builder

setOp(StructuredQuery.CompositeFilter.Operator value)

public StructuredQuery.CompositeFilter.Builder setOp(StructuredQuery.CompositeFilter.Operator value)

The operator for combining multiple filters.

.google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;

Parameter
Name Description
value StructuredQuery.CompositeFilter.Operator

The op to set.

Returns
Type Description
StructuredQuery.CompositeFilter.Builder

This builder for chaining.

setOpValue(int value)

public StructuredQuery.CompositeFilter.Builder setOpValue(int value)

The operator for combining multiple filters.

.google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for op to set.

Returns
Type Description
StructuredQuery.CompositeFilter.Builder

This builder for chaining.

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

public StructuredQuery.CompositeFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StructuredQuery.CompositeFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StructuredQuery.CompositeFilter.Builder
Overrides