Common Protos for Google Cloud APIs Client - Class JobStatus (0.4.2)

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
NameDescription
data array

Optional. Data for populating the Message object.

↳ job_state int

State of the job.

↳ error_result Google\Rpc\Status

Job error, if the job failed.

↳ errors array<Google\Rpc\Status>

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
TypeDescription
int

setJobState

State of the job.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getErrorResult

Job error, if the job failed.

Returns
TypeDescription
Google\Rpc\Status|null

hasErrorResult

clearErrorResult

setErrorResult

Job error, if the job failed.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getErrors

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setErrors

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

Parameter
NameDescription
var array<Google\Rpc\Status>
Returns
TypeDescription
$this