Class JobStatus.Builder (0.34.0)

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

Job status.

Protobuf type google.cloud.batch.v1alpha.JobStatus

Implements

JobStatusOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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>
Returns
Type Description
JobStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobStatus.Builder
Overrides

addStatusEvents(StatusEvent value)

public JobStatus.Builder addStatusEvents(StatusEvent value)

Job status events

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

Parameter
Name Description
value StatusEvent
Returns
Type Description
JobStatus.Builder

addStatusEvents(StatusEvent.Builder builderForValue)

public JobStatus.Builder addStatusEvents(StatusEvent.Builder builderForValue)

Job status events

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

Parameter
Name Description
builderForValue StatusEvent.Builder
Returns
Type Description
JobStatus.Builder

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;

Parameters
Name Description
index int
value StatusEvent
Returns
Type Description
JobStatus.Builder

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;

Parameters
Name Description
index int
builderForValue StatusEvent.Builder
Returns
Type Description
JobStatus.Builder

addStatusEventsBuilder()

public StatusEvent.Builder addStatusEventsBuilder()

Job status events

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

Returns
Type Description
StatusEvent.Builder

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
Returns
Type Description
StatusEvent.Builder

build()

public JobStatus build()
Returns
Type Description
JobStatus

buildPartial()

public JobStatus buildPartial()
Returns
Type Description
JobStatus

clear()

public JobStatus.Builder clear()
Returns
Type Description
JobStatus.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public JobStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
JobStatus.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public JobStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
JobStatus.Builder
Overrides

clearResourceUsage()

public JobStatus.Builder clearResourceUsage()

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Returns
Type Description
JobStatus.Builder

clearRunDuration()

public JobStatus.Builder clearRunDuration()

The duration of time that the Job spent in status RUNNING.

.google.protobuf.Duration run_duration = 5;

Returns
Type Description
JobStatus.Builder

clearState()

public JobStatus.Builder clearState()

Job state

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

Returns
Type Description
JobStatus.Builder

This builder for chaining.

clearStatusEvents()

public JobStatus.Builder clearStatusEvents()

Job status events

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

Returns
Type Description
JobStatus.Builder

clearTaskGroups()

public JobStatus.Builder clearTaskGroups()
Returns
Type Description
JobStatus.Builder

clone()

public JobStatus.Builder clone()
Returns
Type Description
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.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public JobStatus getDefaultInstanceForType()
Returns
Type Description
JobStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableTaskGroups() (deprecated)

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

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,TaskGroupStatus>

getResourceUsage()

public ResourceUsage getResourceUsage()

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Returns
Type Description
ResourceUsage

The resourceUsage.

getResourceUsageBuilder()

public ResourceUsage.Builder getResourceUsageBuilder()

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Returns
Type Description
ResourceUsage.Builder

getResourceUsageOrBuilder()

public ResourceUsageOrBuilder getResourceUsageOrBuilder()

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Returns
Type Description
ResourceUsageOrBuilder

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;

Returns
Type Description
Builder

getRunDurationOrBuilder()

public DurationOrBuilder getRunDurationOrBuilder()

The duration of time that the Job spent in status RUNNING.

.google.protobuf.Duration run_duration = 5;

Returns
Type Description
DurationOrBuilder

getState()

public JobStatus.State getState()

Job state

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

Returns
Type Description
JobStatus.State

The state.

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
Returns
Type Description
StatusEvent

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
Returns
Type Description
StatusEvent.Builder

getStatusEventsBuilderList()

public List<StatusEvent.Builder> getStatusEventsBuilderList()

Job status events

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

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<StatusEvent>

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
Returns
Type Description
StatusEventOrBuilder

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()

Use #getTaskGroupsMap() instead.

Returns
Type Description
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.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;

Returns
Type Description
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.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameters
Name Description
key String
defaultValue JobStatus.TaskGroupStatus
Returns
Type Description
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.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameter
Name Description
key String
Returns
Type Description
JobStatus.TaskGroupStatus

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()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(JobStatus other)

public JobStatus.Builder mergeFrom(JobStatus other)
Parameter
Name Description
other JobStatus
Returns
Type Description
JobStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public JobStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
JobStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public JobStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
JobStatus.Builder
Overrides

mergeResourceUsage(ResourceUsage value)

public JobStatus.Builder mergeResourceUsage(ResourceUsage value)

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Parameter
Name Description
value ResourceUsage
Returns
Type Description
JobStatus.Builder

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
Returns
Type Description
JobStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameter
Name Description
values Map<String,TaskGroupStatus>
Returns
Type Description
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.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameters
Name Description
key String
value JobStatus.TaskGroupStatus
Returns
Type Description
JobStatus.Builder

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
Returns
Type Description
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.v1alpha.JobStatus.TaskGroupStatus> task_groups = 4;

Parameter
Name Description
key String
Returns
Type Description
JobStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public JobStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
JobStatus.Builder
Overrides

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

public JobStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
JobStatus.Builder
Overrides

setResourceUsage(ResourceUsage value)

public JobStatus.Builder setResourceUsage(ResourceUsage value)

The resource usage of the job.

.google.cloud.batch.v1alpha.ResourceUsage resource_usage = 6;

Parameter
Name Description
value ResourceUsage
Returns
Type Description
JobStatus.Builder

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;

Parameter
Name Description
builderForValue ResourceUsage.Builder
Returns
Type Description
JobStatus.Builder

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
Returns
Type Description
JobStatus.Builder

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
Returns
Type Description
JobStatus.Builder

setState(JobStatus.State value)

public JobStatus.Builder setState(JobStatus.State value)

Job state

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

Parameter
Name Description
value JobStatus.State

The state to set.

Returns
Type Description
JobStatus.Builder

This builder for chaining.

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.

Returns
Type Description
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.v1alpha.StatusEvent status_events = 2;

Parameters
Name Description
index int
value StatusEvent
Returns
Type Description
JobStatus.Builder

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;

Parameters
Name Description
index int
builderForValue StatusEvent.Builder
Returns
Type Description
JobStatus.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final JobStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
JobStatus.Builder
Overrides