Class Filter (2.20.2)

public final class Filter extends GeneratedMessageV3 implements FilterOrBuilder

A holder for any type of filter.

Protobuf type google.datastore.v1.Filter

Implements

FilterOrBuilder

Static Fields

COMPOSITE_FILTER_FIELD_NUMBER

public static final int COMPOSITE_FILTER_FIELD_NUMBER
Field Value
Type Description
int

PROPERTY_FILTER_FIELD_NUMBER

public static final int PROPERTY_FILTER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Filter getDefaultInstance()
Returns
Type Description
Filter

getDescriptor()

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

newBuilder()

public static Filter.Builder newBuilder()
Returns
Type Description
Filter.Builder

newBuilder(Filter prototype)

public static Filter.Builder newBuilder(Filter prototype)
Parameter
Name Description
prototype Filter
Returns
Type Description
Filter.Builder

parseDelimitedFrom(InputStream input)

public static Filter parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Filter
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Filter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Filter
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Filter parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Filter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Filter parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Filter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Filter parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Filter
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Filter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Filter
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Filter parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Filter
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Filter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Filter
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Filter parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Filter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Filter
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Filter> parser()
Returns
Type Description
Parser<Filter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCompositeFilter()

public CompositeFilter getCompositeFilter()

A composite filter.

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

Returns
Type Description
CompositeFilter

The compositeFilter.

getCompositeFilterOrBuilder()

public CompositeFilterOrBuilder getCompositeFilterOrBuilder()

A composite filter.

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

Returns
Type Description
CompositeFilterOrBuilder

getDefaultInstanceForType()

public Filter getDefaultInstanceForType()
Returns
Type Description
Filter

getFilterTypeCase()

public Filter.FilterTypeCase getFilterTypeCase()
Returns
Type Description
Filter.FilterTypeCase

getParserForType()

public Parser<Filter> getParserForType()
Returns
Type Description
Parser<Filter>
Overrides

getPropertyFilter()

public PropertyFilter getPropertyFilter()

A filter on a property.

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

Returns
Type Description
PropertyFilter

The propertyFilter.

getPropertyFilterOrBuilder()

public PropertyFilterOrBuilder getPropertyFilterOrBuilder()

A filter on a property.

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

Returns
Type Description
PropertyFilterOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasCompositeFilter()

public boolean hasCompositeFilter()

A composite filter.

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

Returns
Type Description
boolean

Whether the compositeFilter field is set.

hasPropertyFilter()

public boolean hasPropertyFilter()

A filter on a property.

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

Returns
Type Description
boolean

Whether the propertyFilter field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Filter.Builder newBuilderForType()
Returns
Type Description
Filter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Filter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Filter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Filter.Builder toBuilder()
Returns
Type Description
Filter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException