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
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
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
Returns
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
Returns
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
Returns
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
Returns
addInstancesBuilder()
public JobStatus.InstanceStatus.Builder addInstancesBuilder()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public JobStatus.TaskGroupStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public JobStatus.TaskGroupStatus build()
Returns
buildPartial()
public JobStatus.TaskGroupStatus buildPartial()
Returns
clear()
public JobStatus.TaskGroupStatus.Builder clear()
Returns
Overrides
clearCounts()
public JobStatus.TaskGroupStatus.Builder clearCounts()
Returns
clearField(Descriptors.FieldDescriptor field)
public JobStatus.TaskGroupStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInstances()
public JobStatus.TaskGroupStatus.Builder clearInstances()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public JobStatus.TaskGroupStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public JobStatus.TaskGroupStatus.Builder clone()
Returns
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
Returns
getCounts()
public Map<String,Long> getCounts()
Returns
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
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
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
Returns
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
Returns
getDefaultInstanceForType()
public JobStatus.TaskGroupStatus getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
getInstancesBuilderList()
public List<JobStatus.InstanceStatus.Builder> getInstancesBuilderList()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
Returns
getInstancesCount()
public int getInstancesCount()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
Returns
getInstancesList()
public List<JobStatus.InstanceStatus> getInstancesList()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
Returns
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
Returns
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()
public Map<String,Long> getMutableCounts()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(JobStatus.TaskGroupStatus other)
public JobStatus.TaskGroupStatus.Builder mergeFrom(JobStatus.TaskGroupStatus other)
Parameter
Returns
public JobStatus.TaskGroupStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public JobStatus.TaskGroupStatus.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.TaskGroupStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public JobStatus.TaskGroupStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public JobStatus.TaskGroupStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.TaskGroupStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides