# Interface Instance.NodeOrBuilder (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.alloydb.v1.Instance.NodeOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.alloydb.v1.Instance.NodeOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.alloydb.v1.Instance.NodeOrBuilder)

    public static interface Instance.NodeOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getId()

    public abstract String getId()

The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".

`string id = 2;`

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

### getIdBytes()

    public abstract ByteString getIdBytes()

The identifier of the VM e.g. "test-read-0601-407e52be-ms3l".

`string id = 2;`

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

### getIp()

    public abstract String getIp()

The private IP address of the VM e.g. "10.57.0.34".

`string ip = 3;`

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

### getIpBytes()

    public abstract ByteString getIpBytes()

The private IP address of the VM e.g. "10.57.0.34".

`string ip = 3;`

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

### getState()

    public abstract String getState()

Determined by state of the compute VM and postgres-service health.
Compute VM state can have values listed in
<https://cloud.google.com/compute/docs/instances/instance-life-cycle> and
postgres-service health can have values: HEALTHY and UNHEALTHY.

`string state = 4;`

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

### getStateBytes()

    public abstract ByteString getStateBytes()

Determined by state of the compute VM and postgres-service health.
Compute VM state can have values listed in
<https://cloud.google.com/compute/docs/instances/instance-life-cycle> and
postgres-service health can have values: HEALTHY and UNHEALTHY.

`string state = 4;`

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

### getZoneId()

    public abstract String getZoneId()

The Compute Engine zone of the VM e.g. "us-central1-b".

`string zone_id = 1;`

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

### getZoneIdBytes()

    public abstract ByteString getZoneIdBytes()

The Compute Engine zone of the VM e.g. "us-central1-b".

`string zone_id = 1;`

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