public enum QuotaSafetyCheck extends Enum<QuotaSafetyCheck> implements com.google.protobuf.ProtocolMessageEnum
Enumerations of quota safety checks.Protobuf enum
google.api.cloudquotas.v1beta.QuotaSafetyCheck| Enum Constant and Description |
|---|
QUOTA_DECREASE_BELOW_USAGE
Validates that a quota mutation would not cause the consumer's effective
limit to be lower than the consumer's quota usage.
|
QUOTA_DECREASE_PERCENTAGE_TOO_HIGH
Validates that a quota mutation would not cause the consumer's effective
limit to decrease by more than 10 percent.
|
QUOTA_SAFETY_CHECK_UNSPECIFIED
Unspecified quota safety check.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
QUOTA_DECREASE_BELOW_USAGE_VALUE
Validates that a quota mutation would not cause the consumer's effective
limit to be lower than the consumer's quota usage.
|
static int |
QUOTA_DECREASE_PERCENTAGE_TOO_HIGH_VALUE
Validates that a quota mutation would not cause the consumer's effective
limit to decrease by more than 10 percent.
|
static int |
QUOTA_SAFETY_CHECK_UNSPECIFIED_VALUE
Unspecified quota safety check.
|
| Modifier and Type | Method and Description |
|---|---|
static QuotaSafetyCheck |
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<QuotaSafetyCheck> |
internalGetValueMap() |
static QuotaSafetyCheck |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static QuotaSafetyCheck |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static QuotaSafetyCheck |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuotaSafetyCheck[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuotaSafetyCheck QUOTA_SAFETY_CHECK_UNSPECIFIED
Unspecified quota safety check.
QUOTA_SAFETY_CHECK_UNSPECIFIED = 0;public static final QuotaSafetyCheck QUOTA_DECREASE_BELOW_USAGE
Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.
QUOTA_DECREASE_BELOW_USAGE = 1;public static final QuotaSafetyCheck QUOTA_DECREASE_PERCENTAGE_TOO_HIGH
Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent.
QUOTA_DECREASE_PERCENTAGE_TOO_HIGH = 2;public static final QuotaSafetyCheck UNRECOGNIZED
public static final int QUOTA_SAFETY_CHECK_UNSPECIFIED_VALUE
Unspecified quota safety check.
QUOTA_SAFETY_CHECK_UNSPECIFIED = 0;public static final int QUOTA_DECREASE_BELOW_USAGE_VALUE
Validates that a quota mutation would not cause the consumer's effective limit to be lower than the consumer's quota usage.
QUOTA_DECREASE_BELOW_USAGE = 1;public static final int QUOTA_DECREASE_PERCENTAGE_TOO_HIGH_VALUE
Validates that a quota mutation would not cause the consumer's effective limit to decrease by more than 10 percent.
QUOTA_DECREASE_PERCENTAGE_TOO_HIGH = 2;public static QuotaSafetyCheck[] values()
for (QuotaSafetyCheck c : QuotaSafetyCheck.values()) System.out.println(c);
public static QuotaSafetyCheck 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 QuotaSafetyCheck valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static QuotaSafetyCheck forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<QuotaSafetyCheck> 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 QuotaSafetyCheck valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.