Class TaskStatus (2.35.0)

public final class TaskStatus extends GeneratedMessageV3 implements TaskStatusOrBuilder

Status of the task.

Protobuf type google.cloud.tasks.v2beta2.TaskStatus

Implements

TaskStatusOrBuilder

Static Fields

ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER

public static final int ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER

public static final int ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

FIRST_ATTEMPT_STATUS_FIELD_NUMBER

public static final int FIRST_ATTEMPT_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_ATTEMPT_STATUS_FIELD_NUMBER

public static final int LAST_ATTEMPT_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TaskStatus getDefaultInstance()
Returns
TypeDescription
TaskStatus

getDescriptor()

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

newBuilder()

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

newBuilder(TaskStatus prototype)

public static TaskStatus.Builder newBuilder(TaskStatus prototype)
Parameter
NameDescription
prototypeTaskStatus
Returns
TypeDescription
TaskStatus.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAttemptDispatchCount()

public int getAttemptDispatchCount()

Output only. The number of attempts dispatched.

This count includes attempts which have been dispatched but haven't received a response.

int32 attempt_dispatch_count = 1;

Returns
TypeDescription
int

The attemptDispatchCount.

getAttemptResponseCount()

public int getAttemptResponseCount()

Output only. The number of attempts which have received a response.

This field is not calculated for pull tasks.

int32 attempt_response_count = 2;

Returns
TypeDescription
int

The attemptResponseCount.

getDefaultInstanceForType()

public TaskStatus getDefaultInstanceForType()
Returns
TypeDescription
TaskStatus

getFirstAttemptStatus()

public AttemptStatus getFirstAttemptStatus()

Output only. The status of the task's first attempt.

Only dispatch_time will be set. The other AttemptStatus information is not retained by Cloud Tasks.

This field is not calculated for pull tasks.

.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;

Returns
TypeDescription
AttemptStatus

The firstAttemptStatus.

getFirstAttemptStatusOrBuilder()

public AttemptStatusOrBuilder getFirstAttemptStatusOrBuilder()

Output only. The status of the task's first attempt.

Only dispatch_time will be set. The other AttemptStatus information is not retained by Cloud Tasks.

This field is not calculated for pull tasks.

.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;

Returns
TypeDescription
AttemptStatusOrBuilder

getLastAttemptStatus()

public AttemptStatus getLastAttemptStatus()

Output only. The status of the task's last attempt.

This field is not calculated for pull tasks.

.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;

Returns
TypeDescription
AttemptStatus

The lastAttemptStatus.

getLastAttemptStatusOrBuilder()

public AttemptStatusOrBuilder getLastAttemptStatusOrBuilder()

Output only. The status of the task's last attempt.

This field is not calculated for pull tasks.

.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;

Returns
TypeDescription
AttemptStatusOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasFirstAttemptStatus()

public boolean hasFirstAttemptStatus()

Output only. The status of the task's first attempt.

Only dispatch_time will be set. The other AttemptStatus information is not retained by Cloud Tasks.

This field is not calculated for pull tasks.

.google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3;

Returns
TypeDescription
boolean

Whether the firstAttemptStatus field is set.

hasLastAttemptStatus()

public boolean hasLastAttemptStatus()

Output only. The status of the task's last attempt.

This field is not calculated for pull tasks.

.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;

Returns
TypeDescription
boolean

Whether the lastAttemptStatus field is set.

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 TaskStatus.Builder newBuilderForType()
Returns
TypeDescription
TaskStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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