# Common Protos for Google Cloud APIs Client - Class JobStatus (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 JobStatus.

Status of a job.

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

## Namespace

Google \\ Cloud \\ Audit \\ BigQueryAuditMetadata

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ job_state` | `int` State of the job. |
| `↳ error_result` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Job error, if the job failed. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` Errors encountered during the running of the job. Does not necessarily mean that the job has completed or was unsuccessful. |

### getJobState

State of the job.

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

### setJobState

State of the job.

| **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` |   |

### getErrorResult

Job error, if the job failed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasErrorResult

### clearErrorResult

### setErrorResult

Job error, if the job failed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getErrors

Errors encountered during the running of the job. Does not necessarily
mean that the job has completed or was unsuccessful.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |   |

### setErrors

Errors encountered during the running of the job. Does not necessarily
mean that the job has completed or was unsuccessful.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |

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