# Google Cloud Hypercompute Cluster V1beta Client - Class NewBucketConfig (0.3.0)

0.3.0 (latest) 0.2.0 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Hypercompute Cluster V1beta Client class NewBucketConfig.

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

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## 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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.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/V1beta.GcsHierarchicalNamespaceConfig` |

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

### getOption

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