Google Cloud Batch V1 Client - Class TaskGroupStatus (0.2.2)

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

Aggregated task status for a TaskGroup.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ counts array|Google\Protobuf\Internal\MapField

Count of task in each state in the TaskGroup. The map key is task state name.

↳ instances array<Google\Cloud\Batch\V1\JobStatus\InstanceStatus>

Status of instances allocated for the TaskGroup.

getCounts

Count of task in each state in the TaskGroup.

The map key is task state name.

Generated from protobuf field map<string, int64> counts = 1;

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setCounts

Count of task in each state in the TaskGroup.

The map key is task state name.

Generated from protobuf field map<string, int64> counts = 1;

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

getInstances

Status of instances allocated for the TaskGroup.

Generated from protobuf field repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setInstances

Status of instances allocated for the TaskGroup.

Generated from protobuf field repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

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