# Google Cloud Life Sciences V2beta Client - Class Accelerator (0.9.0)

0.9.0 (latest) 0.8.1 0.7.3 0.6.8 0.5.4 0.4.0 0.3.5

> [!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 Life Sciences V2beta Client class Accelerator.

Carries information about an accelerator that can be attached to a VM.

Generated from protobuf message `google.cloud.lifesciences.v2beta.Accelerator`

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` The accelerator type string (for example, "nvidia-tesla-t4"). Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is attached, the required runtime libraries will be made available to all containers under `/usr/local/nvidia`. The driver version to install must be specified using the NVIDIA driver version parameter on the virtual machine specification. Note that attaching a GPU increases the worker VM startup time by a few minutes. |
| `↳ count` | `int|string` How many accelerators of this type to attach. |

### getType

The accelerator type string (for example, "nvidia-tesla-t4").

Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under `/usr/local/nvidia`. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.

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

### setType

The accelerator type string (for example, "nvidia-tesla-t4").

Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under `/usr/local/nvidia`. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.

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

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

### getCount

How many accelerators of this type to attach.

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

### setCount

How many accelerators of this type to attach.

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

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