# Google Cloud Notebooks V1 Client - Class SchedulerAcceleratorConfig (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V1 Client class SchedulerAcceleratorConfig.

Definition of a hardware accelerator. Note that not all combinations
of `type` and `core_count` are valid. Check [GPUs on
Compute Engine](https://cloud.google.com/compute/docs/gpus) to find a valid
combination. TPUs are not supported.

Generated from protobuf message `google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig`

## Namespace

Google \\ Cloud \\ Notebooks \\ V1 \\ ExecutionTemplate

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Type of this accelerator. |
| `↳ core_count` | `int|string` Count of cores of this accelerator. |

### getType

Type of this accelerator.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SchedulerAcceleratorType](https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.ExecutionTemplate.SchedulerAcceleratorType). |

### setType

Type of this accelerator.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SchedulerAcceleratorType](https://docs.cloud.google.com/php/docs/reference/cloud-notebooks/latest/V1.ExecutionTemplate.SchedulerAcceleratorType). |

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

### getCoreCount

Count of cores of this accelerator.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setCoreCount

Count of cores of this accelerator.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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