Class LeaseTasksResponse (2.51.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
Type Description
int

Static Methods

getDefaultInstance()

public static LeaseTasksResponse getDefaultInstance()
Returns
Type Description
LeaseTasksResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LeaseTasksResponse.Builder newBuilder()
Returns
Type Description
LeaseTasksResponse.Builder

newBuilder(LeaseTasksResponse prototype)

public static LeaseTasksResponse.Builder newBuilder(LeaseTasksResponse prototype)
Parameter
Name Description
prototype LeaseTasksResponse
Returns
Type Description
LeaseTasksResponse.Builder

parseDelimitedFrom(InputStream input)

public static LeaseTasksResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LeaseTasksResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LeaseTasksResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LeaseTasksResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LeaseTasksResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LeaseTasksResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LeaseTasksResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LeaseTasksResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LeaseTasksResponse> parser()
Returns
Type Description
Parser<LeaseTasksResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LeaseTasksResponse getDefaultInstanceForType()
Returns
Type Description
LeaseTasksResponse

getParserForType()

public Parser<LeaseTasksResponse> getParserForType()
Returns
Type Description
Parser<LeaseTasksResponse>
Overrides

getSerializedSize()

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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LeaseTasksResponse.Builder newBuilderForType()
Returns
Type Description
LeaseTasksResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LeaseTasksResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LeaseTasksResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LeaseTasksResponse.Builder toBuilder()
Returns
Type Description
LeaseTasksResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException