Enum ErrorCode

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ErrorCode>

    public enum ErrorCode
    extends Enum<ErrorCode>
    implements com.google.protobuf.ProtocolMessageEnum
    Protobuf enum common.ErrorCode
    • Enum Constant Detail

      • Success

        public static final ErrorCode Success
        Success = 0;
      • UnexpectedError

        public static final ErrorCode UnexpectedError
        UnexpectedError = 1;
      • ConnectFailed

        public static final ErrorCode ConnectFailed
        ConnectFailed = 2;
      • PermissionDenied

        public static final ErrorCode PermissionDenied
        PermissionDenied = 3;
      • CollectionNotExists

        public static final ErrorCode CollectionNotExists
        CollectionNotExists = 4;
      • IllegalArgument

        public static final ErrorCode IllegalArgument
        IllegalArgument = 5;
      • IllegalDimension

        public static final ErrorCode IllegalDimension
        IllegalDimension = 7;
      • IllegalIndexType

        public static final ErrorCode IllegalIndexType
        IllegalIndexType = 8;
      • IllegalCollectionName

        public static final ErrorCode IllegalCollectionName
        IllegalCollectionName = 9;
      • IllegalTOPK

        public static final ErrorCode IllegalTOPK
        IllegalTOPK = 10;
      • IllegalRowRecord

        public static final ErrorCode IllegalRowRecord
        IllegalRowRecord = 11;
      • IllegalVectorID

        public static final ErrorCode IllegalVectorID
        IllegalVectorID = 12;
      • IllegalSearchResult

        public static final ErrorCode IllegalSearchResult
        IllegalSearchResult = 13;
      • FileNotFound

        public static final ErrorCode FileNotFound
        FileNotFound = 14;
      • MetaFailed

        public static final ErrorCode MetaFailed
        MetaFailed = 15;
      • CacheFailed

        public static final ErrorCode CacheFailed
        CacheFailed = 16;
      • CannotCreateFolder

        public static final ErrorCode CannotCreateFolder
        CannotCreateFolder = 17;
      • CannotCreateFile

        public static final ErrorCode CannotCreateFile
        CannotCreateFile = 18;
      • CannotDeleteFolder

        public static final ErrorCode CannotDeleteFolder
        CannotDeleteFolder = 19;
      • CannotDeleteFile

        public static final ErrorCode CannotDeleteFile
        CannotDeleteFile = 20;
      • BuildIndexError

        public static final ErrorCode BuildIndexError
        BuildIndexError = 21;
      • IllegalNLIST

        public static final ErrorCode IllegalNLIST
        IllegalNLIST = 22;
      • IllegalMetricType

        public static final ErrorCode IllegalMetricType
        IllegalMetricType = 23;
      • OutOfMemory

        public static final ErrorCode OutOfMemory
        OutOfMemory = 24;
      • IndexNotExist

        public static final ErrorCode IndexNotExist
        IndexNotExist = 25;
      • EmptyCollection

        public static final ErrorCode EmptyCollection
        EmptyCollection = 26;
      • DDRequestRace

        public static final ErrorCode DDRequestRace
         internal error code.
         
        DDRequestRace = 1000;
      • UNRECOGNIZED

        public static final ErrorCode UNRECOGNIZED
    • Field Detail

      • UnexpectedError_VALUE

        public static final int UnexpectedError_VALUE
        UnexpectedError = 1;
        See Also:
        Constant Field Values
      • ConnectFailed_VALUE

        public static final int ConnectFailed_VALUE
        ConnectFailed = 2;
        See Also:
        Constant Field Values
      • PermissionDenied_VALUE

        public static final int PermissionDenied_VALUE
        PermissionDenied = 3;
        See Also:
        Constant Field Values
      • CollectionNotExists_VALUE

        public static final int CollectionNotExists_VALUE
        CollectionNotExists = 4;
        See Also:
        Constant Field Values
      • IllegalArgument_VALUE

        public static final int IllegalArgument_VALUE
        IllegalArgument = 5;
        See Also:
        Constant Field Values
      • IllegalDimension_VALUE

        public static final int IllegalDimension_VALUE
        IllegalDimension = 7;
        See Also:
        Constant Field Values
      • IllegalIndexType_VALUE

        public static final int IllegalIndexType_VALUE
        IllegalIndexType = 8;
        See Also:
        Constant Field Values
      • IllegalCollectionName_VALUE

        public static final int IllegalCollectionName_VALUE
        IllegalCollectionName = 9;
        See Also:
        Constant Field Values
      • IllegalTOPK_VALUE

        public static final int IllegalTOPK_VALUE
        IllegalTOPK = 10;
        See Also:
        Constant Field Values
      • IllegalRowRecord_VALUE

        public static final int IllegalRowRecord_VALUE
        IllegalRowRecord = 11;
        See Also:
        Constant Field Values
      • IllegalVectorID_VALUE

        public static final int IllegalVectorID_VALUE
        IllegalVectorID = 12;
        See Also:
        Constant Field Values
      • IllegalSearchResult_VALUE

        public static final int IllegalSearchResult_VALUE
        IllegalSearchResult = 13;
        See Also:
        Constant Field Values
      • FileNotFound_VALUE

        public static final int FileNotFound_VALUE
        FileNotFound = 14;
        See Also:
        Constant Field Values
      • MetaFailed_VALUE

        public static final int MetaFailed_VALUE
        MetaFailed = 15;
        See Also:
        Constant Field Values
      • CacheFailed_VALUE

        public static final int CacheFailed_VALUE
        CacheFailed = 16;
        See Also:
        Constant Field Values
      • CannotCreateFolder_VALUE

        public static final int CannotCreateFolder_VALUE
        CannotCreateFolder = 17;
        See Also:
        Constant Field Values
      • CannotCreateFile_VALUE

        public static final int CannotCreateFile_VALUE
        CannotCreateFile = 18;
        See Also:
        Constant Field Values
      • CannotDeleteFolder_VALUE

        public static final int CannotDeleteFolder_VALUE
        CannotDeleteFolder = 19;
        See Also:
        Constant Field Values
      • CannotDeleteFile_VALUE

        public static final int CannotDeleteFile_VALUE
        CannotDeleteFile = 20;
        See Also:
        Constant Field Values
      • BuildIndexError_VALUE

        public static final int BuildIndexError_VALUE
        BuildIndexError = 21;
        See Also:
        Constant Field Values
      • IllegalNLIST_VALUE

        public static final int IllegalNLIST_VALUE
        IllegalNLIST = 22;
        See Also:
        Constant Field Values
      • IllegalMetricType_VALUE

        public static final int IllegalMetricType_VALUE
        IllegalMetricType = 23;
        See Also:
        Constant Field Values
      • OutOfMemory_VALUE

        public static final int OutOfMemory_VALUE
        OutOfMemory = 24;
        See Also:
        Constant Field Values
      • IndexNotExist_VALUE

        public static final int IndexNotExist_VALUE
        IndexNotExist = 25;
        See Also:
        Constant Field Values
      • EmptyCollection_VALUE

        public static final int EmptyCollection_VALUE
        EmptyCollection = 26;
        See Also:
        Constant Field Values
      • DDRequestRace_VALUE

        public static final int DDRequestRace_VALUE
         internal error code.
         
        DDRequestRace = 1000;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static ErrorCode[] 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 (ErrorCode c : ErrorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorCode 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 ErrorCode 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 ErrorCode 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<ErrorCode> 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 ErrorCode 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