public static enum ReservationAffinity.Type extends Enum<ReservationAffinity.Type> implements com.google.protobuf.ProtocolMessageEnum
Identifies a type of reservation affinity.Protobuf enum
google.cloud.aiplatform.v1beta1.ReservationAffinity.Type| Enum Constant and Description |
|---|
ANY_RESERVATION
Consume any reservation available, falling back to on-demand.
|
NO_RESERVATION
Do not consume from any reserved capacity, only use on-demand.
|
SPECIFIC_RESERVATION
Consume from a specific reservation.
|
TYPE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_RESERVATION_VALUE
Consume any reservation available, falling back to on-demand.
|
static int |
NO_RESERVATION_VALUE
Do not consume from any reserved capacity, only use on-demand.
|
static int |
SPECIFIC_RESERVATION_VALUE
Consume from a specific reservation.
|
static int |
TYPE_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static ReservationAffinity.Type |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ReservationAffinity.Type> |
internalGetValueMap() |
static ReservationAffinity.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ReservationAffinity.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ReservationAffinity.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReservationAffinity.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReservationAffinity.Type TYPE_UNSPECIFIED
Default value. This should not be used.
TYPE_UNSPECIFIED = 0;public static final ReservationAffinity.Type NO_RESERVATION
Do not consume from any reserved capacity, only use on-demand.
NO_RESERVATION = 1;public static final ReservationAffinity.Type ANY_RESERVATION
Consume any reservation available, falling back to on-demand.
ANY_RESERVATION = 2;public static final ReservationAffinity.Type SPECIFIC_RESERVATION
Consume from a specific reservation. When chosen, the reservation must be identified via the `key` and `values` fields.
SPECIFIC_RESERVATION = 3;public static final ReservationAffinity.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
Default value. This should not be used.
TYPE_UNSPECIFIED = 0;public static final int NO_RESERVATION_VALUE
Do not consume from any reserved capacity, only use on-demand.
NO_RESERVATION = 1;public static final int ANY_RESERVATION_VALUE
Consume any reservation available, falling back to on-demand.
ANY_RESERVATION = 2;public static final int SPECIFIC_RESERVATION_VALUE
Consume from a specific reservation. When chosen, the reservation must be identified via the `key` and `values` fields.
SPECIFIC_RESERVATION = 3;public static ReservationAffinity.Type[] values()
for (ReservationAffinity.Type c : ReservationAffinity.Type.values()) System.out.println(c);
public static ReservationAffinity.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ReservationAffinity.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ReservationAffinity.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ReservationAffinity.Type> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ReservationAffinity.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.