Cloud Firestore V1beta1 Client - Class FieldFilter (1.36.1)

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

A filter on a specific field.

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

Namespace

Google \ Cloud \ Firestore \ V1beta1 \ StructuredQuery

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ field Google\Cloud\Firestore\V1beta1\StructuredQuery\FieldReference

The field to filter by.

↳ op int

The operator to filter by.

↳ value Google\Cloud\Firestore\V1beta1\Value

The value to compare to.

getField

The field to filter by.

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

setField

The field to filter by.

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

getOp

The operator to filter by.

Returns
TypeDescription
int

setOp

The operator to filter by.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getValue

The value to compare to.

Returns
TypeDescription
Google\Cloud\Firestore\V1beta1\Value

setValue

The value to compare to.

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