mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add IndexDescription comments in milvus.proto (#10246)
Signed-off-by: Gitea <zizhao.chen@zilliz.com>pull/10602/head
parent
d7c3bc1373
commit
80f1eb8356
|
@ -444,15 +444,27 @@ message DescribeIndexRequest {
|
||||||
string index_name = 5;
|
string index_name = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Index informations
|
||||||
|
*/
|
||||||
message IndexDescription {
|
message IndexDescription {
|
||||||
|
// Index name
|
||||||
string index_name = 1;
|
string index_name = 1;
|
||||||
|
// Index id
|
||||||
int64 indexID = 2;
|
int64 indexID = 2;
|
||||||
|
// Will return index_type, metric_type, params(like nlist).
|
||||||
repeated common.KeyValuePair params = 3;
|
repeated common.KeyValuePair params = 3;
|
||||||
|
// The vector field name
|
||||||
string field_name = 4;
|
string field_name = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Describe index response
|
||||||
|
*/
|
||||||
message DescribeIndexResponse {
|
message DescribeIndexResponse {
|
||||||
|
// Response status
|
||||||
common.Status status = 1;
|
common.Status status = 1;
|
||||||
|
// All index informations, for now only return tha latest index you created for the collection.
|
||||||
repeated IndexDescription index_descriptions = 2;
|
repeated IndexDescription index_descriptions = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2178,14 +2178,20 @@ func (m *DescribeIndexRequest) GetIndexName() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Index informations
|
||||||
type IndexDescription struct {
|
type IndexDescription struct {
|
||||||
IndexName string `protobuf:"bytes,1,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"`
|
// Index name
|
||||||
IndexID int64 `protobuf:"varint,2,opt,name=indexID,proto3" json:"indexID,omitempty"`
|
IndexName string `protobuf:"bytes,1,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"`
|
||||||
Params []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"`
|
// Index id
|
||||||
FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
|
IndexID int64 `protobuf:"varint,2,opt,name=indexID,proto3" json:"indexID,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
// Will return index_type, metric_type, params(like nlist).
|
||||||
XXX_unrecognized []byte `json:"-"`
|
Params []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"`
|
||||||
XXX_sizecache int32 `json:"-"`
|
// The vector field name
|
||||||
|
FieldName string `protobuf:"bytes,4,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *IndexDescription) Reset() { *m = IndexDescription{} }
|
func (m *IndexDescription) Reset() { *m = IndexDescription{} }
|
||||||
|
@ -2241,8 +2247,12 @@ func (m *IndexDescription) GetFieldName() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Describe index response
|
||||||
type DescribeIndexResponse struct {
|
type DescribeIndexResponse struct {
|
||||||
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
// Response status
|
||||||
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
||||||
|
// All index informations, for now only return tha latest index you created for the collection.
|
||||||
IndexDescriptions []*IndexDescription `protobuf:"bytes,2,rep,name=index_descriptions,json=indexDescriptions,proto3" json:"index_descriptions,omitempty"`
|
IndexDescriptions []*IndexDescription `protobuf:"bytes,2,rep,name=index_descriptions,json=indexDescriptions,proto3" json:"index_descriptions,omitempty"`
|
||||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
XXX_unrecognized []byte `json:"-"`
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
|
Loading…
Reference in New Issue