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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineType_);
    }
    if (acceleratorType_
        != com.google.cloud.vertexai.api.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, acceleratorType_);
    }
    if (acceleratorCount_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, acceleratorCount_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tpuTopology_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tpuTopology_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReservationAffinity());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<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