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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ property |
PropertyReference
The property to order by. |
↳ direction |
int
The direction to order by. Defaults to |
getProperty
The property to order by.
| Returns | |
|---|---|
| Type | Description |
PropertyReference|null |
|
hasProperty
clearProperty
setProperty
The property to order by.
| Parameter | |
|---|---|
| Name | Description |
var |
PropertyReference
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDirection
The direction to order by. Defaults to ASCENDING.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Direction. |
setDirection
The direction to order by. Defaults to ASCENDING.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Direction. |
| Returns | |
|---|---|
| Type | Description |
$this |
|