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

<code>.google.cloud.tasks.v2beta3.Attempt last_attempt = 9;</code>

@return The lastAttempt.
java-tasks/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java