# Interface NewReservedInstancesConfigOrBuilder (0.13.0)

0.13.0 (latest) 0.11.0 0.8.0 0.7.0 0.5.0 0.3.0 0.2.0 0.1.0

    public interface NewReservedInstancesConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getReservation()

    public abstract String getReservation()

Optional. Immutable. Name of the reservation from which VM instances
should be created, in the format
`projects/{project}/zones/{zone}/reservations/{reservation}`.

`
string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### getReservationBytes()

    public abstract ByteString getReservationBytes()

Optional. Immutable. Name of the reservation from which VM instances
should be created, in the format
`projects/{project}/zones/{zone}/reservations/{reservation}`.

`
string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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

### getSourceCase()

    public abstract NewReservedInstancesConfig.SourceCase getSourceCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1.NewReservedInstancesConfig.SourceCase` |   |

### hasReservation()

    public abstract boolean hasReservation()

Optional. Immutable. Name of the reservation from which VM instances
should be created, in the format
`projects/{project}/zones/{zone}/reservations/{reservation}`.

`
string reservation = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
`

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