Class StructuredQuery.Filter (3.30.0)

public static final class StructuredQuery.Filter extends GeneratedMessageV3 implements StructuredQuery.FilterOrBuilder

A filter.

Protobuf type google.firestore.v1.StructuredQuery.Filter

Static Fields

COMPOSITE_FILTER_FIELD_NUMBER

public static final int COMPOSITE_FILTER_FIELD_NUMBER
Field Value
Type Description
int

FIELD_FILTER_FIELD_NUMBER

public static final int FIELD_FILTER_FIELD_NUMBER
Field Value
Type Description
int

UNARY_FILTER_FIELD_NUMBER

public static final int UNARY_FILTER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StructuredQuery.Filter getDefaultInstance()
Returns
Type Description
StructuredQuery.Filter

getDescriptor()

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

newBuilder()

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

newBuilder(StructuredQuery.Filter prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<StructuredQuery.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 StructuredQuery.CompositeFilter getCompositeFilter()

A composite filter.

.google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;

Returns
Type Description
StructuredQuery.CompositeFilter

The compositeFilter.

getCompositeFilterOrBuilder()

public StructuredQuery.CompositeFilterOrBuilder getCompositeFilterOrBuilder()

A composite filter.

.google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;

Returns
Type Description
StructuredQuery.CompositeFilterOrBuilder

getDefaultInstanceForType()

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

getFieldFilter()

public StructuredQuery.FieldFilter getFieldFilter()

A filter on a document field.

.google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;

Returns
Type Description
StructuredQuery.FieldFilter

The fieldFilter.

getFieldFilterOrBuilder()

public StructuredQuery.FieldFilterOrBuilder getFieldFilterOrBuilder()

A filter on a document field.

.google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;

Returns
Type Description
StructuredQuery.FieldFilterOrBuilder

getFilterTypeCase()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnaryFilter()

public StructuredQuery.UnaryFilter getUnaryFilter()

A filter that takes exactly one argument.

.google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;

Returns
Type Description
StructuredQuery.UnaryFilter

The unaryFilter.

getUnaryFilterOrBuilder()

public StructuredQuery.UnaryFilterOrBuilder getUnaryFilterOrBuilder()

A filter that takes exactly one argument.

.google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;

Returns
Type Description
StructuredQuery.UnaryFilterOrBuilder

hasCompositeFilter()

public boolean hasCompositeFilter()

A composite filter.

.google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;

Returns
Type Description
boolean

Whether the compositeFilter field is set.

hasFieldFilter()

public boolean hasFieldFilter()

A filter on a document field.

.google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;

Returns
Type Description
boolean

Whether the fieldFilter field is set.

hasUnaryFilter()

public boolean hasUnaryFilter()

A filter that takes exactly one argument.

.google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;

Returns
Type Description
boolean

Whether the unaryFilter 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 StructuredQuery.Filter.Builder newBuilderForType()
Returns
Type Description
StructuredQuery.Filter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StructuredQuery.Filter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StructuredQuery.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 StructuredQuery.Filter.Builder toBuilder()
Returns
Type Description
StructuredQuery.Filter.Builder

writeTo(CodedOutputStream output)

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