# Google Cloud Tpu V2 Client - Class AcceleratorType (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 AcceleratorType.

A accelerator type that a Node can be configured with.

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

## Namespace

Google \\ Cloud \\ Tpu \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The resource name. |
| `↳ type` | `string` The accelerator type. |
| `↳ accelerator_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.AcceleratorConfig>` The accelerator config. |

### getName

The resource name.

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

### setName

The resource name.

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

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

### getType

The accelerator type.

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

### setType

The accelerator type.

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

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

### getAcceleratorConfigs

The accelerator config.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.AcceleratorConfig>` |   |

### setAcceleratorConfigs

The accelerator config.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-tpu/latest/V2.AcceleratorConfig>` |

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