# Google Cloud Storage Control V2 Client - Class HierarchicalNamespace (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.1.0 1.0.3 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Storage Control V2 Client class HierarchicalNamespace.

Configuration for a bucket's hierarchical namespace feature.

Generated from protobuf message `google.storage.control.v2.StorageLayout.HierarchicalNamespace`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2 \\ StorageLayout

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enabled` | `bool` Enables the hierarchical namespace feature. |

### getEnabled

Enables the hierarchical namespace feature.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnabled

Enables the hierarchical namespace feature.

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

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