public static final class TaskStatus.Builder extends GeneratedMessageV3.Builder<TaskStatus.Builder> implements TaskStatusOrBuilderStatus of the task.
Protobuf type google.cloud.tasks.v2beta2.TaskStatus
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TaskStatus.BuilderImplements
TaskStatusOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TaskStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TaskStatus.Builder |
|
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 |
|
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. |
clearField(Descriptors.FieldDescriptor field)
public TaskStatus.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
TaskStatus.Builder |
|
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 |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public TaskStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
TaskStatus.Builder |
|
clone()
public TaskStatus.Builder clone()| 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 |
|
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TaskStatus.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TaskStatus.Builder |
|
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 |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaskStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| 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 |
intThe 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 |
intThe attemptResponseCount to set. |
| Returns | |
|---|---|
| Type | Description |
TaskStatus.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TaskStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TaskStatus.Builder |
|
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 |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TaskStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TaskStatus.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final TaskStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
TaskStatus.Builder |
|