Cloud Datastore V1 Client - Class PropertyOrder (1.24.4)

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

The desired order for a specific property.

Generated from protobuf message google.datastore.v1.PropertyOrder

Namespace

Google \ Cloud \ Datastore \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ property Google\Cloud\Datastore\V1\PropertyReference

The property to order by.

↳ direction int

The direction to order by. Defaults to ASCENDING.

getProperty

The property to order by.

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

hasProperty

clearProperty

setProperty

The property to order by.

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

getDirection

The direction to order by. Defaults to ASCENDING.

Returns
TypeDescription
int

setDirection

The direction to order by. Defaults to ASCENDING.

Parameter
NameDescription
var int
Returns
TypeDescription
$this