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.events.cloud.batch.v1.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.events.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.events.cloud.batch.v1.JobStatus.InstanceStatus>
|
addInstances(JobStatus.InstanceStatus value)
public JobStatus.TaskGroupStatus.Builder addInstances(JobStatus.InstanceStatus value)
Status of instances allocated for the TaskGroup.
repeated .google.events.cloud.batch.v1.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.events.cloud.batch.v1.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.events.cloud.batch.v1.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.events.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
addInstancesBuilder()
public JobStatus.InstanceStatus.Builder addInstancesBuilder()
Status of instances allocated for the TaskGroup.
repeated .google.events.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
addInstancesBuilder(int index)
public JobStatus.InstanceStatus.Builder addInstancesBuilder(int index)
Status of instances allocated for the TaskGroup.
repeated .google.events.cloud.batch.v1.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.events.cloud.batch.v1.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()
public Map<String,Long> getCounts()
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;
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.events.cloud.batch.v1.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.events.cloud.batch.v1.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.events.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
getInstancesCount()
public int getInstancesCount()
Status of instances allocated for the TaskGroup.
repeated .google.events.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.events.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
getInstancesOrBuilder(int index)
public JobStatus.InstanceStatusOrBuilder getInstancesOrBuilder(int index)
Status of instances allocated for the TaskGroup.
repeated .google.events.cloud.batch.v1.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.events.cloud.batch.v1.JobStatus.InstanceStatus instances = 2;
Returns |
Type |
Description |
List<? extends com.google.events.cloud.batch.v1.JobStatus.InstanceStatusOrBuilder> |
|
getMutableCounts()
public Map<String,Long> getMutableCounts()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
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;
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.events.cloud.batch.v1.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.events.cloud.batch.v1.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.events.cloud.batch.v1.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