# Google Cloud Capacity Planner V1beta Client - Class AcceleratorConfig (0.1.2)

0.1.2 (latest) 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class AcceleratorConfig.

A specification of the type and number of accelerator cards attached to
the instance.

Generated from protobuf message `google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.AcceleratorConfig`

## Namespace

Google \\ Cloud \\ CapacityPlanner \\ V1beta \\ Allocation \\ SpecificSKUAllocation \\ AllocatedInstanceProperties

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` Accelerator name. See <https://cloud.google.com/compute/docs/gpus/#introduction> for a full list of accelerator types. |
| `↳ count` | `int` The number of the guest accelerator cards exposed to this instance. |

### getType

Accelerator name.

See <https://cloud.google.com/compute/docs/gpus/#introduction> for a
full list of accelerator types.

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

### setType

Accelerator name.

See <https://cloud.google.com/compute/docs/gpus/#introduction> for a
full list of accelerator types.

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

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

### getCount

The number of the guest accelerator cards exposed to this instance.

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

### setCount

The number of the guest accelerator cards exposed to this instance.

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

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