public static final class LeaseTasksResponse.Builder extends GeneratedMessageV3.Builder<LeaseTasksResponse.Builder> implements LeaseTasksResponseOrBuilder
Response message for leasing tasks using LeaseTasks.
Protobuf type google.cloud.tasks.v2beta2.LeaseTasksResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllTasks(Iterable<? extends Task> values)
public LeaseTasksResponse.Builder addAllTasks(Iterable<? extends Task> values)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.tasks.v2beta2.Task>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LeaseTasksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addTasks(Task value)
public LeaseTasksResponse.Builder addTasks(Task value)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter
Returns
addTasks(Task.Builder builderForValue)
public LeaseTasksResponse.Builder addTasks(Task.Builder builderForValue)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter
Returns
addTasks(int index, Task value)
public LeaseTasksResponse.Builder addTasks(int index, Task value)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameters
Returns
addTasks(int index, Task.Builder builderForValue)
public LeaseTasksResponse.Builder addTasks(int index, Task.Builder builderForValue)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameters
Returns
addTasksBuilder()
public Task.Builder addTasksBuilder()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Returns
addTasksBuilder(int index)
public Task.Builder addTasksBuilder(int index)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter
Returns
build()
public LeaseTasksResponse build()
Returns
buildPartial()
public LeaseTasksResponse buildPartial()
Returns
clear()
public LeaseTasksResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LeaseTasksResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LeaseTasksResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTasks()
public LeaseTasksResponse.Builder clearTasks()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Returns
clone()
public LeaseTasksResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LeaseTasksResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getTasks(int index)
public Task getTasks(int index)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter
Returns
getTasksBuilder(int index)
public Task.Builder getTasksBuilder(int index)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter
Returns
getTasksBuilderList()
public List<Task.Builder> getTasksBuilderList()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Returns
getTasksCount()
public int getTasksCount()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Returns
getTasksList()
public List<Task> getTasksList()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Returns
getTasksOrBuilder(int index)
public TaskOrBuilder getTasksOrBuilder(int index)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter
Returns
getTasksOrBuilderList()
public List<? extends TaskOrBuilder> getTasksOrBuilderList()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Returns
Type | Description |
List<? extends com.google.cloud.tasks.v2beta2.TaskOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LeaseTasksResponse other)
public LeaseTasksResponse.Builder mergeFrom(LeaseTasksResponse other)
Parameter
Returns
public LeaseTasksResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LeaseTasksResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LeaseTasksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeTasks(int index)
public LeaseTasksResponse.Builder removeTasks(int index)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public LeaseTasksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LeaseTasksResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setTasks(int index, Task value)
public LeaseTasksResponse.Builder setTasks(int index, Task value)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameters
Returns
setTasks(int index, Task.Builder builderForValue)
public LeaseTasksResponse.Builder setTasks(int index, Task.Builder builderForValue)
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final LeaseTasksResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides