Class TaskStatus.Builder (2.53.0)

publicstaticfinalclass TaskStatus.BuilderextendsGeneratedMessageV3.Builder<TaskStatus.Builder>implementsTaskStatusOrBuilder

Status of the task.

Protobuf type google.cloud.tasks.v2beta2.TaskStatus

Implements

TaskStatusOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicTaskStatus.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TaskStatus.Builder
Overrides

build()

publicTaskStatusbuild()
Returns
Type Description
TaskStatus

buildPartial()

publicTaskStatusbuildPartial()
Returns
Type Description
TaskStatus

clear()

publicTaskStatus.Builderclear()
Returns
Type Description
TaskStatus.Builder
Overrides

clearAttemptDispatchCount()

publicTaskStatus.BuilderclearAttemptDispatchCount()

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
TaskStatus.Builder

This builder for chaining.

clearAttemptResponseCount()

publicTaskStatus.BuilderclearAttemptResponseCount()

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
TaskStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicTaskStatus.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TaskStatus.Builder
Overrides

clearFirstAttemptStatus()

publicTaskStatus.BuilderclearFirstAttemptStatus()

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
TaskStatus.Builder

clearLastAttemptStatus()

publicTaskStatus.BuilderclearLastAttemptStatus()

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
TaskStatus.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicTaskStatus.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TaskStatus.Builder
Overrides

clone()

publicTaskStatus.Builderclone()
Returns
Type Description
TaskStatus.Builder
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

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getFirstAttemptStatusBuilder()

publicAttemptStatus.BuildergetFirstAttemptStatusBuilder()

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.Builder

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.

getLastAttemptStatusBuilder()

publicAttemptStatus.BuildergetLastAttemptStatusBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFirstAttemptStatus(AttemptStatus value)

publicTaskStatus.BuildermergeFirstAttemptStatus(AttemptStatusvalue)

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;

Parameter
Name Description
value AttemptStatus
Returns
Type Description
TaskStatus.Builder

mergeFrom(TaskStatus other)

publicTaskStatus.BuildermergeFrom(TaskStatusother)
Parameter
Name Description
other TaskStatus
Returns
Type Description
TaskStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicTaskStatus.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaskStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicTaskStatus.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
TaskStatus.Builder
Overrides

mergeLastAttemptStatus(AttemptStatus value)

publicTaskStatus.BuildermergeLastAttemptStatus(AttemptStatusvalue)

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;

Parameter
Name Description
value AttemptStatus
Returns
Type Description
TaskStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalTaskStatus.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TaskStatus.Builder
Overrides

setAttemptDispatchCount(int value)

publicTaskStatus.BuildersetAttemptDispatchCount(intvalue)

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;

Parameter
Name Description
value int

The attemptDispatchCount to set.

Returns
Type Description
TaskStatus.Builder

This builder for chaining.

setAttemptResponseCount(int value)

publicTaskStatus.BuildersetAttemptResponseCount(intvalue)

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

This field is not calculated for pull tasks.

int32 attempt_response_count = 2;

Parameter
Name Description
value int

The attemptResponseCount to set.

Returns
Type Description
TaskStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicTaskStatus.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TaskStatus.Builder
Overrides

setFirstAttemptStatus(AttemptStatus value)

publicTaskStatus.BuildersetFirstAttemptStatus(AttemptStatusvalue)

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;

Parameter
Name Description
value AttemptStatus
Returns
Type Description
TaskStatus.Builder

setFirstAttemptStatus(AttemptStatus.Builder builderForValue)

publicTaskStatus.BuildersetFirstAttemptStatus(AttemptStatus.BuilderbuilderForValue)

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;

Parameter
Name Description
builderForValue AttemptStatus.Builder
Returns
Type Description
TaskStatus.Builder

setLastAttemptStatus(AttemptStatus value)

publicTaskStatus.BuildersetLastAttemptStatus(AttemptStatusvalue)

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;

Parameter
Name Description
value AttemptStatus
Returns
Type Description
TaskStatus.Builder

setLastAttemptStatus(AttemptStatus.Builder builderForValue)

publicTaskStatus.BuildersetLastAttemptStatus(AttemptStatus.BuilderbuilderForValue)

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;

Parameter
Name Description
builderForValue AttemptStatus.Builder
Returns
Type Description
TaskStatus.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicTaskStatus.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TaskStatus.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalTaskStatus.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TaskStatus.Builder
Overrides

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.