mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 22:45:26 +08:00
211 lines
7.0 KiB
Go
211 lines
7.0 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: generate_id.proto
|
|
|
|
package generate_entity_ids
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
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
|
|
|
|
// The request message containing the user's name.
|
|
type Request struct {
|
|
Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Request) Reset() { *m = Request{} }
|
|
func (m *Request) String() string { return proto.CompactTextString(m) }
|
|
func (*Request) ProtoMessage() {}
|
|
func (*Request) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_72f50f761a21563e, []int{0}
|
|
}
|
|
|
|
func (m *Request) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Request.Unmarshal(m, b)
|
|
}
|
|
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Request) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Request.Merge(m, src)
|
|
}
|
|
func (m *Request) XXX_Size() int {
|
|
return xxx_messageInfo_Request.Size(m)
|
|
}
|
|
func (m *Request) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Request.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Request proto.InternalMessageInfo
|
|
|
|
func (m *Request) GetLength() int64 {
|
|
if m != nil {
|
|
return m.Length
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// The response message containing the greetings
|
|
type Reply struct {
|
|
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Reply) Reset() { *m = Reply{} }
|
|
func (m *Reply) String() string { return proto.CompactTextString(m) }
|
|
func (*Reply) ProtoMessage() {}
|
|
func (*Reply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_72f50f761a21563e, []int{1}
|
|
}
|
|
|
|
func (m *Reply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Reply.Unmarshal(m, b)
|
|
}
|
|
func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Reply.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Reply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Reply.Merge(m, src)
|
|
}
|
|
func (m *Reply) XXX_Size() int {
|
|
return xxx_messageInfo_Reply.Size(m)
|
|
}
|
|
func (m *Reply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Reply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Reply proto.InternalMessageInfo
|
|
|
|
func (m *Reply) GetIds() []int64 {
|
|
if m != nil {
|
|
return m.Ids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Request)(nil), "generate_entity_ids.Request")
|
|
proto.RegisterType((*Reply)(nil), "generate_entity_ids.Reply")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("generate_id.proto", fileDescriptor_72f50f761a21563e) }
|
|
|
|
var fileDescriptor_72f50f761a21563e = []byte{
|
|
// 183 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4c, 0x4f, 0xcd, 0x4b,
|
|
0x2d, 0x4a, 0x2c, 0x49, 0x8d, 0xcf, 0x4c, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x86,
|
|
0x0b, 0xa5, 0xe6, 0x95, 0x64, 0x96, 0x54, 0xc6, 0x67, 0xa6, 0x14, 0x2b, 0x29, 0x72, 0xb1, 0x07,
|
|
0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x08, 0x89, 0x71, 0xb1, 0xe5, 0xa4, 0xe6, 0xa5, 0x97, 0x64,
|
|
0x48, 0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0x41, 0x79, 0x4a, 0x92, 0x5c, 0xac, 0x41, 0xa9, 0x05,
|
|
0x39, 0x95, 0x42, 0x02, 0x5c, 0xcc, 0x99, 0x29, 0xc5, 0x12, 0x8c, 0x0a, 0xcc, 0x1a, 0xcc, 0x41,
|
|
0x20, 0xa6, 0x51, 0x08, 0x17, 0xbb, 0x7b, 0x51, 0x6a, 0x6a, 0x49, 0x6a, 0x91, 0x90, 0x27, 0x17,
|
|
0xb7, 0x7b, 0x6a, 0x89, 0x2b, 0xd8, 0x64, 0x4f, 0x17, 0x21, 0x19, 0x3d, 0x2c, 0xb6, 0xe9, 0x41,
|
|
0xad, 0x92, 0x92, 0xc2, 0x21, 0x5b, 0x90, 0x53, 0xa9, 0xc4, 0xe0, 0x64, 0xce, 0x25, 0x94, 0x99,
|
|
0xaf, 0x97, 0x5e, 0x54, 0x90, 0x0c, 0x57, 0xe6, 0xe9, 0xe2, 0xc4, 0xe5, 0x0e, 0x67, 0x07, 0x30,
|
|
0x46, 0x61, 0xf3, 0x4c, 0x12, 0x1b, 0xd8, 0xa3, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xeb,
|
|
0x7c, 0x51, 0xda, 0xfd, 0x00, 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
|
|
|
|
// GreeterClient is the client API for Greeter service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type GreeterClient interface {
|
|
// Sends a greeting
|
|
GetEntityID(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
|
|
}
|
|
|
|
type greeterClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient {
|
|
return &greeterClient{cc}
|
|
}
|
|
|
|
func (c *greeterClient) GetEntityID(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error) {
|
|
out := new(Reply)
|
|
err := c.cc.Invoke(ctx, "/generate_entity_ids.Greeter/GetEntityID", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// GreeterServer is the server API for Greeter service.
|
|
type GreeterServer interface {
|
|
// Sends a greeting
|
|
GetEntityID(context.Context, *Request) (*Reply, error)
|
|
}
|
|
|
|
// UnimplementedGreeterServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedGreeterServer struct {
|
|
}
|
|
|
|
func (*UnimplementedGreeterServer) GetEntityID(ctx context.Context, req *Request) (*Reply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetEntityID not implemented")
|
|
}
|
|
|
|
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer) {
|
|
s.RegisterService(&_Greeter_serviceDesc, srv)
|
|
}
|
|
|
|
func _Greeter_GetEntityID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(Request)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(GreeterServer).GetEntityID(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/generate_entity_ids.Greeter/GetEntityID",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(GreeterServer).GetEntityID(ctx, req.(*Request))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Greeter_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "generate_entity_ids.Greeter",
|
|
HandlerType: (*GreeterServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetEntityID",
|
|
Handler: _Greeter_GetEntityID_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "generate_id.proto",
|
|
}
|