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

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

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ autoclass` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.GcsAutoclassConfig` Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass). |
| `↳ storage_class` | `int` Optional. Immutable. If set, uses the provided storage class as the bucket's default storage class. |
| `↳ bucket` | `string` Required. Immutable. Name of the Cloud Storage bucket to create. |
| `↳ hierarchical_namespace` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.GcsHierarchicalNamespaceConfig` Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview). |

### getAutoclass

Optional. Immutable. If set, indicates that the bucket should use
[Autoclass](https://cloud.google.com/storage/docs/autoclass).

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

### hasAutoclass

### setAutoclass

Optional. Immutable. If set, indicates that the bucket should use
[Autoclass](https://cloud.google.com/storage/docs/autoclass).

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

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

### getStorageClass

Optional. Immutable. If set, uses the provided storage class as the
bucket's default storage class.

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

### hasStorageClass

### setStorageClass

Optional. Immutable. If set, uses the provided storage class as the
bucket's default storage class.

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

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

### getBucket

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

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

### setBucket

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

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

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

### getHierarchicalNamespace

Optional. Immutable. If set, indicates that the bucket should use
[hierarchical
namespaces](https://cloud.google.com/storage/docs/hns-overview).

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

### hasHierarchicalNamespace

### clearHierarchicalNamespace

### setHierarchicalNamespace

Optional. Immutable. If set, indicates that the bucket should use
[hierarchical
namespaces](https://cloud.google.com/storage/docs/hns-overview).

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

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

### getOption

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