Interface TaskStatusOrBuilder (2.23.0)

publicinterface TaskStatusOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getAttemptDispatchCount()

publicabstractintgetAttemptDispatchCount()

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()

publicabstractintgetAttemptResponseCount()

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()

publicabstractAttemptStatusgetFirstAttemptStatus()

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()

publicabstractAttemptStatusOrBuildergetFirstAttemptStatusOrBuilder()

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()

publicabstractAttemptStatusgetLastAttemptStatus()

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()

publicabstractAttemptStatusOrBuildergetLastAttemptStatusOrBuilder()

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()

publicabstractbooleanhasFirstAttemptStatus()

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()

publicabstractbooleanhasLastAttemptStatus()

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.