Class LeaseTasksResponse (2.36.0)

public final class LeaseTasksResponse extends GeneratedMessageV3 implements LeaseTasksResponseOrBuilder

Response message for leasing tasks using LeaseTasks.

Protobuf type google.cloud.tasks.v2beta2.LeaseTasksResponse

Static Fields

TASKS_FIELD_NUMBER

public static final int TASKS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LeaseTasksResponse getDefaultInstance()
Returns
TypeDescription
LeaseTasksResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LeaseTasksResponse.Builder newBuilder()
Returns
TypeDescription
LeaseTasksResponse.Builder

newBuilder(LeaseTasksResponse prototype)

public static LeaseTasksResponse.Builder newBuilder(LeaseTasksResponse prototype)
Parameter
NameDescription
prototypeLeaseTasksResponse
Returns
TypeDescription
LeaseTasksResponse.Builder

parseDelimitedFrom(InputStream input)

public static LeaseTasksResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LeaseTasksResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LeaseTasksResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LeaseTasksResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LeaseTasksResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LeaseTasksResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LeaseTasksResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LeaseTasksResponse> parser()
Returns
TypeDescription
Parser<LeaseTasksResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LeaseTasksResponse getDefaultInstanceForType()
Returns
TypeDescription
LeaseTasksResponse

getParserForType()

public Parser<LeaseTasksResponse> getParserForType()
Returns
TypeDescription
Parser<LeaseTasksResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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

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>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LeaseTasksResponse.Builder newBuilderForType()
Returns
TypeDescription
LeaseTasksResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LeaseTasksResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LeaseTasksResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LeaseTasksResponse.Builder toBuilder()
Returns
TypeDescription
LeaseTasksResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException