Enum QuotaError.Code

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<QuotaError.Code>
    Enclosing class:
    QuotaError

    public static enum QuotaError.Code
    extends Enum<QuotaError.Code>
    implements com.google.protobuf.ProtocolMessageEnum
     Error codes related to project config validations are deprecated since the
     quota controller methods do not perform these validations. Instead services
     have to call the Check method, without quota_properties field, to perform
     these validations before calling the quota controller methods. These
     methods check only for project deletion to be wipe out compliant.
     
    Protobuf enum google.api.servicecontrol.v1.QuotaError.Code
    • Enum Constant Detail

      • UNSPECIFIED

        public static final QuotaError.Code UNSPECIFIED
         This is never used.
         
        UNSPECIFIED = 0;
      • RESOURCE_EXHAUSTED

        public static final QuotaError.Code RESOURCE_EXHAUSTED
         Quota allocation failed.
         Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
         
        RESOURCE_EXHAUSTED = 8;
      • BILLING_NOT_ACTIVE

        public static final QuotaError.Code BILLING_NOT_ACTIVE
         Consumer cannot access the service because the service requires active
         billing.
         
        BILLING_NOT_ACTIVE = 107;
      • PROJECT_DELETED

        public static final QuotaError.Code PROJECT_DELETED
         Consumer's project has been marked as deleted (soft deletion).
         
        PROJECT_DELETED = 108;
      • API_KEY_INVALID

        public static final QuotaError.Code API_KEY_INVALID
         Specified API key is invalid.
         
        API_KEY_INVALID = 105;
      • API_KEY_EXPIRED

        public static final QuotaError.Code API_KEY_EXPIRED
         Specified API Key has expired.
         
        API_KEY_EXPIRED = 112;
    • Field Detail

      • UNSPECIFIED_VALUE

        public static final int UNSPECIFIED_VALUE
         This is never used.
         
        UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • RESOURCE_EXHAUSTED_VALUE

        public static final int RESOURCE_EXHAUSTED_VALUE
         Quota allocation failed.
         Same as [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED].
         
        RESOURCE_EXHAUSTED = 8;
        See Also:
        Constant Field Values
      • BILLING_NOT_ACTIVE_VALUE

        public static final int BILLING_NOT_ACTIVE_VALUE
         Consumer cannot access the service because the service requires active
         billing.
         
        BILLING_NOT_ACTIVE = 107;
        See Also:
        Constant Field Values
      • PROJECT_DELETED_VALUE

        public static final int PROJECT_DELETED_VALUE
         Consumer's project has been marked as deleted (soft deletion).
         
        PROJECT_DELETED = 108;
        See Also:
        Constant Field Values
      • API_KEY_INVALID_VALUE

        public static final int API_KEY_INVALID_VALUE
         Specified 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
         Specified API Key has expired.
         
        API_KEY_EXPIRED = 112;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static QuotaError.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 (QuotaError.Code c : QuotaError.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 QuotaError.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 QuotaError.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 QuotaError.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<QuotaError.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static QuotaError.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