Package com.google.api.servicecontrol.v1
Enum CheckError.Code
- java.lang.Object
-
- java.lang.Enum<CheckError.Code>
-
- com.google.api.servicecontrol.v1.CheckError.Code
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<CheckError.Code>
- Enclosing class:
- CheckError
public static enum CheckError.Code extends Enum<CheckError.Code> implements com.google.protobuf.ProtocolMessageEnum
Error codes for Check responses.
Protobuf enumgoogle.api.servicecontrol.v1.CheckError.Code
-
-
Enum Constant Summary
Enum Constants Enum Constant 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.API_TARGET_BLOCKED
The API targeted by this request is invalid for the specified consumer project.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.CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE
Cloud Resource Manager backend server is unavailable.CONSUMER_INVALID
The input consumer info does not represent a valid consumer folder or organization.ERROR_CODE_UNSPECIFIED
This is never used in `CheckResponse`.INVALID_CREDENTIAL
The credential in the request can not be verified.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, network container, or resource container 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
-
Field Summary
Fields Modifier and Type Field 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
API_TARGET_BLOCKED_VALUE
The API targeted by this request is invalid for the specified consumer project.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
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE_VALUE
Cloud Resource Manager backend server is unavailable.static int
CONSUMER_INVALID_VALUE
The input consumer info does not represent a valid consumer folder or organization.static int
ERROR_CODE_UNSPECIFIED_VALUE
This is never used in `CheckResponse`.static int
INVALID_CREDENTIAL_VALUE
The credential in the request can not be verified.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, network container, or resource container 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static CheckError.Code
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static CheckError.Code
valueOf(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.
-
-
-
Enum Constant Detail
-
ERROR_CODE_UNSPECIFIED
public static final CheckError.Code ERROR_CODE_UNSPECIFIED
This is never used in `CheckResponse`.
ERROR_CODE_UNSPECIFIED = 0;
-
NOT_FOUND
public static final CheckError.Code NOT_FOUND
The consumer's project id, network container, or resource container was not found. Same as [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND].
NOT_FOUND = 5;
-
PERMISSION_DENIED
public static final CheckError.Code PERMISSION_DENIED
The consumer doesn't have access to the specified resource. Same as [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
PERMISSION_DENIED = 7;
-
RESOURCE_EXHAUSTED
public static final CheckError.Code RESOURCE_EXHAUSTED
Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
RESOURCE_EXHAUSTED = 8;
-
SERVICE_NOT_ACTIVATED
public static final CheckError.Code SERVICE_NOT_ACTIVATED
The consumer hasn't activated the service.
SERVICE_NOT_ACTIVATED = 104;
-
BILLING_DISABLED
public static final CheckError.Code BILLING_DISABLED
The consumer cannot access the service because billing is disabled.
BILLING_DISABLED = 107;
-
PROJECT_DELETED
public static final CheckError.Code PROJECT_DELETED
The consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;
-
PROJECT_INVALID
public static final CheckError.Code PROJECT_INVALID
The consumer's project number or id does not represent a valid project.
PROJECT_INVALID = 114;
-
CONSUMER_INVALID
public static final CheckError.Code CONSUMER_INVALID
The input consumer info does not represent a valid consumer folder or organization.
CONSUMER_INVALID = 125;
-
IP_ADDRESS_BLOCKED
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;
-
REFERER_BLOCKED
public static final CheckError.Code REFERER_BLOCKED
The referer address of the consumer request is invalid for the specific consumer project.
REFERER_BLOCKED = 110;
-
CLIENT_APP_BLOCKED
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;
-
API_TARGET_BLOCKED
public static final CheckError.Code API_TARGET_BLOCKED
The API targeted by this request is invalid for the specified consumer project.
API_TARGET_BLOCKED = 122;
-
API_KEY_INVALID
public static final CheckError.Code API_KEY_INVALID
The consumer's API key is invalid.
API_KEY_INVALID = 105;
-
API_KEY_EXPIRED
public static final CheckError.Code API_KEY_EXPIRED
The consumer's API Key has expired.
API_KEY_EXPIRED = 112;
-
API_KEY_NOT_FOUND
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;
-
INVALID_CREDENTIAL
public static final CheckError.Code INVALID_CREDENTIAL
The credential in the request can not be verified.
INVALID_CREDENTIAL = 123;
-
NAMESPACE_LOOKUP_UNAVAILABLE
public static final CheckError.Code NAMESPACE_LOOKUP_UNAVAILABLE
The backend server for looking up project id/number is unavailable.
NAMESPACE_LOOKUP_UNAVAILABLE = 300;
-
SERVICE_STATUS_UNAVAILABLE
public static final CheckError.Code SERVICE_STATUS_UNAVAILABLE
The backend server for checking service status is unavailable.
SERVICE_STATUS_UNAVAILABLE = 301;
-
BILLING_STATUS_UNAVAILABLE
public static final CheckError.Code BILLING_STATUS_UNAVAILABLE
The backend server for checking billing status is unavailable.
BILLING_STATUS_UNAVAILABLE = 302;
-
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE
public static final CheckError.Code CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE
Cloud Resource Manager backend server is unavailable.
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = 305;
-
UNRECOGNIZED
public static final CheckError.Code UNRECOGNIZED
-
-
Field Detail
-
ERROR_CODE_UNSPECIFIED_VALUE
public static final int ERROR_CODE_UNSPECIFIED_VALUE
This is never used in `CheckResponse`.
ERROR_CODE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
NOT_FOUND_VALUE
public static final int NOT_FOUND_VALUE
The consumer's project id, network container, or resource container was not found. Same as [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND].
NOT_FOUND = 5;
- See Also:
- Constant Field Values
-
PERMISSION_DENIED_VALUE
public static final int PERMISSION_DENIED_VALUE
The consumer doesn't have access to the specified resource. Same as [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
PERMISSION_DENIED = 7;
- See Also:
- Constant Field Values
-
RESOURCE_EXHAUSTED_VALUE
public static final int RESOURCE_EXHAUSTED_VALUE
Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
RESOURCE_EXHAUSTED = 8;
- See Also:
- Constant Field Values
-
SERVICE_NOT_ACTIVATED_VALUE
public static final int SERVICE_NOT_ACTIVATED_VALUE
The consumer hasn't activated the service.
SERVICE_NOT_ACTIVATED = 104;
- See Also:
- Constant Field Values
-
BILLING_DISABLED_VALUE
public static final int BILLING_DISABLED_VALUE
The consumer cannot access the service because billing is disabled.
BILLING_DISABLED = 107;
- See Also:
- Constant Field Values
-
PROJECT_DELETED_VALUE
public static final int PROJECT_DELETED_VALUE
The consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;
- See Also:
- Constant Field Values
-
PROJECT_INVALID_VALUE
public static final int PROJECT_INVALID_VALUE
The consumer's project number or id does not represent a valid project.
PROJECT_INVALID = 114;
- See Also:
- Constant Field Values
-
CONSUMER_INVALID_VALUE
public static final int CONSUMER_INVALID_VALUE
The input consumer info does not represent a valid consumer folder or organization.
CONSUMER_INVALID = 125;
- See Also:
- Constant Field Values
-
IP_ADDRESS_BLOCKED_VALUE
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;
- See Also:
- Constant Field Values
-
REFERER_BLOCKED_VALUE
public static final int REFERER_BLOCKED_VALUE
The referer address of the consumer request is invalid for the specific consumer project.
REFERER_BLOCKED = 110;
- See Also:
- Constant Field Values
-
CLIENT_APP_BLOCKED_VALUE
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;
- See Also:
- Constant Field Values
-
API_TARGET_BLOCKED_VALUE
public static final int API_TARGET_BLOCKED_VALUE
The API targeted by this request is invalid for the specified consumer project.
API_TARGET_BLOCKED = 122;
- See Also:
- Constant Field Values
-
API_KEY_INVALID_VALUE
public static final int API_KEY_INVALID_VALUE
The consumer's 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
The consumer's API Key has expired.
API_KEY_EXPIRED = 112;
- See Also:
- Constant Field Values
-
API_KEY_NOT_FOUND_VALUE
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;
- See Also:
- Constant Field Values
-
INVALID_CREDENTIAL_VALUE
public static final int INVALID_CREDENTIAL_VALUE
The credential in the request can not be verified.
INVALID_CREDENTIAL = 123;
- See Also:
- Constant Field Values
-
NAMESPACE_LOOKUP_UNAVAILABLE_VALUE
public static final int NAMESPACE_LOOKUP_UNAVAILABLE_VALUE
The backend server for looking up project id/number is unavailable.
NAMESPACE_LOOKUP_UNAVAILABLE = 300;
- See Also:
- Constant Field Values
-
SERVICE_STATUS_UNAVAILABLE_VALUE
public static final int SERVICE_STATUS_UNAVAILABLE_VALUE
The backend server for checking service status is unavailable.
SERVICE_STATUS_UNAVAILABLE = 301;
- See Also:
- Constant Field Values
-
BILLING_STATUS_UNAVAILABLE_VALUE
public static final int BILLING_STATUS_UNAVAILABLE_VALUE
The backend server for checking billing status is unavailable.
BILLING_STATUS_UNAVAILABLE = 302;
- See Also:
- Constant Field Values
-
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE_VALUE
public static final int CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE_VALUE
Cloud Resource Manager backend server is unavailable.
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = 305;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CheckError.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 (CheckError.Code c : CheckError.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 CheckError.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 CheckError.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 CheckError.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<CheckError.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 CheckError.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
-
-