mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
883 lines
31 KiB
Go
883 lines
31 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: service_msg.proto
|
|
|
|
package servicepb
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
commonpb "github.com/zilliztech/milvus-distributed/internal/proto/commonpb"
|
|
schemapb "github.com/zilliztech/milvus-distributed/internal/proto/schemapb"
|
|
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 Collection name
|
|
type CollectionName struct {
|
|
CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CollectionName) Reset() { *m = CollectionName{} }
|
|
func (m *CollectionName) String() string { return proto.CompactTextString(m) }
|
|
func (*CollectionName) ProtoMessage() {}
|
|
func (*CollectionName) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{0}
|
|
}
|
|
|
|
func (m *CollectionName) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CollectionName.Unmarshal(m, b)
|
|
}
|
|
func (m *CollectionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CollectionName.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CollectionName) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CollectionName.Merge(m, src)
|
|
}
|
|
func (m *CollectionName) XXX_Size() int {
|
|
return xxx_messageInfo_CollectionName.Size(m)
|
|
}
|
|
func (m *CollectionName) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CollectionName.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CollectionName proto.InternalMessageInfo
|
|
|
|
func (m *CollectionName) GetCollectionName() string {
|
|
if m != nil {
|
|
return m.CollectionName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
//*
|
|
// @brief Partition name
|
|
type PartitionName struct {
|
|
CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
|
|
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PartitionName) Reset() { *m = PartitionName{} }
|
|
func (m *PartitionName) String() string { return proto.CompactTextString(m) }
|
|
func (*PartitionName) ProtoMessage() {}
|
|
func (*PartitionName) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{1}
|
|
}
|
|
|
|
func (m *PartitionName) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PartitionName.Unmarshal(m, b)
|
|
}
|
|
func (m *PartitionName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PartitionName.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PartitionName) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PartitionName.Merge(m, src)
|
|
}
|
|
func (m *PartitionName) XXX_Size() int {
|
|
return xxx_messageInfo_PartitionName.Size(m)
|
|
}
|
|
func (m *PartitionName) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PartitionName.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PartitionName proto.InternalMessageInfo
|
|
|
|
func (m *PartitionName) GetCollectionName() string {
|
|
if m != nil {
|
|
return m.CollectionName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PartitionName) GetTag() string {
|
|
if m != nil {
|
|
return m.Tag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
//*
|
|
// @brief Row batch for Insert call
|
|
type RowBatch struct {
|
|
CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
|
|
PartitionTag string `protobuf:"bytes,2,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"`
|
|
RowData []*commonpb.Blob `protobuf:"bytes,3,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"`
|
|
HashValues []int32 `protobuf:"varint,4,rep,packed,name=hash_values,json=hashValues,proto3" json:"hash_values,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RowBatch) Reset() { *m = RowBatch{} }
|
|
func (m *RowBatch) String() string { return proto.CompactTextString(m) }
|
|
func (*RowBatch) ProtoMessage() {}
|
|
func (*RowBatch) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{2}
|
|
}
|
|
|
|
func (m *RowBatch) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RowBatch.Unmarshal(m, b)
|
|
}
|
|
func (m *RowBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RowBatch.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RowBatch) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RowBatch.Merge(m, src)
|
|
}
|
|
func (m *RowBatch) XXX_Size() int {
|
|
return xxx_messageInfo_RowBatch.Size(m)
|
|
}
|
|
func (m *RowBatch) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RowBatch.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RowBatch proto.InternalMessageInfo
|
|
|
|
func (m *RowBatch) GetCollectionName() string {
|
|
if m != nil {
|
|
return m.CollectionName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RowBatch) GetPartitionTag() string {
|
|
if m != nil {
|
|
return m.PartitionTag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RowBatch) GetRowData() []*commonpb.Blob {
|
|
if m != nil {
|
|
return m.RowData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RowBatch) GetHashValues() []int32 {
|
|
if m != nil {
|
|
return m.HashValues
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Placeholder value in DSL
|
|
type PlaceholderValue struct {
|
|
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
|
|
Value *commonpb.Blob `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PlaceholderValue) Reset() { *m = PlaceholderValue{} }
|
|
func (m *PlaceholderValue) String() string { return proto.CompactTextString(m) }
|
|
func (*PlaceholderValue) ProtoMessage() {}
|
|
func (*PlaceholderValue) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{3}
|
|
}
|
|
|
|
func (m *PlaceholderValue) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PlaceholderValue.Unmarshal(m, b)
|
|
}
|
|
func (m *PlaceholderValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PlaceholderValue.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PlaceholderValue) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PlaceholderValue.Merge(m, src)
|
|
}
|
|
func (m *PlaceholderValue) XXX_Size() int {
|
|
return xxx_messageInfo_PlaceholderValue.Size(m)
|
|
}
|
|
func (m *PlaceholderValue) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PlaceholderValue.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PlaceholderValue proto.InternalMessageInfo
|
|
|
|
func (m *PlaceholderValue) GetTag() string {
|
|
if m != nil {
|
|
return m.Tag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PlaceholderValue) GetValue() *commonpb.Blob {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Query for Search call
|
|
type Query struct {
|
|
CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"`
|
|
PartitionTags []string `protobuf:"bytes,2,rep,name=partition_tags,json=partitionTags,proto3" json:"partition_tags,omitempty"`
|
|
Dsl string `protobuf:"bytes,3,opt,name=dsl,proto3" json:"dsl,omitempty"`
|
|
Placeholders []*PlaceholderValue `protobuf:"bytes,4,rep,name=placeholders,proto3" json:"placeholders,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Query) Reset() { *m = Query{} }
|
|
func (m *Query) String() string { return proto.CompactTextString(m) }
|
|
func (*Query) ProtoMessage() {}
|
|
func (*Query) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{4}
|
|
}
|
|
|
|
func (m *Query) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Query.Unmarshal(m, b)
|
|
}
|
|
func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Query.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Query) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Query.Merge(m, src)
|
|
}
|
|
func (m *Query) XXX_Size() int {
|
|
return xxx_messageInfo_Query.Size(m)
|
|
}
|
|
func (m *Query) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Query.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Query proto.InternalMessageInfo
|
|
|
|
func (m *Query) GetCollectionName() string {
|
|
if m != nil {
|
|
return m.CollectionName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Query) GetPartitionTags() []string {
|
|
if m != nil {
|
|
return m.PartitionTags
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Query) GetDsl() string {
|
|
if m != nil {
|
|
return m.Dsl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Query) GetPlaceholders() []*PlaceholderValue {
|
|
if m != nil {
|
|
return m.Placeholders
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief String response
|
|
type StringResponse struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,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 *StringResponse) Reset() { *m = StringResponse{} }
|
|
func (m *StringResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*StringResponse) ProtoMessage() {}
|
|
func (*StringResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{5}
|
|
}
|
|
|
|
func (m *StringResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StringResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *StringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StringResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *StringResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StringResponse.Merge(m, src)
|
|
}
|
|
func (m *StringResponse) XXX_Size() int {
|
|
return xxx_messageInfo_StringResponse.Size(m)
|
|
}
|
|
func (m *StringResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StringResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StringResponse proto.InternalMessageInfo
|
|
|
|
func (m *StringResponse) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *StringResponse) GetValue() string {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
//*
|
|
// @brief Bool response
|
|
type BoolResponse struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Value bool `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *BoolResponse) Reset() { *m = BoolResponse{} }
|
|
func (m *BoolResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BoolResponse) ProtoMessage() {}
|
|
func (*BoolResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{6}
|
|
}
|
|
|
|
func (m *BoolResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_BoolResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_BoolResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *BoolResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BoolResponse.Merge(m, src)
|
|
}
|
|
func (m *BoolResponse) XXX_Size() int {
|
|
return xxx_messageInfo_BoolResponse.Size(m)
|
|
}
|
|
func (m *BoolResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BoolResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BoolResponse proto.InternalMessageInfo
|
|
|
|
func (m *BoolResponse) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BoolResponse) GetValue() bool {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return false
|
|
}
|
|
|
|
//*
|
|
// @brief String list response
|
|
type StringListResponse struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StringListResponse) Reset() { *m = StringListResponse{} }
|
|
func (m *StringListResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*StringListResponse) ProtoMessage() {}
|
|
func (*StringListResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{7}
|
|
}
|
|
|
|
func (m *StringListResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StringListResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *StringListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StringListResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *StringListResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StringListResponse.Merge(m, src)
|
|
}
|
|
func (m *StringListResponse) XXX_Size() int {
|
|
return xxx_messageInfo_StringListResponse.Size(m)
|
|
}
|
|
func (m *StringListResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StringListResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StringListResponse proto.InternalMessageInfo
|
|
|
|
func (m *StringListResponse) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *StringListResponse) GetValues() []string {
|
|
if m != nil {
|
|
return m.Values
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Integer list response
|
|
type IntegerListResponse struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Values []int64 `protobuf:"varint,2,rep,packed,name=values,proto3" json:"values,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *IntegerListResponse) Reset() { *m = IntegerListResponse{} }
|
|
func (m *IntegerListResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*IntegerListResponse) ProtoMessage() {}
|
|
func (*IntegerListResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{8}
|
|
}
|
|
|
|
func (m *IntegerListResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_IntegerListResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *IntegerListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_IntegerListResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *IntegerListResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_IntegerListResponse.Merge(m, src)
|
|
}
|
|
func (m *IntegerListResponse) XXX_Size() int {
|
|
return xxx_messageInfo_IntegerListResponse.Size(m)
|
|
}
|
|
func (m *IntegerListResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_IntegerListResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_IntegerListResponse proto.InternalMessageInfo
|
|
|
|
func (m *IntegerListResponse) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *IntegerListResponse) GetValues() []int64 {
|
|
if m != nil {
|
|
return m.Values
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Range response, [begin, end)
|
|
type IntegerRangeResponse struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Begin []int64 `protobuf:"varint,2,rep,packed,name=begin,proto3" json:"begin,omitempty"`
|
|
End []int64 `protobuf:"varint,3,rep,packed,name=end,proto3" json:"end,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *IntegerRangeResponse) Reset() { *m = IntegerRangeResponse{} }
|
|
func (m *IntegerRangeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*IntegerRangeResponse) ProtoMessage() {}
|
|
func (*IntegerRangeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{9}
|
|
}
|
|
|
|
func (m *IntegerRangeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_IntegerRangeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *IntegerRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_IntegerRangeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *IntegerRangeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_IntegerRangeResponse.Merge(m, src)
|
|
}
|
|
func (m *IntegerRangeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_IntegerRangeResponse.Size(m)
|
|
}
|
|
func (m *IntegerRangeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_IntegerRangeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_IntegerRangeResponse proto.InternalMessageInfo
|
|
|
|
func (m *IntegerRangeResponse) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *IntegerRangeResponse) GetBegin() []int64 {
|
|
if m != nil {
|
|
return m.Begin
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *IntegerRangeResponse) GetEnd() []int64 {
|
|
if m != nil {
|
|
return m.End
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Response of DescribeCollection
|
|
type CollectionDescription struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Schema *schemapb.CollectionSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
|
|
Statistics []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=statistics,proto3" json:"statistics,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CollectionDescription) Reset() { *m = CollectionDescription{} }
|
|
func (m *CollectionDescription) String() string { return proto.CompactTextString(m) }
|
|
func (*CollectionDescription) ProtoMessage() {}
|
|
func (*CollectionDescription) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{10}
|
|
}
|
|
|
|
func (m *CollectionDescription) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CollectionDescription.Unmarshal(m, b)
|
|
}
|
|
func (m *CollectionDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CollectionDescription.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CollectionDescription) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CollectionDescription.Merge(m, src)
|
|
}
|
|
func (m *CollectionDescription) XXX_Size() int {
|
|
return xxx_messageInfo_CollectionDescription.Size(m)
|
|
}
|
|
func (m *CollectionDescription) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CollectionDescription.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CollectionDescription proto.InternalMessageInfo
|
|
|
|
func (m *CollectionDescription) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CollectionDescription) GetSchema() *schemapb.CollectionSchema {
|
|
if m != nil {
|
|
return m.Schema
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CollectionDescription) GetStatistics() []*commonpb.KeyValuePair {
|
|
if m != nil {
|
|
return m.Statistics
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Response of DescribePartition
|
|
type PartitionDescription struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Name *PartitionName `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Statistics []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=statistics,proto3" json:"statistics,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PartitionDescription) Reset() { *m = PartitionDescription{} }
|
|
func (m *PartitionDescription) String() string { return proto.CompactTextString(m) }
|
|
func (*PartitionDescription) ProtoMessage() {}
|
|
func (*PartitionDescription) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{11}
|
|
}
|
|
|
|
func (m *PartitionDescription) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PartitionDescription.Unmarshal(m, b)
|
|
}
|
|
func (m *PartitionDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PartitionDescription.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PartitionDescription) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PartitionDescription.Merge(m, src)
|
|
}
|
|
func (m *PartitionDescription) XXX_Size() int {
|
|
return xxx_messageInfo_PartitionDescription.Size(m)
|
|
}
|
|
func (m *PartitionDescription) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PartitionDescription.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PartitionDescription proto.InternalMessageInfo
|
|
|
|
func (m *PartitionDescription) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *PartitionDescription) GetName() *PartitionName {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *PartitionDescription) GetStatistics() []*commonpb.KeyValuePair {
|
|
if m != nil {
|
|
return m.Statistics
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Scores of a query.
|
|
// The default value of tag is "root".
|
|
// It corresponds to the final score of each hit.
|
|
type Score struct {
|
|
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
|
|
Values []float32 `protobuf:"fixed32,2,rep,packed,name=values,proto3" json:"values,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Score) Reset() { *m = Score{} }
|
|
func (m *Score) String() string { return proto.CompactTextString(m) }
|
|
func (*Score) ProtoMessage() {}
|
|
func (*Score) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{12}
|
|
}
|
|
|
|
func (m *Score) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Score.Unmarshal(m, b)
|
|
}
|
|
func (m *Score) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Score.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Score) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Score.Merge(m, src)
|
|
}
|
|
func (m *Score) XXX_Size() int {
|
|
return xxx_messageInfo_Score.Size(m)
|
|
}
|
|
func (m *Score) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Score.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Score proto.InternalMessageInfo
|
|
|
|
func (m *Score) GetTag() string {
|
|
if m != nil {
|
|
return m.Tag
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Score) GetValues() []float32 {
|
|
if m != nil {
|
|
return m.Values
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Entities hit by query
|
|
type Hits struct {
|
|
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
|
|
RowData []*commonpb.Blob `protobuf:"bytes,2,rep,name=row_data,json=rowData,proto3" json:"row_data,omitempty"`
|
|
Scores []*Score `protobuf:"bytes,3,rep,name=scores,proto3" json:"scores,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Hits) Reset() { *m = Hits{} }
|
|
func (m *Hits) String() string { return proto.CompactTextString(m) }
|
|
func (*Hits) ProtoMessage() {}
|
|
func (*Hits) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{13}
|
|
}
|
|
|
|
func (m *Hits) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Hits.Unmarshal(m, b)
|
|
}
|
|
func (m *Hits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Hits.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Hits) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Hits.Merge(m, src)
|
|
}
|
|
func (m *Hits) XXX_Size() int {
|
|
return xxx_messageInfo_Hits.Size(m)
|
|
}
|
|
func (m *Hits) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Hits.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Hits proto.InternalMessageInfo
|
|
|
|
func (m *Hits) GetIds() []int64 {
|
|
if m != nil {
|
|
return m.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Hits) GetRowData() []*commonpb.Blob {
|
|
if m != nil {
|
|
return m.RowData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Hits) GetScores() []*Score {
|
|
if m != nil {
|
|
return m.Scores
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//*
|
|
// @brief Query result
|
|
type QueryResult struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Hits []*Hits `protobuf:"bytes,2,rep,name=hits,proto3" json:"hits,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *QueryResult) Reset() { *m = QueryResult{} }
|
|
func (m *QueryResult) String() string { return proto.CompactTextString(m) }
|
|
func (*QueryResult) ProtoMessage() {}
|
|
func (*QueryResult) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_b4b40b84dd2f74cb, []int{14}
|
|
}
|
|
|
|
func (m *QueryResult) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_QueryResult.Unmarshal(m, b)
|
|
}
|
|
func (m *QueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_QueryResult.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *QueryResult) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_QueryResult.Merge(m, src)
|
|
}
|
|
func (m *QueryResult) XXX_Size() int {
|
|
return xxx_messageInfo_QueryResult.Size(m)
|
|
}
|
|
func (m *QueryResult) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_QueryResult.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_QueryResult proto.InternalMessageInfo
|
|
|
|
func (m *QueryResult) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *QueryResult) GetHits() []*Hits {
|
|
if m != nil {
|
|
return m.Hits
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*CollectionName)(nil), "milvus.proto.service.CollectionName")
|
|
proto.RegisterType((*PartitionName)(nil), "milvus.proto.service.PartitionName")
|
|
proto.RegisterType((*RowBatch)(nil), "milvus.proto.service.RowBatch")
|
|
proto.RegisterType((*PlaceholderValue)(nil), "milvus.proto.service.PlaceholderValue")
|
|
proto.RegisterType((*Query)(nil), "milvus.proto.service.Query")
|
|
proto.RegisterType((*StringResponse)(nil), "milvus.proto.service.StringResponse")
|
|
proto.RegisterType((*BoolResponse)(nil), "milvus.proto.service.BoolResponse")
|
|
proto.RegisterType((*StringListResponse)(nil), "milvus.proto.service.StringListResponse")
|
|
proto.RegisterType((*IntegerListResponse)(nil), "milvus.proto.service.IntegerListResponse")
|
|
proto.RegisterType((*IntegerRangeResponse)(nil), "milvus.proto.service.IntegerRangeResponse")
|
|
proto.RegisterType((*CollectionDescription)(nil), "milvus.proto.service.CollectionDescription")
|
|
proto.RegisterType((*PartitionDescription)(nil), "milvus.proto.service.PartitionDescription")
|
|
proto.RegisterType((*Score)(nil), "milvus.proto.service.Score")
|
|
proto.RegisterType((*Hits)(nil), "milvus.proto.service.Hits")
|
|
proto.RegisterType((*QueryResult)(nil), "milvus.proto.service.QueryResult")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("service_msg.proto", fileDescriptor_b4b40b84dd2f74cb) }
|
|
|
|
var fileDescriptor_b4b40b84dd2f74cb = []byte{
|
|
// 662 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x6f, 0xd3, 0x30,
|
|
0x14, 0x56, 0x9a, 0x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