mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-03 17:31:58 +08:00
272 lines
9.6 KiB
Go
272 lines
9.6 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: schema.proto
|
|
|
|
package schemapb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
commonpb "github.com/zilliztech/milvus-distributed/internal/proto/commonpb"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
//*
|
|
// @brief Field data type
|
|
type DataType int32
|
|
|
|
const (
|
|
DataType_None DataType = 0
|
|
DataType_Bool DataType = 1
|
|
DataType_Int8 DataType = 2
|
|
DataType_Int16 DataType = 3
|
|
DataType_Int32 DataType = 4
|
|
DataType_Int64 DataType = 5
|
|
DataType_Float DataType = 10
|
|
DataType_Double DataType = 11
|
|
DataType_String DataType = 20
|
|
DataType_BinaryVector DataType = 100
|
|
DataType_FloatVector DataType = 101
|
|
)
|
|
|
|
var DataType_name = map[int32]string{
|
|
0: "None",
|
|
1: "Bool",
|
|
2: "Int8",
|
|
3: "Int16",
|
|
4: "Int32",
|
|
5: "Int64",
|
|
10: "Float",
|
|
11: "Double",
|
|
20: "String",
|
|
100: "BinaryVector",
|
|
101: "FloatVector",
|
|
}
|
|
|
|
var DataType_value = map[string]int32{
|
|
"None": 0,
|
|
"Bool": 1,
|
|
"Int8": 2,
|
|
"Int16": 3,
|
|
"Int32": 4,
|
|
"Int64": 5,
|
|
"Float": 10,
|
|
"Double": 11,
|
|
"String": 20,
|
|
"BinaryVector": 100,
|
|
"FloatVector": 101,
|
|
}
|
|
|
|
func (x DataType) String() string {
|
|
return proto.EnumName(DataType_name, int32(x))
|
|
}
|
|
|
|
func (DataType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_1c5fb4d8cc22d66a, []int{0}
|
|
}
|
|
|
|
//*
|
|
// @brief Field schema
|
|
type FieldSchema struct {
|
|
FieldID int64 `protobuf:"varint,1,opt,name=fieldID,proto3" json:"fieldID,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
IsPrimaryKey bool `protobuf:"varint,3,opt,name=is_primary_key,json=isPrimaryKey,proto3" json:"is_primary_key,omitempty"`
|
|
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
|
|
DataType DataType `protobuf:"varint,5,opt,name=data_type,json=dataType,proto3,enum=milvus.proto.schema.DataType" json:"data_type,omitempty"`
|
|
TypeParams []*commonpb.KeyValuePair `protobuf:"bytes,6,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"`
|
|
IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,7,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *FieldSchema) Reset() { *m = FieldSchema{} }
|
|
func (m *FieldSchema) String() string { return proto.CompactTextString(m) }
|
|
func (*FieldSchema) ProtoMessage() {}
|
|
func (*FieldSchema) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_1c5fb4d8cc22d66a, []int{0}
|
|
}
|
|
|
|
func (m *FieldSchema) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_FieldSchema.Unmarshal(m, b)
|
|
}
|
|
func (m *FieldSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_FieldSchema.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *FieldSchema) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_FieldSchema.Merge(m, src)
|
|
}
|
|
func (m *FieldSchema) XXX_Size() int {
|
|
return xxx_messageInfo_FieldSchema.Size(m)
|
|
}
|
|
func (m *FieldSchema) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_FieldSchema.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_FieldSchema proto.InternalMessageInfo
|
|
|
|
func (m *FieldSchema) GetFieldID() int64 {
|
|
if m != nil {
|
|
return m.FieldID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *FieldSchema) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *FieldSchema) GetIsPrimaryKey() bool {
|
|
if m != nil {
|
|
return m.IsPrimaryKey
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *FieldSchema) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *FieldSchema) GetDataType() DataType {
|
|
if m != nil {
|
|
return m.DataType
|
|
}
|
|
return DataType_None
|
|
}
|
|
|
|
func (m *FieldSchema) GetTypeParams() []*commonpb.KeyValuePair {
|
|
if m != nil {
|
|
return m.TypeParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *FieldSchema) GetIndexParams() []*commonpb.KeyValuePair {
|
|
if m != nil {
|
|
return m.IndexParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Collection schema
|
|
type CollectionSchema struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
|
AutoID bool `protobuf:"varint,3,opt,name=autoID,proto3" json:"autoID,omitempty"`
|
|
Fields []*FieldSchema `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CollectionSchema) Reset() { *m = CollectionSchema{} }
|
|
func (m *CollectionSchema) String() string { return proto.CompactTextString(m) }
|
|
func (*CollectionSchema) ProtoMessage() {}
|
|
func (*CollectionSchema) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_1c5fb4d8cc22d66a, []int{1}
|
|
}
|
|
|
|
func (m *CollectionSchema) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CollectionSchema.Unmarshal(m, b)
|
|
}
|
|
func (m *CollectionSchema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CollectionSchema.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CollectionSchema) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CollectionSchema.Merge(m, src)
|
|
}
|
|
func (m *CollectionSchema) XXX_Size() int {
|
|
return xxx_messageInfo_CollectionSchema.Size(m)
|
|
}
|
|
func (m *CollectionSchema) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CollectionSchema.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CollectionSchema proto.InternalMessageInfo
|
|
|
|
func (m *CollectionSchema) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CollectionSchema) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CollectionSchema) GetAutoID() bool {
|
|
if m != nil {
|
|
return m.AutoID
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *CollectionSchema) GetFields() []*FieldSchema {
|
|
if m != nil {
|
|
return m.Fields
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("milvus.proto.schema.DataType", DataType_name, DataType_value)
|
|
proto.RegisterType((*FieldSchema)(nil), "milvus.proto.schema.FieldSchema")
|
|
proto.RegisterType((*CollectionSchema)(nil), "milvus.proto.schema.CollectionSchema")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) }
|
|
|
|
var fileDescriptor_1c5fb4d8cc22d66a = []byte{
|
|
// 458 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x5f, 0x8b, 0xd4, 0x3c,
|
|
0x14, 0xc6, 0xdf, 0xce, 0x9f, 0xee, 0xcc, 0x69, 0xd9, 0x37, 0x44, 0x91, 0x22, 0x08, 0x75, 0xf1,
|
|
0xa2, 0x08, 0x4e, 0x71, 0x56, 0x96, 0xc5, 0x2b, 0xa9, 0x65, 0x61, 0x58, 0x90, 0xa1, 0x2b, 0x7b,
|
|
0xe1, 0xcd, 0x90, 0xb6, 0xc7, 0x9d, 0x60, 0x9a, 0x94, 0x34, 0x15, 0xbb, 0x5f, 0xc2, 0x7b, 0xbf,
|
|
0x91, 0xdf, 0x4a, 0x9a, 0x76, 0x60, 0xd4, 0xbd, 0xf0, 0xee, 0x79, 0x4e, 0xf2, 0x1c, 0xf2, 0xfc,
|
|
0x02, 0x7e, 0x53, 0xec, 0xb1, 0x62, 0xab, 0x5a, 0x2b, 0xa3, 0xe8, 0xa3, 0x8a, 0x8b, 0xaf, 0x6d,
|
|
0x33, 0xb8, 0xd5, 0x70, 0xf4, 0xd4, 0x2f, 0x54, 0x55, 0x29, 0x39, 0x0c, 0xcf, 0x7e, 0x4e, 0xc0,
|
|
0xbb, 0xe2, 0x28, 0xca, 0x1b, 0x7b, 0x4a, 0x03, 0x38, 0xf9, 0xdc, 0xdb, 0x4d, 0x1a, 0x38, 0xa1,
|
|
0x13, 0x4d, 0xb3, 0x83, 0xa5, 0x14, 0x66, 0x92, 0x55, 0x18, 0x4c, 0x42, 0x27, 0x5a, 0x66, 0x56,
|
|
0xd3, 0x17, 0x70, 0xca, 0x9b, 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