Package com.google.api.servicecontrol.v1
Enum QuotaError.Code
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<QuotaError.Code>
- Enclosing class:
- QuotaError
public static enum QuotaError.Code
extends Enum<QuotaError.Code>
implements com.google.protobuf.ProtocolMessageEnum
Error codes related to project config validations are deprecated since the quota controller methods do not perform these validations. Instead services have to call the Check method, without quota_properties field, to perform these validations before calling the quota controller methods. These methods check only for project deletion to be wipe out compliant.Protobuf enum
google.api.servicecontrol.v1.QuotaError.Code-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecified API Key has expired.Specified API key is invalid.Consumer cannot access the service because the service requires active billing.Consumer's project has been marked as deleted (soft deletion).Quota allocation failed.This is never used. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSpecified API Key has expired.static final intSpecified API key is invalid.static final intConsumer cannot access the service because the service requires active billing.static final intConsumer's project has been marked as deleted (soft deletion).static final intQuota allocation failed.static final intThis is never used. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuotaError.CodeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<QuotaError.Code>static QuotaError.CodevalueOf(int value) Deprecated.static QuotaError.CodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static QuotaError.CodeReturns the enum constant of this type with the specified name.static QuotaError.Code[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
This is never used.
UNSPECIFIED = 0; -
RESOURCE_EXHAUSTED
Quota allocation failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
RESOURCE_EXHAUSTED = 8; -
BILLING_NOT_ACTIVE
Consumer cannot access the service because the service requires active billing.
BILLING_NOT_ACTIVE = 107; -
PROJECT_DELETED
Consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108; -
API_KEY_INVALID
Specified API key is invalid.
API_KEY_INVALID = 105; -
API_KEY_EXPIRED
Specified API Key has expired.
API_KEY_EXPIRED = 112; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEThis is never used.
UNSPECIFIED = 0;- See Also:
-
RESOURCE_EXHAUSTED_VALUE
public static final int RESOURCE_EXHAUSTED_VALUEQuota allocation failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
RESOURCE_EXHAUSTED = 8;- See Also:
-
BILLING_NOT_ACTIVE_VALUE
public static final int BILLING_NOT_ACTIVE_VALUEConsumer cannot access the service because the service requires active billing.
BILLING_NOT_ACTIVE = 107;- See Also:
-
PROJECT_DELETED_VALUE
public static final int PROJECT_DELETED_VALUEConsumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;- See Also:
-
API_KEY_INVALID_VALUE
public static final int API_KEY_INVALID_VALUESpecified API key is invalid.
API_KEY_INVALID = 105;- See Also:
-
API_KEY_EXPIRED_VALUE
public static final int API_KEY_EXPIRED_VALUESpecified API Key has expired.
API_KEY_EXPIRED = 112;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-