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

    if (!getMachineType().equals(other.getMachineType())) return false;
    if (acceleratorType_ != other.acceleratorType_) return false;
    if (getAcceleratorCount() != other.getAcceleratorCount()) return false;
    if (!getTpuTopology().equals(other.getTpuTopology())) return false;
    if (hasReservationAffinity() != other.hasReservationAffinity()) return false;
    if (hasReservationAffinity()) {
      if (!getReservationAffinity().equals(other.getReservationAffinity())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. Immutable. Configuration controlling how this resource pool
consumes reservation.
</pre>

<code>
.google.cloud.vertexai.v1.ReservationAffinity reservation_affinity = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
</code>
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/MachineSpec.java