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

A resource representing a network that connects the various components of a
cluster together.

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ network` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.NetworkReference` Reference to a network in Google Compute Engine. |
| `↳ config` | `https://docs.cloud.google.com/php/docs/reference/cloud-hypercomputecluster/latest/V1beta.NetworkResourceConfig` Immutable. Configuration for this network resource, which describes how it should be created or imported. This field only controls how the network resource is initially created or imported. Subsequent changes to the network resource should be made via the resource's API and will not be reflected in the configuration. |

### getNetwork

Reference to a network in Google Compute Engine.

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

### hasNetwork

### setNetwork

Reference to a network in Google Compute Engine.

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

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

### getConfig

Immutable. Configuration for this network resource, which describes how it
should be created or imported. This field only controls how the network
resource is initially created or imported. Subsequent changes to the
network resource should be made via the resource's API and will not be
reflected in the configuration.

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

### hasConfig

### clearConfig

### setConfig

Immutable. Configuration for this network resource, which describes how it
should be created or imported. This field only controls how the network
resource is initially created or imported. Subsequent changes to the
network resource should be made via the resource's API and will not be
reflected in the configuration.

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

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

### getReference

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