public static final class Task.Builder extends GeneratedMessageV3.Builder<Task.Builder> implements TaskOrBuilder
A Cloud Batch task.
Protobuf type google.cloud.batch.v1.Task
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Task.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Task buildPartial()
Returns
clear()
public Task.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Task.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public Task.Builder clearName()
Task name.
The name is generated from the parent TaskGroup name and 'id' field.
For example:
"projects/123456/locations/us-west1/jobs/job01/taskGroups/group01/tasks/task01".
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Task.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearStatus()
public Task.Builder clearStatus()
Task Status.
.google.cloud.batch.v1.TaskStatus status = 2;
Returns
clone()
public Task.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Task getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
Task name.
The name is generated from the parent TaskGroup name and 'id' field.
For example:
"projects/123456/locations/us-west1/jobs/job01/taskGroups/group01/tasks/task01".
string name = 1;
Returns
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Task name.
The name is generated from the parent TaskGroup name and 'id' field.
For example:
"projects/123456/locations/us-west1/jobs/job01/taskGroups/group01/tasks/task01".
string name = 1;
Returns
getStatus()
public TaskStatus getStatus()
Task Status.
.google.cloud.batch.v1.TaskStatus status = 2;
Returns
getStatusBuilder()
public TaskStatus.Builder getStatusBuilder()
Task Status.
.google.cloud.batch.v1.TaskStatus status = 2;
Returns
getStatusOrBuilder()
public TaskStatusOrBuilder getStatusOrBuilder()
Task Status.
.google.cloud.batch.v1.TaskStatus status = 2;
Returns
hasStatus()
public boolean hasStatus()
Task Status.
.google.cloud.batch.v1.TaskStatus status = 2;
Returns
Type |
Description |
boolean |
Whether the status field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Task other)
public Task.Builder mergeFrom(Task other)
Parameter
Name |
Description |
other |
Task
|
Returns
public Task.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Task.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeStatus(TaskStatus value)
public Task.Builder mergeStatus(TaskStatus value)
Task Status.
.google.cloud.batch.v1.TaskStatus status = 2;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Task.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Task.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public Task.Builder setName(String value)
Task name.
The name is generated from the parent TaskGroup name and 'id' field.
For example:
"projects/123456/locations/us-west1/jobs/job01/taskGroups/group01/tasks/task01".
string name = 1;
Parameter
Name |
Description |
value |
String
The name to set.
|
Returns
setNameBytes(ByteString value)
public Task.Builder setNameBytes(ByteString value)
Task name.
The name is generated from the parent TaskGroup name and 'id' field.
For example:
"projects/123456/locations/us-west1/jobs/job01/taskGroups/group01/tasks/task01".
string name = 1;
Parameter
Name |
Description |
value |
ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Task.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setStatus(TaskStatus value)
public Task.Builder setStatus(TaskStatus value)
Task Status.
.google.cloud.batch.v1.TaskStatus status = 2;
Parameter
Returns
setStatus(TaskStatus.Builder builderForValue)
public Task.Builder setStatus(TaskStatus.Builder builderForValue)
Task Status.
.google.cloud.batch.v1.TaskStatus status = 2;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Task.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides