# Interface NewSpotInstancesConfigOrBuilder (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 NewSpotInstancesConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getMachineType()

    public abstract String getMachineType()

Required. Immutable. Name of the Compute Engine [machine
type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
`n2-standard-2`.

`
string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getMachineTypeBytes()

    public abstract ByteString getMachineTypeBytes()

Required. Immutable. Name of the Compute Engine [machine
type](https://cloud.google.com/compute/docs/machine-resource) to use, e.g.
`n2-standard-2`.

`
string machine_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getZone()

    public abstract String getZone()

Required. Immutable. Name of the zone in which VM instances should run,
e.g., `us-central1-a`. Must be in the same region as the cluster, and must
match the zone of any other resources specified in the cluster.

`
string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
`

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

### getZoneBytes()

    public abstract ByteString getZoneBytes()

Required. Immutable. Name of the zone in which VM instances should run,
e.g., `us-central1-a`. Must be in the same region as the cluster, and must
match the zone of any other resources specified in the cluster.

`
string zone = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
`

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