@java.lang.Override
  public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getLastAttemptStatusOrBuilder() {
    return lastAttemptStatus_ == null
        ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance()
        : lastAttemptStatus_;
  }
<pre>
Output only. The status of the task's last attempt.

This field is not calculated for [pull
tasks][google.cloud.tasks.v2beta2.PullMessage].
</pre>

<code>.google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4;</code>
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java