Class TaskStatus (2.48.0)

publicfinalclass TaskStatusextendsGeneratedMessageV3implementsTaskStatusOrBuilder

Status of the task.

Protobuf type google.cloud.tasks.v2beta2.TaskStatus

Implements

TaskStatusOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER

publicstaticfinalintATTEMPT_DISPATCH_COUNT_FIELD_NUMBER
Field Value
Type Description
int

ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER

publicstaticfinalintATTEMPT_RESPONSE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

FIRST_ATTEMPT_STATUS_FIELD_NUMBER

publicstaticfinalintFIRST_ATTEMPT_STATUS_FIELD_NUMBER
Field Value
Type Description
int

LAST_ATTEMPT_STATUS_FIELD_NUMBER

publicstaticfinalintLAST_ATTEMPT_STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticTaskStatusgetDefaultInstance()
Returns
Type Description
TaskStatus

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticTaskStatus.BuildernewBuilder()
Returns
Type Description
TaskStatus.Builder

newBuilder(TaskStatus prototype)

publicstaticTaskStatus.BuildernewBuilder(TaskStatusprototype)
Parameter
Name Description
prototype TaskStatus
Returns
Type Description
TaskStatus.Builder

parseDelimitedFrom(InputStream input)

publicstaticTaskStatusparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TaskStatus
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTaskStatusparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaskStatus
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticTaskStatusparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
TaskStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticTaskStatusparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaskStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticTaskStatusparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
TaskStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticTaskStatusparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaskStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticTaskStatusparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TaskStatus
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTaskStatusparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaskStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticTaskStatusparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
TaskStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTaskStatusparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaskStatus
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticTaskStatusparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TaskStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticTaskStatusparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaskStatus
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<TaskStatus>parser()
Returns
Type Description
Parser<TaskStatus>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttemptDispatchCount()

publicintgetAttemptDispatchCount()

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
Type Description
int

The attemptDispatchCount.

getAttemptResponseCount()

publicintgetAttemptResponseCount()

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
Type Description
int

The attemptResponseCount.

getDefaultInstanceForType()

publicTaskStatusgetDefaultInstanceForType()
Returns
Type Description
TaskStatus

getFirstAttemptStatus()

publicAttemptStatusgetFirstAttemptStatus()

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
Type Description
AttemptStatus

The firstAttemptStatus.

getFirstAttemptStatusOrBuilder()

publicAttemptStatusOrBuildergetFirstAttemptStatusOrBuilder()

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
Type Description
AttemptStatusOrBuilder

getLastAttemptStatus()

publicAttemptStatusgetLastAttemptStatus()

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
Type Description
AttemptStatus

The lastAttemptStatus.

getLastAttemptStatusOrBuilder()

publicAttemptStatusOrBuildergetLastAttemptStatusOrBuilder()

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
Type Description
AttemptStatusOrBuilder

getParserForType()

publicParser<TaskStatus>getParserForType()
Returns
Type Description
Parser<TaskStatus>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasFirstAttemptStatus()

publicbooleanhasFirstAttemptStatus()

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
Type Description
boolean

Whether the firstAttemptStatus field is set.

hasLastAttemptStatus()

publicbooleanhasLastAttemptStatus()

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
Type Description
boolean

Whether the lastAttemptStatus field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicTaskStatus.BuildernewBuilderForType()
Returns
Type Description
TaskStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedTaskStatus.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TaskStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicTaskStatus.BuildertoBuilder()
Returns
Type Description
TaskStatus.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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年11月19日 UTC.