Class JobStatus.Builder (0.1.0)

public static final class JobStatus.Builder extends GeneratedMessageV3.Builder<JobStatus.Builder> implements JobStatusOrBuilder

Job status.

Protobuf type google.cloud.batch.v1.JobStatus

Implements

JobStatusOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.batch.v1.StatusEvent>
Returns
TypeDescription
JobStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JobStatus.Builder
Overrides

addStatusEvents(StatusEvent value)

public JobStatus.Builder addStatusEvents(StatusEvent value)

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Parameter
NameDescription
valueStatusEvent
Returns
TypeDescription
JobStatus.Builder

addStatusEvents(StatusEvent.Builder builderForValue)

public JobStatus.Builder addStatusEvents(StatusEvent.Builder builderForValue)

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Parameter
NameDescription
builderForValueStatusEvent.Builder
Returns
TypeDescription
JobStatus.Builder

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
NameDescription
indexint
valueStatusEvent
Returns
TypeDescription
JobStatus.Builder

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
NameDescription
indexint
builderForValueStatusEvent.Builder
Returns
TypeDescription
JobStatus.Builder

addStatusEventsBuilder()

public StatusEvent.Builder addStatusEventsBuilder()

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Returns
TypeDescription
StatusEvent.Builder

addStatusEventsBuilder(int index)

public StatusEvent.Builder addStatusEventsBuilder(int index)

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusEvent.Builder

build()

public JobStatus build()
Returns
TypeDescription
JobStatus

buildPartial()

public JobStatus buildPartial()
Returns
TypeDescription
JobStatus

clear()

public JobStatus.Builder clear()
Returns
TypeDescription
JobStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public JobStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
JobStatus.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public JobStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
JobStatus.Builder
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
TypeDescription
JobStatus.Builder

clearState()

public JobStatus.Builder clearState()

Job state

.google.cloud.batch.v1.JobStatus.State state = 1;

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

clearStatusEvents()

public JobStatus.Builder clearStatusEvents()

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Returns
TypeDescription
JobStatus.Builder

clearTaskGroups()

public JobStatus.Builder clearTaskGroups()
Returns
TypeDescription
JobStatus.Builder

clone()

public JobStatus.Builder clone()
Returns
TypeDescription
JobStatus.Builder
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public JobStatus getDefaultInstanceForType()
Returns
TypeDescription
JobStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableTaskGroups()

public Map<String,JobStatus.TaskGroupStatus> getMutableTaskGroups()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,TaskGroupStatus>

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
TypeDescription
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
TypeDescription
Builder

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
TypeDescription
DurationOrBuilder

getState()

public JobStatus.State getState()

Job state

.google.cloud.batch.v1.JobStatus.State state = 1;

Returns
TypeDescription
JobStatus.State

The state.

getStateValue()

public int getStateValue()

Job state

.google.cloud.batch.v1.JobStatus.State state = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
StatusEvent

getStatusEventsBuilder(int index)

public StatusEvent.Builder getStatusEventsBuilder(int index)

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusEvent.Builder

getStatusEventsBuilderList()

public List<StatusEvent.Builder> getStatusEventsBuilderList()

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Returns
TypeDescription
List<Builder>

getStatusEventsCount()

public int getStatusEventsCount()

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Returns
TypeDescription
int

getStatusEventsList()

public List<StatusEvent> getStatusEventsList()

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Returns
TypeDescription
List<StatusEvent>

getStatusEventsOrBuilder(int index)

public StatusEventOrBuilder getStatusEventsOrBuilder(int index)

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusEventOrBuilder

getStatusEventsOrBuilderList()

public List<? extends StatusEventOrBuilder> getStatusEventsOrBuilderList()

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.StatusEventOrBuilder>

getTaskGroups()

public Map<String,JobStatus.TaskGroupStatus> getTaskGroups()

Use #getTaskGroupsMap() instead.

Returns
TypeDescription
Map<String,TaskGroupStatus>

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
TypeDescription
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;

Returns
TypeDescription
Map<String,TaskGroupStatus>

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
NameDescription
keyString
defaultValueJobStatus.TaskGroupStatus
Returns
TypeDescription
JobStatus.TaskGroupStatus

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
NameDescription
keyString
Returns
TypeDescription
JobStatus.TaskGroupStatus

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
TypeDescription
boolean

Whether the runDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobStatus other)

public JobStatus.Builder mergeFrom(JobStatus other)
Parameter
NameDescription
otherJobStatus
Returns
TypeDescription
JobStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
JobStatus.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public JobStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
JobStatus.Builder
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
NameDescription
valueDuration
Returns
TypeDescription
JobStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobStatus.Builder
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
NameDescription
valuesMap<String,TaskGroupStatus>
Returns
TypeDescription
JobStatus.Builder

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
NameDescription
keyString
valueJobStatus.TaskGroupStatus
Returns
TypeDescription
JobStatus.Builder

removeStatusEvents(int index)

public JobStatus.Builder removeStatusEvents(int index)

Job status events

repeated .google.cloud.batch.v1.StatusEvent status_events = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
JobStatus.Builder

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
NameDescription
keyString
Returns
TypeDescription
JobStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
JobStatus.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public JobStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
JobStatus.Builder
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
NameDescription
valueDuration
Returns
TypeDescription
JobStatus.Builder

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
NameDescription
builderForValueBuilder
Returns
TypeDescription
JobStatus.Builder

setState(JobStatus.State value)

public JobStatus.Builder setState(JobStatus.State value)

Job state

.google.cloud.batch.v1.JobStatus.State state = 1;

Parameter
NameDescription
valueJobStatus.State

The state to set.

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

setStateValue(int value)

public JobStatus.Builder setStateValue(int value)

Job state

.google.cloud.batch.v1.JobStatus.State state = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
JobStatus.Builder

This builder for chaining.

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
NameDescription
indexint
valueStatusEvent
Returns
TypeDescription
JobStatus.Builder

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
NameDescription
indexint
builderForValueStatusEvent.Builder
Returns
TypeDescription
JobStatus.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
JobStatus.Builder
Overrides