2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.0 2.1.1 2.0.1 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Datastream V1 Client class BackfillJob.

Represents a backfill job on a specific stream object.

Generated from protobuf message `google.cloud.datastream.v1.BackfillJob`

## Namespace

Google \\ Cloud \\ Datastream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ state` | `int` Output only. Backfill job state. |
| `↳ trigger` | `int` Backfill job's triggering reason. |
| `↳ last_start_time` | `Google\Protobuf\Timestamp` Output only. Backfill job's start time. |
| `↳ last_end_time` | `Google\Protobuf\Timestamp` Output only. Backfill job's end time. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.Error>` Output only. Errors which caused the backfill job to fail. |

### getState

Output only. Backfill job state.

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

### setState

Output only. Backfill job state.

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

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

### getTrigger

Backfill job's triggering reason.

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

### setTrigger

Backfill job's triggering reason.

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

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

### getLastStartTime

Output only. Backfill job's start time.

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

### hasLastStartTime

### clearLastStartTime

### setLastStartTime

Output only. Backfill job's start time.

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

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

### getLastEndTime

Output only. Backfill job's end time.

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

### hasLastEndTime

### clearLastEndTime

### setLastEndTime

Output only. Backfill job's end time.

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

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

### getErrors

Output only. Errors which caused the backfill job to fail.

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

### setErrors

Output only. Errors which caused the backfill job to fail.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datastream/latest/V1.Error>` |

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