Class Filter.Builder (2.17.6)

public static final class Filter.Builder extends GeneratedMessageV3.Builder<Filter.Builder> implements FilterOrBuilder

A holder for any type of filter.

Protobuf type google.datastore.v1.Filter

Implements

FilterOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Filter build()
Returns
TypeDescription
Filter

buildPartial()

public Filter buildPartial()
Returns
TypeDescription
Filter

clear()

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

clearCompositeFilter()

public Filter.Builder clearCompositeFilter()

A composite filter.

.google.datastore.v1.CompositeFilter composite_filter = 1;

Returns
TypeDescription
Filter.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFilterType()

public Filter.Builder clearFilterType()
Returns
TypeDescription
Filter.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPropertyFilter()

public Filter.Builder clearPropertyFilter()

A filter on a property.

.google.datastore.v1.PropertyFilter property_filter = 2;

Returns
TypeDescription
Filter.Builder

clone()

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

getCompositeFilter()

public CompositeFilter getCompositeFilter()

A composite filter.

.google.datastore.v1.CompositeFilter composite_filter = 1;

Returns
TypeDescription
CompositeFilter

The compositeFilter.

getCompositeFilterBuilder()

public CompositeFilter.Builder getCompositeFilterBuilder()

A composite filter.

.google.datastore.v1.CompositeFilter composite_filter = 1;

Returns
TypeDescription
CompositeFilter.Builder

getCompositeFilterOrBuilder()

public CompositeFilterOrBuilder getCompositeFilterOrBuilder()

A composite filter.

.google.datastore.v1.CompositeFilter composite_filter = 1;

Returns
TypeDescription
CompositeFilterOrBuilder

getDefaultInstanceForType()

public Filter getDefaultInstanceForType()
Returns
TypeDescription
Filter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFilterTypeCase()

public Filter.FilterTypeCase getFilterTypeCase()
Returns
TypeDescription
Filter.FilterTypeCase

getPropertyFilter()

public PropertyFilter getPropertyFilter()

A filter on a property.

.google.datastore.v1.PropertyFilter property_filter = 2;

Returns
TypeDescription
PropertyFilter

The propertyFilter.

getPropertyFilterBuilder()

public PropertyFilter.Builder getPropertyFilterBuilder()

A filter on a property.

.google.datastore.v1.PropertyFilter property_filter = 2;

Returns
TypeDescription
PropertyFilter.Builder

getPropertyFilterOrBuilder()

public PropertyFilterOrBuilder getPropertyFilterOrBuilder()

A filter on a property.

.google.datastore.v1.PropertyFilter property_filter = 2;

Returns
TypeDescription
PropertyFilterOrBuilder

hasCompositeFilter()

public boolean hasCompositeFilter()

A composite filter.

.google.datastore.v1.CompositeFilter composite_filter = 1;

Returns
TypeDescription
boolean

Whether the compositeFilter field is set.

hasPropertyFilter()

public boolean hasPropertyFilter()

A filter on a property.

.google.datastore.v1.PropertyFilter property_filter = 2;

Returns
TypeDescription
boolean

Whether the propertyFilter field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCompositeFilter(CompositeFilter value)

public Filter.Builder mergeCompositeFilter(CompositeFilter value)

A composite filter.

.google.datastore.v1.CompositeFilter composite_filter = 1;

Parameter
NameDescription
valueCompositeFilter
Returns
TypeDescription
Filter.Builder

mergeFrom(Filter other)

public Filter.Builder mergeFrom(Filter other)
Parameter
NameDescription
otherFilter
Returns
TypeDescription
Filter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePropertyFilter(PropertyFilter value)

public Filter.Builder mergePropertyFilter(PropertyFilter value)

A filter on a property.

.google.datastore.v1.PropertyFilter property_filter = 2;

Parameter
NameDescription
valuePropertyFilter
Returns
TypeDescription
Filter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCompositeFilter(CompositeFilter value)

public Filter.Builder setCompositeFilter(CompositeFilter value)

A composite filter.

.google.datastore.v1.CompositeFilter composite_filter = 1;

Parameter
NameDescription
valueCompositeFilter
Returns
TypeDescription
Filter.Builder

setCompositeFilter(CompositeFilter.Builder builderForValue)

public Filter.Builder setCompositeFilter(CompositeFilter.Builder builderForValue)

A composite filter.

.google.datastore.v1.CompositeFilter composite_filter = 1;

Parameter
NameDescription
builderForValueCompositeFilter.Builder
Returns
TypeDescription
Filter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPropertyFilter(PropertyFilter value)

public Filter.Builder setPropertyFilter(PropertyFilter value)

A filter on a property.

.google.datastore.v1.PropertyFilter property_filter = 2;

Parameter
NameDescription
valuePropertyFilter
Returns
TypeDescription
Filter.Builder

setPropertyFilter(PropertyFilter.Builder builderForValue)

public Filter.Builder setPropertyFilter(PropertyFilter.Builder builderForValue)

A filter on a property.

.google.datastore.v1.PropertyFilter property_filter = 2;

Parameter
NameDescription
builderForValuePropertyFilter.Builder
Returns
TypeDescription
Filter.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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