Class Attempt (2.41.0)

publicfinalclass AttemptextendsGeneratedMessageV3implementsAttemptOrBuilder

The status of a task attempt.

Protobuf type google.cloud.tasks.v2.Attempt

Implements

AttemptOrBuilder

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

DISPATCH_TIME_FIELD_NUMBER

publicstaticfinalintDISPATCH_TIME_FIELD_NUMBER
Field Value
Type Description
int

RESPONSE_STATUS_FIELD_NUMBER

publicstaticfinalintRESPONSE_STATUS_FIELD_NUMBER
Field Value
Type Description
int

RESPONSE_TIME_FIELD_NUMBER

publicstaticfinalintRESPONSE_TIME_FIELD_NUMBER
Field Value
Type Description
int

SCHEDULE_TIME_FIELD_NUMBER

publicstaticfinalintSCHEDULE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticAttemptgetDefaultInstance()
Returns
Type Description
Attempt

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticAttempt.BuildernewBuilder()
Returns
Type Description
Attempt.Builder

newBuilder(Attempt prototype)

publicstaticAttempt.BuildernewBuilder(Attemptprototype)
Parameter
Name Description
prototype Attempt
Returns
Type Description
Attempt.Builder

parseDelimitedFrom(InputStream input)

publicstaticAttemptparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticAttemptparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticAttemptparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticAttemptparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticAttemptparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Attempt
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticAttemptparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Attempt
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicAttemptgetDefaultInstanceForType()
Returns
Type Description
Attempt

getDispatchTime()

publicTimestampgetDispatchTime()

Output only. The time that this attempt was dispatched.

dispatch_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp dispatch_time = 2;

Returns
Type Description
Timestamp

The dispatchTime.

getDispatchTimeOrBuilder()

publicTimestampOrBuildergetDispatchTimeOrBuilder()

Output only. The time that this attempt was dispatched.

dispatch_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp dispatch_time = 2;

Returns
Type Description
TimestampOrBuilder

getParserForType()

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

getResponseStatus()

publicStatusgetResponseStatus()

Output only. The response from the worker for this attempt.

If response_time is unset, then the task has not been attempted or is currently running and the response_status field is meaningless.

.google.rpc.Status response_status = 4;

Returns
Type Description
com.google.rpc.Status

The responseStatus.

getResponseStatusOrBuilder()

publicStatusOrBuildergetResponseStatusOrBuilder()

Output only. The response from the worker for this attempt.

If response_time is unset, then the task has not been attempted or is currently running and the response_status field is meaningless.

.google.rpc.Status response_status = 4;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getResponseTime()

publicTimestampgetResponseTime()

Output only. The time that this attempt response was received.

response_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp response_time = 3;

Returns
Type Description
Timestamp

The responseTime.

getResponseTimeOrBuilder()

publicTimestampOrBuildergetResponseTimeOrBuilder()

Output only. The time that this attempt response was received.

response_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp response_time = 3;

Returns
Type Description
TimestampOrBuilder

getScheduleTime()

publicTimestampgetScheduleTime()

Output only. The time that this attempt was scheduled.

schedule_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp schedule_time = 1;

Returns
Type Description
Timestamp

The scheduleTime.

getScheduleTimeOrBuilder()

publicTimestampOrBuildergetScheduleTimeOrBuilder()

Output only. The time that this attempt was scheduled.

schedule_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp schedule_time = 1;

Returns
Type Description
TimestampOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasDispatchTime()

publicbooleanhasDispatchTime()

Output only. The time that this attempt was dispatched.

dispatch_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp dispatch_time = 2;

Returns
Type Description
boolean

Whether the dispatchTime field is set.

hasResponseStatus()

publicbooleanhasResponseStatus()

Output only. The response from the worker for this attempt.

If response_time is unset, then the task has not been attempted or is currently running and the response_status field is meaningless.

.google.rpc.Status response_status = 4;

Returns
Type Description
boolean

Whether the responseStatus field is set.

hasResponseTime()

publicbooleanhasResponseTime()

Output only. The time that this attempt response was received.

response_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp response_time = 3;

Returns
Type Description
boolean

Whether the responseTime field is set.

hasScheduleTime()

publicbooleanhasScheduleTime()

Output only. The time that this attempt was scheduled.

schedule_time will be truncated to the nearest microsecond.

.google.protobuf.Timestamp schedule_time = 1;

Returns
Type Description
boolean

Whether the scheduleTime 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()

publicAttempt.BuildernewBuilderForType()
Returns
Type Description
Attempt.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedAttempt.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Attempt.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicAttempt.BuildertoBuilder()
Returns
Type Description
Attempt.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.