2020-09-10 19:55:03 +08:00
|
|
|
syntax = "proto3";
|
2020-10-24 18:04:57 +08:00
|
|
|
package milvus.proto.master;
|
2020-09-10 19:55:03 +08:00
|
|
|
|
2020-10-24 18:04:57 +08:00
|
|
|
option go_package="github.com/zilliztech/milvus-distributed/internal/proto/masterpb";
|
|
|
|
|
|
|
|
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-01-18 19:32:08 +08:00
|
|
|
import "data_service.proto";
|
2020-09-10 19:55:03 +08:00
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
message IDRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
uint32 count = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message IDResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
int64 ID = 2;
|
|
|
|
uint32 count = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TsoRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
uint32 count = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TsoResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
uint64 timestamp = 2;
|
|
|
|
uint32 count = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
service MasterService {
|
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){}
|
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) {}
|
|
|
|
|
2020-10-24 18:04:57 +08:00
|
|
|
/**
|
|
|
|
* @brief This method is used to list all collections.
|
|
|
|
*
|
|
|
|
* @return StringListResponse, collection name list
|
|
|
|
*/
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc ShowCollections(milvus.ShowCollectionRequest) returns (milvus.ShowCollectionResponse) {}
|
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-01-18 19:32:08 +08:00
|
|
|
rpc ShowPartitions(milvus.ShowPartitionRequest) returns (milvus.ShowPartitionResponse) {}
|
2020-10-29 09:31:08 +08:00
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc DescribeSegment(milvus.DescribeSegmentRequest) returns (milvus.DescribeSegmentResponse) {}
|
|
|
|
rpc ShowSegments(milvus.ShowSegmentRequest) returns (milvus.ShowSegmentResponse) {}
|
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) {}
|
|
|
|
rpc GetIndexState(milvus.IndexStateRequest) returns (milvus.IndexStateResponse) {}
|
2020-12-07 15:22:20 +08:00
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
rpc AllocTimestamp(TsoRequest) returns (TsoResponse) {}
|
|
|
|
rpc AllocID(IDRequest) returns (IDResponse) {}
|
2020-11-18 19:46:18 +08:00
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
// todo move to data service
|
|
|
|
rpc AssignSegmentID(data.AssignSegIDRequest) returns (data.AssignSegIDResponse) {}
|
2020-12-21 19:28:54 +08:00
|
|
|
|
2021-01-24 20:26:35 +08:00
|
|
|
rpc GetComponentStatesRPC(common.Empty) returns (internal.ComponentStates) {}
|
2021-01-18 21:39:56 +08:00
|
|
|
|
2021-01-24 20:26:35 +08:00
|
|
|
rpc GetTimeTickChannelRPC(common.Empty) returns (milvus.StringResponse) {}
|
2021-01-18 21:39:56 +08:00
|
|
|
|
2021-01-24 20:26:35 +08:00
|
|
|
rpc GetDdChannelRPC(common.Empty) returns (milvus.StringResponse) {}
|
2021-01-19 14:44:03 +08:00
|
|
|
|
2021-01-24 20:26:35 +08:00
|
|
|
rpc GetStatisticsChannelRPC(common.Empty) returns (milvus.StringResponse) {}
|
2021-01-18 21:39:56 +08:00
|
|
|
|
2021-01-18 19:32:08 +08:00
|
|
|
}
|