@java.lang.Override
  public com.google.cloud.vertexai.api.ReservationAffinity.Type getReservationAffinityType() {
    com.google.cloud.vertexai.api.ReservationAffinity.Type result =
        com.google.cloud.vertexai.api.ReservationAffinity.Type.forNumber(reservationAffinityType_);
    return result == null
        ? com.google.cloud.vertexai.api.ReservationAffinity.Type.UNRECOGNIZED
        : result;
  }
<pre>
Required. Specifies the reservation affinity type.
</pre>

<code>
.google.cloud.vertexai.v1.ReservationAffinity.Type reservation_affinity_type = 1 [(.google.api.field_behavior) = REQUIRED];
</code>

@return The reservationAffinityType.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ReservationAffinity.java