Package com.google.api.servicecontrol.v1
Enum 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 enum
google.api.servicecontrol.v1.CheckError.Code-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe consumer's API Key has expired.The consumer's API key is invalid.The consumer's API Key was not found in config record.The API targeted by this request is invalid for the specified consumer project.The consumer cannot access the service because billing is disabled.The backend server for checking billing status is unavailable.The client application of the consumer request is invalid for the specific consumer project.Cloud Resource Manager backend server is unavailable.The input consumer info does not represent a valid consumer folder or organization.This is never used in `CheckResponse`.The credential in the request can not be verified.The IP address of the consumer is invalid for the specific consumer project.The backend server for looking up project id/number is unavailable.The consumer's project id, network container, or resource container was not found.The consumer doesn't have access to the specified resource.The consumer's project has been marked as deleted (soft deletion).The consumer's project number or id does not represent a valid project.The referer address of the consumer request is invalid for the specific consumer project.Quota check failed.The consumer hasn't activated the service.The backend server for checking service status is unavailable. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe consumer's API Key has expired.static final intThe consumer's API key is invalid.static final intThe consumer's API Key was not found in config record.static final intThe API targeted by this request is invalid for the specified consumer project.static final intThe consumer cannot access the service because billing is disabled.static final intThe backend server for checking billing status is unavailable.static final intThe client application of the consumer request is invalid for the specific consumer project.static final intCloud Resource Manager backend server is unavailable.static final intThe input consumer info does not represent a valid consumer folder or organization.static final intThis is never used in `CheckResponse`.static final intThe credential in the request can not be verified.static final intThe IP address of the consumer is invalid for the specific consumer project.static final intThe backend server for looking up project id/number is unavailable.static final intThe consumer's project id, network container, or resource container was not found.static final intThe consumer doesn't have access to the specified resource.static final intThe consumer's project has been marked as deleted (soft deletion).static final intThe consumer's project number or id does not represent a valid project.static final intThe referer address of the consumer request is invalid for the specific consumer project.static final intQuota check failed.static final intThe consumer hasn't activated the service.static final intThe backend server for checking service status is unavailable. -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckError.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<CheckError.Code>static CheckError.CodevalueOf(int value) Deprecated.static CheckError.CodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static CheckError.CodeReturns 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 Details
-
ERROR_CODE_UNSPECIFIED
This is never used in `CheckResponse`.
ERROR_CODE_UNSPECIFIED = 0; -
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
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
Quota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
RESOURCE_EXHAUSTED = 8; -
SERVICE_NOT_ACTIVATED
The consumer hasn't activated the service.
SERVICE_NOT_ACTIVATED = 104; -
BILLING_DISABLED
The consumer cannot access the service because billing is disabled.
BILLING_DISABLED = 107; -
PROJECT_DELETED
The consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108; -
PROJECT_INVALID
The consumer's project number or id does not represent a valid project.
PROJECT_INVALID = 114; -
CONSUMER_INVALID
The input consumer info does not represent a valid consumer folder or organization.
CONSUMER_INVALID = 125; -
IP_ADDRESS_BLOCKED
The IP address of the consumer is invalid for the specific consumer project.
IP_ADDRESS_BLOCKED = 109; -
REFERER_BLOCKED
The referer address of the consumer request is invalid for the specific consumer project.
REFERER_BLOCKED = 110; -
CLIENT_APP_BLOCKED
The client application of the consumer request is invalid for the specific consumer project.
CLIENT_APP_BLOCKED = 111; -
API_TARGET_BLOCKED
The API targeted by this request is invalid for the specified consumer project.
API_TARGET_BLOCKED = 122; -
API_KEY_INVALID
The consumer's API key is invalid.
API_KEY_INVALID = 105; -
API_KEY_EXPIRED
The consumer's API Key has expired.
API_KEY_EXPIRED = 112; -
API_KEY_NOT_FOUND
The consumer's API Key was not found in config record.
API_KEY_NOT_FOUND = 113; -
INVALID_CREDENTIAL
The credential in the request can not be verified.
INVALID_CREDENTIAL = 123; -
NAMESPACE_LOOKUP_UNAVAILABLE
The backend server for looking up project id/number is unavailable.
NAMESPACE_LOOKUP_UNAVAILABLE = 300; -
SERVICE_STATUS_UNAVAILABLE
The backend server for checking service status is unavailable.
SERVICE_STATUS_UNAVAILABLE = 301; -
BILLING_STATUS_UNAVAILABLE
The backend server for checking billing status is unavailable.
BILLING_STATUS_UNAVAILABLE = 302; -
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE
Cloud Resource Manager backend server is unavailable.
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = 305; -
UNRECOGNIZED
-
-
Field Details
-
ERROR_CODE_UNSPECIFIED_VALUE
public static final int ERROR_CODE_UNSPECIFIED_VALUEThis is never used in `CheckResponse`.
ERROR_CODE_UNSPECIFIED = 0;- See Also:
-
NOT_FOUND_VALUE
public static final int NOT_FOUND_VALUEThe 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:
-
PERMISSION_DENIED_VALUE
public static final int PERMISSION_DENIED_VALUEThe 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:
-
RESOURCE_EXHAUSTED_VALUE
public static final int RESOURCE_EXHAUSTED_VALUEQuota check failed. Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
RESOURCE_EXHAUSTED = 8;- See Also:
-
SERVICE_NOT_ACTIVATED_VALUE
public static final int SERVICE_NOT_ACTIVATED_VALUEThe consumer hasn't activated the service.
SERVICE_NOT_ACTIVATED = 104;- See Also:
-
BILLING_DISABLED_VALUE
public static final int BILLING_DISABLED_VALUEThe consumer cannot access the service because billing is disabled.
BILLING_DISABLED = 107;- See Also:
-
PROJECT_DELETED_VALUE
public static final int PROJECT_DELETED_VALUEThe consumer's project has been marked as deleted (soft deletion).
PROJECT_DELETED = 108;- See Also:
-
PROJECT_INVALID_VALUE
public static final int PROJECT_INVALID_VALUEThe consumer's project number or id does not represent a valid project.
PROJECT_INVALID = 114;- See Also:
-
CONSUMER_INVALID_VALUE
public static final int CONSUMER_INVALID_VALUEThe input consumer info does not represent a valid consumer folder or organization.
CONSUMER_INVALID = 125;- See Also:
-
IP_ADDRESS_BLOCKED_VALUE
public static final int IP_ADDRESS_BLOCKED_VALUEThe IP address of the consumer is invalid for the specific consumer project.
IP_ADDRESS_BLOCKED = 109;- See Also:
-
REFERER_BLOCKED_VALUE
public static final int REFERER_BLOCKED_VALUEThe referer address of the consumer request is invalid for the specific consumer project.
REFERER_BLOCKED = 110;- See Also:
-
CLIENT_APP_BLOCKED_VALUE
public static final int CLIENT_APP_BLOCKED_VALUEThe client application of the consumer request is invalid for the specific consumer project.
CLIENT_APP_BLOCKED = 111;- See Also:
-
API_TARGET_BLOCKED_VALUE
public static final int API_TARGET_BLOCKED_VALUEThe API targeted by this request is invalid for the specified consumer project.
API_TARGET_BLOCKED = 122;- See Also:
-
API_KEY_INVALID_VALUE
public static final int API_KEY_INVALID_VALUEThe consumer's API key is invalid.
API_KEY_INVALID = 105;- See Also:
-
API_KEY_EXPIRED_VALUE
public static final int API_KEY_EXPIRED_VALUEThe consumer's API Key has expired.
API_KEY_EXPIRED = 112;- See Also:
-
API_KEY_NOT_FOUND_VALUE
public static final int API_KEY_NOT_FOUND_VALUEThe consumer's API Key was not found in config record.
API_KEY_NOT_FOUND = 113;- See Also:
-
INVALID_CREDENTIAL_VALUE
public static final int INVALID_CREDENTIAL_VALUEThe credential in the request can not be verified.
INVALID_CREDENTIAL = 123;- See Also:
-
NAMESPACE_LOOKUP_UNAVAILABLE_VALUE
public static final int NAMESPACE_LOOKUP_UNAVAILABLE_VALUEThe backend server for looking up project id/number is unavailable.
NAMESPACE_LOOKUP_UNAVAILABLE = 300;- See Also:
-
SERVICE_STATUS_UNAVAILABLE_VALUE
public static final int SERVICE_STATUS_UNAVAILABLE_VALUEThe backend server for checking service status is unavailable.
SERVICE_STATUS_UNAVAILABLE = 301;- See Also:
-
BILLING_STATUS_UNAVAILABLE_VALUE
public static final int BILLING_STATUS_UNAVAILABLE_VALUEThe backend server for checking billing status is unavailable.
BILLING_STATUS_UNAVAILABLE = 302;- See Also:
-
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE_VALUE
public static final int CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE_VALUECloud Resource Manager backend server is unavailable.
CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = 305;- 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
-