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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1

## 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/V1.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/V1.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/V1.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/V1.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/V1.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/V1.ExistingNetworkConfig` |

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

### getConfig

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