public final class TaskStatus extends GeneratedMessageV3 implements TaskStatusOrBuilder
Status of the task.
Protobuf type google.cloud.tasks.v2beta2.TaskStatus
Static Fields
ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER
public static final int ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER
Field Value
ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER
public static final int ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER
Field Value
FIRST_ATTEMPT_STATUS_FIELD_NUMBER
public static final int FIRST_ATTEMPT_STATUS_FIELD_NUMBER
Field Value
LAST_ATTEMPT_STATUS_FIELD_NUMBER
public static final int LAST_ATTEMPT_STATUS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TaskStatus getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TaskStatus.Builder newBuilder()
Returns
newBuilder(TaskStatus prototype)
public static TaskStatus.Builder newBuilder(TaskStatus prototype)
Parameter
Returns
public static TaskStatus parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TaskStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TaskStatus parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TaskStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TaskStatus parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TaskStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TaskStatus parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TaskStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TaskStatus parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TaskStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TaskStatus parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TaskStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TaskStatus> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
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
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
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
getParserForType()
public Parser<TaskStatus> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TaskStatus.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TaskStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TaskStatus.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions