Class CompositeFilter.Builder (2.17.6)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.datastore.v1.Filter>
Returns
TypeDescription
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
NameDescription
valueFilter
Returns
TypeDescription
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
NameDescription
builderForValueFilter.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueFilter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFilter.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Filter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CompositeFilter build()
Returns
TypeDescription
CompositeFilter

buildPartial()

public CompositeFilter buildPartial()
Returns
TypeDescription
CompositeFilter

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CompositeFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CompositeFilter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOp()

public CompositeFilter.Builder clearOp()

The operator for combining multiple filters.

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

Returns
TypeDescription
CompositeFilter.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CompositeFilter getDefaultInstanceForType()
Returns
TypeDescription
CompositeFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CompositeFilter.Operator

The op.

getOpValue()

public int getOpValue()

The operator for combining multiple filters.

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

Returns
TypeDescription
int

The enum numeric value on the wire for op.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CompositeFilter other)

public CompositeFilter.Builder mergeFrom(CompositeFilter other)
Parameter
NameDescription
otherCompositeFilter
Returns
TypeDescription
CompositeFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CompositeFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CompositeFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CompositeFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueFilter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueFilter.Builder
Returns
TypeDescription
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
NameDescription
valueCompositeFilter.Operator

The op to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CompositeFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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