Cloud Datastore V1 Client - Class CompositeFilter (1.17.1)

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

A filter that merges multiple other filters using the given operator.

Generated from protobuf message google.datastore.v1.CompositeFilter

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ op int

The operator for combining multiple filters.

↳ filters array<Google\Cloud\Datastore\V1\Filter>

The list of filters to combine. Requires: * At least one filter is present.

getOp

The operator for combining multiple filters.

Generated from protobuf field .google.datastore.v1.CompositeFilter.Operator op = 1;

Returns
TypeDescription
int

setOp

The operator for combining multiple filters.

Generated from protobuf field .google.datastore.v1.CompositeFilter.Operator op = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFilters

The list of filters to combine.

Requires:

  • At least one filter is present.

Generated from protobuf field repeated .google.datastore.v1.Filter filters = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFilters

The list of filters to combine.

Requires:

  • At least one filter is present.

Generated from protobuf field repeated .google.datastore.v1.Filter filters = 2;

Parameter
NameDescription
var array<Google\Cloud\Datastore\V1\Filter>
Returns
TypeDescription
$this