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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 |
getProperty
The property to order by.
Generated from protobuf field .google.datastore.v1.PropertyReference property = 1;
Returns | |
---|---|
Type | Description |
Google\Cloud\Datastore\V1\PropertyReference|null |
hasProperty
clearProperty
setProperty
The property to order by.
Generated from protobuf field .google.datastore.v1.PropertyReference property = 1;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Datastore\V1\PropertyReference
|
Returns | |
---|---|
Type | Description |
$this |
getDirection
The direction to order by. Defaults to ASCENDING
.
Generated from protobuf field .google.datastore.v1.PropertyOrder.Direction direction = 2;
Returns | |
---|---|
Type | Description |
int |
setDirection
The direction to order by. Defaults to ASCENDING
.
Generated from protobuf field .google.datastore.v1.PropertyOrder.Direction direction = 2;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |