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

A reference to a [VPC network](https://cloud.google.com/vpc/docs/vpc) in
Google Compute Engine.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network` | `string` Output only. Name of the network, in the format `projects/{project}/global/networks/{network}`. |
| `↳ subnetwork` | `string` Output only. Name of the particular subnetwork being used by the cluster, in the format `projects/{project}/regions/{region}/subnetworks/{subnetwork}`. |

### getNetwork

Output only. Name of the network, in the format
`projects/{project}/global/networks/{network}`.

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

### setNetwork

Output only. Name of the network, in the format
`projects/{project}/global/networks/{network}`.

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

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

### getSubnetwork

Output only. Name of the particular subnetwork being used by the cluster,
in the format
`projects/{project}/regions/{region}/subnetworks/{subnetwork}`.

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

### setSubnetwork

Output only. Name of the particular subnetwork being used by the cluster,
in the format
`projects/{project}/regions/{region}/subnetworks/{subnetwork}`.

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

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