public static final class JobStatus.Builder extends GeneratedMessageV3.Builder<JobStatus.Builder> implements JobStatusOrBuilder
Job status.
Protobuf type google.cloud.batch.v1.JobStatus
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public JobStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addStatusEvents(StatusEvent value)
public JobStatus.Builder addStatusEvents(StatusEvent value)
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Parameter
Returns
addStatusEvents(StatusEvent.Builder builderForValue)
public JobStatus.Builder addStatusEvents(StatusEvent.Builder builderForValue)
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addStatusEventsBuilder()
public StatusEvent.Builder addStatusEventsBuilder()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
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
|
Returns
build()
Returns
buildPartial()
public JobStatus buildPartial()
Returns
clear()
public JobStatus.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public JobStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public JobStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRunDuration()
public JobStatus.Builder clearRunDuration()
The duration of time the Job is in status
RUNNING. Once the Job completes (i.e. the Job status is either
SUCCEEDED/FAILED) the run duration represents the time it took the Job
to complete.
.google.protobuf.Duration run_duration = 5;
Returns
clearState()
public JobStatus.Builder clearState()
Job state
.google.cloud.batch.v1.JobStatus.State state = 1;
Returns
clearStatusEvents()
public JobStatus.Builder clearStatusEvents()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
clearTaskGroups()
public JobStatus.Builder clearTaskGroups()
Returns
clone()
public JobStatus.Builder clone()
Returns
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
Returns
getDefaultInstanceForType()
public JobStatus getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMutableTaskGroups()
public Map<String,JobStatus.TaskGroupStatus> getMutableTaskGroups()
Use alternate mutation accessors instead.
Returns
getRunDuration()
public Duration getRunDuration()
The duration of time the Job is in status
RUNNING. Once the Job completes (i.e. the Job status is either
SUCCEEDED/FAILED) the run duration represents the time it took the Job
to complete.
.google.protobuf.Duration run_duration = 5;
Returns
Type |
Description |
Duration |
The runDuration.
|
getRunDurationBuilder()
public Duration.Builder getRunDurationBuilder()
The duration of time the Job is in status
RUNNING. Once the Job completes (i.e. the Job status is either
SUCCEEDED/FAILED) the run duration represents the time it took the Job
to complete.
.google.protobuf.Duration run_duration = 5;
Returns
getRunDurationOrBuilder()
public DurationOrBuilder getRunDurationOrBuilder()
The duration of time the Job is in status
RUNNING. Once the Job completes (i.e. the Job status is either
SUCCEEDED/FAILED) the run duration represents the time it took the Job
to complete.
.google.protobuf.Duration run_duration = 5;
Returns
getState()
public JobStatus.State getState()
Job state
.google.cloud.batch.v1.JobStatus.State state = 1;
Returns
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
|
Returns
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
|
Returns
getStatusEventsBuilderList()
public List<StatusEvent.Builder> getStatusEventsBuilderList()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
getStatusEventsCount()
public int getStatusEventsCount()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
getStatusEventsList()
public List<StatusEvent> getStatusEventsList()
Job status events
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
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
|
Returns
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()
public Map<String,JobStatus.TaskGroupStatus> getTaskGroups()
Returns
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
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;
Returns
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;
Parameters
Returns
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
Returns
hasRunDuration()
public boolean hasRunDuration()
The duration of time the Job is in status
RUNNING. Once the Job completes (i.e. the Job status is either
SUCCEEDED/FAILED) the run duration represents the time it took the Job
to complete.
.google.protobuf.Duration run_duration = 5;
Returns
Type |
Description |
boolean |
Whether the runDuration field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(JobStatus other)
public JobStatus.Builder mergeFrom(JobStatus other)
Parameter
Returns
public JobStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public JobStatus.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeRunDuration(Duration value)
public JobStatus.Builder mergeRunDuration(Duration value)
The duration of time the Job is in status
RUNNING. Once the Job completes (i.e. the Job status is either
SUCCEEDED/FAILED) the run duration represents the time it took the Job
to complete.
.google.protobuf.Duration run_duration = 5;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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
|
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public JobStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public JobStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRunDuration(Duration value)
public JobStatus.Builder setRunDuration(Duration value)
The duration of time the Job is in status
RUNNING. Once the Job completes (i.e. the Job status is either
SUCCEEDED/FAILED) the run duration represents the time it took the Job
to complete.
.google.protobuf.Duration run_duration = 5;
Parameter
Returns
setRunDuration(Duration.Builder builderForValue)
public JobStatus.Builder setRunDuration(Duration.Builder builderForValue)
The duration of time the Job is in status
RUNNING. Once the Job completes (i.e. the Job status is either
SUCCEEDED/FAILED) the run duration represents the time it took the Job
to complete.
.google.protobuf.Duration run_duration = 5;
Parameter
Name |
Description |
builderForValue |
Builder
|
Returns
setState(JobStatus.State value)
public JobStatus.Builder setState(JobStatus.State value)
Job state
.google.cloud.batch.v1.JobStatus.State state = 1;
Parameter
Returns
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.
|
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final JobStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides