![JAR search and dependency download from the Maven repository](/logo.png)
io.milvus.grpc.ErrorCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of milvus-sdk-java Show documentation
Show all versions of milvus-sdk-java Show documentation
Java SDK for Milvus, a distributed high-performance vector search engine.
update grpc to 1.42.1
update protobuf to 3.19.1
restore the calcDistance interface that is removed in 2.1.0-beta4
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: status.proto
package io.milvus.grpc;
/**
* Protobuf enum {@code milvus.grpc.ErrorCode}
*/
public enum ErrorCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SUCCESS = 0;
*/
SUCCESS(0),
/**
* UNEXPECTED_ERROR = 1;
*/
UNEXPECTED_ERROR(1),
/**
* CONNECT_FAILED = 2;
*/
CONNECT_FAILED(2),
/**
* PERMISSION_DENIED = 3;
*/
PERMISSION_DENIED(3),
/**
* COLLECTION_NOT_EXISTS = 4;
*/
COLLECTION_NOT_EXISTS(4),
/**
* ILLEGAL_ARGUMENT = 5;
*/
ILLEGAL_ARGUMENT(5),
/**
* ILLEGAL_DIMENSION = 7;
*/
ILLEGAL_DIMENSION(7),
/**
* ILLEGAL_INDEX_TYPE = 8;
*/
ILLEGAL_INDEX_TYPE(8),
/**
* ILLEGAL_COLLECTION_NAME = 9;
*/
ILLEGAL_COLLECTION_NAME(9),
/**
* ILLEGAL_TOPK = 10;
*/
ILLEGAL_TOPK(10),
/**
* ILLEGAL_ROWRECORD = 11;
*/
ILLEGAL_ROWRECORD(11),
/**
* ILLEGAL_VECTOR_ID = 12;
*/
ILLEGAL_VECTOR_ID(12),
/**
* ILLEGAL_SEARCH_RESULT = 13;
*/
ILLEGAL_SEARCH_RESULT(13),
/**
* FILE_NOT_FOUND = 14;
*/
FILE_NOT_FOUND(14),
/**
* META_FAILED = 15;
*/
META_FAILED(15),
/**
* CACHE_FAILED = 16;
*/
CACHE_FAILED(16),
/**
* CANNOT_CREATE_FOLDER = 17;
*/
CANNOT_CREATE_FOLDER(17),
/**
* CANNOT_CREATE_FILE = 18;
*/
CANNOT_CREATE_FILE(18),
/**
* CANNOT_DELETE_FOLDER = 19;
*/
CANNOT_DELETE_FOLDER(19),
/**
* CANNOT_DELETE_FILE = 20;
*/
CANNOT_DELETE_FILE(20),
/**
* BUILD_INDEX_ERROR = 21;
*/
BUILD_INDEX_ERROR(21),
/**
* ILLEGAL_NLIST = 22;
*/
ILLEGAL_NLIST(22),
/**
* ILLEGAL_METRIC_TYPE = 23;
*/
ILLEGAL_METRIC_TYPE(23),
/**
* OUT_OF_MEMORY = 24;
*/
OUT_OF_MEMORY(24),
UNRECOGNIZED(-1),
;
/**
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
* UNEXPECTED_ERROR = 1;
*/
public static final int UNEXPECTED_ERROR_VALUE = 1;
/**
* CONNECT_FAILED = 2;
*/
public static final int CONNECT_FAILED_VALUE = 2;
/**
* PERMISSION_DENIED = 3;
*/
public static final int PERMISSION_DENIED_VALUE = 3;
/**
* COLLECTION_NOT_EXISTS = 4;
*/
public static final int COLLECTION_NOT_EXISTS_VALUE = 4;
/**
* ILLEGAL_ARGUMENT = 5;
*/
public static final int ILLEGAL_ARGUMENT_VALUE = 5;
/**
* ILLEGAL_DIMENSION = 7;
*/
public static final int ILLEGAL_DIMENSION_VALUE = 7;
/**
* ILLEGAL_INDEX_TYPE = 8;
*/
public static final int ILLEGAL_INDEX_TYPE_VALUE = 8;
/**
* ILLEGAL_COLLECTION_NAME = 9;
*/
public static final int ILLEGAL_COLLECTION_NAME_VALUE = 9;
/**
* ILLEGAL_TOPK = 10;
*/
public static final int ILLEGAL_TOPK_VALUE = 10;
/**
* ILLEGAL_ROWRECORD = 11;
*/
public static final int ILLEGAL_ROWRECORD_VALUE = 11;
/**
* ILLEGAL_VECTOR_ID = 12;
*/
public static final int ILLEGAL_VECTOR_ID_VALUE = 12;
/**
* ILLEGAL_SEARCH_RESULT = 13;
*/
public static final int ILLEGAL_SEARCH_RESULT_VALUE = 13;
/**
* FILE_NOT_FOUND = 14;
*/
public static final int FILE_NOT_FOUND_VALUE = 14;
/**
* META_FAILED = 15;
*/
public static final int META_FAILED_VALUE = 15;
/**
* CACHE_FAILED = 16;
*/
public static final int CACHE_FAILED_VALUE = 16;
/**
* CANNOT_CREATE_FOLDER = 17;
*/
public static final int CANNOT_CREATE_FOLDER_VALUE = 17;
/**
* CANNOT_CREATE_FILE = 18;
*/
public static final int CANNOT_CREATE_FILE_VALUE = 18;
/**
* CANNOT_DELETE_FOLDER = 19;
*/
public static final int CANNOT_DELETE_FOLDER_VALUE = 19;
/**
* CANNOT_DELETE_FILE = 20;
*/
public static final int CANNOT_DELETE_FILE_VALUE = 20;
/**
* BUILD_INDEX_ERROR = 21;
*/
public static final int BUILD_INDEX_ERROR_VALUE = 21;
/**
* ILLEGAL_NLIST = 22;
*/
public static final int ILLEGAL_NLIST_VALUE = 22;
/**
* ILLEGAL_METRIC_TYPE = 23;
*/
public static final int ILLEGAL_METRIC_TYPE_VALUE = 23;
/**
* OUT_OF_MEMORY = 24;
*/
public static final int OUT_OF_MEMORY_VALUE = 24;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorCode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ErrorCode forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return UNEXPECTED_ERROR;
case 2: return CONNECT_FAILED;
case 3: return PERMISSION_DENIED;
case 4: return COLLECTION_NOT_EXISTS;
case 5: return ILLEGAL_ARGUMENT;
case 7: return ILLEGAL_DIMENSION;
case 8: return ILLEGAL_INDEX_TYPE;
case 9: return ILLEGAL_COLLECTION_NAME;
case 10: return ILLEGAL_TOPK;
case 11: return ILLEGAL_ROWRECORD;
case 12: return ILLEGAL_VECTOR_ID;
case 13: return ILLEGAL_SEARCH_RESULT;
case 14: return FILE_NOT_FOUND;
case 15: return META_FAILED;
case 16: return CACHE_FAILED;
case 17: return CANNOT_CREATE_FOLDER;
case 18: return CANNOT_CREATE_FILE;
case 19: return CANNOT_DELETE_FOLDER;
case 20: return CANNOT_DELETE_FILE;
case 21: return BUILD_INDEX_ERROR;
case 22: return ILLEGAL_NLIST;
case 23: return ILLEGAL_METRIC_TYPE;
case 24: return OUT_OF_MEMORY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ErrorCode findValueByNumber(int number) {
return ErrorCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.milvus.grpc.MilvusStatusProto.getDescriptor().getEnumTypes().get(0);
}
private static final ErrorCode[] VALUES = values();
public static ErrorCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ErrorCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:milvus.grpc.ErrorCode)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy