# Google Cloud Dataproc V1 Client - Class Preemptibility (3.14.0)

3.14.0 (latest) 3.13.4 3.12.0 3.11.0 3.10.1 3.9.0 3.8.1 3.7.1 3.6.1 3.5.1 3.4.0 3.3.0 3.2.2 2.12.0 2.11.0 2.10.0 2.9.1 2.8.2 2.7.0 2.6.1 2.5.0 2.3.0 2.2.3 2.1.0 2.0.0 Reference documentation and code samples for the Google Cloud Dataproc V1 Client class Preemptibility.

Controls the use of preemptible instances within the group.

Protobuf type `google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility`

## Namespace

Google \\ Cloud \\ Dataproc \\ V1 \\ InstanceGroupConfig

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### PREEMPTIBILITY_UNSPECIFIED

    Value: 0

Preemptibility is unspecified, the system will choose the
appropriate setting for each instance group.

Generated from protobuf enum `PREEMPTIBILITY_UNSPECIFIED = 0;`

### NON_PREEMPTIBLE

    Value: 1

Instances are non-preemptible.

This option is allowed for all instance groups and is the only valid
value for Master and Worker instance groups.

Generated from protobuf enum `NON_PREEMPTIBLE = 1;`

### PREEMPTIBLE

    Value: 2

Instances are [preemptible](https://cloud.google.com/compute/docs/instances/preemptible).

This option is allowed only for [secondary worker](https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms)
groups.

Generated from protobuf enum `PREEMPTIBLE = 2;`

### SPOT

    Value: 3

Instances are [Spot VMs](https://cloud.google.com/compute/docs/instances/spot).

This option is allowed only for [secondary worker](https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms)
groups. Spot VMs are the latest version of [preemptible VMs](https://cloud.google.com/compute/docs/instances/preemptible), and
provide additional features.

Generated from protobuf enum `SPOT = 3;`