Cloud Firestore V1beta1 Client - Class Filter (1.33.0)

Reference documentation and code samples for the Cloud Firestore V1beta1 Client class Filter.

A filter.

Generated from protobuf message google.firestore.v1beta1.StructuredQuery.Filter

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ composite_filter Google\Cloud\Firestore\V1beta1\StructuredQuery\CompositeFilter

A composite filter.

↳ field_filter Google\Cloud\Firestore\V1beta1\StructuredQuery\FieldFilter

A filter on a document field.

↳ unary_filter Google\Cloud\Firestore\V1beta1\StructuredQuery\UnaryFilter

A filter that takes exactly one argument.

getCompositeFilter

A composite filter.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\StructuredQuery\CompositeFilter

setCompositeFilter

A composite filter.

Parameter
NameDescription
var Google\Cloud\Firestore\V1beta1\StructuredQuery\CompositeFilter
Returns
TypeDescription
$this

getFieldFilter

A filter on a document field.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\StructuredQuery\FieldFilter

setFieldFilter

A filter on a document field.

Parameter
NameDescription
var Google\Cloud\Firestore\V1beta1\StructuredQuery\FieldFilter
Returns
TypeDescription
$this

getUnaryFilter

A filter that takes exactly one argument.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\StructuredQuery\UnaryFilter

setUnaryFilter

A filter that takes exactly one argument.

Parameter
NameDescription
var Google\Cloud\Firestore\V1beta1\StructuredQuery\UnaryFilter
Returns
TypeDescription
$this

getFilterType

Returns
TypeDescription
string