Class JobStatus.TaskGroupStatus.Builder (0.55.0)

public static final class JobStatus.TaskGroupStatus.Builder extends GeneratedMessageV3.Builder<JobStatus.TaskGroupStatus.Builder> implements JobStatus.TaskGroupStatusOrBuilder

Aggregated task status for a TaskGroup.

Protobuf type google.cloud.batch.v1.JobStatus.TaskGroupStatus

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllInstances(Iterable<? extends JobStatus.InstanceStatus> values)

public JobStatus.TaskGroupStatus.Builder addAllInstances(Iterable<? extends JobStatus.InstanceStatus> values)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.batch.v1.JobStatus.InstanceStatus>
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

addInstances(JobStatus.InstanceStatus value)

public JobStatus.TaskGroupStatus.Builder addInstances(JobStatus.InstanceStatus value)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameter
Name Description
value JobStatus.InstanceStatus
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

addInstances(JobStatus.InstanceStatus.Builder builderForValue)

public JobStatus.TaskGroupStatus.Builder addInstances(JobStatus.InstanceStatus.Builder builderForValue)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameter
Name Description
builderForValue JobStatus.InstanceStatus.Builder
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

addInstances(int index, JobStatus.InstanceStatus value)

public JobStatus.TaskGroupStatus.Builder addInstances(int index, JobStatus.InstanceStatus value)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameters
Name Description
index int
value JobStatus.InstanceStatus
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

addInstances(int index, JobStatus.InstanceStatus.Builder builderForValue)

public JobStatus.TaskGroupStatus.Builder addInstances(int index, JobStatus.InstanceStatus.Builder builderForValue)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameters
Name Description
index int
builderForValue JobStatus.InstanceStatus.Builder
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

addInstancesBuilder()

public JobStatus.InstanceStatus.Builder addInstancesBuilder()

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Returns
Type Description
JobStatus.InstanceStatus.Builder

addInstancesBuilder(int index)

public JobStatus.InstanceStatus.Builder addInstancesBuilder(int index)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameter
Name Description
index int
Returns
Type Description
JobStatus.InstanceStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.TaskGroupStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

build()

public JobStatus.TaskGroupStatus build()
Returns
Type Description
JobStatus.TaskGroupStatus

buildPartial()

public JobStatus.TaskGroupStatus buildPartial()
Returns
Type Description
JobStatus.TaskGroupStatus

clear()

public JobStatus.TaskGroupStatus.Builder clear()
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

clearCounts()

public JobStatus.TaskGroupStatus.Builder clearCounts()
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

clearField(Descriptors.FieldDescriptor field)

public JobStatus.TaskGroupStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

clearInstances()

public JobStatus.TaskGroupStatus.Builder clearInstances()

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Returns
Type Description
JobStatus.TaskGroupStatus.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public JobStatus.TaskGroupStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

clone()

public JobStatus.TaskGroupStatus.Builder clone()
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

containsCounts(String key)

public boolean containsCounts(String key)

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

map<string, int64> counts = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCounts() (deprecated)

public Map<String,Long> getCounts()

Use #getCountsMap() instead.

Returns
Type Description
Map<String,java.lang.Long>

getCountsCount()

public int getCountsCount()

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

map<string, int64> counts = 1;

Returns
Type Description
int

getCountsMap()

public Map<String,Long> getCountsMap()

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

map<string, int64> counts = 1;

Returns
Type Description
Map<String,java.lang.Long>

getCountsOrDefault(String key, long defaultValue)

public long getCountsOrDefault(String key, long defaultValue)

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

map<string, int64> counts = 1;

Parameters
Name Description
key String
defaultValue long
Returns
Type Description
long

getCountsOrThrow(String key)

public long getCountsOrThrow(String key)

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

map<string, int64> counts = 1;

Parameter
Name Description
key String
Returns
Type Description
long

getDefaultInstanceForType()

public JobStatus.TaskGroupStatus getDefaultInstanceForType()
Returns
Type Description
JobStatus.TaskGroupStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstances(int index)

public JobStatus.InstanceStatus getInstances(int index)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameter
Name Description
index int
Returns
Type Description
JobStatus.InstanceStatus

getInstancesBuilder(int index)

public JobStatus.InstanceStatus.Builder getInstancesBuilder(int index)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameter
Name Description
index int
Returns
Type Description
JobStatus.InstanceStatus.Builder

getInstancesBuilderList()

public List<JobStatus.InstanceStatus.Builder> getInstancesBuilderList()

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Returns
Type Description
List<Builder>

getInstancesCount()

public int getInstancesCount()

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Returns
Type Description
int

getInstancesList()

public List<JobStatus.InstanceStatus> getInstancesList()

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Returns
Type Description
List<InstanceStatus>

getInstancesOrBuilder(int index)

public JobStatus.InstanceStatusOrBuilder getInstancesOrBuilder(int index)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameter
Name Description
index int
Returns
Type Description
JobStatus.InstanceStatusOrBuilder

getInstancesOrBuilderList()

public List<? extends JobStatus.InstanceStatusOrBuilder> getInstancesOrBuilderList()

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Returns
Type Description
List<? extends com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder>

getMutableCounts() (deprecated)

public Map<String,Long> getMutableCounts()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,java.lang.Long>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(JobStatus.TaskGroupStatus other)

public JobStatus.TaskGroupStatus.Builder mergeFrom(JobStatus.TaskGroupStatus other)
Parameter
Name Description
other JobStatus.TaskGroupStatus
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobStatus.TaskGroupStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public JobStatus.TaskGroupStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.TaskGroupStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

putAllCounts(Map<String,Long> values)

public JobStatus.TaskGroupStatus.Builder putAllCounts(Map<String,Long> values)

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

map<string, int64> counts = 1;

Parameter
Name Description
values Map<String,java.lang.Long>
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

putCounts(String key, long value)

public JobStatus.TaskGroupStatus.Builder putCounts(String key, long value)

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

map<string, int64> counts = 1;

Parameters
Name Description
key String
value long
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

removeCounts(String key)

public JobStatus.TaskGroupStatus.Builder removeCounts(String key)

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

map<string, int64> counts = 1;

Parameter
Name Description
key String
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

removeInstances(int index)

public JobStatus.TaskGroupStatus.Builder removeInstances(int index)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameter
Name Description
index int
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.TaskGroupStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

setInstances(int index, JobStatus.InstanceStatus value)

public JobStatus.TaskGroupStatus.Builder setInstances(int index, JobStatus.InstanceStatus value)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameters
Name Description
index int
value JobStatus.InstanceStatus
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

setInstances(int index, JobStatus.InstanceStatus.Builder builderForValue)

public JobStatus.TaskGroupStatus.Builder setInstances(int index, JobStatus.InstanceStatus.Builder builderForValue)

Status of instances allocated for the TaskGroup.

repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;

Parameters
Name Description
index int
builderForValue JobStatus.InstanceStatus.Builder
Returns
Type Description
JobStatus.TaskGroupStatus.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public JobStatus.TaskGroupStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.TaskGroupStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobStatus.TaskGroupStatus.Builder
Overrides