public static enum AllocateQuotaRequest.AllocationMode extends java.lang.Enum<AllocateQuotaRequest.AllocationMode> implements com.google.protobuf.ProtocolMessageEnum
Supported allocation modes.Protobuf enum
google.api.servicecontrol.v1.AllocateQuotaRequest.AllocationMode| Enum Constant and Description |
|---|
BEST_EFFORT
Allocates quota for the amount specified in the service configuration or
specified using the quota_metrics.
|
CHECK_ONLY
Only checks if there is enough quota available and does not change the
available quota.
|
NORMAL
Allocates quota for the amount specified in the service configuration or
specified using the quota_metrics.
|
UNRECOGNIZED |
UNSPECIFIED
UNSPECIFIED = 0; |
| Modifier and Type | Field and Description |
|---|---|
static int |
BEST_EFFORT_VALUE
Allocates quota for the amount specified in the service configuration or
specified using the quota_metrics.
|
static int |
CHECK_ONLY_VALUE
Only checks if there is enough quota available and does not change the
available quota.
|
static int |
NORMAL_VALUE
Allocates quota for the amount specified in the service configuration or
specified using the quota_metrics.
|
static int |
UNSPECIFIED_VALUE
UNSPECIFIED = 0; |
| Modifier and Type | Method and Description |
|---|---|
static AllocateQuotaRequest.AllocationMode |
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<AllocateQuotaRequest.AllocationMode> |
internalGetValueMap() |
static AllocateQuotaRequest.AllocationMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static AllocateQuotaRequest.AllocationMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AllocateQuotaRequest.AllocationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AllocateQuotaRequest.AllocationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllocateQuotaRequest.AllocationMode UNSPECIFIED
UNSPECIFIED = 0;public static final AllocateQuotaRequest.AllocationMode NORMAL
Allocates quota for the amount specified in the service configuration or specified using the quota_metrics. If the amount is higher than the available quota, allocation error will be returned and no quota will be allocated.
NORMAL = 1;public static final AllocateQuotaRequest.AllocationMode BEST_EFFORT
Allocates quota for the amount specified in the service configuration or specified using the quota_metrics. If the amount is higher than the available quota, request does not fail but all available quota will be allocated.
BEST_EFFORT = 2;public static final AllocateQuotaRequest.AllocationMode CHECK_ONLY
Only checks if there is enough quota available and does not change the available quota. No lock is placed on the available quota either.
CHECK_ONLY = 3;public static final AllocateQuotaRequest.AllocationMode UNRECOGNIZED
public static final int UNSPECIFIED_VALUE
UNSPECIFIED = 0;public static final int NORMAL_VALUE
Allocates quota for the amount specified in the service configuration or specified using the quota_metrics. If the amount is higher than the available quota, allocation error will be returned and no quota will be allocated.
NORMAL = 1;public static final int BEST_EFFORT_VALUE
Allocates quota for the amount specified in the service configuration or specified using the quota_metrics. If the amount is higher than the available quota, request does not fail but all available quota will be allocated.
BEST_EFFORT = 2;public static final int CHECK_ONLY_VALUE
Only checks if there is enough quota available and does not change the available quota. No lock is placed on the available quota either.
CHECK_ONLY = 3;public static AllocateQuotaRequest.AllocationMode[] values()
for (AllocateQuotaRequest.AllocationMode c : AllocateQuotaRequest.AllocationMode.values()) System.out.println(c);
public static AllocateQuotaRequest.AllocationMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - 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 AllocateQuotaRequest.AllocationMode valueOf(int value)
forNumber(int) instead.public static AllocateQuotaRequest.AllocationMode forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<AllocateQuotaRequest.AllocationMode> 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 AllocateQuotaRequest.AllocationMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)