public Builder setLastAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) {
      if (lastAttemptStatusBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        lastAttemptStatus_ = value;
      } else {
        lastAttemptStatusBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
<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