2020-09-10 19:55:03 +08:00
|
|
|
syntax = "proto3";
|
2021-06-22 16:14:09 +08:00
|
|
|
package milvus.proto.rootcoord;
|
2020-09-10 19:55:03 +08:00
|
|
|
|
2021-06-22 16:14:09 +08:00
|
|
|
option go_package="github.com/milvus-io/milvus/internal/proto/rootcoordpb";
|
2020-10-24 18:04:57 +08:00
|
|
|
|
|
|
|
import "common.proto";
|
2021-01-18 19:32:08 +08:00
|
|
|
import "milvus.proto";
|
2021-01-18 21:39:56 +08:00
|
|
|
import "internal.proto";
|
2021-06-22 16:14:09 +08:00
|
|
|
import "proxy.proto";
|
2021-07-01 14:58:17 +08:00
|
|
|
import "data_coord.proto";
|
2020-09-10 19:55:03 +08:00
|
|
|
|
2021-06-22 16:14:09 +08:00
|
|
|
service RootCoord {
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc GetComponentStates(internal.GetComponentStatesRequest) returns (internal.ComponentStates) {}
|
|
|
|
rpc GetTimeTickChannel(internal.GetTimeTickChannelRequest) returns(milvus.StringResponse) {}
|
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
2020-10-24 18:04:57 +08:00
|
|
|
/**
|
|
|
|
* @brief This method is used to create collection
|
|
|
|
*
|
|
|
|
* @param CreateCollectionRequest, use to provide collection information to be created.
|
|
|
|
*
|
|
|
|
* @return Status
|
|
|
|
*/
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc CreateCollection(milvus.CreateCollectionRequest) returns (common.Status){}
|
2021-03-12 14:22:09 +08:00
|
|
|
|
2020-10-24 18:04:57 +08:00
|
|
|
/**
|
|
|
|
* @brief This method is used to delete collection.
|
|
|
|
*
|
|
|
|
* @param DropCollectionRequest, collection name is going to be deleted.
|
|
|
|
*
|
|
|
|
* @return Status
|
|
|
|
*/
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc DropCollection(milvus.DropCollectionRequest) returns (common.Status) {}
|
2020-10-24 18:04:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This method is used to test collection existence.
|
|
|
|
*
|
|
|
|
* @param HasCollectionRequest, collection name is going to be tested.
|
|
|
|
*
|
|
|
|
* @return BoolResponse
|
|
|
|
*/
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc HasCollection(milvus.HasCollectionRequest) returns (milvus.BoolResponse) {}
|
2020-10-24 18:04:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This method is used to get collection schema.
|
|
|
|
*
|
|
|
|
* @param DescribeCollectionRequest, target collection name.
|
|
|
|
*
|
|
|
|
* @return CollectionSchema
|
|
|
|
*/
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc DescribeCollection(milvus.DescribeCollectionRequest) returns (milvus.DescribeCollectionResponse) {}
|
|
|
|
|
2021-09-18 11:13:51 +08:00
|
|
|
rpc CreateAlias(milvus.CreateAliasRequest) returns (common.Status) {}
|
|
|
|
rpc DropAlias(milvus.DropAliasRequest) returns (common.Status) {}
|
|
|
|
rpc AlterAlias(milvus.AlterAliasRequest) returns (common.Status) {}
|
|
|
|
|
2020-10-24 18:04:57 +08:00
|
|
|
/**
|
|
|
|
* @brief This method is used to list all collections.
|
|
|
|
*
|
|
|
|
* @return StringListResponse, collection name list
|
|
|
|
*/
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc ShowCollections(milvus.ShowCollectionsRequest) returns (milvus.ShowCollectionsResponse) {}
|
2020-10-24 18:04:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This method is used to create partition
|
|
|
|
*
|
|
|
|
* @return Status
|
|
|
|
*/
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc CreatePartition(milvus.CreatePartitionRequest) returns (common.Status) {}
|
2020-10-24 18:04:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This method is used to drop partition
|
|
|
|
*
|
|
|
|
* @return Status
|
|
|
|
*/
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc DropPartition(milvus.DropPartitionRequest) returns (common.Status) {}
|
2020-10-24 18:04:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This method is used to test partition existence.
|
|
|
|
*
|
|
|
|
* @return BoolResponse
|
|
|
|
*/
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc HasPartition(milvus.HasPartitionRequest) returns (milvus.BoolResponse) {}
|
2020-10-24 18:04:57 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief This method is used to show partition information
|
|
|
|
*
|
|
|
|
* @param ShowPartitionRequest, target collection name.
|
|
|
|
*
|
|
|
|
* @return StringListResponse
|
|
|
|
*/
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc ShowPartitions(milvus.ShowPartitionsRequest) returns (milvus.ShowPartitionsResponse) {}
|
2020-10-29 09:31:08 +08:00
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc DescribeSegment(milvus.DescribeSegmentRequest) returns (milvus.DescribeSegmentResponse) {}
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc ShowSegments(milvus.ShowSegmentsRequest) returns (milvus.ShowSegmentsResponse) {}
|
2020-10-29 09:31:08 +08:00
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc CreateIndex(milvus.CreateIndexRequest) returns (common.Status) {}
|
|
|
|
rpc DescribeIndex(milvus.DescribeIndexRequest) returns (milvus.DescribeIndexResponse) {}
|
2021-02-20 10:14:03 +08:00
|
|
|
rpc DropIndex(milvus.DropIndexRequest) returns (common.Status) {}
|
2020-12-07 15:22:20 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
rpc AllocTimestamp(AllocTimestampRequest) returns (AllocTimestampResponse) {}
|
|
|
|
rpc AllocID(AllocIDRequest) returns (AllocIDResponse) {}
|
2021-05-21 16:08:12 +08:00
|
|
|
rpc UpdateChannelTimeTick(internal.ChannelTimeTickMsg) returns (common.Status) {}
|
2021-06-17 17:45:56 +08:00
|
|
|
rpc ReleaseDQLMessageStream(proxy.ReleaseDQLMessageStreamRequest) returns (common.Status) {}
|
2021-07-02 11:16:20 +08:00
|
|
|
rpc SegmentFlushCompleted(data.SegmentFlushCompletedMsg) returns (common.Status) {}
|
2021-08-31 11:45:59 +08:00
|
|
|
|
|
|
|
// https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy
|
|
|
|
rpc GetMetrics(milvus.GetMetricsRequest) returns (milvus.GetMetricsResponse) {}
|
2021-03-12 14:22:09 +08:00
|
|
|
}
|
2021-01-18 21:39:56 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message AllocTimestampRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
uint32 count = 3;
|
|
|
|
}
|
2021-01-18 21:39:56 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message AllocTimestampResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
uint64 timestamp = 2;
|
|
|
|
uint32 count = 3;
|
|
|
|
}
|
2021-01-19 14:44:03 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message AllocIDRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
uint32 count = 2;
|
|
|
|
}
|
2021-01-18 21:39:56 +08:00
|
|
|
|
2021-03-12 14:22:09 +08:00
|
|
|
message AllocIDResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
int64 ID = 2;
|
|
|
|
uint32 count = 3;
|
|
|
|
}
|