public static final class TaskStatus.Builder extends GeneratedMessageV3.Builder<TaskStatus.Builder> implements TaskStatusOrBuilder
Status of a task.
Protobuf type google.cloud.batch.v1alpha.TaskStatus
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TaskStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
addStatusEventsBuilder()
public StatusEvent.Builder addStatusEventsBuilder()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
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
|
build()
public TaskStatus build()
buildPartial()
public TaskStatus buildPartial()
clear()
public TaskStatus.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public TaskStatus.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TaskStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResourceUsage()
public TaskStatus.Builder clearResourceUsage()
The resource usage of the task.
.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;
clearState()
public TaskStatus.Builder clearState()
Task state.
.google.cloud.batch.v1alpha.TaskStatus.State state = 1;
clearStatusEvents()
public TaskStatus.Builder clearStatusEvents()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
clone()
public TaskStatus.Builder clone()
Overrides
getDefaultInstanceForType()
public TaskStatus getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getResourceUsage()
public TaskResourceUsage getResourceUsage()
The resource usage of the task.
.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;
getResourceUsageBuilder()
public TaskResourceUsage.Builder getResourceUsageBuilder()
The resource usage of the task.
.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;
getResourceUsageOrBuilder()
public TaskResourceUsageOrBuilder getResourceUsageOrBuilder()
The resource usage of the task.
.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;
getState()
public TaskStatus.State getState()
Task state.
.google.cloud.batch.v1alpha.TaskStatus.State state = 1;
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
|
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
|
getStatusEventsBuilderList()
public List<StatusEvent.Builder> getStatusEventsBuilderList()
Detailed info about why the state is reached.
repeated .google.cloud.batch.v1alpha.StatusEvent status_events = 2;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TaskStatus other)
public TaskStatus.Builder mergeFrom(TaskStatus other)
public TaskStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TaskStatus.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeResourceUsage(TaskResourceUsage value)
public TaskStatus.Builder mergeResourceUsage(TaskResourceUsage value)
The resource usage of the task.
.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaskStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public TaskStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TaskStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResourceUsage(TaskResourceUsage value)
public TaskStatus.Builder setResourceUsage(TaskResourceUsage value)
The resource usage of the task.
.google.cloud.batch.v1alpha.TaskResourceUsage resource_usage = 3;
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;
setState(TaskStatus.State value)
public TaskStatus.Builder setState(TaskStatus.State value)
Task state.
.google.cloud.batch.v1alpha.TaskStatus.State state = 1;
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.
|
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final TaskStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides