Google Cloud Batch V1 Client - Class TaskStatus (0.2.2)

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

Status of a task

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ state int

Task state

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

Detailed info about why the state is reached.

getState

Task state

Generated from protobuf field .google.cloud.batch.v1.TaskStatus.State state = 1;

Returns
TypeDescription
int

setState

Task state

Generated from protobuf field .google.cloud.batch.v1.TaskStatus.State state = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStatusEvents

Detailed info about why the state is reached.

Generated from protobuf field repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStatusEvents

Detailed info about why the state is reached.

Generated from protobuf field repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

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