# Google Cloud Life Sciences V2beta Client - Class WorkerAssignedEvent (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 WorkerAssignedEvent.

An event generated after a worker VM has been assigned to run the
pipeline.

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

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ zone` | `string` The zone the worker is running in. |
| `↳ instance` | `string` The worker's instance name. |
| `↳ machine_type` | `string` The machine type that was assigned for the worker. |

### getZone

The zone the worker is running in.

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

### setZone

The zone the worker is running in.

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

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

### getInstance

The worker's instance name.

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

### setInstance

The worker's instance name.

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

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

### getMachineType

The machine type that was assigned for the worker.

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

### setMachineType

The machine type that was assigned for the worker.

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

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