Class CompositeFilter.Builder (2.20.1)

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

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

Protobuf type google.datastore.v1.CompositeFilter

Static Methods

getDescriptor()

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

Methods

addAllFilters(Iterable<? extends Filter> values)

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

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

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

addFilters(Filter value)

public CompositeFilter.Builder addFilters(Filter value)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Parameter
Name Description
value Filter
Returns
Type Description
CompositeFilter.Builder

addFilters(Filter.Builder builderForValue)

public CompositeFilter.Builder addFilters(Filter.Builder builderForValue)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

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

addFilters(int index, Filter value)

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

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

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

addFilters(int index, Filter.Builder builderForValue)

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

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

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

addFiltersBuilder()

public Filter.Builder addFiltersBuilder()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Returns
Type Description
Filter.Builder

addFiltersBuilder(int index)

public Filter.Builder addFiltersBuilder(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
Filter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CompositeFilter build()
Returns
Type Description
CompositeFilter

buildPartial()

public CompositeFilter buildPartial()
Returns
Type Description
CompositeFilter

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFilters()

public CompositeFilter.Builder clearFilters()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Returns
Type Description
CompositeFilter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOp()

public CompositeFilter.Builder clearOp()

The operator for combining multiple filters.

.google.datastore.v1.CompositeFilter.Operator op = 1;

Returns
Type Description
CompositeFilter.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CompositeFilter getDefaultInstanceForType()
Returns
Type Description
CompositeFilter

getDescriptorForType()

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

getFilters(int index)

public Filter getFilters(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
Filter

getFiltersBuilder(int index)

public Filter.Builder getFiltersBuilder(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
Filter.Builder

getFiltersBuilderList()

public List<Filter.Builder> getFiltersBuilderList()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.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.datastore.v1.Filter filters = 2;

Returns
Type Description
int

getFiltersList()

public List<Filter> getFiltersList()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Returns
Type Description
List<Filter>

getFiltersOrBuilder(int index)

public FilterOrBuilder getFiltersOrBuilder(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
FilterOrBuilder

getFiltersOrBuilderList()

public List<? extends FilterOrBuilder> getFiltersOrBuilderList()

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

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

getOp()

public CompositeFilter.Operator getOp()

The operator for combining multiple filters.

.google.datastore.v1.CompositeFilter.Operator op = 1;

Returns
Type Description
CompositeFilter.Operator

The op.

getOpValue()

public int getOpValue()

The operator for combining multiple filters.

.google.datastore.v1.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(CompositeFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFilters(int index)

public CompositeFilter.Builder removeFilters(int index)

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

Parameter
Name Description
index int
Returns
Type Description
CompositeFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilters(int index, Filter value)

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

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

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

setFilters(int index, Filter.Builder builderForValue)

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

The list of filters to combine.

Requires:

  • At least one filter is present.

repeated .google.datastore.v1.Filter filters = 2;

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

setOp(CompositeFilter.Operator value)

public CompositeFilter.Builder setOp(CompositeFilter.Operator value)

The operator for combining multiple filters.

.google.datastore.v1.CompositeFilter.Operator op = 1;

Parameter
Name Description
value CompositeFilter.Operator

The op to set.

Returns
Type Description
CompositeFilter.Builder

This builder for chaining.

setOpValue(int value)

public CompositeFilter.Builder setOpValue(int value)

The operator for combining multiple filters.

.google.datastore.v1.CompositeFilter.Operator op = 1;

Parameter
Name Description
value int

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

Returns
Type Description
CompositeFilter.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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