Google Cloud Batch V1 Client - Class JobStatus (0.7.0)

Reference documentation and code samples for the Google Cloud Batch V1 Client class JobStatus.

Job status.

Generated from protobuf message google.cloud.batch.v1.JobStatus

Namespace

Google \ Cloud \ Batch \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ state int

Job state

↳ status_events array<Google\Cloud\Batch\V1\StatusEvent>

Job status events

↳ task_groups array|Google\Protobuf\Internal\MapField

Aggregated task status for each TaskGroup in the Job. The map key is TaskGroup ID.

↳ run_duration Google\Protobuf\Duration

The duration of time that the Job spent in status RUNNING.

getState

Job state

Returns
TypeDescription
int

setState

Job state

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStatusEvents

Job status events

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStatusEvents

Job status events

Parameter
NameDescription
var array<Google\Cloud\Batch\V1\StatusEvent>
Returns
TypeDescription
$this

getTaskGroups

Aggregated task status for each TaskGroup in the Job.

The map key is TaskGroup ID.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setTaskGroups

Aggregated task status for each TaskGroup in the Job.

The map key is TaskGroup ID.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getRunDuration

The duration of time that the Job spent in status RUNNING.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasRunDuration

clearRunDuration

setRunDuration

The duration of time that the Job spent in status RUNNING.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this