// 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/milvus-io/milvus-proto/go-api/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_VarChar DataType = 21 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", 21: "VarChar", 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, "VarChar": 21, "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} } type FieldState int32 const ( FieldState_FieldCreated FieldState = 0 FieldState_FieldCreating FieldState = 1 FieldState_FieldDropping FieldState = 2 FieldState_FieldDropped FieldState = 3 ) var FieldState_name = map[int32]string{ 0: "FieldCreated", 1: "FieldCreating", 2: "FieldDropping", 3: "FieldDropped", } var FieldState_value = map[string]int32{ "FieldCreated": 0, "FieldCreating": 1, "FieldDropping": 2, "FieldDropped": 3, } func (x FieldState) String() string { return proto.EnumName(FieldState_name, int32(x)) } func (FieldState) EnumDescriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{1} } // * // @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"` AutoID bool `protobuf:"varint,8,opt,name=autoID,proto3" json:"autoID,omitempty"` State FieldState `protobuf:"varint,9,opt,name=state,proto3,enum=milvus.proto.schema.FieldState" json:"state,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 } func (m *FieldSchema) GetAutoID() bool { if m != nil { return m.AutoID } return false } func (m *FieldSchema) GetState() FieldState { if m != nil { return m.State } return FieldState_FieldCreated } // * // @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 } type BoolArray struct { Data []bool `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BoolArray) Reset() { *m = BoolArray{} } func (m *BoolArray) String() string { return proto.CompactTextString(m) } func (*BoolArray) ProtoMessage() {} func (*BoolArray) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{2} } func (m *BoolArray) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BoolArray.Unmarshal(m, b) } func (m *BoolArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BoolArray.Marshal(b, m, deterministic) } func (m *BoolArray) XXX_Merge(src proto.Message) { xxx_messageInfo_BoolArray.Merge(m, src) } func (m *BoolArray) XXX_Size() int { return xxx_messageInfo_BoolArray.Size(m) } func (m *BoolArray) XXX_DiscardUnknown() { xxx_messageInfo_BoolArray.DiscardUnknown(m) } var xxx_messageInfo_BoolArray proto.InternalMessageInfo func (m *BoolArray) GetData() []bool { if m != nil { return m.Data } return nil } type IntArray struct { Data []int32 `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IntArray) Reset() { *m = IntArray{} } func (m *IntArray) String() string { return proto.CompactTextString(m) } func (*IntArray) ProtoMessage() {} func (*IntArray) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{3} } func (m *IntArray) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IntArray.Unmarshal(m, b) } func (m *IntArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IntArray.Marshal(b, m, deterministic) } func (m *IntArray) XXX_Merge(src proto.Message) { xxx_messageInfo_IntArray.Merge(m, src) } func (m *IntArray) XXX_Size() int { return xxx_messageInfo_IntArray.Size(m) } func (m *IntArray) XXX_DiscardUnknown() { xxx_messageInfo_IntArray.DiscardUnknown(m) } var xxx_messageInfo_IntArray proto.InternalMessageInfo func (m *IntArray) GetData() []int32 { if m != nil { return m.Data } return nil } type LongArray struct { Data []int64 `protobuf:"varint,1,rep,packed,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *LongArray) Reset() { *m = LongArray{} } func (m *LongArray) String() string { return proto.CompactTextString(m) } func (*LongArray) ProtoMessage() {} func (*LongArray) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{4} } func (m *LongArray) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_LongArray.Unmarshal(m, b) } func (m *LongArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LongArray.Marshal(b, m, deterministic) } func (m *LongArray) XXX_Merge(src proto.Message) { xxx_messageInfo_LongArray.Merge(m, src) } func (m *LongArray) XXX_Size() int { return xxx_messageInfo_LongArray.Size(m) } func (m *LongArray) XXX_DiscardUnknown() { xxx_messageInfo_LongArray.DiscardUnknown(m) } var xxx_messageInfo_LongArray proto.InternalMessageInfo func (m *LongArray) GetData() []int64 { if m != nil { return m.Data } return nil } type FloatArray struct { Data []float32 `protobuf:"fixed32,1,rep,packed,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FloatArray) Reset() { *m = FloatArray{} } func (m *FloatArray) String() string { return proto.CompactTextString(m) } func (*FloatArray) ProtoMessage() {} func (*FloatArray) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{5} } func (m *FloatArray) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FloatArray.Unmarshal(m, b) } func (m *FloatArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FloatArray.Marshal(b, m, deterministic) } func (m *FloatArray) XXX_Merge(src proto.Message) { xxx_messageInfo_FloatArray.Merge(m, src) } func (m *FloatArray) XXX_Size() int { return xxx_messageInfo_FloatArray.Size(m) } func (m *FloatArray) XXX_DiscardUnknown() { xxx_messageInfo_FloatArray.DiscardUnknown(m) } var xxx_messageInfo_FloatArray proto.InternalMessageInfo func (m *FloatArray) GetData() []float32 { if m != nil { return m.Data } return nil } type DoubleArray struct { Data []float64 `protobuf:"fixed64,1,rep,packed,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *DoubleArray) Reset() { *m = DoubleArray{} } func (m *DoubleArray) String() string { return proto.CompactTextString(m) } func (*DoubleArray) ProtoMessage() {} func (*DoubleArray) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{6} } func (m *DoubleArray) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_DoubleArray.Unmarshal(m, b) } func (m *DoubleArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DoubleArray.Marshal(b, m, deterministic) } func (m *DoubleArray) XXX_Merge(src proto.Message) { xxx_messageInfo_DoubleArray.Merge(m, src) } func (m *DoubleArray) XXX_Size() int { return xxx_messageInfo_DoubleArray.Size(m) } func (m *DoubleArray) XXX_DiscardUnknown() { xxx_messageInfo_DoubleArray.DiscardUnknown(m) } var xxx_messageInfo_DoubleArray proto.InternalMessageInfo func (m *DoubleArray) GetData() []float64 { if m != nil { return m.Data } return nil } // For special fields such as bigdecimal, array... type BytesArray struct { Data [][]byte `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *BytesArray) Reset() { *m = BytesArray{} } func (m *BytesArray) String() string { return proto.CompactTextString(m) } func (*BytesArray) ProtoMessage() {} func (*BytesArray) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{7} } func (m *BytesArray) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_BytesArray.Unmarshal(m, b) } func (m *BytesArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BytesArray.Marshal(b, m, deterministic) } func (m *BytesArray) XXX_Merge(src proto.Message) { xxx_messageInfo_BytesArray.Merge(m, src) } func (m *BytesArray) XXX_Size() int { return xxx_messageInfo_BytesArray.Size(m) } func (m *BytesArray) XXX_DiscardUnknown() { xxx_messageInfo_BytesArray.DiscardUnknown(m) } var xxx_messageInfo_BytesArray proto.InternalMessageInfo func (m *BytesArray) GetData() [][]byte { if m != nil { return m.Data } return nil } type StringArray struct { Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *StringArray) Reset() { *m = StringArray{} } func (m *StringArray) String() string { return proto.CompactTextString(m) } func (*StringArray) ProtoMessage() {} func (*StringArray) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{8} } func (m *StringArray) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_StringArray.Unmarshal(m, b) } func (m *StringArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_StringArray.Marshal(b, m, deterministic) } func (m *StringArray) XXX_Merge(src proto.Message) { xxx_messageInfo_StringArray.Merge(m, src) } func (m *StringArray) XXX_Size() int { return xxx_messageInfo_StringArray.Size(m) } func (m *StringArray) XXX_DiscardUnknown() { xxx_messageInfo_StringArray.DiscardUnknown(m) } var xxx_messageInfo_StringArray proto.InternalMessageInfo func (m *StringArray) GetData() []string { if m != nil { return m.Data } return nil } type ScalarField struct { // Types that are valid to be assigned to Data: // *ScalarField_BoolData // *ScalarField_IntData // *ScalarField_LongData // *ScalarField_FloatData // *ScalarField_DoubleData // *ScalarField_StringData // *ScalarField_BytesData Data isScalarField_Data `protobuf_oneof:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *ScalarField) Reset() { *m = ScalarField{} } func (m *ScalarField) String() string { return proto.CompactTextString(m) } func (*ScalarField) ProtoMessage() {} func (*ScalarField) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{9} } func (m *ScalarField) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_ScalarField.Unmarshal(m, b) } func (m *ScalarField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_ScalarField.Marshal(b, m, deterministic) } func (m *ScalarField) XXX_Merge(src proto.Message) { xxx_messageInfo_ScalarField.Merge(m, src) } func (m *ScalarField) XXX_Size() int { return xxx_messageInfo_ScalarField.Size(m) } func (m *ScalarField) XXX_DiscardUnknown() { xxx_messageInfo_ScalarField.DiscardUnknown(m) } var xxx_messageInfo_ScalarField proto.InternalMessageInfo type isScalarField_Data interface { isScalarField_Data() } type ScalarField_BoolData struct { BoolData *BoolArray `protobuf:"bytes,1,opt,name=bool_data,json=boolData,proto3,oneof"` } type ScalarField_IntData struct { IntData *IntArray `protobuf:"bytes,2,opt,name=int_data,json=intData,proto3,oneof"` } type ScalarField_LongData struct { LongData *LongArray `protobuf:"bytes,3,opt,name=long_data,json=longData,proto3,oneof"` } type ScalarField_FloatData struct { FloatData *FloatArray `protobuf:"bytes,4,opt,name=float_data,json=floatData,proto3,oneof"` } type ScalarField_DoubleData struct { DoubleData *DoubleArray `protobuf:"bytes,5,opt,name=double_data,json=doubleData,proto3,oneof"` } type ScalarField_StringData struct { StringData *StringArray `protobuf:"bytes,6,opt,name=string_data,json=stringData,proto3,oneof"` } type ScalarField_BytesData struct { BytesData *BytesArray `protobuf:"bytes,7,opt,name=bytes_data,json=bytesData,proto3,oneof"` } func (*ScalarField_BoolData) isScalarField_Data() {} func (*ScalarField_IntData) isScalarField_Data() {} func (*ScalarField_LongData) isScalarField_Data() {} func (*ScalarField_FloatData) isScalarField_Data() {} func (*ScalarField_DoubleData) isScalarField_Data() {} func (*ScalarField_StringData) isScalarField_Data() {} func (*ScalarField_BytesData) isScalarField_Data() {} func (m *ScalarField) GetData() isScalarField_Data { if m != nil { return m.Data } return nil } func (m *ScalarField) GetBoolData() *BoolArray { if x, ok := m.GetData().(*ScalarField_BoolData); ok { return x.BoolData } return nil } func (m *ScalarField) GetIntData() *IntArray { if x, ok := m.GetData().(*ScalarField_IntData); ok { return x.IntData } return nil } func (m *ScalarField) GetLongData() *LongArray { if x, ok := m.GetData().(*ScalarField_LongData); ok { return x.LongData } return nil } func (m *ScalarField) GetFloatData() *FloatArray { if x, ok := m.GetData().(*ScalarField_FloatData); ok { return x.FloatData } return nil } func (m *ScalarField) GetDoubleData() *DoubleArray { if x, ok := m.GetData().(*ScalarField_DoubleData); ok { return x.DoubleData } return nil } func (m *ScalarField) GetStringData() *StringArray { if x, ok := m.GetData().(*ScalarField_StringData); ok { return x.StringData } return nil } func (m *ScalarField) GetBytesData() *BytesArray { if x, ok := m.GetData().(*ScalarField_BytesData); ok { return x.BytesData } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*ScalarField) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ScalarField_BoolData)(nil), (*ScalarField_IntData)(nil), (*ScalarField_LongData)(nil), (*ScalarField_FloatData)(nil), (*ScalarField_DoubleData)(nil), (*ScalarField_StringData)(nil), (*ScalarField_BytesData)(nil), } } type VectorField struct { Dim int64 `protobuf:"varint,1,opt,name=dim,proto3" json:"dim,omitempty"` // Types that are valid to be assigned to Data: // *VectorField_FloatVector // *VectorField_BinaryVector Data isVectorField_Data `protobuf_oneof:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *VectorField) Reset() { *m = VectorField{} } func (m *VectorField) String() string { return proto.CompactTextString(m) } func (*VectorField) ProtoMessage() {} func (*VectorField) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{10} } func (m *VectorField) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_VectorField.Unmarshal(m, b) } func (m *VectorField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_VectorField.Marshal(b, m, deterministic) } func (m *VectorField) XXX_Merge(src proto.Message) { xxx_messageInfo_VectorField.Merge(m, src) } func (m *VectorField) XXX_Size() int { return xxx_messageInfo_VectorField.Size(m) } func (m *VectorField) XXX_DiscardUnknown() { xxx_messageInfo_VectorField.DiscardUnknown(m) } var xxx_messageInfo_VectorField proto.InternalMessageInfo func (m *VectorField) GetDim() int64 { if m != nil { return m.Dim } return 0 } type isVectorField_Data interface { isVectorField_Data() } type VectorField_FloatVector struct { FloatVector *FloatArray `protobuf:"bytes,2,opt,name=float_vector,json=floatVector,proto3,oneof"` } type VectorField_BinaryVector struct { BinaryVector []byte `protobuf:"bytes,3,opt,name=binary_vector,json=binaryVector,proto3,oneof"` } func (*VectorField_FloatVector) isVectorField_Data() {} func (*VectorField_BinaryVector) isVectorField_Data() {} func (m *VectorField) GetData() isVectorField_Data { if m != nil { return m.Data } return nil } func (m *VectorField) GetFloatVector() *FloatArray { if x, ok := m.GetData().(*VectorField_FloatVector); ok { return x.FloatVector } return nil } func (m *VectorField) GetBinaryVector() []byte { if x, ok := m.GetData().(*VectorField_BinaryVector); ok { return x.BinaryVector } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*VectorField) XXX_OneofWrappers() []interface{} { return []interface{}{ (*VectorField_FloatVector)(nil), (*VectorField_BinaryVector)(nil), } } type FieldData struct { Type DataType `protobuf:"varint,1,opt,name=type,proto3,enum=milvus.proto.schema.DataType" json:"type,omitempty"` FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"` // Types that are valid to be assigned to Field: // *FieldData_Scalars // *FieldData_Vectors Field isFieldData_Field `protobuf_oneof:"field"` FieldId int64 `protobuf:"varint,5,opt,name=field_id,json=fieldId,proto3" json:"field_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *FieldData) Reset() { *m = FieldData{} } func (m *FieldData) String() string { return proto.CompactTextString(m) } func (*FieldData) ProtoMessage() {} func (*FieldData) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{11} } func (m *FieldData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_FieldData.Unmarshal(m, b) } func (m *FieldData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_FieldData.Marshal(b, m, deterministic) } func (m *FieldData) XXX_Merge(src proto.Message) { xxx_messageInfo_FieldData.Merge(m, src) } func (m *FieldData) XXX_Size() int { return xxx_messageInfo_FieldData.Size(m) } func (m *FieldData) XXX_DiscardUnknown() { xxx_messageInfo_FieldData.DiscardUnknown(m) } var xxx_messageInfo_FieldData proto.InternalMessageInfo func (m *FieldData) GetType() DataType { if m != nil { return m.Type } return DataType_None } func (m *FieldData) GetFieldName() string { if m != nil { return m.FieldName } return "" } type isFieldData_Field interface { isFieldData_Field() } type FieldData_Scalars struct { Scalars *ScalarField `protobuf:"bytes,3,opt,name=scalars,proto3,oneof"` } type FieldData_Vectors struct { Vectors *VectorField `protobuf:"bytes,4,opt,name=vectors,proto3,oneof"` } func (*FieldData_Scalars) isFieldData_Field() {} func (*FieldData_Vectors) isFieldData_Field() {} func (m *FieldData) GetField() isFieldData_Field { if m != nil { return m.Field } return nil } func (m *FieldData) GetScalars() *ScalarField { if x, ok := m.GetField().(*FieldData_Scalars); ok { return x.Scalars } return nil } func (m *FieldData) GetVectors() *VectorField { if x, ok := m.GetField().(*FieldData_Vectors); ok { return x.Vectors } return nil } func (m *FieldData) GetFieldId() int64 { if m != nil { return m.FieldId } return 0 } // XXX_OneofWrappers is for the internal use of the proto package. func (*FieldData) XXX_OneofWrappers() []interface{} { return []interface{}{ (*FieldData_Scalars)(nil), (*FieldData_Vectors)(nil), } } type IDs struct { // Types that are valid to be assigned to IdField: // *IDs_IntId // *IDs_StrId IdField isIDs_IdField `protobuf_oneof:"id_field"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *IDs) Reset() { *m = IDs{} } func (m *IDs) String() string { return proto.CompactTextString(m) } func (*IDs) ProtoMessage() {} func (*IDs) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{12} } func (m *IDs) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_IDs.Unmarshal(m, b) } func (m *IDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_IDs.Marshal(b, m, deterministic) } func (m *IDs) XXX_Merge(src proto.Message) { xxx_messageInfo_IDs.Merge(m, src) } func (m *IDs) XXX_Size() int { return xxx_messageInfo_IDs.Size(m) } func (m *IDs) XXX_DiscardUnknown() { xxx_messageInfo_IDs.DiscardUnknown(m) } var xxx_messageInfo_IDs proto.InternalMessageInfo type isIDs_IdField interface { isIDs_IdField() } type IDs_IntId struct { IntId *LongArray `protobuf:"bytes,1,opt,name=int_id,json=intId,proto3,oneof"` } type IDs_StrId struct { StrId *StringArray `protobuf:"bytes,2,opt,name=str_id,json=strId,proto3,oneof"` } func (*IDs_IntId) isIDs_IdField() {} func (*IDs_StrId) isIDs_IdField() {} func (m *IDs) GetIdField() isIDs_IdField { if m != nil { return m.IdField } return nil } func (m *IDs) GetIntId() *LongArray { if x, ok := m.GetIdField().(*IDs_IntId); ok { return x.IntId } return nil } func (m *IDs) GetStrId() *StringArray { if x, ok := m.GetIdField().(*IDs_StrId); ok { return x.StrId } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*IDs) XXX_OneofWrappers() []interface{} { return []interface{}{ (*IDs_IntId)(nil), (*IDs_StrId)(nil), } } type SearchResultData struct { NumQueries int64 `protobuf:"varint,1,opt,name=num_queries,json=numQueries,proto3" json:"num_queries,omitempty"` TopK int64 `protobuf:"varint,2,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"` FieldsData []*FieldData `protobuf:"bytes,3,rep,name=fields_data,json=fieldsData,proto3" json:"fields_data,omitempty"` Scores []float32 `protobuf:"fixed32,4,rep,packed,name=scores,proto3" json:"scores,omitempty"` Ids *IDs `protobuf:"bytes,5,opt,name=ids,proto3" json:"ids,omitempty"` Topks []int64 `protobuf:"varint,6,rep,packed,name=topks,proto3" json:"topks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *SearchResultData) Reset() { *m = SearchResultData{} } func (m *SearchResultData) String() string { return proto.CompactTextString(m) } func (*SearchResultData) ProtoMessage() {} func (*SearchResultData) Descriptor() ([]byte, []int) { return fileDescriptor_1c5fb4d8cc22d66a, []int{13} } func (m *SearchResultData) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SearchResultData.Unmarshal(m, b) } func (m *SearchResultData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SearchResultData.Marshal(b, m, deterministic) } func (m *SearchResultData) XXX_Merge(src proto.Message) { xxx_messageInfo_SearchResultData.Merge(m, src) } func (m *SearchResultData) XXX_Size() int { return xxx_messageInfo_SearchResultData.Size(m) } func (m *SearchResultData) XXX_DiscardUnknown() { xxx_messageInfo_SearchResultData.DiscardUnknown(m) } var xxx_messageInfo_SearchResultData proto.InternalMessageInfo func (m *SearchResultData) GetNumQueries() int64 { if m != nil { return m.NumQueries } return 0 } func (m *SearchResultData) GetTopK() int64 { if m != nil { return m.TopK } return 0 } func (m *SearchResultData) GetFieldsData() []*FieldData { if m != nil { return m.FieldsData } return nil } func (m *SearchResultData) GetScores() []float32 { if m != nil { return m.Scores } return nil } func (m *SearchResultData) GetIds() *IDs { if m != nil { return m.Ids } return nil } func (m *SearchResultData) GetTopks() []int64 { if m != nil { return m.Topks } return nil } func init() { proto.RegisterEnum("milvus.proto.schema.DataType", DataType_name, DataType_value) proto.RegisterEnum("milvus.proto.schema.FieldState", FieldState_name, FieldState_value) proto.RegisterType((*FieldSchema)(nil), "milvus.proto.schema.FieldSchema") proto.RegisterType((*CollectionSchema)(nil), "milvus.proto.schema.CollectionSchema") proto.RegisterType((*BoolArray)(nil), "milvus.proto.schema.BoolArray") proto.RegisterType((*IntArray)(nil), "milvus.proto.schema.IntArray") proto.RegisterType((*LongArray)(nil), "milvus.proto.schema.LongArray") proto.RegisterType((*FloatArray)(nil), "milvus.proto.schema.FloatArray") proto.RegisterType((*DoubleArray)(nil), "milvus.proto.schema.DoubleArray") proto.RegisterType((*BytesArray)(nil), "milvus.proto.schema.BytesArray") proto.RegisterType((*StringArray)(nil), "milvus.proto.schema.StringArray") proto.RegisterType((*ScalarField)(nil), "milvus.proto.schema.ScalarField") proto.RegisterType((*VectorField)(nil), "milvus.proto.schema.VectorField") proto.RegisterType((*FieldData)(nil), "milvus.proto.schema.FieldData") proto.RegisterType((*IDs)(nil), "milvus.proto.schema.IDs") proto.RegisterType((*SearchResultData)(nil), "milvus.proto.schema.SearchResultData") } func init() { proto.RegisterFile("schema.proto", fileDescriptor_1c5fb4d8cc22d66a) } var fileDescriptor_1c5fb4d8cc22d66a = []byte{ // 1048 bytes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