public static enum CheckError.Code extends java.lang.Enum<CheckError.Code> implements com.google.protobuf.ProtocolMessageEnum
Error codes for Check responses.Protobuf enum
google.api.servicecontrol.v1.CheckError.Code| Enum Constant and Description |
|---|
API_KEY_EXPIRED
The consumer's API Key has expired.
|
API_KEY_INVALID
The consumer's API key is invalid.
|
API_KEY_NOT_FOUND
The consumer's API Key was not found in config record.
|
BILLING_DISABLED
The consumer cannot access the service because billing is disabled.
|
BILLING_STATUS_UNAVAILABLE
The backend server for checking billing status is unavailable.
|
CLIENT_APP_BLOCKED
The client application of the consumer request is invalid for the
specific consumer project.
|
ERROR_CODE_UNSPECIFIED
This is never used in `CheckResponse`.
|
IP_ADDRESS_BLOCKED
The IP address of the consumer is invalid for the specific consumer
project.
|
NAMESPACE_LOOKUP_UNAVAILABLE
The backend server for looking up project id/number is unavailable.
|
NOT_FOUND
The consumer's project id was not found.
|
PERMISSION_DENIED
The consumer doesn't have access to the specified resource.
|
PROJECT_DELETED
The consumer's project has been marked as deleted (soft deletion).
|
PROJECT_INVALID
The consumer's project number or id does not represent a valid project.
|
REFERER_BLOCKED
The referer address of the consumer request is invalid for the specific
consumer project.
|
RESOURCE_EXHAUSTED
Quota check failed.
|
SERVICE_NOT_ACTIVATED
The consumer hasn't activated the service.
|
SERVICE_STATUS_UNAVAILABLE
The backend server for checking service status is unavailable.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
API_KEY_EXPIRED_VALUE
The consumer's API Key has expired.
|
static int |
API_KEY_INVALID_VALUE
The consumer's API key is invalid.
|
static int |
API_KEY_NOT_FOUND_VALUE
The consumer's API Key was not found in config record.
|
static int |
BILLING_DISABLED_VALUE
The 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
The client application of the consumer request is invalid for the
specific consumer project.
|
static int |
ERROR_CODE_UNSPECIFIED_VALUE
This is never used in `CheckResponse`.
|
static int |
IP_ADDRESS_BLOCKED_VALUE
The IP address of the consumer is invalid for the specific consumer
project.
|
static int |
NAMESPACE_LOOKUP_UNAVAILABLE_VALUE
The backend server for looking up project id/number is unavailable.
|
static int |
NOT_FOUND_VALUE
The consumer's project id was not found.
|
static int |
PERMISSION_DENIED_VALUE
The consumer doesn't have access to the specified resource.
|
static int |
PROJECT_DELETED_VALUE
The consumer's project has been marked as deleted (soft deletion).
|
static int |
PROJECT_INVALID_VALUE
The consumer's project number or id does not represent a valid project.
|
static int |
REFERER_BLOCKED_VALUE
The referer address of the consumer request is invalid for the specific
consumer project.
|
static int |
RESOURCE_EXHAUSTED_VALUE
Quota check failed.
|
static int |
SERVICE_NOT_ACTIVATED_VALUE
The consumer hasn't activated the service.
|
static int |
SERVICE_STATUS_UNAVAILABLE_VALUE
The backend server for checking service status is unavailable.
|
| Modifier and Type | Method and Description |
|---|---|
static CheckError.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<CheckError.Code> |
internalGetValueMap() |
static CheckError.Code |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CheckError.Code |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CheckError.Code |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CheckError.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CheckError.Code ERROR_CODE_UNSPECIFIED
This is never used in `CheckResponse`.
ERROR_CODE_UNSPECIFIED = 0;public static final CheckError.Code NOT_FOUND
The consumer's project id was not found. Same as [google.rpc.Code.NOT_FOUND][].
NOT_FOUND = 5;public static final CheckError.Code PERMISSION_DENIED
The consumer doesn't have access to the specified resource. Same as [google.rpc.Code.PERMISSION_DENIED][].
PERMISSION_DENIED = 7;public static final CheckError.Code RESOURCE_EXHAUSTED
Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
RESOURCE_EXHAUSTED = 8;public static final CheckError.Code SERVICE_NOT_ACTIVATED
The consumer hasn't activated the service.
SERVICE_NOT_ACTIVATED = 104;public static final CheckError.Code BILLING_DISABLED
The consumer cannot access the service because billing is disabled.
BILLING_DISABLED = 107;public static final CheckError.Code PROJECT_DELETED
The consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;public static final CheckError.Code PROJECT_INVALID
The consumer's project number or id does not represent a valid project.
PROJECT_INVALID = 114;public static final CheckError.Code IP_ADDRESS_BLOCKED
The IP address of the consumer is invalid for the specific consumer project.
IP_ADDRESS_BLOCKED = 109;public static final CheckError.Code REFERER_BLOCKED
The referer address of the consumer request is invalid for the specific consumer project.
REFERER_BLOCKED = 110;public static final CheckError.Code CLIENT_APP_BLOCKED
The client application of the consumer request is invalid for the specific consumer project.
CLIENT_APP_BLOCKED = 111;public static final CheckError.Code API_KEY_INVALID
The consumer's API key is invalid.
API_KEY_INVALID = 105;public static final CheckError.Code API_KEY_EXPIRED
The consumer's API Key has expired.
API_KEY_EXPIRED = 112;public static final CheckError.Code API_KEY_NOT_FOUND
The consumer's API Key was not found in config record.
API_KEY_NOT_FOUND = 113;public static final CheckError.Code NAMESPACE_LOOKUP_UNAVAILABLE
The backend server for looking up project id/number is unavailable.
NAMESPACE_LOOKUP_UNAVAILABLE = 300;public static final CheckError.Code SERVICE_STATUS_UNAVAILABLE
The backend server for checking service status is unavailable.
SERVICE_STATUS_UNAVAILABLE = 301;public static final CheckError.Code BILLING_STATUS_UNAVAILABLE
The backend server for checking billing status is unavailable.
BILLING_STATUS_UNAVAILABLE = 302;public static final CheckError.Code UNRECOGNIZED
public static final int ERROR_CODE_UNSPECIFIED_VALUE
This is never used in `CheckResponse`.
ERROR_CODE_UNSPECIFIED = 0;public static final int NOT_FOUND_VALUE
The consumer's project id was not found. Same as [google.rpc.Code.NOT_FOUND][].
NOT_FOUND = 5;public static final int PERMISSION_DENIED_VALUE
The consumer doesn't have access to the specified resource. Same as [google.rpc.Code.PERMISSION_DENIED][].
PERMISSION_DENIED = 7;public static final int RESOURCE_EXHAUSTED_VALUE
Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][].
RESOURCE_EXHAUSTED = 8;public static final int SERVICE_NOT_ACTIVATED_VALUE
The consumer hasn't activated the service.
SERVICE_NOT_ACTIVATED = 104;public static final int BILLING_DISABLED_VALUE
The consumer cannot access the service because billing is disabled.
BILLING_DISABLED = 107;public static final int PROJECT_DELETED_VALUE
The consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;public static final int PROJECT_INVALID_VALUE
The consumer's project number or id does not represent a valid project.
PROJECT_INVALID = 114;public static final int IP_ADDRESS_BLOCKED_VALUE
The IP address of the consumer is invalid for the specific consumer project.
IP_ADDRESS_BLOCKED = 109;public static final int REFERER_BLOCKED_VALUE
The referer address of the consumer request is invalid for the specific consumer project.
REFERER_BLOCKED = 110;public static final int CLIENT_APP_BLOCKED_VALUE
The 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
The consumer's API key is invalid.
API_KEY_INVALID = 105;public static final int API_KEY_EXPIRED_VALUE
The consumer's API Key has expired.
API_KEY_EXPIRED = 112;public static final int API_KEY_NOT_FOUND_VALUE
The consumer's API Key was not found in config record.
API_KEY_NOT_FOUND = 113;public static final int NAMESPACE_LOOKUP_UNAVAILABLE_VALUE
The backend server for looking up project id/number is unavailable.
NAMESPACE_LOOKUP_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 CheckError.Code[] values()
for (CheckError.Code c : CheckError.Code.values()) System.out.println(c);
public static CheckError.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 CheckError.Code valueOf(int value)
forNumber(int) instead.public static CheckError.Code forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<CheckError.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 CheckError.Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)