Enum CapacityCommitment.CommitmentPlan
- java.lang.Object
-
- java.lang.Enum<CapacityCommitment.CommitmentPlan>
-
- com.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<CapacityCommitment.CommitmentPlan>
- Enclosing class:
- CapacityCommitment
public static enum CapacityCommitment.CommitmentPlan extends Enum<CapacityCommitment.CommitmentPlan> implements com.google.protobuf.ProtocolMessageEnum
Commitment plan defines the current committed period. Capacity commitment cannot be deleted during it's committed period.
Protobuf enumgoogle.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNUAL
Annual commitments have a committed period of 365 days after becoming ACTIVE.ANNUAL_FLAT_RATE
Deprecated.COMMITMENT_PLAN_UNSPECIFIED
Invalid plan value.FLEX
Flex commitments have committed period of 1 minute after becoming ACTIVE.FLEX_FLAT_RATE
Deprecated.MONTHLY
Monthly commitments have a committed period of 30 days after becoming ACTIVE.MONTHLY_FLAT_RATE
Deprecated.NONE
Should only be used for `renewal_plan` and is only meaningful if edition is specified to values other than EDITION_UNSPECIFIED.THREE_YEAR
3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE.TRIAL
Trial commitments have a committed period of 182 days after becoming ACTIVE.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
ANNUAL_FLAT_RATE_VALUE
Deprecated.static int
ANNUAL_VALUE
Annual commitments have a committed period of 365 days after becoming ACTIVE.static int
COMMITMENT_PLAN_UNSPECIFIED_VALUE
Invalid plan value.static int
FLEX_FLAT_RATE_VALUE
Deprecated.static int
FLEX_VALUE
Flex commitments have committed period of 1 minute after becoming ACTIVE.static int
MONTHLY_FLAT_RATE_VALUE
Deprecated.static int
MONTHLY_VALUE
Monthly commitments have a committed period of 30 days after becoming ACTIVE.static int
NONE_VALUE
Should only be used for `renewal_plan` and is only meaningful if edition is specified to values other than EDITION_UNSPECIFIED.static int
THREE_YEAR_VALUE
3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE.static int
TRIAL_VALUE
Trial commitments have a committed period of 182 days after becoming ACTIVE.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CapacityCommitment.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<CapacityCommitment.CommitmentPlan>
internalGetValueMap()
static CapacityCommitment.CommitmentPlan
valueOf(int value)
Deprecated.static CapacityCommitment.CommitmentPlan
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static CapacityCommitment.CommitmentPlan
valueOf(String name)
Returns the enum constant of this type with the specified name.static CapacityCommitment.CommitmentPlan[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMMITMENT_PLAN_UNSPECIFIED
public static final CapacityCommitment.CommitmentPlan COMMITMENT_PLAN_UNSPECIFIED
Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.
COMMITMENT_PLAN_UNSPECIFIED = 0;
-
FLEX
public static final CapacityCommitment.CommitmentPlan FLEX
Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.
FLEX = 3;
-
FLEX_FLAT_RATE
@Deprecated public static final CapacityCommitment.CommitmentPlan FLEX_FLAT_RATE
Deprecated.Same as FLEX, should only be used if flat-rate commitments are still available.
FLEX_FLAT_RATE = 7 [deprecated = true];
-
TRIAL
public static final CapacityCommitment.CommitmentPlan TRIAL
Trial commitments have a committed period of 182 days after becoming ACTIVE. After that, they are converted to a new commitment based on the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so that it can be deleted right after committed period ends.
TRIAL = 5;
-
MONTHLY
public static final CapacityCommitment.CommitmentPlan MONTHLY
Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.
MONTHLY = 2;
-
MONTHLY_FLAT_RATE
@Deprecated public static final CapacityCommitment.CommitmentPlan MONTHLY_FLAT_RATE
Deprecated.Same as MONTHLY, should only be used if flat-rate commitments are still available.
MONTHLY_FLAT_RATE = 8 [deprecated = true];
-
ANNUAL
public static final CapacityCommitment.CommitmentPlan ANNUAL
Annual commitments have a committed period of 365 days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.
ANNUAL = 4;
-
ANNUAL_FLAT_RATE
@Deprecated public static final CapacityCommitment.CommitmentPlan ANNUAL_FLAT_RATE
Deprecated.Same as ANNUAL, should only be used if flat-rate commitments are still available.
ANNUAL_FLAT_RATE = 9 [deprecated = true];
-
THREE_YEAR
public static final CapacityCommitment.CommitmentPlan THREE_YEAR
3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.
THREE_YEAR = 10;
-
NONE
public static final CapacityCommitment.CommitmentPlan NONE
Should only be used for `renewal_plan` and is only meaningful if edition is specified to values other than EDITION_UNSPECIFIED. Otherwise CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. If the renewal_plan is NONE, capacity commitment will be removed at the end of its commitment period.
NONE = 6;
-
UNRECOGNIZED
public static final CapacityCommitment.CommitmentPlan UNRECOGNIZED
-
-
Field Detail
-
COMMITMENT_PLAN_UNSPECIFIED_VALUE
public static final int COMMITMENT_PLAN_UNSPECIFIED_VALUE
Invalid plan value. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.
COMMITMENT_PLAN_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
FLEX_VALUE
public static final int FLEX_VALUE
Flex commitments have committed period of 1 minute after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.
FLEX = 3;
- See Also:
- Constant Field Values
-
FLEX_FLAT_RATE_VALUE
@Deprecated public static final int FLEX_FLAT_RATE_VALUE
Deprecated.Same as FLEX, should only be used if flat-rate commitments are still available.
FLEX_FLAT_RATE = 7 [deprecated = true];
- See Also:
- Constant Field Values
-
TRIAL_VALUE
public static final int TRIAL_VALUE
Trial commitments have a committed period of 182 days after becoming ACTIVE. After that, they are converted to a new commitment based on the `renewal_plan`. Default `renewal_plan` for Trial commitment is Flex so that it can be deleted right after committed period ends.
TRIAL = 5;
- See Also:
- Constant Field Values
-
MONTHLY_VALUE
public static final int MONTHLY_VALUE
Monthly commitments have a committed period of 30 days after becoming ACTIVE. After that, they are not in a committed period anymore and can be removed any time.
MONTHLY = 2;
- See Also:
- Constant Field Values
-
MONTHLY_FLAT_RATE_VALUE
@Deprecated public static final int MONTHLY_FLAT_RATE_VALUE
Deprecated.Same as MONTHLY, should only be used if flat-rate commitments are still available.
MONTHLY_FLAT_RATE = 8 [deprecated = true];
- See Also:
- Constant Field Values
-
ANNUAL_VALUE
public static final int ANNUAL_VALUE
Annual commitments have a committed period of 365 days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.
ANNUAL = 4;
- See Also:
- Constant Field Values
-
ANNUAL_FLAT_RATE_VALUE
@Deprecated public static final int ANNUAL_FLAT_RATE_VALUE
Deprecated.Same as ANNUAL, should only be used if flat-rate commitments are still available.
ANNUAL_FLAT_RATE = 9 [deprecated = true];
- See Also:
- Constant Field Values
-
THREE_YEAR_VALUE
public static final int THREE_YEAR_VALUE
3-year commitments have a committed period of 1095(3 * 365) days after becoming ACTIVE. After that they are converted to a new commitment based on the renewal_plan.
THREE_YEAR = 10;
- See Also:
- Constant Field Values
-
NONE_VALUE
public static final int NONE_VALUE
Should only be used for `renewal_plan` and is only meaningful if edition is specified to values other than EDITION_UNSPECIFIED. Otherwise CreateCapacityCommitmentRequest or UpdateCapacityCommitmentRequest will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`. If the renewal_plan is NONE, capacity commitment will be removed at the end of its commitment period.
NONE = 6;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CapacityCommitment.CommitmentPlan[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CapacityCommitment.CommitmentPlan c : CapacityCommitment.CommitmentPlan.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CapacityCommitment.CommitmentPlan valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static CapacityCommitment.CommitmentPlan valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
public static CapacityCommitment.CommitmentPlan forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<CapacityCommitment.CommitmentPlan> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static CapacityCommitment.CommitmentPlan valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-