public static final class JobStatus.Builder extends GeneratedMessageV3.Builder<JobStatus.Builder> implements JobStatusOrBuilder
Job status.
Protobuf type google.cloud.batch.v1.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.v1.StatusEvent status_events = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.batch.v1.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.v1.StatusEvent status_events = 2;
addStatusEvents(StatusEvent.Builder builderForValue)
public JobStatus.Builder addStatusEvents(StatusEvent.Builder builderForValue)
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
addStatusEvents(int index, StatusEvent value)
public JobStatus.Builder addStatusEvents(int index, StatusEvent value)
Job status events
repeated .google.cloud.batch.v1.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.v1.StatusEvent status_events = 2;
addStatusEventsBuilder()
public StatusEvent.Builder addStatusEventsBuilder()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
addStatusEventsBuilder(int index)
public StatusEvent.Builder addStatusEventsBuilder(int index)
Job status events
repeated .google.cloud.batch.v1.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
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.v1.JobStatus.State state = 1;
clearStatusEvents()
public JobStatus.Builder clearStatusEvents()
Job status events
repeated .google.cloud.batch.v1.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.v1.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.
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.v1.JobStatus.State state = 1;
getStateValue()
public int getStateValue()
Job state
.google.cloud.batch.v1.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.v1.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.v1.StatusEvent status_events = 2;
Parameter |
Name |
Description |
index |
int
|
getStatusEventsBuilderList()
public List<StatusEvent.Builder> getStatusEventsBuilderList()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
getStatusEventsCount()
public int getStatusEventsCount()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns |
Type |
Description |
int |
|
getStatusEventsList()
public List<StatusEvent> getStatusEventsList()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
getStatusEventsOrBuilder(int index)
public StatusEventOrBuilder getStatusEventsOrBuilder(int index)
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Parameter |
Name |
Description |
index |
int
|
getStatusEventsOrBuilderList()
public List<? extends StatusEventOrBuilder> getStatusEventsOrBuilderList()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.batch.v1.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.v1.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.v1.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.v1.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.v1.JobStatus.TaskGroupStatus> task_groups = 4;
Parameter |
Name |
Description |
key |
String
|
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
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 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
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.v1.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.v1.JobStatus.TaskGroupStatus> task_groups = 4;
putTaskGroupsBuilderIfAbsent(String key)
public JobStatus.TaskGroupStatus.Builder putTaskGroupsBuilderIfAbsent(String key)
Aggregated task status for each TaskGroup in the Job.
The map key is TaskGroup ID.
map<string, .google.cloud.batch.v1.JobStatus.TaskGroupStatus> task_groups = 4;
Parameter |
Name |
Description |
key |
String
|
removeStatusEvents(int index)
public JobStatus.Builder removeStatusEvents(int index)
Job status events
repeated .google.cloud.batch.v1.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.v1.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
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.v1.JobStatus.State state = 1;
setStateValue(int value)
public JobStatus.Builder setStateValue(int value)
Job state
.google.cloud.batch.v1.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.v1.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.v1.StatusEvent status_events = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides