# Interface VirtualMachineOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.notebooks.v1.VirtualMachineOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.notebooks.v1.VirtualMachineOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.notebooks.v1.VirtualMachineOrBuilder)

    public interface VirtualMachineOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getInstanceId()

    public abstract String getInstanceId()

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

`string instance_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The instanceId. |

### getInstanceIdBytes()

    public abstract ByteString getInstanceIdBytes()

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

`string instance_id = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for instanceId. |

### getInstanceName()

    public abstract String getInstanceName()

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

`string instance_name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The instanceName. |

### getInstanceNameBytes()

    public abstract ByteString getInstanceNameBytes()

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

`string instance_name = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for instanceName. |

### getVirtualMachineConfig()

    public abstract VirtualMachineConfig getVirtualMachineConfig()

Virtual Machine configuration settings.

`.google.events.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.notebooks.v1.VirtualMachineConfig` | The virtualMachineConfig. |

### getVirtualMachineConfigOrBuilder()

    public abstract VirtualMachineConfigOrBuilder getVirtualMachineConfigOrBuilder()

Virtual Machine configuration settings.

`.google.events.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.notebooks.v1.VirtualMachineConfigOrBuilder` |   |

### hasVirtualMachineConfig()

    public abstract boolean hasVirtualMachineConfig()

Virtual Machine configuration settings.

`.google.events.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the virtualMachineConfig field is set. |