# Google Cloud Hypercompute Cluster V1 Client - Class NewFilestoreConfig (0.3.0)

0.3.0 (latest) 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1 Client class NewFilestoreConfig.

When set in a
[StorageResourceConfig](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.StorageResourceConfig),
indicates that a new [Filestore](https://cloud.google.com/filestore) instance
should be created.

Generated from protobuf message `google.cloud.hypercomputecluster.v1.NewFilestoreConfig`

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ filestore` | `string` Required. Immutable. Name of the Filestore instance to create, in the format `projects/{project}/locations/{location}/instances/{instance}` |
| `↳ description` | `string` Optional. Immutable. Description of the instance. Maximum of 2048 characters. |
| `↳ file_shares` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.FileShareConfig>` Required. Immutable. File system shares on the instance. Exactly one file share must be specified. |
| `↳ tier` | `int` Required. Immutable. Service tier to use for the instance. |
| `↳ protocol` | `int` Optional. Immutable. Access protocol to use for all file shares in the instance. Defaults to NFS V3 if not set. |

### getFilestore

Required. Immutable. Name of the Filestore instance to create, in the
format `projects/{project}/locations/{location}/instances/{instance}`

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

### setFilestore

Required. Immutable. Name of the Filestore instance to create, in the
format `projects/{project}/locations/{location}/instances/{instance}`

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

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

### getDescription

Optional. Immutable. Description of the instance. Maximum of 2048
characters.

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

### setDescription

Optional. Immutable. Description of the instance. Maximum of 2048
characters.

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

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

### getFileShares

Required. Immutable. File system shares on the instance. Exactly one file
share must be specified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.FileShareConfig>` |   |

### setFileShares

Required. Immutable. File system shares on the instance. Exactly one file
share must be specified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.FileShareConfig>` |

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

### getTier

Required. Immutable. Service tier to use for the instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Tier](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.NewFilestoreConfig.Tier). |

### setTier

Required. Immutable. Service tier to use for the instance.

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

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

### getProtocol

Optional. Immutable. Access protocol to use for all file shares in the
instance. Defaults to NFS V3 if not set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Protocol](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.NewFilestoreConfig.Protocol). |

### setProtocol

Optional. Immutable. Access protocol to use for all file shares in the
instance. Defaults to NFS V3 if not set.

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

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