# Google Cloud Hypercompute Cluster V1 Client - Class ExistingBucketConfig (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 ExistingBucketConfig.

When set in a
[StorageResourceConfig](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.StorageResourceConfig),
indicates that an existing [Google Cloud
Storage](https://cloud.google.com/storage) bucket should be imported.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ bucket` | `string` Required. Immutable. Name of the Cloud Storage bucket to import. |

### getBucket

Required. Immutable. Name of the Cloud Storage bucket to import.

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

### setBucket

Required. Immutable. Name of the Cloud Storage bucket to import.

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

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