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.v1alpha.JobStatus.TaskGroupStatus
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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.v1alpha.JobStatus.InstanceStatus instances = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.JobStatus.InstanceStatus>
|
addInstances(JobStatus.InstanceStatus value)
public JobStatus.TaskGroupStatus.Builder addInstances(JobStatus.InstanceStatus value)
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
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.v1alpha.JobStatus.InstanceStatus instances = 2;
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.v1alpha.JobStatus.InstanceStatus instances = 2;
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.v1alpha.JobStatus.InstanceStatus instances = 2;
addInstancesBuilder()
public JobStatus.InstanceStatus.Builder addInstancesBuilder()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
addInstancesBuilder(int index)
public JobStatus.InstanceStatus.Builder addInstancesBuilder(int index)
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public JobStatus.TaskGroupStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public JobStatus.TaskGroupStatus build()
buildPartial()
public JobStatus.TaskGroupStatus buildPartial()
clear()
public JobStatus.TaskGroupStatus.Builder clear()
Overrides
clearCounts()
public JobStatus.TaskGroupStatus.Builder clearCounts()
clearField(Descriptors.FieldDescriptor field)
public JobStatus.TaskGroupStatus.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInstances()
public JobStatus.TaskGroupStatus.Builder clearInstances()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public JobStatus.TaskGroupStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public JobStatus.TaskGroupStatus.Builder clone()
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
|
getCounts() (deprecated)
public Map<String,Long> getCounts()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInstances(int index)
public JobStatus.InstanceStatus getInstances(int index)
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
Parameter |
Name |
Description |
index |
int
|
getInstancesBuilder(int index)
public JobStatus.InstanceStatus.Builder getInstancesBuilder(int index)
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
Parameter |
Name |
Description |
index |
int
|
getInstancesBuilderList()
public List<JobStatus.InstanceStatus.Builder> getInstancesBuilderList()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
getInstancesCount()
public int getInstancesCount()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.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.v1alpha.JobStatus.InstanceStatus instances = 2;
getInstancesOrBuilder(int index)
public JobStatus.InstanceStatusOrBuilder getInstancesOrBuilder(int index)
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
Parameter |
Name |
Description |
index |
int
|
getInstancesOrBuilderList()
public List<? extends JobStatus.InstanceStatusOrBuilder> getInstancesOrBuilderList()
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.batch.v1alpha.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()
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()
Overrides
mergeFrom(JobStatus.TaskGroupStatus other)
public JobStatus.TaskGroupStatus.Builder mergeFrom(JobStatus.TaskGroupStatus other)
public JobStatus.TaskGroupStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public JobStatus.TaskGroupStatus.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.TaskGroupStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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>
|
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;
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
|
removeInstances(int index)
public JobStatus.TaskGroupStatus.Builder removeInstances(int index)
Status of instances allocated for the TaskGroup.
repeated .google.cloud.batch.v1alpha.JobStatus.InstanceStatus instances = 2;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public JobStatus.TaskGroupStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.v1alpha.JobStatus.InstanceStatus instances = 2;
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.v1alpha.JobStatus.InstanceStatus instances = 2;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public JobStatus.TaskGroupStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.TaskGroupStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides