mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
264 lines
9.4 KiB
Go
264 lines
9.4 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_VECTOR_BINARY DataType = 100
|
|
DataType_VECTOR_FLOAT 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: "VECTOR_BINARY",
|
|
101: "VECTOR_FLOAT",
|
|
}
|
|
|
|
var DataType_value = map[string]int32{
|
|
"NONE": 0,
|
|
"BOOL": 1,
|
|
"INT8": 2,
|
|
"INT16": 3,
|
|
"INT32": 4,
|
|
"INT64": 5,
|
|
"FLOAT": 10,
|
|
"DOUBLE": 11,
|
|
"STRING": 20,
|
|
"VECTOR_BINARY": 100,
|
|
"VECTOR_FLOAT": 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 {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
IsPrimaryKey bool `protobuf:"varint,2,opt,name=is_primary_key,json=isPrimaryKey,proto3" json:"is_primary_key,omitempty"`
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
DataType DataType `protobuf:"varint,4,opt,name=data_type,json=dataType,proto3,enum=milvus.proto.schema.DataType" json:"data_type,omitempty"`
|
|
TypeParams []*commonpb.KeyValuePair `protobuf:"bytes,5,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"`
|
|
IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,6,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) 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{
|
|
// 451 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xdf, 0x6a, 0xd4, 0x40,
|
|
0x18, 0xc5, 0xcd, 0xfe, 0x09, 0xd9, 0x2f, 0xb1, 0x8c, 0xa3, 0x48, 0x10, 0x84, 0x58, 0xbc, 0x58,
|
|
0x04, 0x37, 0xb8, 0x95, 0x52, 0xbc, 0xb2, 0xe9, 0x6e, 0x25, 0x74, 0x49, 0x96, 0x69, 0x2c, 0xe8,
|
|
0x4d, 0x98, 0x4d, 0x46, 0x77, 0x30, 0xff, 0x48, 0x26, 0x62, 0xfa, 0x16, 0xde, 0xfa, 0x12, 0xbe,
|
|
0xa2, 0xcc, 0x24, 0x85, 0xaa, 0x45, 0xbc, 0xfb, 0x7d, 0xdf, 0xcc, 0x39, 0xcc, 0x39, 0x03, 0x56,
|
|
0x93, 0xec, 0x59, 0x4e, 0x17, 0x55, 0x5d, 0x8a, 0x12, 0x3f, 0xcc, 0x79, 0xf6, 0xb5, 0x6d, 0xfa,
|
|
0x69, 0xd1, 0x1f, 0x3d, 0xb1, 0x92, 0x32, 0xcf, 0xcb, 0xa2, 0x5f, 0x1e, 0xfe, 0x1c, 0x81, 0x79,
|
|
0xce, 0x59, 0x96, 0x5e, 0xaa, 0x53, 0x8c, 0x61, 0x52, 0xd0, 0x9c, 0xd9, 0x9a, 0xa3, 0xcd, 0x67,
|
|
0x44, 0x31, 0x7e, 0x0e, 0x07, 0xbc, 0x89, 0xab, 0x9a, 0xe7, 0xb4, 0xee, 0xe2, 0x2f, 0xac, 0xb3,
|
|
0x47, 0x8e, 0x36, 0x37, 0x88, 0xc5, 0x9b, 0x6d, 0xbf, 0xbc, 0x60, 0x1d, 0x76, 0xc0, 0x4c, 0x59,
|
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