2021-01-14 14:24:14 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package milvus.proto.index;
|
|
|
|
|
2021-04-22 14:45:57 +08:00
|
|
|
option go_package = "github.com/milvus-io/milvus/internal/proto/indexpb";
|
2021-01-14 14:24:14 +08:00
|
|
|
|
|
|
|
import "common.proto";
|
|
|
|
import "internal.proto";
|
2021-01-26 19:24:09 +08:00
|
|
|
import "milvus.proto";
|
2021-01-14 14:24:14 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
service IndexService {
|
|
|
|
rpc GetComponentStates(internal.GetComponentStatesRequest) returns (internal.ComponentStates) {}
|
|
|
|
rpc GetTimeTickChannel(internal.GetTimeTickChannelRequest) returns(milvus.StringResponse) {}
|
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
|
|
|
rpc RegisterNode(RegisterNodeRequest) returns (RegisterNodeResponse) {}
|
|
|
|
rpc BuildIndex(BuildIndexRequest) returns (BuildIndexResponse){}
|
|
|
|
rpc GetIndexStates(GetIndexStatesRequest) returns (GetIndexStatesResponse) {}
|
|
|
|
rpc GetIndexFilePaths(GetIndexFilePathsRequest) returns (GetIndexFilePathsResponse){}
|
|
|
|
rpc DropIndex(DropIndexRequest) returns (common.Status) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
service IndexNode {
|
|
|
|
rpc GetComponentStates(internal.GetComponentStatesRequest) returns (internal.ComponentStates) {}
|
|
|
|
rpc GetTimeTickChannel(internal.GetTimeTickChannelRequest) returns(milvus.StringResponse) {}
|
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
2021-05-27 22:24:29 +08:00
|
|
|
rpc CreateIndex(CreateIndexRequest) returns (common.Status){}
|
2021-03-12 14:22:09 +08:00
|
|
|
}
|
2021-01-14 14:24:14 +08:00
|
|
|
|
|
|
|
message RegisterNodeRequest {
|
2021-01-16 15:06:19 +08:00
|
|
|
common.MsgBase base = 1;
|
2021-01-14 14:24:14 +08:00
|
|
|
common.Address address = 2;
|
2021-05-31 10:32:30 +08:00
|
|
|
int64 nodeID = 3;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message RegisterNodeResponse {
|
2021-01-20 15:02:23 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
internal.InitParams init_params = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexStatesRequest {
|
2021-02-02 19:56:04 +08:00
|
|
|
repeated int64 indexBuildIDs = 1;
|
2021-01-20 15:02:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
message IndexInfo {
|
|
|
|
common.IndexState state = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
int64 indexBuildID = 2;
|
|
|
|
int64 indexID = 3;
|
|
|
|
string index_name = 4;
|
2021-03-12 14:22:09 +08:00
|
|
|
string reason = 5;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexStatesResponse {
|
2021-01-14 14:24:14 +08:00
|
|
|
common.Status status = 1;
|
2021-01-20 15:02:23 +08:00
|
|
|
repeated IndexInfo states = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-05-27 22:24:29 +08:00
|
|
|
message CreateIndexRequest {
|
2021-03-12 14:22:09 +08:00
|
|
|
int64 indexBuildID = 1;
|
|
|
|
string index_name = 2;
|
|
|
|
int64 indexID = 3;
|
2021-05-27 22:24:29 +08:00
|
|
|
int64 version = 4;
|
|
|
|
string meta_path = 5;
|
|
|
|
repeated string data_paths = 6;
|
|
|
|
repeated common.KeyValuePair type_params = 7;
|
|
|
|
repeated common.KeyValuePair index_params = 8;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-05-27 22:24:29 +08:00
|
|
|
message BuildIndexRequest {
|
|
|
|
int64 indexBuildID = 1;
|
|
|
|
string index_name = 2;
|
|
|
|
int64 indexID = 3;
|
|
|
|
repeated string data_paths = 5;
|
|
|
|
repeated common.KeyValuePair type_params = 6;
|
|
|
|
repeated common.KeyValuePair index_params = 7;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-05-27 22:24:29 +08:00
|
|
|
message BuildIndexResponse {
|
2021-01-15 14:38:36 +08:00
|
|
|
common.Status status = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
int64 indexBuildID = 2;
|
2021-01-15 14:38:36 +08:00
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexFilePathsRequest {
|
2021-02-02 19:56:04 +08:00
|
|
|
repeated int64 indexBuildIDs = 1;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-01-21 10:01:29 +08:00
|
|
|
message IndexFilePathInfo {
|
2021-01-14 14:24:14 +08:00
|
|
|
common.Status status = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
int64 indexBuildID = 2;
|
2021-01-14 14:24:14 +08:00
|
|
|
repeated string index_file_paths = 3;
|
|
|
|
}
|
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message GetIndexFilePathsResponse {
|
2021-01-21 10:01:29 +08:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated IndexFilePathInfo file_paths = 2;
|
|
|
|
}
|
|
|
|
|
2021-01-14 14:24:14 +08:00
|
|
|
message IndexMeta {
|
2021-03-12 14:22:09 +08:00
|
|
|
int64 indexBuildID = 1;
|
2021-02-02 19:56:04 +08:00
|
|
|
common.IndexState state = 2;
|
2021-01-26 09:38:40 +08:00
|
|
|
string fail_reason = 3;
|
|
|
|
BuildIndexRequest req = 4;
|
|
|
|
repeated string index_file_paths = 5;
|
2021-04-16 15:37:13 +08:00
|
|
|
bool mark_deleted = 6;
|
2021-05-31 10:32:30 +08:00
|
|
|
int64 nodeID = 7;
|
2021-05-27 22:24:29 +08:00
|
|
|
int64 version = 8;
|
|
|
|
bool recycled = 9;
|
2021-01-14 14:24:14 +08:00
|
|
|
}
|
|
|
|
|
2021-02-20 10:14:03 +08:00
|
|
|
message DropIndexRequest {
|
2021-02-20 15:38:44 +08:00
|
|
|
int64 indexID = 1;
|
2021-02-20 10:14:03 +08:00
|
|
|
}
|