# Google Cloud Filestore V1 Client - Class CreateInstanceRequest (2.2.3)

2.2.3 (latest) 2.2.2 2.1.1 2.0.4 1.5.7 1.4.0 1.3.2 1.2.1 1.1.2 1.0.3 Reference documentation and code samples for the Google Cloud Filestore V1 Client class CreateInstanceRequest.

CreateInstanceRequest creates an instance.

Generated from protobuf message `google.cloud.filestore.v1.CreateInstanceRequest`

## Namespace

Google \\ Cloud \\ Filestore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The instance's project and location, in the format `projects/{project_id}/locations/{location}`. In Filestore, locations map to Google Cloud zones, for example **us-west1-b**. |
| `↳ instance_id` | `string` Required. The name of the instance to create. The name must be unique for the specified project and location. |
| `↳ instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-filestore/latest/V1.Instance` Required. An [instance resource](https://docs.cloud.google.com/php/docs/reference/cloud-filestore/latest/V1.Instance) |

### getParent

Required. The instance's project and location, in the format
`projects/{project_id}/locations/{location}`. In Filestore,
locations map to Google Cloud zones, for example **us-west1-b**.

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

### setParent

Required. The instance's project and location, in the format
`projects/{project_id}/locations/{location}`. In Filestore,
locations map to Google Cloud zones, for example **us-west1-b**.

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

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

### getInstanceId

Required. The name of the instance to create.

The name must be unique for the specified project and location.

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

### setInstanceId

Required. The name of the instance to create.

The name must be unique for the specified project and location.

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

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

### getInstance

Required. An [instance resource](https://docs.cloud.google.com/php/docs/reference/cloud-filestore/latest/V1.Instance)

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

### hasInstance

### clearInstance

### setInstance

Required. An [instance resource](https://docs.cloud.google.com/php/docs/reference/cloud-filestore/latest/V1.Instance)

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The instance's project and location, in the format `projects/{project_id}/locations/{location}`. In Filestore, locations map to Google Cloud zones, for example **us-west1-b** . Please see CloudFilestoreManagerClient::locationName() for help formatting this field. |
| `instance` | `https://docs.cloud.google.com/php/docs/reference/cloud-filestore/latest/V1.Instance` Required. An [instance resource](https://docs.cloud.google.com/php/docs/reference/cloud-filestore/latest/V1.Instance) |
| `instanceId` | `string` Required. The name of the instance to create. The name must be unique for the specified project and location. |

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