mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
472 lines
19 KiB
Go
472 lines
19 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: proxy_service.proto
|
|
|
|
package proxypb
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
commonpb "github.com/zilliztech/milvus-distributed/internal/proto/commonpb"
|
|
internalpb2 "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2"
|
|
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 RegisterNodeRequest struct {
|
|
Base *internalpb2.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Address *commonpb.Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterNodeRequest) Reset() { *m = RegisterNodeRequest{} }
|
|
func (m *RegisterNodeRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterNodeRequest) ProtoMessage() {}
|
|
func (*RegisterNodeRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_34ca2fbc94d169de, []int{0}
|
|
}
|
|
|
|
func (m *RegisterNodeRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterNodeRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterNodeRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RegisterNodeRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterNodeRequest.Merge(m, src)
|
|
}
|
|
func (m *RegisterNodeRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterNodeRequest.Size(m)
|
|
}
|
|
func (m *RegisterNodeRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterNodeRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterNodeRequest proto.InternalMessageInfo
|
|
|
|
func (m *RegisterNodeRequest) GetBase() *internalpb2.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RegisterNodeRequest) GetAddress() *commonpb.Address {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RegisterNodeResponse struct {
|
|
InitParams *internalpb2.InitParams `protobuf:"bytes,1,opt,name=init_params,json=initParams,proto3" json:"init_params,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterNodeResponse) Reset() { *m = RegisterNodeResponse{} }
|
|
func (m *RegisterNodeResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterNodeResponse) ProtoMessage() {}
|
|
func (*RegisterNodeResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_34ca2fbc94d169de, []int{1}
|
|
}
|
|
|
|
func (m *RegisterNodeResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterNodeResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterNodeResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RegisterNodeResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterNodeResponse.Merge(m, src)
|
|
}
|
|
func (m *RegisterNodeResponse) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterNodeResponse.Size(m)
|
|
}
|
|
func (m *RegisterNodeResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterNodeResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterNodeResponse proto.InternalMessageInfo
|
|
|
|
func (m *RegisterNodeResponse) GetInitParams() *internalpb2.InitParams {
|
|
if m != nil {
|
|
return m.InitParams
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RegisterLinkResponse struct {
|
|
Address *commonpb.Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RegisterLinkResponse) Reset() { *m = RegisterLinkResponse{} }
|
|
func (m *RegisterLinkResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*RegisterLinkResponse) ProtoMessage() {}
|
|
func (*RegisterLinkResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_34ca2fbc94d169de, []int{2}
|
|
}
|
|
|
|
func (m *RegisterLinkResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RegisterLinkResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *RegisterLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RegisterLinkResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RegisterLinkResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RegisterLinkResponse.Merge(m, src)
|
|
}
|
|
func (m *RegisterLinkResponse) XXX_Size() int {
|
|
return xxx_messageInfo_RegisterLinkResponse.Size(m)
|
|
}
|
|
func (m *RegisterLinkResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RegisterLinkResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RegisterLinkResponse proto.InternalMessageInfo
|
|
|
|
func (m *RegisterLinkResponse) GetAddress() *commonpb.Address {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InvalidateCollMetaCacheRequest struct {
|
|
Base *internalpb2.MsgBase `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
DbName string `protobuf:"bytes,2,opt,name=db_name,json=dbName,proto3" json:"db_name,omitempty"`
|
|
CollectionName string `protobuf:"bytes,3,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 *InvalidateCollMetaCacheRequest) Reset() { *m = InvalidateCollMetaCacheRequest{} }
|
|
func (m *InvalidateCollMetaCacheRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*InvalidateCollMetaCacheRequest) ProtoMessage() {}
|
|
func (*InvalidateCollMetaCacheRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_34ca2fbc94d169de, []int{3}
|
|
}
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_InvalidateCollMetaCacheRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_InvalidateCollMetaCacheRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_InvalidateCollMetaCacheRequest.Merge(m, src)
|
|
}
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_Size() int {
|
|
return xxx_messageInfo_InvalidateCollMetaCacheRequest.Size(m)
|
|
}
|
|
func (m *InvalidateCollMetaCacheRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_InvalidateCollMetaCacheRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_InvalidateCollMetaCacheRequest proto.InternalMessageInfo
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) GetBase() *internalpb2.MsgBase {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) GetDbName() string {
|
|
if m != nil {
|
|
return m.DbName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *InvalidateCollMetaCacheRequest) GetCollectionName() string {
|
|
if m != nil {
|
|
return m.CollectionName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*RegisterNodeRequest)(nil), "milvus.proto.proxy.RegisterNodeRequest")
|
|
proto.RegisterType((*RegisterNodeResponse)(nil), "milvus.proto.proxy.RegisterNodeResponse")
|
|
proto.RegisterType((*RegisterLinkResponse)(nil), "milvus.proto.proxy.RegisterLinkResponse")
|
|
proto.RegisterType((*InvalidateCollMetaCacheRequest)(nil), "milvus.proto.proxy.InvalidateCollMetaCacheRequest")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("proxy_service.proto", fileDescriptor_34ca2fbc94d169de) }
|
|
|
|
var fileDescriptor_34ca2fbc94d169de = []byte{
|
|
// 432 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x52, 0x4d, 0x6b, 0x14, 0x41,
|
|
0x10, 0xdd, 0x89, 0x92, 0x60, 0x67, 0x89, 0xd2, 0x11, 0x0c, 0xa3, 0x06, 0x9d, 0x4b, 0x72, 0x71,
|
|
0x06, 0x46, 0xf0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b2, 0xfb, 0x93, 0xdd, 0xa1, 0x52, 0x78, 0x47, 0x50, 0xcd, 0xb2, 0xd0, 0xf5, 0x46, 0xa2, 0x23,
|
|
0x8b, 0x65, 0x4b, 0x20, 0xb3, 0x45, 0x9e, 0x32, 0x4f, 0x95, 0xf9, 0xf1, 0x4d, 0x59, 0xee, 0xfa,
|
|
0xf2, 0xed, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x27, 0x63, 0xbb, 0x26, 0x04, 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
|
|
|
|
// ProxyServiceClient is the client API for ProxyService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ProxyServiceClient interface {
|
|
RegisterLink(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*RegisterLinkResponse, error)
|
|
RegisterNode(ctx context.Context, in *RegisterNodeRequest, opts ...grpc.CallOption) (*RegisterNodeResponse, error)
|
|
InvalidateCollectionMetaCache(ctx context.Context, in *InvalidateCollMetaCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
}
|
|
|
|
type proxyServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewProxyServiceClient(cc *grpc.ClientConn) ProxyServiceClient {
|
|
return &proxyServiceClient{cc}
|
|
}
|
|
|
|
func (c *proxyServiceClient) RegisterLink(ctx context.Context, in *commonpb.Empty, opts ...grpc.CallOption) (*RegisterLinkResponse, error) {
|
|
out := new(RegisterLinkResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.ProxyService/RegisterLink", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyServiceClient) RegisterNode(ctx context.Context, in *RegisterNodeRequest, opts ...grpc.CallOption) (*RegisterNodeResponse, error) {
|
|
out := new(RegisterNodeResponse)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.ProxyService/RegisterNode", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *proxyServiceClient) InvalidateCollectionMetaCache(ctx context.Context, in *InvalidateCollMetaCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.ProxyService/InvalidateCollectionMetaCache", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ProxyServiceServer is the server API for ProxyService service.
|
|
type ProxyServiceServer interface {
|
|
RegisterLink(context.Context, *commonpb.Empty) (*RegisterLinkResponse, error)
|
|
RegisterNode(context.Context, *RegisterNodeRequest) (*RegisterNodeResponse, error)
|
|
InvalidateCollectionMetaCache(context.Context, *InvalidateCollMetaCacheRequest) (*commonpb.Status, error)
|
|
}
|
|
|
|
// UnimplementedProxyServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedProxyServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedProxyServiceServer) RegisterLink(ctx context.Context, req *commonpb.Empty) (*RegisterLinkResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RegisterLink not implemented")
|
|
}
|
|
func (*UnimplementedProxyServiceServer) RegisterNode(ctx context.Context, req *RegisterNodeRequest) (*RegisterNodeResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RegisterNode not implemented")
|
|
}
|
|
func (*UnimplementedProxyServiceServer) InvalidateCollectionMetaCache(ctx context.Context, req *InvalidateCollMetaCacheRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method InvalidateCollectionMetaCache not implemented")
|
|
}
|
|
|
|
func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer) {
|
|
s.RegisterService(&_ProxyService_serviceDesc, srv)
|
|
}
|
|
|
|
func _ProxyService_RegisterLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(commonpb.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServiceServer).RegisterLink(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.ProxyService/RegisterLink",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServiceServer).RegisterLink(ctx, req.(*commonpb.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProxyService_RegisterNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RegisterNodeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServiceServer).RegisterNode(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.ProxyService/RegisterNode",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServiceServer).RegisterNode(ctx, req.(*RegisterNodeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ProxyService_InvalidateCollectionMetaCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InvalidateCollMetaCacheRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyServiceServer).InvalidateCollectionMetaCache(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.ProxyService/InvalidateCollectionMetaCache",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyServiceServer).InvalidateCollectionMetaCache(ctx, req.(*InvalidateCollMetaCacheRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _ProxyService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "milvus.proto.proxy.ProxyService",
|
|
HandlerType: (*ProxyServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "RegisterLink",
|
|
Handler: _ProxyService_RegisterLink_Handler,
|
|
},
|
|
{
|
|
MethodName: "RegisterNode",
|
|
Handler: _ProxyService_RegisterNode_Handler,
|
|
},
|
|
{
|
|
MethodName: "InvalidateCollectionMetaCache",
|
|
Handler: _ProxyService_InvalidateCollectionMetaCache_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proxy_service.proto",
|
|
}
|
|
|
|
// ProxyNodeServiceClient is the client API for ProxyNodeService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ProxyNodeServiceClient interface {
|
|
InvalidateCollectionMetaCache(ctx context.Context, in *InvalidateCollMetaCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error)
|
|
}
|
|
|
|
type proxyNodeServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewProxyNodeServiceClient(cc *grpc.ClientConn) ProxyNodeServiceClient {
|
|
return &proxyNodeServiceClient{cc}
|
|
}
|
|
|
|
func (c *proxyNodeServiceClient) InvalidateCollectionMetaCache(ctx context.Context, in *InvalidateCollMetaCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error) {
|
|
out := new(commonpb.Status)
|
|
err := c.cc.Invoke(ctx, "/milvus.proto.proxy.ProxyNodeService/InvalidateCollectionMetaCache", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ProxyNodeServiceServer is the server API for ProxyNodeService service.
|
|
type ProxyNodeServiceServer interface {
|
|
InvalidateCollectionMetaCache(context.Context, *InvalidateCollMetaCacheRequest) (*commonpb.Status, error)
|
|
}
|
|
|
|
// UnimplementedProxyNodeServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedProxyNodeServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedProxyNodeServiceServer) InvalidateCollectionMetaCache(ctx context.Context, req *InvalidateCollMetaCacheRequest) (*commonpb.Status, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method InvalidateCollectionMetaCache not implemented")
|
|
}
|
|
|
|
func RegisterProxyNodeServiceServer(s *grpc.Server, srv ProxyNodeServiceServer) {
|
|
s.RegisterService(&_ProxyNodeService_serviceDesc, srv)
|
|
}
|
|
|
|
func _ProxyNodeService_InvalidateCollectionMetaCache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InvalidateCollMetaCacheRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ProxyNodeServiceServer).InvalidateCollectionMetaCache(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/milvus.proto.proxy.ProxyNodeService/InvalidateCollectionMetaCache",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ProxyNodeServiceServer).InvalidateCollectionMetaCache(ctx, req.(*InvalidateCollMetaCacheRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _ProxyNodeService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "milvus.proto.proxy.ProxyNodeService",
|
|
HandlerType: (*ProxyNodeServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "InvalidateCollectionMetaCache",
|
|
Handler: _ProxyNodeService_InvalidateCollectionMetaCache_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "proxy_service.proto",
|
|
}
|