Class JobStatus.TaskGroupStatus.Builder (0.1.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.batch.v1.JobStatus.InstanceStatus>
Returns
TypeDescription
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
NameDescription
valueJobStatus.InstanceStatus
Returns
TypeDescription
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
NameDescription
builderForValueJobStatus.InstanceStatus.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueJobStatus.InstanceStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueJobStatus.InstanceStatus.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
JobStatus.InstanceStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.TaskGroupStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder
Overrides

build()

public JobStatus.TaskGroupStatus build()
Returns
TypeDescription
JobStatus.TaskGroupStatus

buildPartial()

public JobStatus.TaskGroupStatus buildPartial()
Returns
TypeDescription
JobStatus.TaskGroupStatus

clear()

public JobStatus.TaskGroupStatus.Builder clear()
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder
Overrides

clearCounts()

public JobStatus.TaskGroupStatus.Builder clearCounts()
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder

clearField(Descriptors.FieldDescriptor field)

public JobStatus.TaskGroupStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
JobStatus.TaskGroupStatus.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public JobStatus.TaskGroupStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder
Overrides

clone()

public JobStatus.TaskGroupStatus.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getCounts()

public Map<String,Long> getCounts()

Use #getCountsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
long

getDefaultInstanceForType()

public JobStatus.TaskGroupStatus getDefaultInstanceForType()
Returns
TypeDescription
JobStatus.TaskGroupStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getInstancesCount()

public int getInstancesCount()

Status of instances allocated for the TaskGroup.

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

Returns
TypeDescription
int

getInstancesList()

public List<JobStatus.InstanceStatus> getInstancesList()

Status of instances allocated for the TaskGroup.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder>

getMutableCounts()

public Map<String,Long> getMutableCounts()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,java.lang.Long>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobStatus.TaskGroupStatus other)

public JobStatus.TaskGroupStatus.Builder mergeFrom(JobStatus.TaskGroupStatus other)
Parameter
NameDescription
otherJobStatus.TaskGroupStatus
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobStatus.TaskGroupStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public JobStatus.TaskGroupStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.TaskGroupStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,java.lang.Long>
Returns
TypeDescription
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
NameDescription
keyString
valuelong
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.TaskGroupStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueJobStatus.InstanceStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueJobStatus.InstanceStatus.Builder
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder

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

public JobStatus.TaskGroupStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.TaskGroupStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobStatus.TaskGroupStatus.Builder
Overrides