# Google Cloud Data Fusion V1 Client - Class Accelerator (1.1.2)

1.1.2 (latest) 1.1.1 1.0.5 0.6.5 0.5.2 0.4.1 0.3.0 0.2.11 Reference documentation and code samples for the Google Cloud Data Fusion V1 Client class Accelerator.

Identifies Data Fusion accelerators for an instance.

Generated from protobuf message `google.cloud.datafusion.v1.Accelerator`

## Namespace

Google \\ Cloud \\ DataFusion \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ accelerator_type` | `int` The type of an accelator for a CDF instance. |
| `↳ state` | `int` The state of the accelerator |

### getAcceleratorType

The type of an accelator for a CDF instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AcceleratorType](https://docs.cloud.google.com/php/docs/reference/cloud-data-fusion/latest/V1.Accelerator.AcceleratorType). |

### setAcceleratorType

The type of an accelator for a CDF instance.

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

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

### getState

The state of the accelerator

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-data-fusion/latest/V1.Accelerator.State). |

### setState

The state of the accelerator

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

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