// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.20.0--rc2 // source: entManageApplication.proto package pb import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // EntManageApplicationClient is the client API for EntManageApplication service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type EntManageApplicationClient interface { BuyProductList(ctx context.Context, in *BuyProductListReq, opts ...grpc.CallOption) (*BuyProductListResp, error) UsePersonList(ctx context.Context, in *UsePersonListReq, opts ...grpc.CallOption) (*UsePersonListResp, error) AddUsePerson(ctx context.Context, in *AddUsePersonReq, opts ...grpc.CallOption) (*AddUsePersonResp, error) DelUsePerson(ctx context.Context, in *DelUsePersonReq, opts ...grpc.CallOption) (*AddUsePersonResp, error) EmpowerUserIds(ctx context.Context, in *EmpowerUserIds, opts ...grpc.CallOption) (*EmpowerUserIds, error) } type entManageApplicationClient struct { cc grpc.ClientConnInterface } func NewEntManageApplicationClient(cc grpc.ClientConnInterface) EntManageApplicationClient { return &entManageApplicationClient{cc} } func (c *entManageApplicationClient) BuyProductList(ctx context.Context, in *BuyProductListReq, opts ...grpc.CallOption) (*BuyProductListResp, error) { out := new(BuyProductListResp) err := c.cc.Invoke(ctx, "/EntManageApplication/buyProductList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *entManageApplicationClient) UsePersonList(ctx context.Context, in *UsePersonListReq, opts ...grpc.CallOption) (*UsePersonListResp, error) { out := new(UsePersonListResp) err := c.cc.Invoke(ctx, "/EntManageApplication/usePersonList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *entManageApplicationClient) AddUsePerson(ctx context.Context, in *AddUsePersonReq, opts ...grpc.CallOption) (*AddUsePersonResp, error) { out := new(AddUsePersonResp) err := c.cc.Invoke(ctx, "/EntManageApplication/addUsePerson", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *entManageApplicationClient) DelUsePerson(ctx context.Context, in *DelUsePersonReq, opts ...grpc.CallOption) (*AddUsePersonResp, error) { out := new(AddUsePersonResp) err := c.cc.Invoke(ctx, "/EntManageApplication/delUsePerson", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *entManageApplicationClient) EmpowerUserIds(ctx context.Context, in *EmpowerUserIds, opts ...grpc.CallOption) (*EmpowerUserIds, error) { out := new(EmpowerUserIds) err := c.cc.Invoke(ctx, "/EntManageApplication/empowerUserIds", in, out, opts...) if err != nil { return nil, err } return out, nil } // EntManageApplicationServer is the server API for EntManageApplication service. // All implementations must embed UnimplementedEntManageApplicationServer // for forward compatibility type EntManageApplicationServer interface { BuyProductList(context.Context, *BuyProductListReq) (*BuyProductListResp, error) UsePersonList(context.Context, *UsePersonListReq) (*UsePersonListResp, error) AddUsePerson(context.Context, *AddUsePersonReq) (*AddUsePersonResp, error) DelUsePerson(context.Context, *DelUsePersonReq) (*AddUsePersonResp, error) EmpowerUserIds(context.Context, *EmpowerUserIds) (*EmpowerUserIds, error) mustEmbedUnimplementedEntManageApplicationServer() } // UnimplementedEntManageApplicationServer must be embedded to have forward compatible implementations. type UnimplementedEntManageApplicationServer struct { } func (UnimplementedEntManageApplicationServer) BuyProductList(context.Context, *BuyProductListReq) (*BuyProductListResp, error) { return nil, status.Errorf(codes.Unimplemented, "method BuyProductList not implemented") } func (UnimplementedEntManageApplicationServer) UsePersonList(context.Context, *UsePersonListReq) (*UsePersonListResp, error) { return nil, status.Errorf(codes.Unimplemented, "method UsePersonList not implemented") } func (UnimplementedEntManageApplicationServer) AddUsePerson(context.Context, *AddUsePersonReq) (*AddUsePersonResp, error) { return nil, status.Errorf(codes.Unimplemented, "method AddUsePerson not implemented") } func (UnimplementedEntManageApplicationServer) DelUsePerson(context.Context, *DelUsePersonReq) (*AddUsePersonResp, error) { return nil, status.Errorf(codes.Unimplemented, "method DelUsePerson not implemented") } func (UnimplementedEntManageApplicationServer) EmpowerUserIds(context.Context, *EmpowerUserIds) (*EmpowerUserIds, error) { return nil, status.Errorf(codes.Unimplemented, "method EmpowerUserIds not implemented") } func (UnimplementedEntManageApplicationServer) mustEmbedUnimplementedEntManageApplicationServer() {} // UnsafeEntManageApplicationServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to EntManageApplicationServer will // result in compilation errors. type UnsafeEntManageApplicationServer interface { mustEmbedUnimplementedEntManageApplicationServer() } func RegisterEntManageApplicationServer(s grpc.ServiceRegistrar, srv EntManageApplicationServer) { s.RegisterService(&EntManageApplication_ServiceDesc, srv) } func _EntManageApplication_BuyProductList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(BuyProductListReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EntManageApplicationServer).BuyProductList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/EntManageApplication/buyProductList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EntManageApplicationServer).BuyProductList(ctx, req.(*BuyProductListReq)) } return interceptor(ctx, in, info, handler) } func _EntManageApplication_UsePersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UsePersonListReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EntManageApplicationServer).UsePersonList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/EntManageApplication/usePersonList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EntManageApplicationServer).UsePersonList(ctx, req.(*UsePersonListReq)) } return interceptor(ctx, in, info, handler) } func _EntManageApplication_AddUsePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddUsePersonReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EntManageApplicationServer).AddUsePerson(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/EntManageApplication/addUsePerson", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EntManageApplicationServer).AddUsePerson(ctx, req.(*AddUsePersonReq)) } return interceptor(ctx, in, info, handler) } func _EntManageApplication_DelUsePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DelUsePersonReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EntManageApplicationServer).DelUsePerson(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/EntManageApplication/delUsePerson", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EntManageApplicationServer).DelUsePerson(ctx, req.(*DelUsePersonReq)) } return interceptor(ctx, in, info, handler) } func _EntManageApplication_EmpowerUserIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EmpowerUserIds) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(EntManageApplicationServer).EmpowerUserIds(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/EntManageApplication/empowerUserIds", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(EntManageApplicationServer).EmpowerUserIds(ctx, req.(*EmpowerUserIds)) } return interceptor(ctx, in, info, handler) } // EntManageApplication_ServiceDesc is the grpc.ServiceDesc for EntManageApplication service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var EntManageApplication_ServiceDesc = grpc.ServiceDesc{ ServiceName: "EntManageApplication", HandlerType: (*EntManageApplicationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "buyProductList", Handler: _EntManageApplication_BuyProductList_Handler, }, { MethodName: "usePersonList", Handler: _EntManageApplication_UsePersonList_Handler, }, { MethodName: "addUsePerson", Handler: _EntManageApplication_AddUsePerson_Handler, }, { MethodName: "delUsePerson", Handler: _EntManageApplication_DelUsePerson_Handler, }, { MethodName: "empowerUserIds", Handler: _EntManageApplication_EmpowerUserIds_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "entManageApplication.proto", }