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

    if (!getName().equals(other.getName())) return false;
    if (hasScheduleTime() != other.hasScheduleTime()) return false;
    if (hasScheduleTime()) {
      if (!getScheduleTime().equals(other.getScheduleTime())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Required. The task's current schedule time, available in the
[schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
[LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
[RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response.
This restriction is to ensure that your worker currently holds the lease.
</pre>

<code>.google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED];
</code>
java-tasks/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java