Send feedback
Class LeaseTasksResponse.Builder (2.15.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.15.0 keyboard_arrow_down
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
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 ()
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 >
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LeaseTasksResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
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
addTasks(Task.Builder builderForValue)
public LeaseTasksResponse . Builder addTasks ( Task . Builder builderForValue )
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
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
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;
addTasksBuilder()
public Task . Builder addTasksBuilder ()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
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
build()
public LeaseTasksResponse build ()
buildPartial()
public LeaseTasksResponse buildPartial ()
clear()
public LeaseTasksResponse . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public LeaseTasksResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LeaseTasksResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearTasks()
public LeaseTasksResponse . Builder clearTasks ()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
clone()
public LeaseTasksResponse . Builder clone ()
Overrides
getDefaultInstanceForType()
public LeaseTasksResponse getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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
getTasksBuilderList()
public List<Task . Builder > getTasksBuilderList ()
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
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;
getTasksOrBuilder(int index)
public TaskOrBuilder getTasksOrBuilder ( int index )
The leased tasks.
repeated .google.cloud.tasks.v2beta2.Task tasks = 1;
Parameter Name Description index
int
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(LeaseTasksResponse other)
public LeaseTasksResponse . Builder mergeFrom ( LeaseTasksResponse other )
public LeaseTasksResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public LeaseTasksResponse . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LeaseTasksResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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
setField(Descriptors.FieldDescriptor field, Object value)
public LeaseTasksResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LeaseTasksResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final LeaseTasksResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]