# Google Cloud Vision Ai V1 Client - Class DeployIndexRequest (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 DeployIndexRequest.

Request message for DeployIndex.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ index_endpoint` | `string` Required. IndexEndpoint the index is deployed to. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}` |
| `↳ deployed_index` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.DeployedIndex` Required. Index to deploy. |

### getIndexEndpoint

Required. IndexEndpoint the index is deployed to.

Format:
`projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`

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

### setIndexEndpoint

Required. IndexEndpoint the index is deployed to.

Format:
`projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`

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

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

### getDeployedIndex

Required. Index to deploy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.DeployedIndex|null` |   |

### hasDeployedIndex

### clearDeployedIndex

### setDeployedIndex

Required. Index to deploy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.DeployedIndex` |

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