public static final class JobStatus.Builder extends GeneratedMessageV3.Builder<JobStatus.Builder> implements JobStatusOrBuilder
Job status.
Protobuf type google.cloud.batch.v1alpha.JobStatus
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
addAllStatusEvents(Iterable<? extends StatusEvent> values)
public JobStatus.Builder addAllStatusEvents(Iterable<? extends StatusEvent> values)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.batch.v1alpha.StatusEvent>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public JobStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addStatusEvents(StatusEvent value)
public JobStatus.Builder addStatusEvents(StatusEvent value)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
addStatusEvents(StatusEvent.Builder builderForValue)
public JobStatus.Builder addStatusEvents(StatusEvent.Builder builderForValue)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
addStatusEvents(int index, StatusEvent value)
public JobStatus.Builder addStatusEvents(int index, StatusEvent value)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
addStatusEvents(int index, StatusEvent.Builder builderForValue)
public JobStatus.Builder addStatusEvents(int index, StatusEvent.Builder builderForValue)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
addStatusEventsBuilder()
public StatusEvent.Builder addStatusEventsBuilder()
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
addStatusEventsBuilder(int index)
public StatusEvent.Builder addStatusEventsBuilder(int index)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
Parameter |
Name |
Description |
index |
int
|
build()
buildPartial()
public JobStatus buildPartial()
clear()
public JobStatus.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public JobStatus.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public JobStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResourceUsage()
public JobStatus.Builder clearResourceUsage()
The resource usage of the job.
.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
clearRunDuration()
public JobStatus.Builder clearRunDuration()
The duration of time that the Job spent in status RUNNING.
.google.protobuf.Duration run_duration = 5;
clearState()
public JobStatus.Builder clearState()
Job state
.google.cloud.batch.v1alpha.JobStatus.State state = 1;
clearStatusEvents()
public JobStatus.Builder clearStatusEvents()
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
clearTaskGroups()
public JobStatus.Builder clearTaskGroups()
clone()
public JobStatus.Builder clone()
Overrides
containsTaskGroups(String key)
public boolean containsTaskGroups(String key)
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public JobStatus getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableTaskGroups() (deprecated)
public Map<String,JobStatus.TaskGroupStatus> getMutableTaskGroups()
Use alternate mutation accessors instead.
getResourceUsage()
public ResourceUsage getResourceUsage()
The resource usage of the job.
.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
getResourceUsageBuilder()
public ResourceUsage.Builder getResourceUsageBuilder()
The resource usage of the job.
.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
getResourceUsageOrBuilder()
public ResourceUsageOrBuilder getResourceUsageOrBuilder()
The resource usage of the job.
.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
getRunDuration()
public Duration getRunDuration()
The duration of time that the Job spent in status RUNNING.
.google.protobuf.Duration run_duration = 5;
Returns |
Type |
Description |
Duration |
The runDuration.
|
getRunDurationBuilder()
public Duration.Builder getRunDurationBuilder()
The duration of time that the Job spent in status RUNNING.
.google.protobuf.Duration run_duration = 5;
getRunDurationOrBuilder()
public DurationOrBuilder getRunDurationOrBuilder()
The duration of time that the Job spent in status RUNNING.
.google.protobuf.Duration run_duration = 5;
getState()
public JobStatus.State getState()
Job state
.google.cloud.batch.v1alpha.JobStatus.State state = 1;
getStateValue()
public int getStateValue()
Job state
.google.cloud.batch.v1alpha.JobStatus.State state = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for state.
|
getStatusEvents(int index)
public StatusEvent getStatusEvents(int index)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
Parameter |
Name |
Description |
index |
int
|
getStatusEventsBuilder(int index)
public StatusEvent.Builder getStatusEventsBuilder(int index)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
Parameter |
Name |
Description |
index |
int
|
getStatusEventsBuilderList()
public List<StatusEvent.Builder> getStatusEventsBuilderList()
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
getStatusEventsCount()
public int getStatusEventsCount()
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
Returns |
Type |
Description |
int |
|
getStatusEventsList()
public List<StatusEvent> getStatusEventsList()
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
getStatusEventsOrBuilder(int index)
public StatusEventOrBuilder getStatusEventsOrBuilder(int index)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
Parameter |
Name |
Description |
index |
int
|
getStatusEventsOrBuilderList()
public List<? extends StatusEventOrBuilder> getStatusEventsOrBuilderList()
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.batch.v1alpha.StatusEventOrBuilder> |
|
getTaskGroups() (deprecated)
public Map<String,JobStatus.TaskGroupStatus> getTaskGroups()
getTaskGroupsCount()
public int getTaskGroupsCount()
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
Returns |
Type |
Description |
int |
|
getTaskGroupsMap()
public Map<String,JobStatus.TaskGroupStatus> getTaskGroupsMap()
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
getTaskGroupsOrDefault(String key, JobStatus.TaskGroupStatus defaultValue)
public JobStatus.TaskGroupStatus getTaskGroupsOrDefault(String key, JobStatus.TaskGroupStatus defaultValue)
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
getTaskGroupsOrThrow(String key)
public JobStatus.TaskGroupStatus getTaskGroupsOrThrow(String key)
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
Parameter |
Name |
Description |
key |
String
|
hasResourceUsage()
public boolean hasResourceUsage()
The resource usage of the job.
.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
Returns |
Type |
Description |
boolean |
Whether the resourceUsage field is set.
|
hasRunDuration()
public boolean hasRunDuration()
The duration of time that the Job spent in status RUNNING.
.google.protobuf.Duration run_duration = 5;
Returns |
Type |
Description |
boolean |
Whether the runDuration field is set.
|
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 other)
public JobStatus.Builder mergeFrom(JobStatus other)
public JobStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public JobStatus.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeResourceUsage(ResourceUsage value)
public JobStatus.Builder mergeResourceUsage(ResourceUsage value)
The resource usage of the job.
.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
mergeRunDuration(Duration value)
public JobStatus.Builder mergeRunDuration(Duration value)
The duration of time that the Job spent in status RUNNING.
.google.protobuf.Duration run_duration = 5;
Parameter |
Name |
Description |
value |
Duration
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllTaskGroups(Map<String,JobStatus.TaskGroupStatus> values)
public JobStatus.Builder putAllTaskGroups(Map<String,JobStatus.TaskGroupStatus> values)
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
putTaskGroups(String key, JobStatus.TaskGroupStatus value)
public JobStatus.Builder putTaskGroups(String key, JobStatus.TaskGroupStatus value)
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
removeStatusEvents(int index)
public JobStatus.Builder removeStatusEvents(int index)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
Parameter |
Name |
Description |
index |
int
|
removeTaskGroups(String key)
public JobStatus.Builder removeTaskGroups(String key)
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;
Parameter |
Name |
Description |
key |
String
|
setField(Descriptors.FieldDescriptor field, Object value)
public JobStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public JobStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResourceUsage(ResourceUsage value)
public JobStatus.Builder setResourceUsage(ResourceUsage value)
The resource usage of the job.
.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
setResourceUsage(ResourceUsage.Builder builderForValue)
public JobStatus.Builder setResourceUsage(ResourceUsage.Builder builderForValue)
The resource usage of the job.
.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;
setRunDuration(Duration value)
public JobStatus.Builder setRunDuration(Duration value)
The duration of time that the Job spent in status RUNNING.
.google.protobuf.Duration run_duration = 5;
Parameter |
Name |
Description |
value |
Duration
|
setRunDuration(Duration.Builder builderForValue)
public JobStatus.Builder setRunDuration(Duration.Builder builderForValue)
The duration of time that the Job spent in status RUNNING.
.google.protobuf.Duration run_duration = 5;
Parameter |
Name |
Description |
builderForValue |
Builder
|
setState(JobStatus.State value)
public JobStatus.Builder setState(JobStatus.State value)
Job state
.google.cloud.batch.v1alpha.JobStatus.State state = 1;
setStateValue(int value)
public JobStatus.Builder setStateValue(int value)
Job state
.google.cloud.batch.v1alpha.JobStatus.State state = 1;
Parameter |
Name |
Description |
value |
int
The enum numeric value on the wire for state to set.
|
setStatusEvents(int index, StatusEvent value)
public JobStatus.Builder setStatusEvents(int index, StatusEvent value)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
setStatusEvents(int index, StatusEvent.Builder builderForValue)
public JobStatus.Builder setStatusEvents(int index, StatusEvent.Builder builderForValue)
Job status events
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides