public com.google.cloud.tasks.v2.AttemptOrBuilder getLastAttemptOrBuilder() {
      if (lastAttemptBuilder_ != null) {
        return lastAttemptBuilder_.getMessageOrBuilder();
      } else {
        return lastAttempt_ == null
            ? com.google.cloud.tasks.v2.Attempt.getDefaultInstance()
            : lastAttempt_;
      }
    }
<pre>
Output only. The status of the task's last attempt.
</pre>

<code>.google.cloud.tasks.v2.Attempt last_attempt = 10;</code>
java-tasks/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java