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 WorkItemDetails.

Information about an individual work item execution.

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

## Namespace

Google \\ Cloud \\ Dataflow \\ V1beta3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ task_id` | `string` Name of this work item. |
| `↳ attempt_id` | `string` Attempt ID of this work item |
| `↳ start_time` | `Google\Protobuf\Timestamp` Start time of this work item attempt. |
| `↳ end_time` | `Google\Protobuf\Timestamp` End time of this work item attempt. If the work item is completed, this is the actual end time of the work item. Otherwise, it is the predicted end time. |
| `↳ state` | `int` State of this work item. |
| `↳ progress` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.ProgressTimeseries` Progress of this work item. |
| `↳ metrics` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.MetricUpdate>` Metrics for this work item. |
| `↳ straggler_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.StragglerInfo` Information about straggler detections for this work item. |

### getTaskId

Name of this work item.

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

### setTaskId

Name of this work item.

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

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

### getAttemptId

Attempt ID of this work item

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

### setAttemptId

Attempt ID of this work item

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

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

### getStartTime

Start time of this work item attempt.

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

### hasStartTime

### clearStartTime

### setStartTime

Start time of this work item attempt.

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

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

### getEndTime

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work
item. Otherwise, it is the predicted end time.

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

### hasEndTime

### clearEndTime

### setEndTime

End time of this work item attempt.

If the work item is completed, this is the actual end time of the work
item. Otherwise, it is the predicted end time.

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

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

### getState

State of this work item.

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

### setState

State of this work item.

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

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

### getProgress

Progress of this work item.

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

### hasProgress

### clearProgress

### setProgress

Progress of this work item.

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

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

### getMetrics

Metrics for this work item.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dataflow/latest/V1beta3.MetricUpdate>` |   |

### setMetrics

Metrics for this work item.

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

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

### getStragglerInfo

Information about straggler detections for this work item.

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

### hasStragglerInfo

### clearStragglerInfo

### setStragglerInfo

Information about straggler detections for this work item.

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

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