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

Request message for
[CreateCluster](https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Client.HypercomputeClusterClient#_Google_Cloud_HypercomputeCluster_V1_Client_HypercomputeClusterClient__createCluster__).

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Parent location in which the cluster should be created, in the format `projects/{project}/locations/{location}`. |
| `↳ cluster_id` | `string` Required. ID of the cluster to create. Must conform to [RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case, alphanumeric, and at most 63 characters). |
| `↳ cluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Cluster` Required. Cluster to create. |
| `↳ request_id` | `string` Optional. A unique identifier for this request. A random UUID is recommended. This request is idempotent if and only if `request_id` is provided. |

### getParent

Required. Parent location in which the cluster should be created, in the
format `projects/{project}/locations/{location}`.

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

### setParent

Required. Parent location in which the cluster should be created, in the
format `projects/{project}/locations/{location}`.

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

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

### getClusterId

Required. ID of the cluster to create. Must conform to
[RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case,
alphanumeric, and at most 63 characters).

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

### setClusterId

Required. ID of the cluster to create. Must conform to
[RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case,
alphanumeric, and at most 63 characters).

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

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

### getCluster

Required. Cluster to create.

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

### hasCluster

### clearCluster

### setCluster

Required. Cluster to create.

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

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

### getRequestId

Optional. A unique identifier for this request. A random UUID is
recommended. This request is idempotent if and only if `request_id` is
provided.

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

### setRequestId

Optional. A unique identifier for this request. A random UUID is
recommended. This request is idempotent if and only if `request_id` is
provided.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent location in which the cluster should be created, in the format `projects/{project}/locations/{location}`. Please see HypercomputeClusterClient::locationName() for help formatting this field. |
| `cluster` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1.Cluster` Required. Cluster to create. |
| `clusterId` | `string` Required. ID of the cluster to create. Must conform to [RFC-1034](https://datatracker.ietf.org/doc/html/rfc1034) (lower-case, alphanumeric, and at most 63 characters). |

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