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

Request message for CreateIndexEndpoint.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Format: `projects/{project}/locations/{location}` |
| `↳ index_endpoint_id` | `string` Optional. The ID to use for the IndexEndpoint, which will become the final component of the IndexEndpoint's resource name if the user specifies it. Otherwise, IndexEndpoint id will be autogenerated. This value should be up to 63 characters, and valid characters are a-z, 0-9 and dash (-). The first character must be a letter, the last must be a letter or a number. |
| `↳ index_endpoint` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.IndexEndpoint` Required. The resource being created. |

### getParent

Required. Format: `projects/{project}/locations/{location}`

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

### setParent

Required. Format: `projects/{project}/locations/{location}`

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

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

### getIndexEndpointId

Optional. The ID to use for the IndexEndpoint, which will become the final
component of the IndexEndpoint's resource name if the user specifies it.

Otherwise, IndexEndpoint id will be autogenerated.
This value should be up to 63 characters, and valid characters
are a-z, 0-9 and dash (-). The first character must be a letter, the last
must be a letter or a number.

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

### setIndexEndpointId

Optional. The ID to use for the IndexEndpoint, which will become the final
component of the IndexEndpoint's resource name if the user specifies it.

Otherwise, IndexEndpoint id will be autogenerated.
This value should be up to 63 characters, and valid characters
are a-z, 0-9 and dash (-). The first character must be a letter, the last
must be a letter or a number.

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

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

### getIndexEndpoint

Required. The resource being created.

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

### hasIndexEndpoint

### clearIndexEndpoint

### setIndexEndpoint

Required. The resource being created.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Format: `projects/{project}/locations/{location}` Please see WarehouseClient::locationName() for help formatting this field. |
| `indexEndpoint` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.IndexEndpoint` Required. The resource being created. |
| `indexEndpointId` | `string` Optional. The ID to use for the IndexEndpoint, which will become the final component of the IndexEndpoint's resource name if the user specifies it. Otherwise, IndexEndpoint id will be autogenerated. This value should be up to 63 characters, and valid characters are a-z, 0-9 and dash (-). The first character must be a letter, the last must be a letter or a number. |

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