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 enum google.api.servicecontrol.v1.CheckError.Code
  • Enum Constant Details

    • 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 Details

    • ERROR_CODE_UNSPECIFIED_VALUE

      public static final int ERROR_CODE_UNSPECIFIED_VALUE
       This is never used in `CheckResponse`.
       
      ERROR_CODE_UNSPECIFIED = 0;
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • INVALID_CREDENTIAL_VALUE

      public static final int INVALID_CREDENTIAL_VALUE
       The credential in the request can not be verified.
       
      INVALID_CREDENTIAL = 123;
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
  • Method Details

    • values

      public static CheckError.Code[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static 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 name
      NullPointerException - if the argument is null