0.11.3 (latest) 0.10.0 0.9.3 0.8.2 0.7.1 0.6.6 0.5.1 0.4.1 0.3.10

> [!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 Dataflow V1beta3 Client class AutoscalingEvent.

A structured message reporting an autoscaling decision made by the Dataflow
service.

Generated from protobuf message `google.dataflow.v1beta3.AutoscalingEvent`

## Namespace

Google \\ Cloud \\ Dataflow \\ V1beta3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ current_num_workers` | `int|string` The current number of workers the job has. |
| `↳ target_num_workers` | `int|string` The target number of workers the worker pool wants to resize to use. |
| `↳ event_type` | `int` The type of autoscaling event to report. |
| `↳ description` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.StructuredMessage` A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers. |
| `↳ time` | `Google\Protobuf\Timestamp` The time this event was emitted to indicate a new target or current num_workers value. |
| `↳ worker_pool` | `string` A short and friendly name for the worker pool this event refers to. |

### getCurrentNumWorkers

The current number of workers the job has.

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

### setCurrentNumWorkers

The current number of workers the job has.

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

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

### getTargetNumWorkers

The target number of workers the worker pool wants to resize to use.

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

### setTargetNumWorkers

The target number of workers the worker pool wants to resize to use.

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

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

### getEventType

The type of autoscaling event to report.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AutoscalingEventType](https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.AutoscalingEvent.AutoscalingEventType). |

### setEventType

The type of autoscaling event to report.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AutoscalingEventType](https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.AutoscalingEvent.AutoscalingEventType). |

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

### getDescription

A message describing why the system decided to adjust the current
number of workers, why it failed, or why the system decided to
not make any changes to the number of workers.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.StructuredMessage|null` |   |

### hasDescription

### clearDescription

### setDescription

A message describing why the system decided to adjust the current
number of workers, why it failed, or why the system decided to
not make any changes to the number of workers.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.StructuredMessage` |

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

### getTime

The time this event was emitted to indicate a new target or current
num_workers value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasTime

### clearTime

### setTime

The time this event was emitted to indicate a new target or current
num_workers value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getWorkerPool

A short and friendly name for the worker pool this event refers to.

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

### setWorkerPool

A short and friendly name for the worker pool this event refers to.

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

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