Class TaskStatus.Builder (0.1.0)

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

Status of a task

Protobuf type google.cloud.batch.v1.TaskStatus

Implements

TaskStatusOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.StatusEvent status_events = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.batch.v1.StatusEvent>
Returns
TypeDescription
TaskStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStatusEvents(StatusEvent value)

public TaskStatus.Builder addStatusEvents(StatusEvent value)

Detailed info about why the state is reached.

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

Parameter
NameDescription
valueStatusEvent
Returns
TypeDescription
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.v1.StatusEvent status_events = 2;

Parameter
NameDescription
builderForValueStatusEvent.Builder
Returns
TypeDescription
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.v1.StatusEvent status_events = 2;

Parameters
NameDescription
indexint
valueStatusEvent
Returns
TypeDescription
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.v1.StatusEvent status_events = 2;

Parameters
NameDescription
indexint
builderForValueStatusEvent.Builder
Returns
TypeDescription
TaskStatus.Builder

addStatusEventsBuilder()

public StatusEvent.Builder addStatusEventsBuilder()

Detailed info about why the state is reached.

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

Returns
TypeDescription
StatusEvent.Builder

addStatusEventsBuilder(int index)

public StatusEvent.Builder addStatusEventsBuilder(int index)

Detailed info about why the state is reached.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusEvent.Builder

build()

public TaskStatus build()
Returns
TypeDescription
TaskStatus

buildPartial()

public TaskStatus buildPartial()
Returns
TypeDescription
TaskStatus

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TaskStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TaskStatus.Builder
Overrides

clearState()

public TaskStatus.Builder clearState()

Task state

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

Returns
TypeDescription
TaskStatus.Builder

This builder for chaining.

clearStatusEvents()

public TaskStatus.Builder clearStatusEvents()

Detailed info about why the state is reached.

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

Returns
TypeDescription
TaskStatus.Builder

clone()

public TaskStatus.Builder clone()
Returns
TypeDescription
TaskStatus.Builder
Overrides

getDefaultInstanceForType()

public TaskStatus getDefaultInstanceForType()
Returns
TypeDescription
TaskStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getState()

public TaskStatus.State getState()

Task state

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

Returns
TypeDescription
TaskStatus.State

The state.

getStateValue()

public int getStateValue()

Task state

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

Returns
TypeDescription
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.v1.StatusEvent status_events = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusEvent

getStatusEventsBuilder(int index)

public StatusEvent.Builder getStatusEventsBuilder(int index)

Detailed info about why the state is reached.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusEvent.Builder

getStatusEventsBuilderList()

public List<StatusEvent.Builder> getStatusEventsBuilderList()

Detailed info about why the state is reached.

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

Returns
TypeDescription
List<Builder>

getStatusEventsCount()

public int getStatusEventsCount()

Detailed info about why the state is reached.

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

Returns
TypeDescription
int

getStatusEventsList()

public List<StatusEvent> getStatusEventsList()

Detailed info about why the state is reached.

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

Returns
TypeDescription
List<StatusEvent>

getStatusEventsOrBuilder(int index)

public StatusEventOrBuilder getStatusEventsOrBuilder(int index)

Detailed info about why the state is reached.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusEventOrBuilder

getStatusEventsOrBuilderList()

public List<? extends StatusEventOrBuilder> getStatusEventsOrBuilderList()

Detailed info about why the state is reached.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TaskStatus other)

public TaskStatus.Builder mergeFrom(TaskStatus other)
Parameter
NameDescription
otherTaskStatus
Returns
TypeDescription
TaskStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TaskStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TaskStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TaskStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TaskStatus.Builder
Overrides

removeStatusEvents(int index)

public TaskStatus.Builder removeStatusEvents(int index)

Detailed info about why the state is reached.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TaskStatus.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public TaskStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TaskStatus.Builder
Overrides

setState(TaskStatus.State value)

public TaskStatus.Builder setState(TaskStatus.State value)

Task state

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

Parameter
NameDescription
valueTaskStatus.State

The state to set.

Returns
TypeDescription
TaskStatus.Builder

This builder for chaining.

setStateValue(int value)

public TaskStatus.Builder setStateValue(int value)

Task state

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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.v1.StatusEvent status_events = 2;

Parameters
NameDescription
indexint
valueStatusEvent
Returns
TypeDescription
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.v1.StatusEvent status_events = 2;

Parameters
NameDescription
indexint
builderForValueStatusEvent.Builder
Returns
TypeDescription
TaskStatus.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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