Class TaskStatus.Builder (2.83.0)

public static final class TaskStatus.Builder extends GeneratedMessage.Builder<TaskStatus.Builder> implements TaskStatusOrBuilder

Status of the task.

Protobuf type google.cloud.tasks.v2beta2.TaskStatus

Implements

TaskStatusOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public TaskStatus build()
Returns
Type Description
TaskStatus

buildPartial()

public TaskStatus buildPartial()
Returns
Type Description
TaskStatus

clear()

public TaskStatus.Builder clear()
Returns
Type Description
TaskStatus.Builder
Overrides

clearAttemptDispatchCount()

public TaskStatus.Builder clearAttemptDispatchCount()

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()

public TaskStatus.Builder clearAttemptResponseCount()

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.

clearFirstAttemptStatus()

public TaskStatus.Builder clearFirstAttemptStatus()

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()

public TaskStatus.Builder clearLastAttemptStatus()

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

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

The attemptResponseCount.

getDefaultInstanceForType()

public TaskStatus getDefaultInstanceForType()
Returns
Type Description
TaskStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

The firstAttemptStatus.

getFirstAttemptStatusBuilder()

public AttemptStatus.Builder getFirstAttemptStatusBuilder()

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()

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

The lastAttemptStatus.

getLastAttemptStatusBuilder()

public AttemptStatus.Builder getLastAttemptStatusBuilder()

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()

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

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

Whether the lastAttemptStatus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFirstAttemptStatus(AttemptStatus value)

public TaskStatus.Builder mergeFirstAttemptStatus(AttemptStatus value)

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)

public TaskStatus.Builder mergeFrom(TaskStatus other)
Parameter
Name Description
other TaskStatus
Returns
Type Description
TaskStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TaskStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TaskStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TaskStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TaskStatus.Builder
Overrides

mergeLastAttemptStatus(AttemptStatus value)

public TaskStatus.Builder mergeLastAttemptStatus(AttemptStatus value)

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

setAttemptDispatchCount(int value)

public TaskStatus.Builder setAttemptDispatchCount(int value)

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)

public TaskStatus.Builder setAttemptResponseCount(int value)

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.

setFirstAttemptStatus(AttemptStatus value)

public TaskStatus.Builder setFirstAttemptStatus(AttemptStatus value)

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)

public TaskStatus.Builder setFirstAttemptStatus(AttemptStatus.Builder builderForValue)

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)

public TaskStatus.Builder setLastAttemptStatus(AttemptStatus value)

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)

public TaskStatus.Builder setLastAttemptStatus(AttemptStatus.Builder builderForValue)

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