# Google Cloud Notebooks V1 Client - Class VirtualMachine (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V1 Client class VirtualMachine.

Runtime using Virtual Machine for computing.

Generated from protobuf message `google.cloud.notebooks.v1.VirtualMachine`

## Namespace

Google \\ Cloud \\ Notebooks \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instance_name` | `string` Output only. The user-friendly name of the Managed Compute Engine instance. |
| `↳ instance_id` | `string` Output only. The unique identifier of the Managed Compute Engine instance. |
| `↳ virtual_machine_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.VirtualMachineConfig` Virtual Machine configuration settings. |

### getInstanceName

Output only. The user-friendly name of the Managed Compute Engine instance.

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

### setInstanceName

Output only. The user-friendly name of the Managed Compute Engine instance.

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

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

### getInstanceId

Output only. The unique identifier of the Managed Compute Engine instance.

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

### setInstanceId

Output only. The unique identifier of the Managed Compute Engine instance.

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

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

### getVirtualMachineConfig

Virtual Machine configuration settings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.VirtualMachineConfig|null` |   |

### hasVirtualMachineConfig

### clearVirtualMachineConfig

### setVirtualMachineConfig

Virtual Machine configuration settings.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.VirtualMachineConfig` |

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