# Google Cloud Batch V1 Client - Class StatusEvent (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.7 1.0.3 0.17.0 0.16.10 0.15.0 0.14.0 0.13.1 0.12.1 0.11.3 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.2 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Google Cloud Batch V1 Client class StatusEvent.

Status event.

Generated from protobuf message `google.cloud.batch.v1.StatusEvent`

## Namespace

Google \\ Cloud \\ Batch \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` Type of the event. |
| `↳ description` | `string` Description of the event. |
| `↳ event_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time this event occurred. |
| `↳ task_execution` | `https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.TaskExecution` Task Execution. This field is only defined for task-level status events where the task fails. |
| `↳ task_state` | `int` Task State. This field is only defined for task-level status events. |

### getType

Type of the event.

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

### setType

Type of the event.

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

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

### getDescription

Description of the event.

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

### setDescription

Description of the event.

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

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

### getEventTime

The time this event occurred.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasEventTime

### clearEventTime

### setEventTime

The time this event occurred.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getTaskExecution

Task Execution.

This field is only defined for task-level status events where the task
fails.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.TaskExecution|null` |   |

### hasTaskExecution

### clearTaskExecution

### setTaskExecution

Task Execution.

This field is only defined for task-level status events where the task
fails.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.TaskExecution` |

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

### getTaskState

Task State.

This field is only defined for task-level status events.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.TaskStatus.State). |

### setTaskState

Task State.

This field is only defined for task-level status events.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-batch/latest/V1.TaskStatus.State). |

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