# Google Cloud Dataplex V1 Client - Class JobEvent (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class JobEvent.

The payload associated with Job logs that contains events describing jobs
that have run within a Lake.

Generated from protobuf message `google.cloud.dataplex.v1.JobEvent`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ message` | `string` The log message. |
| `↳ job_id` | `string` The unique id identifying the job. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time when the job started running. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time when the job ended running. |
| `↳ state` | `int` The job state on completion. |
| `↳ retries` | `int` The number of retries. |
| `↳ type` | `int` The type of the job. |
| `↳ service` | `int` The service used to execute the job. |
| `↳ service_job` | `string` The reference to the job within the service. |
| `↳ execution_trigger` | `int` Job execution trigger. |

### getMessage

The log message.

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

### setMessage

The log message.

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

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

### getJobId

The unique id identifying the job.

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

### setJobId

The unique id identifying the job.

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

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

### getStartTime

The time when the job started running.

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

### hasStartTime

### clearStartTime

### setStartTime

The time when the job started running.

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

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

### getEndTime

The time when the job ended running.

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

### hasEndTime

### clearEndTime

### setEndTime

The time when the job ended running.

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

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

### getState

The job state on completion.

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

### setState

The job state on completion.

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

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

### getRetries

The number of retries.

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

### setRetries

The number of retries.

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

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

### getType

The type of the job.

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

### setType

The type of the job.

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

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

### getService

The service used to execute the job.

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

### setService

The service used to execute the job.

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

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

### getServiceJob

The reference to the job within the service.

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

### setServiceJob

The reference to the job within the service.

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

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

### getExecutionTrigger

Job execution trigger.

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

### setExecutionTrigger

Job execution trigger.

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

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