Class Attempt (2.4.0)

publicfinalclass AttemptextendsGeneratedMessageV3implementsAttemptOrBuilder

The status of a task attempt.

Protobuf type google.cloud.tasks.v2.Attempt

Implements

AttemptOrBuilder

Inherited Members

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

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

newBuilder()

publicstaticAttempt.BuildernewBuilder()
Returns
Type Description

newBuilder(Attempt prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticAttemptparseFrom(CodedInputStreaminput)
Parameter
Name Description
Returns
Type Description
Exceptions
Type Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticAttemptparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exceptions
Type Description

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

publicstaticParser<Attempt>parser()
Returns
Type Description

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicAttemptgetDefaultInstanceForType()
Returns
Type Description

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

getParserForType()

publicParser<Attempt>getParserForType()
Returns
Type Description
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

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

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

publicfinalUnknownFieldSetgetUnknownFields()
Returns
Type Description
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
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

newBuilderForType()

publicAttempt.BuildernewBuilderForType()
Returns
Type Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicAttempt.BuildertoBuilder()
Returns
Type Description

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
Overrides Exceptions
Type Description

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.