public static final class TaskStatus.Builder extends GeneratedMessageV3.Builder<TaskStatus.Builder> implements TaskStatusOrBuilder
Status of the task.
Protobuf type google.cloud.tasks.v2beta2.TaskStatus
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TaskStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TaskStatus build()
Returns
buildPartial()
public TaskStatus buildPartial()
Returns
clear()
public TaskStatus.Builder clear()
Returns
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
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
clearField(Descriptors.FieldDescriptor field)
public TaskStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
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
clearOneof(Descriptors.OneofDescriptor oneof)
public TaskStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public TaskStatus.Builder clone()
Returns
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
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(TaskStatus other)
public TaskStatus.Builder mergeFrom(TaskStatus other)
Parameter
Returns
public TaskStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TaskStatus.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaskStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Name | Description |
value | int
The attemptDispatchCount to set.
|
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public TaskStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TaskStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TaskStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides