Interface TaskStatusOrBuilder (2.42.0)

public interface TaskStatusOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAttemptDispatchCount()

public abstract 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 abstract 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.

getFirstAttemptStatus()

public abstract 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.

getFirstAttemptStatusOrBuilder()

public abstract 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 abstract 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.

getLastAttemptStatusOrBuilder()

public abstract 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 abstract 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 abstract 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.