Class LeaseTasksResponse.Builder (2.54.0)

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
Type Description
Descriptor

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
Type Description
LeaseTasksResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LeaseTasksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

addTasks(Task value)

public LeaseTasksResponse.Builder addTasks(Task value)

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Parameter
Name Description
value Task
Returns
Type Description
LeaseTasksResponse.Builder

addTasks(Task.Builder builderForValue)

public LeaseTasksResponse.Builder addTasks(Task.Builder builderForValue)

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Parameter
Name Description
builderForValue Task.Builder
Returns
Type Description
LeaseTasksResponse.Builder

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
Name Description
index int
value Task
Returns
Type Description
LeaseTasksResponse.Builder

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
Name Description
index int
builderForValue Task.Builder
Returns
Type Description
LeaseTasksResponse.Builder

addTasksBuilder()

public Task.Builder addTasksBuilder()

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Returns
Type Description
Task.Builder

addTasksBuilder(int index)

public Task.Builder addTasksBuilder(int index)

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
Task.Builder

build()

public LeaseTasksResponse build()
Returns
Type Description
LeaseTasksResponse

buildPartial()

public LeaseTasksResponse buildPartial()
Returns
Type Description
LeaseTasksResponse

clear()

public LeaseTasksResponse.Builder clear()
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LeaseTasksResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LeaseTasksResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

clearTasks()

public LeaseTasksResponse.Builder clearTasks()

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Returns
Type Description
LeaseTasksResponse.Builder

clone()

public LeaseTasksResponse.Builder clone()
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

getDefaultInstanceForType()

public LeaseTasksResponse getDefaultInstanceForType()
Returns
Type Description
LeaseTasksResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTasks(int index)

public Task getTasks(int index)

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
Task

getTasksBuilder(int index)

public Task.Builder getTasksBuilder(int index)

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
Task.Builder

getTasksBuilderList()

public List<Task.Builder> getTasksBuilderList()

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Returns
Type Description
List<Builder>

getTasksCount()

public int getTasksCount()

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Returns
Type Description
int

getTasksList()

public List<Task> getTasksList()

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Returns
Type Description
List<Task>

getTasksOrBuilder(int index)

public TaskOrBuilder getTasksOrBuilder(int index)

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
TaskOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LeaseTasksResponse other)

public LeaseTasksResponse.Builder mergeFrom(LeaseTasksResponse other)
Parameter
Name Description
other LeaseTasksResponse
Returns
Type Description
LeaseTasksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LeaseTasksResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LeaseTasksResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LeaseTasksResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LeaseTasksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

removeTasks(int index)

public LeaseTasksResponse.Builder removeTasks(int index)

The leased tasks.

repeated .google.cloud.tasks.v2beta2.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
LeaseTasksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LeaseTasksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

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

public LeaseTasksResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LeaseTasksResponse.Builder
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
Name Description
index int
value Task
Returns
Type Description
LeaseTasksResponse.Builder

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
Name Description
index int
builderForValue Task.Builder
Returns
Type Description
LeaseTasksResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LeaseTasksResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LeaseTasksResponse.Builder
Overrides