mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-04 01:42:15 +08:00
**What type of PR is this?**
- [x] Feature
**What this PR does / why we need it:**
This PR supports boolean expression as DSL.
1. The goal of this PR is to support predicates
like `A > 3 && not B < 5 or C in [1, 2, 3]`.
2. Defines `plan.proto`, as Intermediate Representation (IR)
used between go and cpp.
3. Support expr parser, convert predicate expr to IR
in proxynode, while doing static check there
4. Support IR to AST in cpp, enable the execution
733 lines
26 KiB
Go
733 lines
26 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: common.proto
|
|
|
|
package commonpb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
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
|
|
|
|
type ErrorCode int32
|
|
|
|
const (
|
|
ErrorCode_Success ErrorCode = 0
|
|
ErrorCode_UnexpectedError ErrorCode = 1
|
|
ErrorCode_ConnectFailed ErrorCode = 2
|
|
ErrorCode_PermissionDenied ErrorCode = 3
|
|
ErrorCode_CollectionNotExists ErrorCode = 4
|
|
ErrorCode_IllegalArgument ErrorCode = 5
|
|
ErrorCode_IllegalDimension ErrorCode = 7
|
|
ErrorCode_IllegalIndexType ErrorCode = 8
|
|
ErrorCode_IllegalCollectionName ErrorCode = 9
|
|
ErrorCode_IllegalTOPK ErrorCode = 10
|
|
ErrorCode_IllegalRowRecord ErrorCode = 11
|
|
ErrorCode_IllegalVectorID ErrorCode = 12
|
|
ErrorCode_IllegalSearchResult ErrorCode = 13
|
|
ErrorCode_FileNotFound ErrorCode = 14
|
|
ErrorCode_MetaFailed ErrorCode = 15
|
|
ErrorCode_CacheFailed ErrorCode = 16
|
|
ErrorCode_CannotCreateFolder ErrorCode = 17
|
|
ErrorCode_CannotCreateFile ErrorCode = 18
|
|
ErrorCode_CannotDeleteFolder ErrorCode = 19
|
|
ErrorCode_CannotDeleteFile ErrorCode = 20
|
|
ErrorCode_BuildIndexError ErrorCode = 21
|
|
ErrorCode_IllegalNLIST ErrorCode = 22
|
|
ErrorCode_IllegalMetricType ErrorCode = 23
|
|
ErrorCode_OutOfMemory ErrorCode = 24
|
|
ErrorCode_IndexNotExist ErrorCode = 25
|
|
// internal error code.
|
|
ErrorCode_DDRequestRace ErrorCode = 1000
|
|
)
|
|
|
|
var ErrorCode_name = map[int32]string{
|
|
0: "Success",
|
|
1: "UnexpectedError",
|
|
2: "ConnectFailed",
|
|
3: "PermissionDenied",
|
|
4: "CollectionNotExists",
|
|
5: "IllegalArgument",
|
|
7: "IllegalDimension",
|
|
8: "IllegalIndexType",
|
|
9: "IllegalCollectionName",
|
|
10: "IllegalTOPK",
|
|
11: "IllegalRowRecord",
|
|
12: "IllegalVectorID",
|
|
13: "IllegalSearchResult",
|
|
14: "FileNotFound",
|
|
15: "MetaFailed",
|
|
16: "CacheFailed",
|
|
17: "CannotCreateFolder",
|
|
18: "CannotCreateFile",
|
|
19: "CannotDeleteFolder",
|
|
20: "CannotDeleteFile",
|
|
21: "BuildIndexError",
|
|
22: "IllegalNLIST",
|
|
23: "IllegalMetricType",
|
|
24: "OutOfMemory",
|
|
25: "IndexNotExist",
|
|
1000: "DDRequestRace",
|
|
}
|
|
|
|
var ErrorCode_value = map[string]int32{
|
|
"Success": 0,
|
|
"UnexpectedError": 1,
|
|
"ConnectFailed": 2,
|
|
"PermissionDenied": 3,
|
|
"CollectionNotExists": 4,
|
|
"IllegalArgument": 5,
|
|
"IllegalDimension": 7,
|
|
"IllegalIndexType": 8,
|
|
"IllegalCollectionName": 9,
|
|
"IllegalTOPK": 10,
|
|
"IllegalRowRecord": 11,
|
|
"IllegalVectorID": 12,
|
|
"IllegalSearchResult": 13,
|
|
"FileNotFound": 14,
|
|
"MetaFailed": 15,
|
|
"CacheFailed": 16,
|
|
"CannotCreateFolder": 17,
|
|
"CannotCreateFile": 18,
|
|
"CannotDeleteFolder": 19,
|
|
"CannotDeleteFile": 20,
|
|
"BuildIndexError": 21,
|
|
"IllegalNLIST": 22,
|
|
"IllegalMetricType": 23,
|
|
"OutOfMemory": 24,
|
|
"IndexNotExist": 25,
|
|
"DDRequestRace": 1000,
|
|
}
|
|
|
|
func (x ErrorCode) String() string {
|
|
return proto.EnumName(ErrorCode_name, int32(x))
|
|
}
|
|
|
|
func (ErrorCode) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{0}
|
|
}
|
|
|
|
type IndexState int32
|
|
|
|
const (
|
|
IndexState_IndexStateNone IndexState = 0
|
|
IndexState_Unissued IndexState = 1
|
|
IndexState_InProgress IndexState = 2
|
|
IndexState_Finished IndexState = 3
|
|
IndexState_Failed IndexState = 4
|
|
)
|
|
|
|
var IndexState_name = map[int32]string{
|
|
0: "IndexStateNone",
|
|
1: "Unissued",
|
|
2: "InProgress",
|
|
3: "Finished",
|
|
4: "Failed",
|
|
}
|
|
|
|
var IndexState_value = map[string]int32{
|
|
"IndexStateNone": 0,
|
|
"Unissued": 1,
|
|
"InProgress": 2,
|
|
"Finished": 3,
|
|
"Failed": 4,
|
|
}
|
|
|
|
func (x IndexState) String() string {
|
|
return proto.EnumName(IndexState_name, int32(x))
|
|
}
|
|
|
|
func (IndexState) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{1}
|
|
}
|
|
|
|
type SegmentState int32
|
|
|
|
const (
|
|
SegmentState_SegmentStateNone SegmentState = 0
|
|
SegmentState_NotExist SegmentState = 1
|
|
SegmentState_Growing SegmentState = 2
|
|
SegmentState_Sealed SegmentState = 3
|
|
SegmentState_Flushed SegmentState = 4
|
|
)
|
|
|
|
var SegmentState_name = map[int32]string{
|
|
0: "SegmentStateNone",
|
|
1: "NotExist",
|
|
2: "Growing",
|
|
3: "Sealed",
|
|
4: "Flushed",
|
|
}
|
|
|
|
var SegmentState_value = map[string]int32{
|
|
"SegmentStateNone": 0,
|
|
"NotExist": 1,
|
|
"Growing": 2,
|
|
"Sealed": 3,
|
|
"Flushed": 4,
|
|
}
|
|
|
|
func (x SegmentState) String() string {
|
|
return proto.EnumName(SegmentState_name, int32(x))
|
|
}
|
|
|
|
func (SegmentState) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{2}
|
|
}
|
|
|
|
type MsgType int32
|
|
|
|
const (
|
|
MsgType_Undefined MsgType = 0
|
|
// DEFINITION REQUESTS: COLLECTION
|
|
MsgType_CreateCollection MsgType = 100
|
|
MsgType_DropCollection MsgType = 101
|
|
MsgType_HasCollection MsgType = 102
|
|
MsgType_DescribeCollection MsgType = 103
|
|
MsgType_ShowCollections MsgType = 104
|
|
MsgType_GetSystemConfigs MsgType = 105
|
|
MsgType_LoadCollection MsgType = 106
|
|
MsgType_ReleaseCollection MsgType = 107
|
|
// DEFINITION REQUESTS: PARTITION
|
|
MsgType_CreatePartition MsgType = 200
|
|
MsgType_DropPartition MsgType = 201
|
|
MsgType_HasPartition MsgType = 202
|
|
MsgType_DescribePartition MsgType = 203
|
|
MsgType_ShowPartitions MsgType = 204
|
|
MsgType_LoadPartitions MsgType = 205
|
|
MsgType_ReleasePartitions MsgType = 206
|
|
// DEFINE REQUESTS: SEGMENT
|
|
MsgType_ShowSegments MsgType = 250
|
|
MsgType_DescribeSegment MsgType = 251
|
|
// DEFINITION REQUESTS: INDEX
|
|
MsgType_CreateIndex MsgType = 300
|
|
MsgType_DescribeIndex MsgType = 301
|
|
MsgType_DropIndex MsgType = 302
|
|
// MANIPULATION REQUESTS
|
|
MsgType_Insert MsgType = 400
|
|
MsgType_Delete MsgType = 401
|
|
MsgType_Flush MsgType = 402
|
|
// QUERY
|
|
MsgType_Search MsgType = 500
|
|
MsgType_SearchResult MsgType = 501
|
|
MsgType_GetIndexState MsgType = 502
|
|
MsgType_GetIndexBuildProgress MsgType = 503
|
|
MsgType_GetCollectionStatistics MsgType = 504
|
|
MsgType_GetPartitionStatistics MsgType = 505
|
|
// DATA SERVICE
|
|
MsgType_SegmentInfo MsgType = 600
|
|
// SYSTEM CONTROL
|
|
MsgType_TimeTick MsgType = 1200
|
|
MsgType_QueryNodeStats MsgType = 1201
|
|
MsgType_LoadIndex MsgType = 1202
|
|
MsgType_RequestID MsgType = 1203
|
|
MsgType_RequestTSO MsgType = 1204
|
|
MsgType_AllocateSegment MsgType = 1205
|
|
MsgType_SegmentStatistics MsgType = 1206
|
|
MsgType_SegmentFlushDone MsgType = 1207
|
|
)
|
|
|
|
var MsgType_name = map[int32]string{
|
|
0: "Undefined",
|
|
100: "CreateCollection",
|
|
101: "DropCollection",
|
|
102: "HasCollection",
|
|
103: "DescribeCollection",
|
|
104: "ShowCollections",
|
|
105: "GetSystemConfigs",
|
|
106: "LoadCollection",
|
|
107: "ReleaseCollection",
|
|
200: "CreatePartition",
|
|
201: "DropPartition",
|
|
202: "HasPartition",
|
|
203: "DescribePartition",
|
|
204: "ShowPartitions",
|
|
205: "LoadPartitions",
|
|
206: "ReleasePartitions",
|
|
250: "ShowSegments",
|
|
251: "DescribeSegment",
|
|
300: "CreateIndex",
|
|
301: "DescribeIndex",
|
|
302: "DropIndex",
|
|
400: "Insert",
|
|
401: "Delete",
|
|
402: "Flush",
|
|
500: "Search",
|
|
501: "SearchResult",
|
|
502: "GetIndexState",
|
|
503: "GetIndexBuildProgress",
|
|
504: "GetCollectionStatistics",
|
|
505: "GetPartitionStatistics",
|
|
600: "SegmentInfo",
|
|
1200: "TimeTick",
|
|
1201: "QueryNodeStats",
|
|
1202: "LoadIndex",
|
|
1203: "RequestID",
|
|
1204: "RequestTSO",
|
|
1205: "AllocateSegment",
|
|
1206: "SegmentStatistics",
|
|
1207: "SegmentFlushDone",
|
|
}
|
|
|
|
var MsgType_value = map[string]int32{
|
|
"Undefined": 0,
|
|
"CreateCollection": 100,
|
|
"DropCollection": 101,
|
|
"HasCollection": 102,
|
|
"DescribeCollection": 103,
|
|
"ShowCollections": 104,
|
|
"GetSystemConfigs": 105,
|
|
"LoadCollection": 106,
|
|
"ReleaseCollection": 107,
|
|
"CreatePartition": 200,
|
|
"DropPartition": 201,
|
|
"HasPartition": 202,
|
|
"DescribePartition": 203,
|
|
"ShowPartitions": 204,
|
|
"LoadPartitions": 205,
|
|
"ReleasePartitions": 206,
|
|
"ShowSegments": 250,
|
|
"DescribeSegment": 251,
|
|
"CreateIndex": 300,
|
|
"DescribeIndex": 301,
|
|
"DropIndex": 302,
|
|
"Insert": 400,
|
|
"Delete": 401,
|
|
"Flush": 402,
|
|
"Search": 500,
|
|
"SearchResult": 501,
|
|
"GetIndexState": 502,
|
|
"GetIndexBuildProgress": 503,
|
|
"GetCollectionStatistics": 504,
|
|
"GetPartitionStatistics": 505,
|
|
"SegmentInfo": 600,
|
|
"TimeTick": 1200,
|
|
"QueryNodeStats": 1201,
|
|
"LoadIndex": 1202,
|
|
"RequestID": 1203,
|
|
"RequestTSO": 1204,
|
|
"AllocateSegment": 1205,
|
|
"SegmentStatistics": 1206,
|
|
"SegmentFlushDone": 1207,
|
|
}
|
|
|
|
func (x MsgType) String() string {
|
|
return proto.EnumName(MsgType_name, int32(x))
|
|
}
|
|
|
|
func (MsgType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{3}
|
|
}
|
|
|
|
type DslType int32
|
|
|
|
const (
|
|
DslType_Dsl DslType = 0
|
|
DslType_BoolExprV1 DslType = 1
|
|
)
|
|
|
|
var DslType_name = map[int32]string{
|
|
0: "Dsl",
|
|
1: "BoolExprV1",
|
|
}
|
|
|
|
var DslType_value = map[string]int32{
|
|
"Dsl": 0,
|
|
"BoolExprV1": 1,
|
|
}
|
|
|
|
func (x DslType) String() string {
|
|
return proto.EnumName(DslType_name, int32(x))
|
|
}
|
|
|
|
func (DslType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{4}
|
|
}
|
|
|
|
type Status struct {
|
|
ErrorCode ErrorCode `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3,enum=milvus.proto.common.ErrorCode" json:"error_code,omitempty"`
|
|
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Status) Reset() { *m = Status{} }
|
|
func (m *Status) String() string { return proto.CompactTextString(m) }
|
|
func (*Status) ProtoMessage() {}
|
|
func (*Status) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{0}
|
|
}
|
|
|
|
func (m *Status) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Status.Unmarshal(m, b)
|
|
}
|
|
func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Status.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Status) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Status.Merge(m, src)
|
|
}
|
|
func (m *Status) XXX_Size() int {
|
|
return xxx_messageInfo_Status.Size(m)
|
|
}
|
|
func (m *Status) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Status.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Status proto.InternalMessageInfo
|
|
|
|
func (m *Status) GetErrorCode() ErrorCode {
|
|
if m != nil {
|
|
return m.ErrorCode
|
|
}
|
|
return ErrorCode_Success
|
|
}
|
|
|
|
func (m *Status) GetReason() string {
|
|
if m != nil {
|
|
return m.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type KeyValuePair struct {
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *KeyValuePair) Reset() { *m = KeyValuePair{} }
|
|
func (m *KeyValuePair) String() string { return proto.CompactTextString(m) }
|
|
func (*KeyValuePair) ProtoMessage() {}
|
|
func (*KeyValuePair) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{1}
|
|
}
|
|
|
|
func (m *KeyValuePair) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_KeyValuePair.Unmarshal(m, b)
|
|
}
|
|
func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *KeyValuePair) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_KeyValuePair.Merge(m, src)
|
|
}
|
|
func (m *KeyValuePair) XXX_Size() int {
|
|
return xxx_messageInfo_KeyValuePair.Size(m)
|
|
}
|
|
func (m *KeyValuePair) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_KeyValuePair.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo
|
|
|
|
func (m *KeyValuePair) GetKey() string {
|
|
if m != nil {
|
|
return m.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *KeyValuePair) GetValue() string {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Blob struct {
|
|
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Blob) Reset() { *m = Blob{} }
|
|
func (m *Blob) String() string { return proto.CompactTextString(m) }
|
|
func (*Blob) ProtoMessage() {}
|
|
func (*Blob) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{2}
|
|
}
|
|
|
|
func (m *Blob) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Blob.Unmarshal(m, b)
|
|
}
|
|
func (m *Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Blob.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Blob) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Blob.Merge(m, src)
|
|
}
|
|
func (m *Blob) XXX_Size() int {
|
|
return xxx_messageInfo_Blob.Size(m)
|
|
}
|
|
func (m *Blob) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Blob.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Blob proto.InternalMessageInfo
|
|
|
|
func (m *Blob) GetValue() []byte {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Address struct {
|
|
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
|
|
Port int64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Address) Reset() { *m = Address{} }
|
|
func (m *Address) String() string { return proto.CompactTextString(m) }
|
|
func (*Address) ProtoMessage() {}
|
|
func (*Address) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{3}
|
|
}
|
|
|
|
func (m *Address) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Address.Unmarshal(m, b)
|
|
}
|
|
func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Address.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Address) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Address.Merge(m, src)
|
|
}
|
|
func (m *Address) XXX_Size() int {
|
|
return xxx_messageInfo_Address.Size(m)
|
|
}
|
|
func (m *Address) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Address.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Address proto.InternalMessageInfo
|
|
|
|
func (m *Address) GetIp() string {
|
|
if m != nil {
|
|
return m.Ip
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Address) GetPort() int64 {
|
|
if m != nil {
|
|
return m.Port
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MsgBase struct {
|
|
MsgType MsgType `protobuf:"varint,1,opt,name=msg_type,json=msgType,proto3,enum=milvus.proto.common.MsgType" json:"msg_type,omitempty"`
|
|
MsgID int64 `protobuf:"varint,2,opt,name=msgID,proto3" json:"msgID,omitempty"`
|
|
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
SourceID int64 `protobuf:"varint,4,opt,name=sourceID,proto3" json:"sourceID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *MsgBase) Reset() { *m = MsgBase{} }
|
|
func (m *MsgBase) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgBase) ProtoMessage() {}
|
|
func (*MsgBase) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{4}
|
|
}
|
|
|
|
func (m *MsgBase) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_MsgBase.Unmarshal(m, b)
|
|
}
|
|
func (m *MsgBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_MsgBase.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *MsgBase) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgBase.Merge(m, src)
|
|
}
|
|
func (m *MsgBase) XXX_Size() int {
|
|
return xxx_messageInfo_MsgBase.Size(m)
|
|
}
|
|
func (m *MsgBase) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgBase.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgBase proto.InternalMessageInfo
|
|
|
|
func (m *MsgBase) GetMsgType() MsgType {
|
|
if m != nil {
|
|
return m.MsgType
|
|
}
|
|
return MsgType_Undefined
|
|
}
|
|
|
|
func (m *MsgBase) GetMsgID() int64 {
|
|
if m != nil {
|
|
return m.MsgID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgBase) GetTimestamp() uint64 {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgBase) GetSourceID() int64 {
|
|
if m != nil {
|
|
return m.SourceID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// Don't Modify This. @czs
|
|
type MsgHeader struct {
|
|
Base *MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *MsgHeader) Reset() { *m = MsgHeader{} }
|
|
func (m *MsgHeader) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgHeader) ProtoMessage() {}
|
|
func (*MsgHeader) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_555bd8c177793206, []int{5}
|
|
}
|
|
|
|
func (m *MsgHeader) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_MsgHeader.Unmarshal(m, b)
|
|
}
|
|
func (m *MsgHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_MsgHeader.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *MsgHeader) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgHeader.Merge(m, src)
|
|
}
|
|
func (m *MsgHeader) XXX_Size() int {
|
|
return xxx_messageInfo_MsgHeader.Size(m)
|
|
}
|
|
func (m *MsgHeader) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgHeader.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgHeader proto.InternalMessageInfo
|
|
|
|
func (m *MsgHeader) GetBase() *MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("milvus.proto.common.ErrorCode", ErrorCode_name, ErrorCode_value)
|
|
proto.RegisterEnum("milvus.proto.common.IndexState", IndexState_name, IndexState_value)
|
|
proto.RegisterEnum("milvus.proto.common.SegmentState", SegmentState_name, SegmentState_value)
|
|
proto.RegisterEnum("milvus.proto.common.MsgType", MsgType_name, MsgType_value)
|
|
proto.RegisterEnum("milvus.proto.common.DslType", DslType_name, DslType_value)
|
|
proto.RegisterType((*Status)(nil), "milvus.proto.common.Status")
|
|
proto.RegisterType((*KeyValuePair)(nil), "milvus.proto.common.KeyValuePair")
|
|
proto.RegisterType((*Blob)(nil), "milvus.proto.common.Blob")
|
|
proto.RegisterType((*Address)(nil), "milvus.proto.common.Address")
|
|
proto.RegisterType((*MsgBase)(nil), "milvus.proto.common.MsgBase")
|
|
proto.RegisterType((*MsgHeader)(nil), "milvus.proto.common.MsgHeader")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) }
|
|
|
|
var fileDescriptor_555bd8c177793206 = []byte{
|
|
// 1164 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0xcb, 0x6e, 0xdb, 0x46,
|
|
0x17, 0x36, 0x25, 0x45, 0x32, 0x8f, 0x64, 0x79, 0x3c, 0xbe, 0xc4, 0xc9, 0x6f, 0xfc,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