Package com.google.api.servicecontrol.v1
Enum QuotaError.Code
- java.lang.Object
-
- java.lang.Enum<QuotaError.Code>
-
- com.google.api.servicecontrol.v1.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 enumgoogle.api.servicecontrol.v1.QuotaError.Code
-
-
Enum Constant Summary
Enum Constants Enum Constant Description API_KEY_EXPIRED
Specified API Key has expired.API_KEY_INVALID
Specified API key is invalid.BILLING_NOT_ACTIVE
Consumer cannot access the service because the service requires active billing.PROJECT_DELETED
Consumer's project has been marked as deleted (soft deletion).RESOURCE_EXHAUSTED
Quota allocation failed.UNRECOGNIZED
UNSPECIFIED
This is never used.
-
Field Summary
Fields Modifier and Type Field Description static int
API_KEY_EXPIRED_VALUE
Specified API Key has expired.static int
API_KEY_INVALID_VALUE
Specified API key is invalid.static int
BILLING_NOT_ACTIVE_VALUE
Consumer cannot access the service because the service requires active billing.static int
PROJECT_DELETED_VALUE
Consumer's project has been marked as deleted (soft deletion).static int
RESOURCE_EXHAUSTED_VALUE
Quota allocation failed.static int
UNSPECIFIED_VALUE
This is never used.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static QuotaError.Code
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<QuotaError.Code>
internalGetValueMap()
static QuotaError.Code
valueOf(int value)
Deprecated.static QuotaError.Code
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static QuotaError.Code
valueOf(String name)
Returns 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 Detail
-
UNSPECIFIED
public static final QuotaError.Code UNSPECIFIED
This is never used.
UNSPECIFIED = 0;
-
RESOURCE_EXHAUSTED
public static final QuotaError.Code RESOURCE_EXHAUSTED
Quota allocation failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
RESOURCE_EXHAUSTED = 8;
-
BILLING_NOT_ACTIVE
public static final QuotaError.Code BILLING_NOT_ACTIVE
Consumer cannot access the service because the service requires active billing.
BILLING_NOT_ACTIVE = 107;
-
PROJECT_DELETED
public static final QuotaError.Code PROJECT_DELETED
Consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;
-
API_KEY_INVALID
public static final QuotaError.Code API_KEY_INVALID
Specified API key is invalid.
API_KEY_INVALID = 105;
-
API_KEY_EXPIRED
public static final QuotaError.Code API_KEY_EXPIRED
Specified API Key has expired.
API_KEY_EXPIRED = 112;
-
UNRECOGNIZED
public static final QuotaError.Code UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
This is never used.
UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
RESOURCE_EXHAUSTED_VALUE
public static final int RESOURCE_EXHAUSTED_VALUE
Quota allocation failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
RESOURCE_EXHAUSTED = 8;
- See Also:
- Constant Field Values
-
BILLING_NOT_ACTIVE_VALUE
public static final int BILLING_NOT_ACTIVE_VALUE
Consumer cannot access the service because the service requires active billing.
BILLING_NOT_ACTIVE = 107;
- See Also:
- Constant Field Values
-
PROJECT_DELETED_VALUE
public static final int PROJECT_DELETED_VALUE
Consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;
- See Also:
- Constant Field Values
-
API_KEY_INVALID_VALUE
public static final int API_KEY_INVALID_VALUE
Specified API key is invalid.
API_KEY_INVALID = 105;
- See Also:
- Constant Field Values
-
API_KEY_EXPIRED_VALUE
public static final int API_KEY_EXPIRED_VALUE
Specified API Key has expired.
API_KEY_EXPIRED = 112;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static QuotaError.Code[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QuotaError.Code c : QuotaError.Code.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuotaError.Code valueOf(String name)
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static QuotaError.Code valueOf(int value)
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
public static QuotaError.Code forNumber(int value)
- Parameters:
value
- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<QuotaError.Code> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static QuotaError.Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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
-
-