public static enum QuotaError.Code extends java.lang.Enum<QuotaError.Code> implements com.google.protobuf.ProtocolMessageEnum
Error codes for allocate and release responses.Protobuf enum
google.api.servicecontrol.v1.QuotaError.Code| Enum Constant and 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 billing is disabled.
|
BILLING_STATUS_UNAVAILABLE
The backend server for checking billing status is unavailable.
|
CLIENT_APP_BLOCKED
Client application of the consumer request is invalid for the
specific consumer project.
|
IP_ADDRESS_BLOCKED
IP address of the consumer is invalid for the specific consumer
project.
|
LOAS_ROLE_INVALID
The consumer's LOAS role is invalid.
|
NO_LOAS_PROJECT
The consumer's LOAS role has no associated project.
|
PROJECT_DELETED
Consumer's project has been marked as deleted (soft deletion).
|
PROJECT_INVALID
Consumer's project number or ID does not represent a valid project.
|
PROJECT_STATUS_UNAVAILABLE
The backend server for looking up project id/number is unavailable.
|
PROJECT_SUSPENDED
Consumer project has been suspended.
|
QUOTA_SYSTEM_UNAVAILABLE
The backend server for checking quota limits is unavailable.
|
REFERER_BLOCKED
Referer address of the consumer request is invalid for the specific
consumer project.
|
RESOURCE_EXHAUSTED
Quota allocation failed.
|
SERVICE_NOT_ENABLED
Consumer has not enabled the service.
|
SERVICE_STATUS_UNAVAILABLE
The backend server for checking service status is unavailable.
|
SPATULA_HEADER_INVALID
Consumer's spatula header is invalid.
|
UNRECOGNIZED |
UNSPECIFIED
This is never used.
|
| Modifier and Type | Field and 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 billing is disabled.
|
static int |
BILLING_STATUS_UNAVAILABLE_VALUE
The backend server for checking billing status is unavailable.
|
static int |
CLIENT_APP_BLOCKED_VALUE
Client application of the consumer request is invalid for the
specific consumer project.
|
static int |
IP_ADDRESS_BLOCKED_VALUE
IP address of the consumer is invalid for the specific consumer
project.
|
static int |
LOAS_ROLE_INVALID_VALUE
The consumer's LOAS role is invalid.
|
static int |
NO_LOAS_PROJECT_VALUE
The consumer's LOAS role has no associated project.
|
static int |
PROJECT_DELETED_VALUE
Consumer's project has been marked as deleted (soft deletion).
|
static int |
PROJECT_INVALID_VALUE
Consumer's project number or ID does not represent a valid project.
|
static int |
PROJECT_STATUS_UNAVAILABLE_VALUE
The backend server for looking up project id/number is unavailable.
|
static int |
PROJECT_SUSPENDED_VALUE
Consumer project has been suspended.
|
static int |
QUOTA_SYSTEM_UNAVAILABLE_VALUE
The backend server for checking quota limits is unavailable.
|
static int |
REFERER_BLOCKED_VALUE
Referer address of the consumer request is invalid for the specific
consumer project.
|
static int |
RESOURCE_EXHAUSTED_VALUE
Quota allocation failed.
|
static int |
SERVICE_NOT_ENABLED_VALUE
Consumer has not enabled the service.
|
static int |
SERVICE_STATUS_UNAVAILABLE_VALUE
The backend server for checking service status is unavailable.
|
static int |
SPATULA_HEADER_INVALID_VALUE
Consumer's spatula header is invalid.
|
static int |
UNSPECIFIED_VALUE
This is never used.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static QuotaError.Code |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static QuotaError.Code |
valueOf(java.lang.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.
|
public static final QuotaError.Code UNSPECIFIED
This is never used.
UNSPECIFIED = 0;public static final QuotaError.Code RESOURCE_EXHAUSTED
Quota allocation failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
RESOURCE_EXHAUSTED = 8;public static final QuotaError.Code PROJECT_SUSPENDED
Consumer project has been suspended.
PROJECT_SUSPENDED = 103;public static final QuotaError.Code SERVICE_NOT_ENABLED
Consumer has not enabled the service.
SERVICE_NOT_ENABLED = 104;public static final QuotaError.Code BILLING_NOT_ACTIVE
Consumer cannot access the service because billing is disabled.
BILLING_NOT_ACTIVE = 107;public static final QuotaError.Code PROJECT_DELETED
Consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;public static final QuotaError.Code PROJECT_INVALID
Consumer's project number or ID does not represent a valid project.
PROJECT_INVALID = 114;public static final QuotaError.Code IP_ADDRESS_BLOCKED
IP address of the consumer is invalid for the specific consumer project.
IP_ADDRESS_BLOCKED = 109;public static final QuotaError.Code REFERER_BLOCKED
Referer address of the consumer request is invalid for the specific consumer project.
REFERER_BLOCKED = 110;public static final QuotaError.Code CLIENT_APP_BLOCKED
Client application of the consumer request is invalid for the specific consumer project.
CLIENT_APP_BLOCKED = 111;public static final QuotaError.Code API_KEY_INVALID
Specified API key is invalid.
API_KEY_INVALID = 105;public static final QuotaError.Code API_KEY_EXPIRED
Specified API Key has expired.
API_KEY_EXPIRED = 112;public static final QuotaError.Code SPATULA_HEADER_INVALID
Consumer's spatula header is invalid.
SPATULA_HEADER_INVALID = 115;public static final QuotaError.Code LOAS_ROLE_INVALID
The consumer's LOAS role is invalid.
LOAS_ROLE_INVALID = 118;public static final QuotaError.Code NO_LOAS_PROJECT
The consumer's LOAS role has no associated project.
NO_LOAS_PROJECT = 119;public static final QuotaError.Code PROJECT_STATUS_UNAVAILABLE
The backend server for looking up project id/number is unavailable.
PROJECT_STATUS_UNAVAILABLE = 300;public static final QuotaError.Code SERVICE_STATUS_UNAVAILABLE
The backend server for checking service status is unavailable.
SERVICE_STATUS_UNAVAILABLE = 301;public static final QuotaError.Code BILLING_STATUS_UNAVAILABLE
The backend server for checking billing status is unavailable.
BILLING_STATUS_UNAVAILABLE = 302;public static final QuotaError.Code QUOTA_SYSTEM_UNAVAILABLE
The backend server for checking quota limits is unavailable.
QUOTA_SYSTEM_UNAVAILABLE = 303;public static final QuotaError.Code UNRECOGNIZED
public static final int UNSPECIFIED_VALUE
This is never used.
UNSPECIFIED = 0;public static final int RESOURCE_EXHAUSTED_VALUE
Quota allocation failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
RESOURCE_EXHAUSTED = 8;public static final int PROJECT_SUSPENDED_VALUE
Consumer project has been suspended.
PROJECT_SUSPENDED = 103;public static final int SERVICE_NOT_ENABLED_VALUE
Consumer has not enabled the service.
SERVICE_NOT_ENABLED = 104;public static final int BILLING_NOT_ACTIVE_VALUE
Consumer cannot access the service because billing is disabled.
BILLING_NOT_ACTIVE = 107;public static final int PROJECT_DELETED_VALUE
Consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;public static final int PROJECT_INVALID_VALUE
Consumer's project number or ID does not represent a valid project.
PROJECT_INVALID = 114;public static final int IP_ADDRESS_BLOCKED_VALUE
IP address of the consumer is invalid for the specific consumer project.
IP_ADDRESS_BLOCKED = 109;public static final int REFERER_BLOCKED_VALUE
Referer address of the consumer request is invalid for the specific consumer project.
REFERER_BLOCKED = 110;public static final int CLIENT_APP_BLOCKED_VALUE
Client application of the consumer request is invalid for the specific consumer project.
CLIENT_APP_BLOCKED = 111;public static final int API_KEY_INVALID_VALUE
Specified API key is invalid.
API_KEY_INVALID = 105;public static final int API_KEY_EXPIRED_VALUE
Specified API Key has expired.
API_KEY_EXPIRED = 112;public static final int SPATULA_HEADER_INVALID_VALUE
Consumer's spatula header is invalid.
SPATULA_HEADER_INVALID = 115;public static final int LOAS_ROLE_INVALID_VALUE
The consumer's LOAS role is invalid.
LOAS_ROLE_INVALID = 118;public static final int NO_LOAS_PROJECT_VALUE
The consumer's LOAS role has no associated project.
NO_LOAS_PROJECT = 119;public static final int PROJECT_STATUS_UNAVAILABLE_VALUE
The backend server for looking up project id/number is unavailable.
PROJECT_STATUS_UNAVAILABLE = 300;public static final int SERVICE_STATUS_UNAVAILABLE_VALUE
The backend server for checking service status is unavailable.
SERVICE_STATUS_UNAVAILABLE = 301;public static final int BILLING_STATUS_UNAVAILABLE_VALUE
The backend server for checking billing status is unavailable.
BILLING_STATUS_UNAVAILABLE = 302;public static final int QUOTA_SYSTEM_UNAVAILABLE_VALUE
The backend server for checking quota limits is unavailable.
QUOTA_SYSTEM_UNAVAILABLE = 303;public static QuotaError.Code[] values()
for (QuotaError.Code c : QuotaError.Code.values()) System.out.println(c);
public static QuotaError.Code 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 QuotaError.Code valueOf(int value)
forNumber(int) instead.public static QuotaError.Code forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<QuotaError.Code> 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 QuotaError.Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)