Class TaskStatus.Builder (2.22.0)

public static final class TaskStatus.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TaskStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TaskStatus.Builder
Overrides

build()

public TaskStatus build()
Returns
TypeDescription
TaskStatus

buildPartial()

public TaskStatus buildPartial()
Returns
TypeDescription
TaskStatus

clear()

public TaskStatus.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TaskStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TaskStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TaskStatus.Builder
Overrides

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TaskStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TaskStatus.Builder
Overrides

clone()

public TaskStatus.Builder clone()
Returns
TypeDescription
TaskStatus.Builder
Overrides

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
TypeDescription
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
TypeDescription
int

The attemptResponseCount.

getDefaultInstanceForType()

public TaskStatus getDefaultInstanceForType()
Returns
TypeDescription
TaskStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the lastAttemptStatus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAttemptStatus
Returns
TypeDescription
TaskStatus.Builder

mergeFrom(TaskStatus other)

public TaskStatus.Builder mergeFrom(TaskStatus other)
Parameter
NameDescription
otherTaskStatus
Returns
TypeDescription
TaskStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TaskStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TaskStatus.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TaskStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAttemptStatus
Returns
TypeDescription
TaskStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TaskStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TaskStatus.Builder
Overrides

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
NameDescription
valueint

The attemptDispatchCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The attemptResponseCount to set.

Returns
TypeDescription
TaskStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TaskStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TaskStatus.Builder
Overrides

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
NameDescription
valueAttemptStatus
Returns
TypeDescription
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
NameDescription
builderForValueAttemptStatus.Builder
Returns
TypeDescription
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
NameDescription
valueAttemptStatus
Returns
TypeDescription
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
NameDescription
builderForValueAttemptStatus.Builder
Returns
TypeDescription
TaskStatus.Builder

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

public TaskStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TaskStatus.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TaskStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TaskStatus.Builder
Overrides