# Google Cloud Tpu V2 Client - Class SchedulingConfig (2.3.0)

2.3.0 (latest) 2.2.2 2.1.2 2.0.0 1.4.7 1.3.2 1.2.0 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Tpu V2 Client class SchedulingConfig.

Sets the scheduling options for this node.

Generated from protobuf message `google.cloud.tpu.v2.SchedulingConfig`

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ preemptible` | `bool` Defines whether the node is preemptible. |
| `↳ reserved` | `bool` Whether the node is created under a reservation. |
| `↳ spot` | `bool` Optional. Defines whether the node is Spot VM. |

### getPreemptible

Defines whether the node is preemptible.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setPreemptible

Defines whether the node is preemptible.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReserved

Whether the node is created under a reservation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setReserved

Whether the node is created under a reservation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSpot

Optional. Defines whether the node is Spot VM.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setSpot

Optional. Defines whether the node is Spot VM.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |