public static enum Commitment.Plan extends Enum<Commitment.Plan> implements com.google.protobuf.ProtocolMessageEnum
The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).Protobuf enum
google.cloud.compute.v1.Commitment.Plan| Enum Constant and Description |
|---|
INVALID
INVALID = 530283991; |
THIRTY_SIX_MONTH
THIRTY_SIX_MONTH = 266295942; |
TWELVE_MONTH
TWELVE_MONTH = 173083962; |
UNDEFINED_PLAN
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID_VALUE
INVALID = 530283991; |
static int |
THIRTY_SIX_MONTH_VALUE
THIRTY_SIX_MONTH = 266295942; |
static int |
TWELVE_MONTH_VALUE
TWELVE_MONTH = 173083962; |
static int |
UNDEFINED_PLAN_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static Commitment.Plan |
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<Commitment.Plan> |
internalGetValueMap() |
static Commitment.Plan |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Commitment.Plan |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Commitment.Plan |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Commitment.Plan[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Commitment.Plan UNDEFINED_PLAN
A value indicating that the enum field is not set.
UNDEFINED_PLAN = 0;public static final Commitment.Plan INVALID
INVALID = 530283991;public static final Commitment.Plan THIRTY_SIX_MONTH
THIRTY_SIX_MONTH = 266295942;public static final Commitment.Plan TWELVE_MONTH
TWELVE_MONTH = 173083962;public static final Commitment.Plan UNRECOGNIZED
public static final int UNDEFINED_PLAN_VALUE
A value indicating that the enum field is not set.
UNDEFINED_PLAN = 0;public static final int INVALID_VALUE
INVALID = 530283991;public static final int THIRTY_SIX_MONTH_VALUE
THIRTY_SIX_MONTH = 266295942;public static final int TWELVE_MONTH_VALUE
TWELVE_MONTH = 173083962;public static Commitment.Plan[] values()
for (Commitment.Plan c : Commitment.Plan.values()) System.out.println(c);
public static Commitment.Plan 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 Commitment.Plan valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Commitment.Plan forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Commitment.Plan> 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 Commitment.Plan valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.