# Interface PropertyOrderOrBuilder (3.1.0)

3.1.0 (latest) 2.40.0 2.37.0 2.36.0 2.34.0 2.33.3 2.32.3 2.31.4 2.30.0 2.29.1 2.28.2 2.27.1 2.26.4 2.25.2 2.24.3 2.23.0 2.22.0 2.21.3 2.20.2 2.19.2 2.18.5 2.17.6

    public interface PropertyOrderOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDirection()

    public abstract PropertyOrder.Direction getDirection()

The direction to order by. Defaults to `ASCENDING`.

`.google.datastore.v1.PropertyOrder.Direction direction = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.PropertyOrder.Direction` | The direction. |

### getDirectionValue()

    public abstract int getDirectionValue()

The direction to order by. Defaults to `ASCENDING`.

`.google.datastore.v1.PropertyOrder.Direction direction = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for direction. |

### getProperty()

    public abstract PropertyReference getProperty()

The property to order by.

`.google.datastore.v1.PropertyReference property = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.PropertyReference` | The property. |

### getPropertyOrBuilder()

    public abstract PropertyReferenceOrBuilder getPropertyOrBuilder()

The property to order by.

`.google.datastore.v1.PropertyReference property = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.datastore.v1.PropertyReferenceOrBuilder` |   |

### hasProperty()

    public abstract boolean hasProperty()

The property to order by.

`.google.datastore.v1.PropertyReference property = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the property field is set. |