public boolean hasLastAttemptStatus() {
      return ((bitField0_ & 0x00000008) != 0);
    }
<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>

@return Whether the lastAttemptStatus field is set.
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java