2020-10-24 18:04:57 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package milvus.proto.common;
|
2021-04-22 14:45:57 +08:00
|
|
|
option go_package="github.com/milvus-io/milvus/internal/proto/commonpb";
|
2020-10-23 18:01:24 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
|
2020-10-23 18:01:24 +08:00
|
|
|
enum ErrorCode {
|
2021-03-10 22:06:22 +08:00
|
|
|
Success = 0;
|
|
|
|
UnexpectedError = 1;
|
|
|
|
ConnectFailed = 2;
|
|
|
|
PermissionDenied = 3;
|
|
|
|
CollectionNotExists = 4;
|
|
|
|
IllegalArgument = 5;
|
|
|
|
IllegalDimension = 7;
|
|
|
|
IllegalIndexType = 8;
|
|
|
|
IllegalCollectionName = 9;
|
|
|
|
IllegalTOPK = 10;
|
|
|
|
IllegalRowRecord = 11;
|
|
|
|
IllegalVectorID = 12;
|
|
|
|
IllegalSearchResult = 13;
|
|
|
|
FileNotFound = 14;
|
|
|
|
MetaFailed = 15;
|
|
|
|
CacheFailed = 16;
|
|
|
|
CannotCreateFolder = 17;
|
|
|
|
CannotCreateFile = 18;
|
|
|
|
CannotDeleteFolder = 19;
|
|
|
|
CannotDeleteFile = 20;
|
|
|
|
BuildIndexError = 21;
|
|
|
|
IllegalNLIST = 22;
|
|
|
|
IllegalMetricType = 23;
|
|
|
|
OutOfMemory = 24;
|
|
|
|
IndexNotExist = 25;
|
2020-11-19 21:02:31 +08:00
|
|
|
|
|
|
|
// internal error code.
|
2021-03-10 22:06:22 +08:00
|
|
|
DDRequestRace = 1000;
|
2020-10-23 18:01:24 +08:00
|
|
|
}
|
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
enum IndexState {
|
2021-03-11 14:14:29 +08:00
|
|
|
IndexStateNone = 0;
|
|
|
|
Unissued = 1;
|
|
|
|
InProgress = 2;
|
|
|
|
Finished = 3;
|
|
|
|
Failed = 4;
|
2021-01-18 19:32:08 +08:00
|
|
|
}
|
2020-11-19 21:02:31 +08:00
|
|
|
|
2021-02-03 18:55:00 +08:00
|
|
|
enum SegmentState {
|
2021-03-11 14:14:29 +08:00
|
|
|
SegmentStateNone = 0;
|
|
|
|
NotExist = 1;
|
|
|
|
Growing = 2;
|
|
|
|
Sealed = 3;
|
|
|
|
Flushed = 4;
|
2021-02-03 18:55:00 +08:00
|
|
|
}
|
|
|
|
|
2020-10-23 18:01:24 +08:00
|
|
|
message Status {
|
|
|
|
ErrorCode error_code = 1;
|
|
|
|
string reason = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message KeyValuePair {
|
|
|
|
string key = 1;
|
|
|
|
string value = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Blob {
|
|
|
|
bytes value = 1;
|
|
|
|
}
|
|
|
|
|
2020-10-24 18:04:57 +08:00
|
|
|
message Address {
|
|
|
|
string ip = 1;
|
|
|
|
int64 port = 2;
|
|
|
|
}
|
|
|
|
|
2021-01-16 15:06:19 +08:00
|
|
|
enum MsgType {
|
2021-03-11 14:14:29 +08:00
|
|
|
Undefined = 0;
|
2021-03-10 14:45:35 +08:00
|
|
|
/* DEFINITION REQUESTS: COLLECTION */
|
|
|
|
CreateCollection = 100;
|
|
|
|
DropCollection = 101;
|
|
|
|
HasCollection = 102;
|
|
|
|
DescribeCollection = 103;
|
|
|
|
ShowCollections = 104;
|
|
|
|
GetSystemConfigs = 105;
|
|
|
|
LoadCollection = 106;
|
|
|
|
ReleaseCollection = 107;
|
|
|
|
|
|
|
|
/* DEFINITION REQUESTS: PARTITION */
|
|
|
|
CreatePartition = 200;
|
|
|
|
DropPartition = 201;
|
|
|
|
HasPartition = 202;
|
|
|
|
DescribePartition = 203;
|
|
|
|
ShowPartitions = 204;
|
|
|
|
LoadPartitions = 205;
|
|
|
|
ReleasePartitions = 206;
|
|
|
|
|
|
|
|
/* DEFINE REQUESTS: SEGMENT */
|
|
|
|
ShowSegments = 250;
|
|
|
|
DescribeSegment = 251;
|
|
|
|
|
|
|
|
/* DEFINITION REQUESTS: INDEX */
|
|
|
|
CreateIndex = 300;
|
|
|
|
DescribeIndex = 301;
|
|
|
|
DropIndex = 302;
|
|
|
|
|
|
|
|
/* MANIPULATION REQUESTS */
|
|
|
|
Insert = 400;
|
|
|
|
Delete = 401;
|
|
|
|
Flush = 402;
|
|
|
|
|
|
|
|
/* QUERY */
|
|
|
|
Search = 500;
|
|
|
|
SearchResult = 501;
|
|
|
|
GetIndexState = 502;
|
2021-04-27 15:46:45 +08:00
|
|
|
GetIndexBuildProgress = 503;
|
|
|
|
GetCollectionStatistics = 504;
|
|
|
|
GetPartitionStatistics = 505;
|
2021-05-20 15:02:31 +08:00
|
|
|
Retrieve = 506;
|
|
|
|
RetrieveResult = 507;
|
2021-03-10 14:45:35 +08:00
|
|
|
|
|
|
|
/* DATA SERVICE */
|
|
|
|
SegmentInfo = 600;
|
|
|
|
|
|
|
|
/* SYSTEM CONTROL */
|
|
|
|
TimeTick = 1200;
|
|
|
|
QueryNodeStats = 1201; // GOOSE TODO: Remove kQueryNodeStats
|
|
|
|
LoadIndex = 1202;
|
|
|
|
RequestID = 1203;
|
|
|
|
RequestTSO = 1204;
|
|
|
|
AllocateSegment = 1205;
|
|
|
|
SegmentStatistics = 1206;
|
|
|
|
SegmentFlushDone = 1207;
|
2021-01-16 15:06:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message MsgBase {
|
|
|
|
MsgType msg_type = 1;
|
|
|
|
int64 msgID = 2;
|
|
|
|
uint64 timestamp = 3;
|
|
|
|
int64 sourceID = 4;
|
|
|
|
}
|
|
|
|
|
2021-04-29 16:48:06 +08:00
|
|
|
enum DslType {
|
|
|
|
Dsl = 0;
|
|
|
|
BoolExprV1 = 1;
|
|
|
|
}
|
2021-01-18 19:32:08 +08:00
|
|
|
|
|
|
|
// Don't Modify This. @czs
|
|
|
|
message MsgHeader {
|
|
|
|
common.MsgBase base = 1;
|
2021-01-21 09:55:25 +08:00
|
|
|
}
|