2020-10-24 18:04:57 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package milvus.proto.schema;
|
|
|
|
option go_package="github.com/zilliztech/milvus-distributed/internal/proto/schemapb";
|
|
|
|
|
|
|
|
import "common.proto";
|
2020-10-23 18:01:24 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Field data type
|
|
|
|
*/
|
|
|
|
enum DataType {
|
|
|
|
NONE = 0;
|
|
|
|
BOOL = 1;
|
|
|
|
INT8 = 2;
|
|
|
|
INT16 = 3;
|
|
|
|
INT32 = 4;
|
|
|
|
INT64 = 5;
|
|
|
|
|
|
|
|
FLOAT = 10;
|
|
|
|
DOUBLE = 11;
|
|
|
|
|
|
|
|
STRING = 20;
|
|
|
|
|
|
|
|
VECTOR_BINARY = 100;
|
|
|
|
VECTOR_FLOAT = 101;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Field schema
|
|
|
|
*/
|
|
|
|
message FieldSchema {
|
|
|
|
string name = 1;
|
|
|
|
string description = 2;
|
|
|
|
DataType data_type = 3;
|
2020-10-24 18:04:57 +08:00
|
|
|
repeated common.KeyValuePair type_params = 4;
|
|
|
|
repeated common.KeyValuePair index_params = 5;
|
2020-10-23 18:01:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Collection schema
|
|
|
|
*/
|
|
|
|
message CollectionSchema {
|
|
|
|
string name = 1;
|
2020-10-24 18:04:57 +08:00
|
|
|
string description = 2;
|
|
|
|
bool auto_id = 3;
|
|
|
|
repeated FieldSchema fields = 4;
|
2020-10-28 10:09:35 +08:00
|
|
|
}
|