public static final class TaskStatus.Builder extends GeneratedMessageV3.Builder<TaskStatus.Builder> implements TaskStatusOrBuilder
Status of a task
Protobuf type google.cloud.batch.v1.TaskStatus
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Name |
Description |
values |
Iterable<? extends com.google.cloud.batch.v1.StatusEvent>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TaskStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
addStatusEventsBuilder()
public StatusEvent.Builder addStatusEventsBuilder()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
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
Name |
Description |
index |
int
|
Returns
build()
public TaskStatus build()
Returns
buildPartial()
public TaskStatus buildPartial()
Returns
clear()
public TaskStatus.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TaskStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TaskStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearState()
public TaskStatus.Builder clearState()
Task state
.google.cloud.batch.v1.TaskStatus.State state = 1;
Returns
clearStatusEvents()
public TaskStatus.Builder clearStatusEvents()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
clone()
public TaskStatus.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TaskStatus getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getState()
public TaskStatus.State getState()
Task state
.google.cloud.batch.v1.TaskStatus.State state = 1;
Returns
getStateValue()
public int getStateValue()
Task state
.google.cloud.batch.v1.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.v1.StatusEvent status_events = 2;
Parameter
Name |
Description |
index |
int
|
Returns
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
Name |
Description |
index |
int
|
Returns
getStatusEventsBuilderList()
public List<StatusEvent.Builder> getStatusEventsBuilderList()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
getStatusEventsCount()
public int getStatusEventsCount()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
getStatusEventsList()
public List<StatusEvent> getStatusEventsList()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
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
Name |
Description |
index |
int
|
Returns
getStatusEventsOrBuilderList()
public List<? extends StatusEventOrBuilder> getStatusEventsOrBuilderList()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1.StatusEvent status_events = 2;
Returns
Type |
Description |
List<? extends com.google.cloud.batch.v1.StatusEventOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TaskStatus other)
public TaskStatus.Builder mergeFrom(TaskStatus other)
Parameter
Returns
public TaskStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TaskStatus.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaskStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Name |
Description |
index |
int
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TaskStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TaskStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setState(TaskStatus.State value)
public TaskStatus.Builder setState(TaskStatus.State value)
Task state
.google.cloud.batch.v1.TaskStatus.State state = 1;
Parameter
Returns
setStateValue(int value)
public TaskStatus.Builder setStateValue(int value)
Task state
.google.cloud.batch.v1.TaskStatus.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 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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final TaskStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides