public static enum CapacityCommitment.State extends Enum<CapacityCommitment.State> implements com.google.protobuf.ProtocolMessageEnum
Capacity commitment can either become ACTIVE right away or transition from PENDING to ACTIVE or FAILED.Protobuf enum
google.cloud.bigquery.reservation.v1.CapacityCommitment.State| Enum Constant and Description |
|---|
ACTIVE
Once slots are provisioned, capacity commitment becomes active.
|
FAILED
Capacity commitment is failed to be activated by the backend.
|
PENDING
Capacity commitment is pending provisioning.
|
STATE_UNSPECIFIED
Invalid state value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_VALUE
Once slots are provisioned, capacity commitment becomes active.
|
static int |
FAILED_VALUE
Capacity commitment is failed to be activated by the backend.
|
static int |
PENDING_VALUE
Capacity commitment is pending provisioning.
|
static int |
STATE_UNSPECIFIED_VALUE
Invalid state value.
|
| Modifier and Type | Method and Description |
|---|---|
static CapacityCommitment.State |
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.State> |
internalGetValueMap() |
static CapacityCommitment.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CapacityCommitment.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CapacityCommitment.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CapacityCommitment.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CapacityCommitment.State STATE_UNSPECIFIED
Invalid state value.
STATE_UNSPECIFIED = 0;public static final CapacityCommitment.State PENDING
Capacity commitment is pending provisioning. Pending capacity commitment does not contribute to the project's slot_capacity.
PENDING = 1;public static final CapacityCommitment.State ACTIVE
Once slots are provisioned, capacity commitment becomes active. slot_count is added to the project's slot_capacity.
ACTIVE = 2;public static final CapacityCommitment.State FAILED
Capacity commitment is failed to be activated by the backend.
FAILED = 3;public static final CapacityCommitment.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Invalid state value.
STATE_UNSPECIFIED = 0;public static final int PENDING_VALUE
Capacity commitment is pending provisioning. Pending capacity commitment does not contribute to the project's slot_capacity.
PENDING = 1;public static final int ACTIVE_VALUE
Once slots are provisioned, capacity commitment becomes active. slot_count is added to the project's slot_capacity.
ACTIVE = 2;public static final int FAILED_VALUE
Capacity commitment is failed to be activated by the backend.
FAILED = 3;public static CapacityCommitment.State[] values()
for (CapacityCommitment.State c : CapacityCommitment.State.values()) System.out.println(c);
public static CapacityCommitment.State 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.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CapacityCommitment.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CapacityCommitment.State> 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.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.