public static enum ReservationAffinity.ConsumeReservationType extends Enum<ReservationAffinity.ConsumeReservationType> implements com.google.protobuf.ProtocolMessageEnum
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.Protobuf enum
google.cloud.compute.v1.ReservationAffinity.ConsumeReservationType| Enum Constant and Description |
|---|
ANY_RESERVATION
Consume any allocation available.
|
NO_RESERVATION
Do not consume from any allocated capacity.
|
SPECIFIC_RESERVATION
Must consume from a specific reservation.
|
UNDEFINED_CONSUME_RESERVATION_TYPE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
UNSPECIFIED
UNSPECIFIED = 526786327; |
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY_RESERVATION_VALUE
Consume any allocation available.
|
static int |
NO_RESERVATION_VALUE
Do not consume from any allocated capacity.
|
static int |
SPECIFIC_RESERVATION_VALUE
Must consume from a specific reservation.
|
static int |
UNDEFINED_CONSUME_RESERVATION_TYPE_VALUE
A value indicating that the enum field is not set.
|
static int |
UNSPECIFIED_VALUE
UNSPECIFIED = 526786327; |
| Modifier and Type | Method and Description |
|---|---|
static ReservationAffinity.ConsumeReservationType |
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.ConsumeReservationType> |
internalGetValueMap() |
static ReservationAffinity.ConsumeReservationType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ReservationAffinity.ConsumeReservationType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ReservationAffinity.ConsumeReservationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReservationAffinity.ConsumeReservationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReservationAffinity.ConsumeReservationType UNDEFINED_CONSUME_RESERVATION_TYPE
A value indicating that the enum field is not set.
UNDEFINED_CONSUME_RESERVATION_TYPE = 0;public static final ReservationAffinity.ConsumeReservationType ANY_RESERVATION
Consume any allocation available.
ANY_RESERVATION = 200008121;public static final ReservationAffinity.ConsumeReservationType NO_RESERVATION
Do not consume from any allocated capacity.
NO_RESERVATION = 169322030;public static final ReservationAffinity.ConsumeReservationType SPECIFIC_RESERVATION
Must consume from a specific reservation. Must specify key value fields for specifying the reservations.
SPECIFIC_RESERVATION = 229889055;public static final ReservationAffinity.ConsumeReservationType UNSPECIFIED
UNSPECIFIED = 526786327;public static final ReservationAffinity.ConsumeReservationType UNRECOGNIZED
public static final int UNDEFINED_CONSUME_RESERVATION_TYPE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_CONSUME_RESERVATION_TYPE = 0;public static final int ANY_RESERVATION_VALUE
Consume any allocation available.
ANY_RESERVATION = 200008121;public static final int NO_RESERVATION_VALUE
Do not consume from any allocated capacity.
NO_RESERVATION = 169322030;public static final int SPECIFIC_RESERVATION_VALUE
Must consume from a specific reservation. Must specify key value fields for specifying the reservations.
SPECIFIC_RESERVATION = 229889055;public static final int UNSPECIFIED_VALUE
UNSPECIFIED = 526786327;public static ReservationAffinity.ConsumeReservationType[] values()
for (ReservationAffinity.ConsumeReservationType c : ReservationAffinity.ConsumeReservationType.values()) System.out.println(c);
public static ReservationAffinity.ConsumeReservationType 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.ConsumeReservationType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ReservationAffinity.ConsumeReservationType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ReservationAffinity.ConsumeReservationType> 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.ConsumeReservationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.