@java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (startTimingConstraintsCase_ == 1) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                1, (com.google.protobuf.Duration) startTimingConstraints_);
      }
      if (startTimingConstraintsCase_ == 2) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                2, (com.google.protobuf.Timestamp) startTimingConstraints_);
      }
      if (startTimingConstraintsCase_ == 3) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                3, (com.google.protobuf.Duration) startTimingConstraints_);
      }
      if (startTimingConstraintsCase_ == 4) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                4, (com.google.protobuf.Timestamp) startTimingConstraints_);
      }
      if (startTimingConstraintsCase_ == 5) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                5, (com.google.type.Interval) startTimingConstraints_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<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