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

Details about a Compute Engine
[instance](https://cloud.google.com/compute/docs/instances).

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

## Namespace

Google \\ Cloud \\ HypercomputeCluster \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instance` | `string` Output only. Name of the VM instance, in the format `projects/{project}/zones/{zone}/instances/{instance}`. |

### getInstance

Output only. Name of the VM instance, in the format
`projects/{project}/zones/{zone}/instances/{instance}`.

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

### setInstance

Output only. Name of the VM instance, in the format
`projects/{project}/zones/{zone}/instances/{instance}`.

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

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