@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.tasks.v2beta2.TaskStatus)) {
      return super.equals(obj);
    }
    com.google.cloud.tasks.v2beta2.TaskStatus other =
        (com.google.cloud.tasks.v2beta2.TaskStatus) obj;

    if (getAttemptDispatchCount() != other.getAttemptDispatchCount()) return false;
    if (getAttemptResponseCount() != other.getAttemptResponseCount()) return false;
    if (hasFirstAttemptStatus() != other.hasFirstAttemptStatus()) return false;
    if (hasFirstAttemptStatus()) {
      if (!getFirstAttemptStatus().equals(other.getFirstAttemptStatus())) return false;
    }
    if (hasLastAttemptStatus() != other.hasLastAttemptStatus()) return false;
    if (hasLastAttemptStatus()) {
      if (!getLastAttemptStatus().equals(other.getLastAttemptStatus())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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