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 enum
google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan| Enum Constant and 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 |
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CapacityCommitment.CommitmentPlan |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
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;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;@Deprecated public static final CapacityCommitment.CommitmentPlan FLEX_FLAT_RATE
Same as FLEX, should only be used if flat-rate commitments are still available.
FLEX_FLAT_RATE = 7 [deprecated = true];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;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;@Deprecated public static final CapacityCommitment.CommitmentPlan MONTHLY_FLAT_RATE
Same as MONTHLY, should only be used if flat-rate commitments are still available.
MONTHLY_FLAT_RATE = 8 [deprecated = true];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;@Deprecated public static final CapacityCommitment.CommitmentPlan ANNUAL_FLAT_RATE
Same as ANNUAL, should only be used if flat-rate commitments are still available.
ANNUAL_FLAT_RATE = 9 [deprecated = true];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;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;public static final CapacityCommitment.CommitmentPlan UNRECOGNIZED
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;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;@Deprecated public static final int FLEX_FLAT_RATE_VALUE
Same as FLEX, should only be used if flat-rate commitments are still available.
FLEX_FLAT_RATE = 7 [deprecated = true];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;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;@Deprecated public static final int MONTHLY_FLAT_RATE_VALUE
Same as MONTHLY, should only be used if flat-rate commitments are still available.
MONTHLY_FLAT_RATE = 8 [deprecated = true];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;@Deprecated public static final int ANNUAL_FLAT_RATE_VALUE
Same as ANNUAL, should only be used if flat-rate commitments are still available.
ANNUAL_FLAT_RATE = 9 [deprecated = true];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;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;public static CapacityCommitment.CommitmentPlan[] values()
for (CapacityCommitment.CommitmentPlan c : CapacityCommitment.CommitmentPlan.values()) System.out.println(c);
public static CapacityCommitment.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 CapacityCommitment.CommitmentPlan valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CapacityCommitment.CommitmentPlan forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CapacityCommitment.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 CapacityCommitment.CommitmentPlan valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.