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

Describes how a network resource should be initialized. Each network resource
can either be imported from an existing Google Cloud resource or initialized
when the cluster is created.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ new_network` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.NewNetworkConfig` Optional. Immutable. If set, indicates that a new network should be created. |
| `↳ existing_network` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.ExistingNetworkConfig` Optional. Immutable. If set, indicates that an existing network should be imported. |

### getNewNetwork

Optional. Immutable. If set, indicates that a new network should be
created.

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

### hasNewNetwork

### setNewNetwork

Optional. Immutable. If set, indicates that a new network should be
created.

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

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

### getExistingNetwork

Optional. Immutable. If set, indicates that an existing network should be
imported.

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

### hasExistingNetwork

### setExistingNetwork

Optional. Immutable. If set, indicates that an existing network should be
imported.

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

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

### getConfig

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