mirror of https://github.com/milvus-io/milvus.git
1145 lines
47 KiB
Go
1145 lines
47 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: master.proto
|
|
|
|
package masterpb
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
commonpb "github.com/milvus-io/milvus/internal/proto/commonpb"
|
|
internalpb "github.com/milvus-io/milvus/internal/proto/internalpb"
|
|
milvuspb "github.com/milvus-io/milvus/internal/proto/milvuspb"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
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 AllocTimestampRequest struct {
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AllocTimestampRequest) Reset() { *m = AllocTimestampRequest{} }
|
|
func (m *AllocTimestampRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AllocTimestampRequest) ProtoMessage() {}
|
|
func (*AllocTimestampRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f9c348dec43a6705, []int{0}
|
|
}
|
|
|
|
func (m *AllocTimestampRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AllocTimestampRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *AllocTimestampRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AllocTimestampRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AllocTimestampRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AllocTimestampRequest.Merge(m, src)
|
|
}
|
|
func (m *AllocTimestampRequest) XXX_Size() int {
|
|
return xxx_messageInfo_AllocTimestampRequest.Size(m)
|
|
}
|
|
func (m *AllocTimestampRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AllocTimestampRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AllocTimestampRequest proto.InternalMessageInfo
|
|
|
|
func (m *AllocTimestampRequest) GetBase() *commonpb.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AllocTimestampRequest) GetCount() uint32 {
|
|
if m != nil {
|
|
return m.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AllocTimestampResponse struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AllocTimestampResponse) Reset() { *m = AllocTimestampResponse{} }
|
|
func (m *AllocTimestampResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*AllocTimestampResponse) ProtoMessage() {}
|
|
func (*AllocTimestampResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f9c348dec43a6705, []int{1}
|
|
}
|
|
|
|
func (m *AllocTimestampResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AllocTimestampResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *AllocTimestampResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AllocTimestampResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AllocTimestampResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AllocTimestampResponse.Merge(m, src)
|
|
}
|
|
func (m *AllocTimestampResponse) XXX_Size() int {
|
|
return xxx_messageInfo_AllocTimestampResponse.Size(m)
|
|
}
|
|
func (m *AllocTimestampResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AllocTimestampResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AllocTimestampResponse proto.InternalMessageInfo
|
|
|
|
func (m *AllocTimestampResponse) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AllocTimestampResponse) GetTimestamp() uint64 {
|
|
if m != nil {
|
|
return m.Timestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *AllocTimestampResponse) GetCount() uint32 {
|
|
if m != nil {
|
|
return m.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AllocIDRequest struct {
|
|
Base *commonpb.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AllocIDRequest) Reset() { *m = AllocIDRequest{} }
|
|
func (m *AllocIDRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*AllocIDRequest) ProtoMessage() {}
|
|
func (*AllocIDRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f9c348dec43a6705, []int{2}
|
|
}
|
|
|
|
func (m *AllocIDRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AllocIDRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *AllocIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AllocIDRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AllocIDRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AllocIDRequest.Merge(m, src)
|
|
}
|
|
func (m *AllocIDRequest) XXX_Size() int {
|
|
return xxx_messageInfo_AllocIDRequest.Size(m)
|
|
}
|
|
func (m *AllocIDRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AllocIDRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AllocIDRequest proto.InternalMessageInfo
|
|
|
|
func (m *AllocIDRequest) GetBase() *commonpb.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AllocIDRequest) GetCount() uint32 {
|
|
if m != nil {
|
|
return m.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AllocIDResponse struct {
|
|
Status *commonpb.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
Count uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *AllocIDResponse) Reset() { *m = AllocIDResponse{} }
|
|
func (m *AllocIDResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*AllocIDResponse) ProtoMessage() {}
|
|
func (*AllocIDResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_f9c348dec43a6705, []int{3}
|
|
}
|
|
|
|
func (m *AllocIDResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_AllocIDResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *AllocIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_AllocIDResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *AllocIDResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_AllocIDResponse.Merge(m, src)
|
|
}
|
|
func (m *AllocIDResponse) XXX_Size() int {
|
|
return xxx_messageInfo_AllocIDResponse.Size(m)
|
|
}
|
|
func (m *AllocIDResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_AllocIDResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_AllocIDResponse proto.InternalMessageInfo
|
|
|
|
func (m *AllocIDResponse) GetStatus() *commonpb.Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AllocIDResponse) GetID() int64 {
|
|
if m != nil {
|
|
return m.ID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *AllocIDResponse) GetCount() uint32 {
|
|
if m != nil {
|
|
return m.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*AllocTimestampRequest)(nil), "milvus.proto.master.AllocTimestampRequest")
|
|
proto.RegisterType((*AllocTimestampResponse)(nil), "milvus.proto.master.AllocTimestampResponse")
|
|
proto.RegisterType((*AllocIDRequest)(nil), "milvus.proto.master.AllocIDRequest")
|
|
proto.RegisterType((*AllocIDResponse)(nil), "milvus.proto.master.AllocIDResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("master.proto", fileDescriptor_f9c348dec43a6705) }
|
|
|
|
var fileDescriptor_f9c348dec43a6705 = []byte{
|
|
// 686 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x96, 0xdb, 0x4f, 0x1a, 0x41,
|
|
0x14, 0xc6, 0x05, 0xad, 0x8d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22, 0xef, 0x72, 0x82, 0xe5, 0x13, 0x05, 0x27, 0x3f, 0x81,
|
|
0xaa, 0x2a, 0x2d, 0x10, 0x6e, 0xe5, 0x96, 0x1f, 0x93, 0x3e, 0x2c, 0x82, 0xea, 0x02, 0x3e, 0xc3,
|
|
0x86, 0x17, 0xcd, 0xc0, 0xe5, 0x4d, 0x66, 0x74, 0x97, 0x39, 0xfc, 0x34, 0xbc, 0xa6, 0xf5, 0x4b,
|
|
0x21, 0x91, 0xab, 0xe0, 0xe9, 0x93, 0xfa, 0x60, 0x49, 0xe4, 0x2a, 0x9d, 0xd5, 0xe7, 0xff, 0x0a,
|
|
0x4f, 0xc3, 0x9b, 0x9b, 0x1c, 0x64, 0xef, 0xd4, 0x2f, 0x86, 0xfa, 0xeb, 0x7c, 0x48, 0xeb, 0x1a,
|
|
0x50, 0xb9, 0x40, 0xd9, 0xbb, 0x53, 0x17, 0xd5, 0x61, 0xf6, 0x45, 0xa5, 0xa1, 0xe5, 0x2e, 0xa8,
|
|
0xf3, 0x0f, 0x3f, 0xce, 0xc6, 0x54, 0x4e, 0x66, 0x23, 0xaf, 0x83, 0x9d, 0x80, 0x7a, 0x4f, 0x79,
|
|
0xf8, 0xab, 0xa3, 0x2c, 0x3a, 0xbe, 0x4a, 0x27, 0x38, 0xa9, 0x33, 0x1a, 0xad, 0xfb, 0xeb, 0xb3,
|
|
0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x43, 0xba, 0xb8, 0x0a, 0x42, 0x0a, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// MasterServiceClient is the client API for MasterService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type MasterServiceClient interface {
|
|
GetComponentStates(ctx context.Context, in *internalpb.GetComponentStatesRequest, opts ...grpc.CallOption) (*internalpb.ComponentStates, error)
|
|
GetTimeTickChannel(ctx context.Context, in *internalpb.GetTimeTickChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
|
GetStatisticsChannel(ctx context.Context, in *internalpb.GetStatisticsChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
|
//*
|
|
// @brief This method is used to create collection
|
|
//
|
|
// @param CreateCollectionRequest, use to provide collection information to be created.
|
|
//
|
|
// @return Status
|
|
CreateCollection(ctx context.Context, in *milvuspb.CreateCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
//*
|
|
// @brief This method is used to delete collection.
|
|
//
|
|
// @param DropCollectionRequest, collection name is going to be deleted.
|
|
//
|
|
// @return Status
|
|
DropCollection(ctx context.Context, in *milvuspb.DropCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
//*
|
|
// @brief This method is used to test collection existence.
|
|
//
|
|
// @param HasCollectionRequest, collection name is going to be tested.
|
|
//
|
|
// @return BoolResponse
|
|
HasCollection(ctx context.Context, in *milvuspb.HasCollectionRequest, opts ...grpc.CallOption) (*milvuspb.BoolResponse, error)
|
|
//*
|
|
// @brief This method is used to get collection schema.
|
|
//
|
|
// @param DescribeCollectionRequest, target collection name.
|
|
//
|
|
// @return CollectionSchema
|
|
DescribeCollection(ctx context.Context, in *milvuspb.DescribeCollectionRequest, opts ...grpc.CallOption) (*milvuspb.DescribeCollectionResponse, error)
|
|
//*
|
|
// @brief This method is used to list all collections.
|
|
//
|
|
// @return StringListResponse, collection name list
|
|
ShowCollections(ctx context.Context, in *milvuspb.ShowCollectionsRequest, opts ...grpc.CallOption) (*milvuspb.ShowCollectionsResponse, error)
|
|
//*
|
|
// @brief This method is used to create partition
|
|
//
|
|
// @return Status
|
|
CreatePartition(ctx context.Context, in *milvuspb.CreatePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
//*
|
|
// @brief This method is used to drop partition
|
|
//
|
|
// @return Status
|
|
DropPartition(ctx context.Context, in *milvuspb.DropPartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
//*
|
|
// @brief This method is used to test partition existence.
|
|
//
|
|
// @return BoolResponse
|
|
HasPartition(ctx context.Context, in *milvuspb.HasPartitionRequest, opts ...grpc.CallOption) (*milvuspb.BoolResponse, error)
|
|
//*
|
|
// @brief This method is used to show partition information
|
|
//
|
|
// @param ShowPartitionRequest, target collection name.
|
|
//
|
|
// @return StringListResponse
|
|
ShowPartitions(ctx context.Context, in *milvuspb.ShowPartitionsRequest, opts ...grpc.CallOption) (*milvuspb.ShowPartitionsResponse, error)
|
|
DescribeSegment(ctx context.Context, in *milvuspb.DescribeSegmentRequest, opts ...grpc.CallOption) (*milvuspb.DescribeSegmentResponse, error)
|
|
ShowSegments(ctx context.Context, in *milvuspb.ShowSegmentsRequest, opts ...grpc.CallOption) (*milvuspb.ShowSegmentsResponse, error)
|
|
CreateIndex(ctx context.Context, in *milvuspb.CreateIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
DescribeIndex(ctx context.Context, in *milvuspb.DescribeIndexRequest, opts ...grpc.CallOption) (*milvuspb.DescribeIndexResponse, error)
|
|
DropIndex(ctx context.Context, in *milvuspb.DropIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
AllocTimestamp(ctx context.Context, in *AllocTimestampRequest, opts ...grpc.CallOption) (*AllocTimestampResponse, error)
|
|
AllocID(ctx context.Context, in *AllocIDRequest, opts ...grpc.CallOption) (*AllocIDResponse, error)
|
|
GetDdChannel(ctx context.Context, in *internalpb.GetDdChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)
|
|
}
|
|
|
|
type masterServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewMasterServiceClient(cc *grpc.ClientConn) MasterServiceClient {
|
|
return &masterServiceClient{cc}
|
|
}
|
|
|
|
func (c *masterServiceClient) GetComponentStates(ctx context.Context, in *internalpb.GetComponentStatesRequest, opts ...grpc.CallOption) (*internalpb.ComponentStates, error) {
|
|
out := new(internalpb.ComponentStates)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/GetComponentStates", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) GetTimeTickChannel(ctx context.Context, in *internalpb.GetTimeTickChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
out := new(milvuspb.StringResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/GetTimeTickChannel", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) GetStatisticsChannel(ctx context.Context, in *internalpb.GetStatisticsChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
out := new(milvuspb.StringResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/GetStatisticsChannel", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) CreateCollection(ctx context.Context, in *milvuspb.CreateCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/CreateCollection", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) DropCollection(ctx context.Context, in *milvuspb.DropCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/DropCollection", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) HasCollection(ctx context.Context, in *milvuspb.HasCollectionRequest, opts ...grpc.CallOption) (*milvuspb.BoolResponse, error) {
|
|
out := new(milvuspb.BoolResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/HasCollection", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) DescribeCollection(ctx context.Context, in *milvuspb.DescribeCollectionRequest, opts ...grpc.CallOption) (*milvuspb.DescribeCollectionResponse, error) {
|
|
out := new(milvuspb.DescribeCollectionResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/DescribeCollection", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) ShowCollections(ctx context.Context, in *milvuspb.ShowCollectionsRequest, opts ...grpc.CallOption) (*milvuspb.ShowCollectionsResponse, error) {
|
|
out := new(milvuspb.ShowCollectionsResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/ShowCollections", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) CreatePartition(ctx context.Context, in *milvuspb.CreatePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/CreatePartition", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) DropPartition(ctx context.Context, in *milvuspb.DropPartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/DropPartition", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) HasPartition(ctx context.Context, in *milvuspb.HasPartitionRequest, opts ...grpc.CallOption) (*milvuspb.BoolResponse, error) {
|
|
out := new(milvuspb.BoolResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/HasPartition", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) ShowPartitions(ctx context.Context, in *milvuspb.ShowPartitionsRequest, opts ...grpc.CallOption) (*milvuspb.ShowPartitionsResponse, error) {
|
|
out := new(milvuspb.ShowPartitionsResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/ShowPartitions", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) DescribeSegment(ctx context.Context, in *milvuspb.DescribeSegmentRequest, opts ...grpc.CallOption) (*milvuspb.DescribeSegmentResponse, error) {
|
|
out := new(milvuspb.DescribeSegmentResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/DescribeSegment", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) ShowSegments(ctx context.Context, in *milvuspb.ShowSegmentsRequest, opts ...grpc.CallOption) (*milvuspb.ShowSegmentsResponse, error) {
|
|
out := new(milvuspb.ShowSegmentsResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/ShowSegments", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) CreateIndex(ctx context.Context, in *milvuspb.CreateIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/CreateIndex", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) DescribeIndex(ctx context.Context, in *milvuspb.DescribeIndexRequest, opts ...grpc.CallOption) (*milvuspb.DescribeIndexResponse, error) {
|
|
out := new(milvuspb.DescribeIndexResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/DescribeIndex", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) DropIndex(ctx context.Context, in *milvuspb.DropIndexRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/DropIndex", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) AllocTimestamp(ctx context.Context, in *AllocTimestampRequest, opts ...grpc.CallOption) (*AllocTimestampResponse, error) {
|
|
out := new(AllocTimestampResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/AllocTimestamp", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) AllocID(ctx context.Context, in *AllocIDRequest, opts ...grpc.CallOption) (*AllocIDResponse, error) {
|
|
out := new(AllocIDResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/AllocID", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *masterServiceClient) GetDdChannel(ctx context.Context, in *internalpb.GetDdChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error) {
|
|
out := new(milvuspb.StringResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.master.MasterService/GetDdChannel", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// MasterServiceServer is the server API for MasterService service.
|
|
type MasterServiceServer interface {
|
|
GetComponentStates(context.Context, *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error)
|
|
GetTimeTickChannel(context.Context, *internalpb.GetTimeTickChannelRequest) (*milvuspb.StringResponse, error)
|
|
GetStatisticsChannel(context.Context, *internalpb.GetStatisticsChannelRequest) (*milvuspb.StringResponse, error)
|
|
//*
|
|
// @brief This method is used to create collection
|
|
//
|
|
// @param CreateCollectionRequest, use to provide collection information to be created.
|
|
//
|
|
// @return Status
|
|
CreateCollection(context.Context, *milvuspb.CreateCollectionRequest) (*commonpb.Status, error)
|
|
//*
|
|
// @brief This method is used to delete collection.
|
|
//
|
|
// @param DropCollectionRequest, collection name is going to be deleted.
|
|
//
|
|
// @return Status
|
|
DropCollection(context.Context, *milvuspb.DropCollectionRequest) (*commonpb.Status, error)
|
|
//*
|
|
// @brief This method is used to test collection existence.
|
|
//
|
|
// @param HasCollectionRequest, collection name is going to be tested.
|
|
//
|
|
// @return BoolResponse
|
|
HasCollection(context.Context, *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error)
|
|
//*
|
|
// @brief This method is used to get collection schema.
|
|
//
|
|
// @param DescribeCollectionRequest, target collection name.
|
|
//
|
|
// @return CollectionSchema
|
|
DescribeCollection(context.Context, *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error)
|
|
//*
|
|
// @brief This method is used to list all collections.
|
|
//
|
|
// @return StringListResponse, collection name list
|
|
ShowCollections(context.Context, *milvuspb.ShowCollectionsRequest) (*milvuspb.ShowCollectionsResponse, error)
|
|
//*
|
|
// @brief This method is used to create partition
|
|
//
|
|
// @return Status
|
|
CreatePartition(context.Context, *milvuspb.CreatePartitionRequest) (*commonpb.Status, error)
|
|
//*
|
|
// @brief This method is used to drop partition
|
|
//
|
|
// @return Status
|
|
DropPartition(context.Context, *milvuspb.DropPartitionRequest) (*commonpb.Status, error)
|
|
//*
|
|
// @brief This method is used to test partition existence.
|
|
//
|
|
// @return BoolResponse
|
|
HasPartition(context.Context, *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error)
|
|
//*
|
|
// @brief This method is used to show partition information
|
|
//
|
|
// @param ShowPartitionRequest, target collection name.
|
|
//
|
|
// @return StringListResponse
|
|
ShowPartitions(context.Context, *milvuspb.ShowPartitionsRequest) (*milvuspb.ShowPartitionsResponse, error)
|
|
DescribeSegment(context.Context, *milvuspb.DescribeSegmentRequest) (*milvuspb.DescribeSegmentResponse, error)
|
|
ShowSegments(context.Context, *milvuspb.ShowSegmentsRequest) (*milvuspb.ShowSegmentsResponse, error)
|
|
CreateIndex(context.Context, *milvuspb.CreateIndexRequest) (*commonpb.Status, error)
|
|
DescribeIndex(context.Context, *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error)
|
|
DropIndex(context.Context, *milvuspb.DropIndexRequest) (*commonpb.Status, error)
|
|
AllocTimestamp(context.Context, *AllocTimestampRequest) (*AllocTimestampResponse, error)
|
|
AllocID(context.Context, *AllocIDRequest) (*AllocIDResponse, error)
|
|
GetDdChannel(context.Context, *internalpb.GetDdChannelRequest) (*milvuspb.StringResponse, error)
|
|
}
|
|
|
|
// UnimplementedMasterServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedMasterServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedMasterServiceServer) GetComponentStates(ctx context.Context, req *internalpb.GetComponentStatesRequest) (*internalpb.ComponentStates, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetComponentStates not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) GetTimeTickChannel(ctx context.Context, req *internalpb.GetTimeTickChannelRequest) (*milvuspb.StringResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetTimeTickChannel not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) GetStatisticsChannel(ctx context.Context, req *internalpb.GetStatisticsChannelRequest) (*milvuspb.StringResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetStatisticsChannel not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) CreateCollection(ctx context.Context, req *milvuspb.CreateCollectionRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateCollection not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) DropCollection(ctx context.Context, req *milvuspb.DropCollectionRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DropCollection not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) HasCollection(ctx context.Context, req *milvuspb.HasCollectionRequest) (*milvuspb.BoolResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method HasCollection not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) DescribeCollection(ctx context.Context, req *milvuspb.DescribeCollectionRequest) (*milvuspb.DescribeCollectionResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DescribeCollection not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) ShowCollections(ctx context.Context, req *milvuspb.ShowCollectionsRequest) (*milvuspb.ShowCollectionsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShowCollections not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) CreatePartition(ctx context.Context, req *milvuspb.CreatePartitionRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreatePartition not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) DropPartition(ctx context.Context, req *milvuspb.DropPartitionRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DropPartition not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) HasPartition(ctx context.Context, req *milvuspb.HasPartitionRequest) (*milvuspb.BoolResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method HasPartition not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) ShowPartitions(ctx context.Context, req *milvuspb.ShowPartitionsRequest) (*milvuspb.ShowPartitionsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShowPartitions not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) DescribeSegment(ctx context.Context, req *milvuspb.DescribeSegmentRequest) (*milvuspb.DescribeSegmentResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DescribeSegment not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) ShowSegments(ctx context.Context, req *milvuspb.ShowSegmentsRequest) (*milvuspb.ShowSegmentsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShowSegments not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) CreateIndex(ctx context.Context, req *milvuspb.CreateIndexRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateIndex not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) DescribeIndex(ctx context.Context, req *milvuspb.DescribeIndexRequest) (*milvuspb.DescribeIndexResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DescribeIndex not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) DropIndex(ctx context.Context, req *milvuspb.DropIndexRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DropIndex not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) AllocTimestamp(ctx context.Context, req *AllocTimestampRequest) (*AllocTimestampResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method AllocTimestamp not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) AllocID(ctx context.Context, req *AllocIDRequest) (*AllocIDResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method AllocID not implemented")
|
|
}
|
|
func (*UnimplementedMasterServiceServer) GetDdChannel(ctx context.Context, req *internalpb.GetDdChannelRequest) (*milvuspb.StringResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetDdChannel not implemented")
|
|
}
|
|
|
|
func RegisterMasterServiceServer(s *grpc.Server, srv MasterServiceServer) {
|
|
s.RegisterService(&_MasterService_serviceDesc, srv)
|
|
}
|
|
|
|
func _MasterService_GetComponentStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(internalpb.GetComponentStatesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).GetComponentStates(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/GetComponentStates",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).GetComponentStates(ctx, req.(*internalpb.GetComponentStatesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_GetTimeTickChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(internalpb.GetTimeTickChannelRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).GetTimeTickChannel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/GetTimeTickChannel",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).GetTimeTickChannel(ctx, req.(*internalpb.GetTimeTickChannelRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_GetStatisticsChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(internalpb.GetStatisticsChannelRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).GetStatisticsChannel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/GetStatisticsChannel",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).GetStatisticsChannel(ctx, req.(*internalpb.GetStatisticsChannelRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_CreateCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.CreateCollectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).CreateCollection(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/CreateCollection",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).CreateCollection(ctx, req.(*milvuspb.CreateCollectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_DropCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.DropCollectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).DropCollection(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/DropCollection",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).DropCollection(ctx, req.(*milvuspb.DropCollectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_HasCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.HasCollectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).HasCollection(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/HasCollection",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).HasCollection(ctx, req.(*milvuspb.HasCollectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_DescribeCollection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.DescribeCollectionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).DescribeCollection(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/DescribeCollection",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).DescribeCollection(ctx, req.(*milvuspb.DescribeCollectionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_ShowCollections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.ShowCollectionsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).ShowCollections(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/ShowCollections",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).ShowCollections(ctx, req.(*milvuspb.ShowCollectionsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_CreatePartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.CreatePartitionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).CreatePartition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/CreatePartition",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).CreatePartition(ctx, req.(*milvuspb.CreatePartitionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_DropPartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.DropPartitionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).DropPartition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/DropPartition",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).DropPartition(ctx, req.(*milvuspb.DropPartitionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_HasPartition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.HasPartitionRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).HasPartition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/HasPartition",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).HasPartition(ctx, req.(*milvuspb.HasPartitionRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_ShowPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.ShowPartitionsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).ShowPartitions(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/ShowPartitions",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).ShowPartitions(ctx, req.(*milvuspb.ShowPartitionsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_DescribeSegment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.DescribeSegmentRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).DescribeSegment(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/DescribeSegment",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).DescribeSegment(ctx, req.(*milvuspb.DescribeSegmentRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_ShowSegments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.ShowSegmentsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).ShowSegments(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/ShowSegments",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).ShowSegments(ctx, req.(*milvuspb.ShowSegmentsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_CreateIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.CreateIndexRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).CreateIndex(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/CreateIndex",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).CreateIndex(ctx, req.(*milvuspb.CreateIndexRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_DescribeIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.DescribeIndexRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).DescribeIndex(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/DescribeIndex",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).DescribeIndex(ctx, req.(*milvuspb.DescribeIndexRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_DropIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(milvuspb.DropIndexRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).DropIndex(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/DropIndex",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).DropIndex(ctx, req.(*milvuspb.DropIndexRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_AllocTimestamp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AllocTimestampRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).AllocTimestamp(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/AllocTimestamp",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).AllocTimestamp(ctx, req.(*AllocTimestampRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_AllocID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AllocIDRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).AllocID(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/AllocID",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).AllocID(ctx, req.(*AllocIDRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MasterService_GetDdChannel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(internalpb.GetDdChannelRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MasterServiceServer).GetDdChannel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.master.MasterService/GetDdChannel",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MasterServiceServer).GetDdChannel(ctx, req.(*internalpb.GetDdChannelRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _MasterService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "milvus.proto.master.MasterService",
|
|
HandlerType: (*MasterServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetComponentStates",
|
|
Handler: _MasterService_GetComponentStates_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetTimeTickChannel",
|
|
Handler: _MasterService_GetTimeTickChannel_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetStatisticsChannel",
|
|
Handler: _MasterService_GetStatisticsChannel_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateCollection",
|
|
Handler: _MasterService_CreateCollection_Handler,
|
|
},
|
|
{
|
|
MethodName: "DropCollection",
|
|
Handler: _MasterService_DropCollection_Handler,
|
|
},
|
|
{
|
|
MethodName: "HasCollection",
|
|
Handler: _MasterService_HasCollection_Handler,
|
|
},
|
|
{
|
|
MethodName: "DescribeCollection",
|
|
Handler: _MasterService_DescribeCollection_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShowCollections",
|
|
Handler: _MasterService_ShowCollections_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreatePartition",
|
|
Handler: _MasterService_CreatePartition_Handler,
|
|
},
|
|
{
|
|
MethodName: "DropPartition",
|
|
Handler: _MasterService_DropPartition_Handler,
|
|
},
|
|
{
|
|
MethodName: "HasPartition",
|
|
Handler: _MasterService_HasPartition_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShowPartitions",
|
|
Handler: _MasterService_ShowPartitions_Handler,
|
|
},
|
|
{
|
|
MethodName: "DescribeSegment",
|
|
Handler: _MasterService_DescribeSegment_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShowSegments",
|
|
Handler: _MasterService_ShowSegments_Handler,
|
|
},
|
|
{
|
|
MethodName: "CreateIndex",
|
|
Handler: _MasterService_CreateIndex_Handler,
|
|
},
|
|
{
|
|
MethodName: "DescribeIndex",
|
|
Handler: _MasterService_DescribeIndex_Handler,
|
|
},
|
|
{
|
|
MethodName: "DropIndex",
|
|
Handler: _MasterService_DropIndex_Handler,
|
|
},
|
|
{
|
|
MethodName: "AllocTimestamp",
|
|
Handler: _MasterService_AllocTimestamp_Handler,
|
|
},
|
|
{
|
|
MethodName: "AllocID",
|
|
Handler: _MasterService_AllocID_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetDdChannel",
|
|
Handler: _MasterService_GetDdChannel_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "master.proto",
|
|
}
|