# Google Cloud Datastore Admin V1 Client - Class IndexedProperty (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.8.5 0.7.5 0.6.0 0.5.8 Reference documentation and code samples for the Google Cloud Datastore Admin V1 Client class IndexedProperty.

A property of an index.

Generated from protobuf message `google.datastore.admin.v1.Index.IndexedProperty`

## Namespace

Google \\ Cloud \\ Datastore \\ Admin \\ V1 \\ Index

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The property name to index. |
| `↳ direction` | `int` Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED. |

### getName

Required. The property name to index.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. The property name to index.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDirection

Required. The indexed property's direction. Must not be
DIRECTION_UNSPECIFIED.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Direction](https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.Index.Direction). |

### setDirection

Required. The indexed property's direction. Must not be
DIRECTION_UNSPECIFIED.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Direction](https://docs.cloud.google.com/php/docs/reference/cloud-datastore-admin/latest/V1.Index.Direction). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |