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

      if (!getStartTimingConstraintsCase().equals(other.getStartTimingConstraintsCase()))
        return false;
      switch (startTimingConstraintsCase_) {
        case 1:
          if (!getValidUntilDuration().equals(other.getValidUntilDuration())) return false;
          break;
        case 2:
          if (!getValidUntilTime().equals(other.getValidUntilTime())) return false;
          break;
        case 3:
          if (!getValidAfterDuration().equals(other.getValidAfterDuration())) return false;
          break;
        case 4:
          if (!getValidAfterTime().equals(other.getValidAfterTime())) return false;
          break;
        case 5:
          if (!getValidInterval().equals(other.getValidInterval())) return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Optional. An absolute time interval within which resources may be
created.
</pre>

<code>.google.type.Interval valid_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/QueuedResource.java