public enum CommitmentPlan extends Enum<CommitmentPlan> implements com.google.protobuf.ProtocolMessageEnum
The plan of commitments for VM resource-based committed use discount (CUD).Protobuf enum
google.cloud.migrationcenter.v1.CommitmentPlan| Enum Constant and Description |
|---|
COMMITMENT_PLAN_NONE
No commitment plan.
|
COMMITMENT_PLAN_ONE_YEAR
1 year commitment.
|
COMMITMENT_PLAN_THREE_YEARS
3 years commitment.
|
COMMITMENT_PLAN_UNSPECIFIED
Unspecified commitment plan.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMITMENT_PLAN_NONE_VALUE
No commitment plan.
|
static int |
COMMITMENT_PLAN_ONE_YEAR_VALUE
1 year commitment.
|
static int |
COMMITMENT_PLAN_THREE_YEARS_VALUE
3 years commitment.
|
static int |
COMMITMENT_PLAN_UNSPECIFIED_VALUE
Unspecified commitment plan.
|
| Modifier and Type | Method and Description |
|---|---|
static CommitmentPlan |
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<CommitmentPlan> |
internalGetValueMap() |
static CommitmentPlan |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CommitmentPlan |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CommitmentPlan |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommitmentPlan[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommitmentPlan COMMITMENT_PLAN_UNSPECIFIED
Unspecified commitment plan.
COMMITMENT_PLAN_UNSPECIFIED = 0;public static final CommitmentPlan COMMITMENT_PLAN_NONE
No commitment plan.
COMMITMENT_PLAN_NONE = 1;public static final CommitmentPlan COMMITMENT_PLAN_ONE_YEAR
1 year commitment.
COMMITMENT_PLAN_ONE_YEAR = 2;public static final CommitmentPlan COMMITMENT_PLAN_THREE_YEARS
3 years commitment.
COMMITMENT_PLAN_THREE_YEARS = 3;public static final CommitmentPlan UNRECOGNIZED
public static final int COMMITMENT_PLAN_UNSPECIFIED_VALUE
Unspecified commitment plan.
COMMITMENT_PLAN_UNSPECIFIED = 0;public static final int COMMITMENT_PLAN_NONE_VALUE
No commitment plan.
COMMITMENT_PLAN_NONE = 1;public static final int COMMITMENT_PLAN_ONE_YEAR_VALUE
1 year commitment.
COMMITMENT_PLAN_ONE_YEAR = 2;public static final int COMMITMENT_PLAN_THREE_YEARS_VALUE
3 years commitment.
COMMITMENT_PLAN_THREE_YEARS = 3;public static CommitmentPlan[] values()
for (CommitmentPlan c : CommitmentPlan.values()) System.out.println(c);
public static CommitmentPlan 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 CommitmentPlan valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CommitmentPlan forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CommitmentPlan> 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 CommitmentPlan valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.