Class TaskStatus.Builder (0.13.0)

public static final class TaskStatus.Builder extends GeneratedMessageV3.Builder<TaskStatus.Builder> implements TaskStatusOrBuilder

Status of a task

Protobuf type google.cloud.batch.v1alpha.TaskStatus

Implements

TaskStatusOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllStatusEvents(Iterable<? extends StatusEvent> values)

public TaskStatus.Builder addAllStatusEvents(Iterable<? extends StatusEvent> values)

Detailed info about why the state is reached.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.batch.v1alpha.StatusEvent>
Returns
Type Description
TaskStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStatusEvents(StatusEvent value)

public TaskStatus.Builder addStatusEvents(StatusEvent value)

Detailed info about why the state is reached.

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

Parameter
Name Description
value StatusEvent
Returns
Type Description
TaskStatus.Builder

addStatusEvents(StatusEvent.Builder builderForValue)

public TaskStatus.Builder addStatusEvents(StatusEvent.Builder builderForValue)

Detailed info about why the state is reached.

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

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

addStatusEvents(int index, StatusEvent value)

public TaskStatus.Builder addStatusEvents(int index, StatusEvent value)

Detailed info about why the state is reached.

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

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

addStatusEvents(int index, StatusEvent.Builder builderForValue)

public TaskStatus.Builder addStatusEvents(int index, StatusEvent.Builder builderForValue)

Detailed info about why the state is reached.

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

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

addStatusEventsBuilder()

public StatusEvent.Builder addStatusEventsBuilder()

Detailed info about why the state is reached.

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

Returns
Type Description
StatusEvent.Builder

addStatusEventsBuilder(int index)

public StatusEvent.Builder addStatusEventsBuilder(int index)

Detailed info about why the state is reached.

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

Parameter
Name Description
index int
Returns
Type Description
StatusEvent.Builder

build()

public TaskStatus build()
Returns
Type Description
TaskStatus

buildPartial()

public TaskStatus buildPartial()
Returns
Type Description
TaskStatus

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceUsage()

public TaskStatus.Builder clearResourceUsage()

The resource usage of the task.

.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;

Returns
Type Description
TaskStatus.Builder

clearState()

public TaskStatus.Builder clearState()

Task state

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

Returns
Type Description
TaskStatus.Builder

This builder for chaining.

clearStatusEvents()

public TaskStatus.Builder clearStatusEvents()

Detailed info about why the state is reached.

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

Returns
Type Description
TaskStatus.Builder

clone()

public TaskStatus.Builder clone()
Returns
Type Description
TaskStatus.Builder
Overrides

getDefaultInstanceForType()

public TaskStatus getDefaultInstanceForType()
Returns
Type Description
TaskStatus

getDescriptorForType()

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

getResourceUsage()

public TaskResourceUsage getResourceUsage()

The resource usage of the task.

.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;

Returns
Type Description
TaskResourceUsage

The resourceUsage.

getResourceUsageBuilder()

public TaskResourceUsage.Builder getResourceUsageBuilder()

The resource usage of the task.

.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;

Returns
Type Description
TaskResourceUsage.Builder

getResourceUsageOrBuilder()

public TaskResourceUsageOrBuilder getResourceUsageOrBuilder()

The resource usage of the task.

.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;

Returns
Type Description
TaskResourceUsageOrBuilder

getState()

public TaskStatus.State getState()

Task state

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

Returns
Type Description
TaskStatus.State

The state.

getStateValue()

public int getStateValue()

Task state

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getStatusEvents(int index)

public StatusEvent getStatusEvents(int index)

Detailed info about why the state is reached.

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)

Detailed info about why the state is reached.

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

Detailed info about why the state is reached.

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

Returns
Type Description
List<Builder>

getStatusEventsCount()

public int getStatusEventsCount()

Detailed info about why the state is reached.

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

Returns
Type Description
int

getStatusEventsList()

public List<StatusEvent> getStatusEventsList()

Detailed info about why the state is reached.

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

Returns
Type Description
List<StatusEvent>

getStatusEventsOrBuilder(int index)

public StatusEventOrBuilder getStatusEventsOrBuilder(int index)

Detailed info about why the state is reached.

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

Parameter
Name Description
index int
Returns
Type Description
StatusEventOrBuilder

getStatusEventsOrBuilderList()

public List<? extends StatusEventOrBuilder> getStatusEventsOrBuilderList()

Detailed info about why the state is reached.

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

Returns
Type Description
List<? extends com.google.cloud.batch.v1alpha.StatusEventOrBuilder>

hasResourceUsage()

public boolean hasResourceUsage()

The resource usage of the task.

.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;

Returns
Type Description
boolean

Whether the resourceUsage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TaskStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResourceUsage(TaskResourceUsage value)

public TaskStatus.Builder mergeResourceUsage(TaskResourceUsage value)

The resource usage of the task.

.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;

Parameter
Name Description
value TaskResourceUsage
Returns
Type Description
TaskStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TaskStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TaskStatus.Builder
Overrides

removeStatusEvents(int index)

public TaskStatus.Builder removeStatusEvents(int index)

Detailed info about why the state is reached.

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

Parameter
Name Description
index int
Returns
Type Description
TaskStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceUsage(TaskResourceUsage value)

public TaskStatus.Builder setResourceUsage(TaskResourceUsage value)

The resource usage of the task.

.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;

Parameter
Name Description
value TaskResourceUsage
Returns
Type Description
TaskStatus.Builder

setResourceUsage(TaskResourceUsage.Builder builderForValue)

public TaskStatus.Builder setResourceUsage(TaskResourceUsage.Builder builderForValue)

The resource usage of the task.

.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;

Parameter
Name Description
builderForValue TaskResourceUsage.Builder
Returns
Type Description
TaskStatus.Builder

setState(TaskStatus.State value)

public TaskStatus.Builder setState(TaskStatus.State value)

Task state

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

Parameter
Name Description
value TaskStatus.State

The state to set.

Returns
Type Description
TaskStatus.Builder

This builder for chaining.

setStateValue(int value)

public TaskStatus.Builder setStateValue(int value)

Task state

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

Parameter
Name Description
value int

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

Returns
Type Description
TaskStatus.Builder

This builder for chaining.

setStatusEvents(int index, StatusEvent value)

public TaskStatus.Builder setStatusEvents(int index, StatusEvent value)

Detailed info about why the state is reached.

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

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

setStatusEvents(int index, StatusEvent.Builder builderForValue)

public TaskStatus.Builder setStatusEvents(int index, StatusEvent.Builder builderForValue)

Detailed info about why the state is reached.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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