123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355 |
- // 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-household/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{
- // 290 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4d, 0x4b, 0xf3, 0x40,
- 0x14, 0x46, 0xdf, 0xc5, 0x4b, 0xc1, 0x41, 0x29, 0x8c, 0x96, 0x6a, 0x8a, 0x9f, 0x7b, 0x13, 0xa2,
- 0x6b, 0x17, 0x2a, 0x68, 0x0b, 0x8a, 0x90, 0x6c, 0x44, 0x17, 0x25, 0x1f, 0x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 0x20, 0x3f, 0x6b, 0x0e, 0x37, 0x91, 0x4d, 0x9f, 0x6c, 0x31, 0xa8, 0xfc, 0xc0, 0x76, 0xc3, 0x5a,
- 0x23, 0x7c, 0x3e, 0xeb, 0xec, 0x36, 0x4d, 0xb9, 0xd3, 0x5c, 0xac, 0x8f, 0xb6, 0x76, 0xd8, 0xc9,
- 0x4c, 0xe7, 0x6e, 0xfc, 0x36, 0x92, 0x4a, 0x48, 0x50, 0x58, 0x5f, 0xb6, 0xaf, 0xcb, 0x93, 0x71,
- 0x3c, 0x30, 0x2f, 0xec, 0xfa, 0x27, 0x00, 0x00, 0xff, 0xff, 0x65, 0x38, 0x27, 0x39, 0xaa, 0x02,
- 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 {
- HouseInfo(ctx context.Context, in *v1.HouseInfoRequest, opts ...grpc.CallOption) (*v1.HouseInfoReply, error)
- HouseholdSync(ctx context.Context, in *v1.HouseholdSyncRequest, opts ...grpc.CallOption) (*v1.HouseholdSyncReply, error)
- HouseholdChange(ctx context.Context, in *v1.HouseholdChangeRequest, opts ...grpc.CallOption) (*v1.HouseholdChangeReply, error)
- // 同步租房信息
- GardenHouseRentSync(ctx context.Context, in *v1.GardenHouseRentSyncRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentSyncReply, error)
- GardenHouseRentList(ctx context.Context, in *v1.GardenHouseRentListRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentListReply, error)
- RepairStatisticSet(ctx context.Context, in *v1.RepairStatisticSetRequest, opts ...grpc.CallOption) (*v1.RepairStatisticSetReply, error)
- // 添加物业系统消息
- SystemMsgAdd(ctx context.Context, in *v1.SystemMsgAddRequest, opts ...grpc.CallOption) (*v1.SystemMsgAddReply, error)
- }
- type gardenClient struct {
- cc grpc.ClientConnInterface
- }
- func NewGardenClient(cc grpc.ClientConnInterface) GardenClient {
- return &gardenClient{cc}
- }
- func (c *gardenClient) HouseInfo(ctx context.Context, in *v1.HouseInfoRequest, opts ...grpc.CallOption) (*v1.HouseInfoReply, error) {
- out := new(v1.HouseInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/HouseInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) HouseholdSync(ctx context.Context, in *v1.HouseholdSyncRequest, opts ...grpc.CallOption) (*v1.HouseholdSyncReply, error) {
- out := new(v1.HouseholdSyncReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/HouseholdSync", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) HouseholdChange(ctx context.Context, in *v1.HouseholdChangeRequest, opts ...grpc.CallOption) (*v1.HouseholdChangeReply, error) {
- out := new(v1.HouseholdChangeReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/HouseholdChange", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) GardenHouseRentSync(ctx context.Context, in *v1.GardenHouseRentSyncRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentSyncReply, error) {
- out := new(v1.GardenHouseRentSyncReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseRentSync", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) GardenHouseRentList(ctx context.Context, in *v1.GardenHouseRentListRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentListReply, error) {
- out := new(v1.GardenHouseRentListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseRentList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) RepairStatisticSet(ctx context.Context, in *v1.RepairStatisticSetRequest, opts ...grpc.CallOption) (*v1.RepairStatisticSetReply, error) {
- out := new(v1.RepairStatisticSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/RepairStatisticSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) SystemMsgAdd(ctx context.Context, in *v1.SystemMsgAddRequest, opts ...grpc.CallOption) (*v1.SystemMsgAddReply, error) {
- out := new(v1.SystemMsgAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/SystemMsgAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // GardenServer is the server API for Garden service.
- type GardenServer interface {
- HouseInfo(context.Context, *v1.HouseInfoRequest) (*v1.HouseInfoReply, error)
- HouseholdSync(context.Context, *v1.HouseholdSyncRequest) (*v1.HouseholdSyncReply, error)
- HouseholdChange(context.Context, *v1.HouseholdChangeRequest) (*v1.HouseholdChangeReply, error)
- // 同步租房信息
- GardenHouseRentSync(context.Context, *v1.GardenHouseRentSyncRequest) (*v1.GardenHouseRentSyncReply, error)
- GardenHouseRentList(context.Context, *v1.GardenHouseRentListRequest) (*v1.GardenHouseRentListReply, error)
- RepairStatisticSet(context.Context, *v1.RepairStatisticSetRequest) (*v1.RepairStatisticSetReply, error)
- // 添加物业系统消息
- SystemMsgAdd(context.Context, *v1.SystemMsgAddRequest) (*v1.SystemMsgAddReply, error)
- }
- // UnimplementedGardenServer can be embedded to have forward compatible implementations.
- type UnimplementedGardenServer struct {
- }
- func (*UnimplementedGardenServer) HouseInfo(ctx context.Context, req *v1.HouseInfoRequest) (*v1.HouseInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseInfo not implemented")
- }
- func (*UnimplementedGardenServer) HouseholdSync(ctx context.Context, req *v1.HouseholdSyncRequest) (*v1.HouseholdSyncReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseholdSync not implemented")
- }
- func (*UnimplementedGardenServer) HouseholdChange(ctx context.Context, req *v1.HouseholdChangeRequest) (*v1.HouseholdChangeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method HouseholdChange not implemented")
- }
- func (*UnimplementedGardenServer) GardenHouseRentSync(ctx context.Context, req *v1.GardenHouseRentSyncRequest) (*v1.GardenHouseRentSyncReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenHouseRentSync not implemented")
- }
- func (*UnimplementedGardenServer) GardenHouseRentList(ctx context.Context, req *v1.GardenHouseRentListRequest) (*v1.GardenHouseRentListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenHouseRentList not implemented")
- }
- func (*UnimplementedGardenServer) RepairStatisticSet(ctx context.Context, req *v1.RepairStatisticSetRequest) (*v1.RepairStatisticSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RepairStatisticSet not implemented")
- }
- func (*UnimplementedGardenServer) SystemMsgAdd(ctx context.Context, req *v1.SystemMsgAddRequest) (*v1.SystemMsgAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemMsgAdd not implemented")
- }
- func RegisterGardenServer(s *grpc.Server, srv GardenServer) {
- s.RegisterService(&_Garden_serviceDesc, srv)
- }
- func _Garden_HouseInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).HouseInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/HouseInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).HouseInfo(ctx, req.(*v1.HouseInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_HouseholdSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseholdSyncRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).HouseholdSync(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/HouseholdSync",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).HouseholdSync(ctx, req.(*v1.HouseholdSyncRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_HouseholdChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.HouseholdChangeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).HouseholdChange(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/HouseholdChange",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).HouseholdChange(ctx, req.(*v1.HouseholdChangeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_GardenHouseRentSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenHouseRentSyncRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).GardenHouseRentSync(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/GardenHouseRentSync",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).GardenHouseRentSync(ctx, req.(*v1.GardenHouseRentSyncRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_GardenHouseRentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenHouseRentListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).GardenHouseRentList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/GardenHouseRentList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).GardenHouseRentList(ctx, req.(*v1.GardenHouseRentListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_RepairStatisticSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.RepairStatisticSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).RepairStatisticSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/RepairStatisticSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).RepairStatisticSet(ctx, req.(*v1.RepairStatisticSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_SystemMsgAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SystemMsgAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).SystemMsgAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/SystemMsgAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).SystemMsgAdd(ctx, req.(*v1.SystemMsgAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Garden_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Garden",
- HandlerType: (*GardenServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "HouseInfo",
- Handler: _Garden_HouseInfo_Handler,
- },
- {
- MethodName: "HouseholdSync",
- Handler: _Garden_HouseholdSync_Handler,
- },
- {
- MethodName: "HouseholdChange",
- Handler: _Garden_HouseholdChange_Handler,
- },
- {
- MethodName: "GardenHouseRentSync",
- Handler: _Garden_GardenHouseRentSync_Handler,
- },
- {
- MethodName: "GardenHouseRentList",
- Handler: _Garden_GardenHouseRentList_Handler,
- },
- {
- MethodName: "RepairStatisticSet",
- Handler: _Garden_RepairStatisticSet_Handler,
- },
- {
- MethodName: "SystemMsgAdd",
- Handler: _Garden_SystemMsgAdd_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "garden_service.proto",
- }
|