Cloud Datastore V1 Client - Class PropertyOrder (2.0.3)

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

The desired order for a specific property.

Generated from protobuf messagegoogle.datastore.v1.PropertyOrder

Namespace

Google \ Cloud \ Datastore \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ propertyPropertyReference

The property to order by.

↳ directionint

The direction to order by. Defaults toASCENDING.

getProperty

The property to order by.

Returns
TypeDescription
PropertyReference|null

hasProperty

clearProperty

setProperty

The property to order by.

Parameter
NameDescription
varPropertyReference
Returns
TypeDescription
$this

getDirection

The direction to order by. Defaults toASCENDING.

Returns
TypeDescription
intEnum of typeDirection.

setDirection

The direction to order by. Defaults toASCENDING.

Parameter
NameDescription
varint

Enum of typeDirection.

Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-24 UTC.