Cloud Datastore V1 Client - Class Filter (1.21.2)

Reference documentation and code samples for the Cloud Datastore V1 Client class Filter.

A holder for any type of filter.

Generated from protobuf message google.datastore.v1.Filter

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ composite_filter Google\Cloud\Datastore\V1\CompositeFilter

A composite filter.

↳ property_filter Google\Cloud\Datastore\V1\PropertyFilter

A filter on a property.

getCompositeFilter

A composite filter.

Returns
TypeDescription
Google\Cloud\Datastore\V1\CompositeFilter|null

hasCompositeFilter

setCompositeFilter

A composite filter.

Parameter
NameDescription
var Google\Cloud\Datastore\V1\CompositeFilter
Returns
TypeDescription
$this

getPropertyFilter

A filter on a property.

Returns
TypeDescription
Google\Cloud\Datastore\V1\PropertyFilter|null

hasPropertyFilter

setPropertyFilter

A filter on a property.

Parameter
NameDescription
var Google\Cloud\Datastore\V1\PropertyFilter
Returns
TypeDescription
$this

getFilterType

Returns
TypeDescription
string