# Common Protos for Google Cloud APIs Client - Class JobChange (1.0.0)

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class JobChange.

Job state change event.

Generated from protobuf message `google.cloud.audit.BigQueryAuditMetadata.JobChange`

## Namespace

Google \\ Cloud \\ Audit \\ BigQueryAuditMetadata

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ before` | `int` Job state before the job state change. |
| `↳ after` | `int` Job state after the job state change. |
| `↳ job` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.Job` Job metadata. |

### getBefore

Job state before the job state change.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [JobState](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.JobState). |

### setBefore

Job state before the job state change.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [JobState](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.JobState). |

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

### getAfter

Job state after the job state change.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [JobState](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.JobState). |

### setAfter

Job state after the job state change.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [JobState](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.JobState). |

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

### getJob

Job metadata.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.Job|null` |   |

### hasJob

### clearJob

### setJob

Job metadata.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.Job` |

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