public Builder mergeFrom(com.google.cloud.vertexai.api.ReservationAffinity other) {
      if (other == com.google.cloud.vertexai.api.ReservationAffinity.getDefaultInstance())
        return this;
      if (other.reservationAffinityType_ != 0) {
        setReservationAffinityTypeValue(other.getReservationAffinityTypeValue());
      }
      if (!other.getKey().isEmpty()) {
        key_ = other.key_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.values_.isEmpty()) {
        if (values_.isEmpty()) {
          values_ = other.values_;
          bitField0_ |= 0x00000004;
        } else {
          ensureValuesIsMutable();
          values_.addAll(other.values_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }
<pre>
A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a
DeployedModel) to draw its Compute Engine resources from a Shared
Reservation, or exclusively from on-demand capacity.
</pre>

Protobuf type {@code google.cloud.vertexai.v1.ReservationAffinity}
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ReservationAffinity.java