Class LeaseTasksResponse.Builder (2.35.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.tasks.v2beta2.Task>
Returns
TypeDescription
LeaseTasksResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LeaseTasksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

addTasks(Task value)

public LeaseTasksResponse.Builder addTasks(Task value)

The leased tasks.

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

Parameter
NameDescription
valueTask
Returns
TypeDescription
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
NameDescription
builderForValueTask.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTask
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTask.Builder
Returns
TypeDescription
LeaseTasksResponse.Builder

addTasksBuilder()

public Task.Builder addTasksBuilder()

The leased tasks.

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

Returns
TypeDescription
Task.Builder

addTasksBuilder(int index)

public Task.Builder addTasksBuilder(int index)

The leased tasks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Task.Builder

build()

public LeaseTasksResponse build()
Returns
TypeDescription
LeaseTasksResponse

buildPartial()

public LeaseTasksResponse buildPartial()
Returns
TypeDescription
LeaseTasksResponse

clear()

public LeaseTasksResponse.Builder clear()
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LeaseTasksResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LeaseTasksResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

clearTasks()

public LeaseTasksResponse.Builder clearTasks()

The leased tasks.

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

Returns
TypeDescription
LeaseTasksResponse.Builder

clone()

public LeaseTasksResponse.Builder clone()
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

getDefaultInstanceForType()

public LeaseTasksResponse getDefaultInstanceForType()
Returns
TypeDescription
LeaseTasksResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTasks(int index)

public Task getTasks(int index)

The leased tasks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Task

getTasksBuilder(int index)

public Task.Builder getTasksBuilder(int index)

The leased tasks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Task.Builder

getTasksBuilderList()

public List<Task.Builder> getTasksBuilderList()

The leased tasks.

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

Returns
TypeDescription
List<Builder>

getTasksCount()

public int getTasksCount()

The leased tasks.

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

Returns
TypeDescription
int

getTasksList()

public List<Task> getTasksList()

The leased tasks.

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

Returns
TypeDescription
List<Task>

getTasksOrBuilder(int index)

public TaskOrBuilder getTasksOrBuilder(int index)

The leased tasks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TaskOrBuilder

getTasksOrBuilderList()

public List<? extends TaskOrBuilder> getTasksOrBuilderList()

The leased tasks.

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

Returns
TypeDescription
List<? extends com.google.cloud.tasks.v2beta2.TaskOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LeaseTasksResponse other)

public LeaseTasksResponse.Builder mergeFrom(LeaseTasksResponse other)
Parameter
NameDescription
otherLeaseTasksResponse
Returns
TypeDescription
LeaseTasksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LeaseTasksResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LeaseTasksResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LeaseTasksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

removeTasks(int index)

public LeaseTasksResponse.Builder removeTasks(int index)

The leased tasks.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LeaseTasksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LeaseTasksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

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

public LeaseTasksResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTask
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTask.Builder
Returns
TypeDescription
LeaseTasksResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LeaseTasksResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides