# Google Cloud Vision Ai V1 Client - Class DeployedIndex (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class DeployedIndex.

A deployment of an Index.

Generated from protobuf message `google.cloud.visionai.v1.DeployedIndex`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ index` | `string` Required. Name of the deployed Index. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/indexes/{index_id}` |

### getIndex

Required. Name of the deployed Index.

Format:
`projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/indexes/{index_id}`

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

### setIndex

Required. Name of the deployed Index.

Format:
`projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/indexes/{index_id}`

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

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