123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: garden_service.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- 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"
- v1 "property-task/pb/v1"
- )
- // 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
- func init() {
- proto.RegisterFile("garden_service.proto", fileDescriptor_e527eed98167eca4)
- }
- var fileDescriptor_e527eed98167eca4 = []byte{
- // 196 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4f, 0x2c, 0x4a,
- 0x49, 0xcd, 0x8b, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9,
- 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0xf1, 0x94, 0x19, 0xea, 0xa7, 0xa5, 0x42, 0x65,
- 0x8c, 0x3e, 0x31, 0x72, 0xb1, 0xb9, 0x83, 0xb5, 0x08, 0xb9, 0x71, 0xf1, 0xb8, 0xa7, 0xe6, 0xa5,
- 0x16, 0x25, 0x96, 0xa4, 0x3a, 0x65, 0xe6, 0xe4, 0x08, 0x49, 0xe9, 0x15, 0x24, 0xc5, 0x97, 0x19,
- 0xea, 0x21, 0x0b, 0x06, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x48, 0x49, 0x60, 0x95, 0x2b, 0xc8,
- 0xa9, 0x54, 0x62, 0x10, 0xf2, 0xe1, 0xe2, 0x73, 0xce, 0x48, 0x2c, 0x4a, 0x4f, 0x0d, 0x2d, 0x4a,
- 0x4f, 0xf5, 0xcc, 0x4b, 0xcb, 0x17, 0x92, 0x81, 0xaa, 0x46, 0x15, 0x86, 0x99, 0x25, 0x85, 0x43,
- 0x16, 0x62, 0x5a, 0x10, 0x97, 0x00, 0xcc, 0x92, 0xa0, 0xd4, 0xdc, 0xcc, 0xbc, 0x94, 0xd4, 0x22,
- 0x21, 0x39, 0x34, 0xdb, 0x61, 0x12, 0x30, 0x13, 0x65, 0x70, 0xca, 0x83, 0xcd, 0x74, 0x12, 0x8a,
- 0x12, 0x28, 0x28, 0xca, 0x2f, 0x48, 0x2d, 0x2a, 0xa9, 0xd4, 0x2d, 0x49, 0x2c, 0xce, 0xd6, 0x2f,
- 0x48, 0x4a, 0x62, 0x03, 0x87, 0x87, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x6d, 0xc8, 0xc7, 0x56,
- 0x41, 0x01, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // 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.SupportPackageIsVersion6
- // GardenClient is the client API for Garden service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type GardenClient interface {
- // 生成账单
- GenerateBill(ctx context.Context, in *v1.GenerateBillRequest, opts ...grpc.CallOption) (*v1.GenerateBillReply, error)
- ChargeUrgeInfo(ctx context.Context, in *v1.ChargeUrgeInfoRequest, opts ...grpc.CallOption) (*v1.ChargeUrgeInfoReply, error)
- // 获取催缴信息
- GenerateReminder(ctx context.Context, in *v1.GenerateReminderRequest, opts ...grpc.CallOption) (*v1.GenerateReminderReply, error)
- }
- type gardenClient struct {
- cc grpc.ClientConnInterface
- }
- func NewGardenClient(cc grpc.ClientConnInterface) GardenClient {
- return &gardenClient{cc}
- }
- func (c *gardenClient) GenerateBill(ctx context.Context, in *v1.GenerateBillRequest, opts ...grpc.CallOption) (*v1.GenerateBillReply, error) {
- out := new(v1.GenerateBillReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/GenerateBill", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) ChargeUrgeInfo(ctx context.Context, in *v1.ChargeUrgeInfoRequest, opts ...grpc.CallOption) (*v1.ChargeUrgeInfoReply, error) {
- out := new(v1.ChargeUrgeInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/ChargeUrgeInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) GenerateReminder(ctx context.Context, in *v1.GenerateReminderRequest, opts ...grpc.CallOption) (*v1.GenerateReminderReply, error) {
- out := new(v1.GenerateReminderReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/GenerateReminder", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // GardenServer is the server API for Garden service.
- type GardenServer interface {
- // 生成账单
- GenerateBill(context.Context, *v1.GenerateBillRequest) (*v1.GenerateBillReply, error)
- ChargeUrgeInfo(context.Context, *v1.ChargeUrgeInfoRequest) (*v1.ChargeUrgeInfoReply, error)
- // 获取催缴信息
- GenerateReminder(context.Context, *v1.GenerateReminderRequest) (*v1.GenerateReminderReply, error)
- }
- // UnimplementedGardenServer can be embedded to have forward compatible implementations.
- type UnimplementedGardenServer struct {
- }
- func (*UnimplementedGardenServer) GenerateBill(ctx context.Context, req *v1.GenerateBillRequest) (*v1.GenerateBillReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GenerateBill not implemented")
- }
- func (*UnimplementedGardenServer) ChargeUrgeInfo(ctx context.Context, req *v1.ChargeUrgeInfoRequest) (*v1.ChargeUrgeInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChargeUrgeInfo not implemented")
- }
- func (*UnimplementedGardenServer) GenerateReminder(ctx context.Context, req *v1.GenerateReminderRequest) (*v1.GenerateReminderReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GenerateReminder not implemented")
- }
- func RegisterGardenServer(s *grpc.Server, srv GardenServer) {
- s.RegisterService(&_Garden_serviceDesc, srv)
- }
- func _Garden_GenerateBill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GenerateBillRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).GenerateBill(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/GenerateBill",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).GenerateBill(ctx, req.(*v1.GenerateBillRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_ChargeUrgeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ChargeUrgeInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).ChargeUrgeInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/ChargeUrgeInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).ChargeUrgeInfo(ctx, req.(*v1.ChargeUrgeInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_GenerateReminder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GenerateReminderRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).GenerateReminder(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/GenerateReminder",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).GenerateReminder(ctx, req.(*v1.GenerateReminderRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Garden_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Garden",
- HandlerType: (*GardenServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GenerateBill",
- Handler: _Garden_GenerateBill_Handler,
- },
- {
- MethodName: "ChargeUrgeInfo",
- Handler: _Garden_ChargeUrgeInfo_Handler,
- },
- {
- MethodName: "GenerateReminder",
- Handler: _Garden_GenerateReminder_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "garden_service.proto",
- }
|