123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- // 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-device/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{
- // 247 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, 0x97, 0x19, 0xea, 0x43, 0x14, 0x41, 0x24,
- 0x8d, 0xbe, 0x33, 0x73, 0xb1, 0xb9, 0x83, 0x05, 0x84, 0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0x20, 0xca, 0x3c, 0x4b, 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 {
- // 业主信息列表
- GardenHouseholdUserList(ctx context.Context, in *v1.GardenHouseholdUserListRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUserListReply, error)
- GardenHouseholdList(ctx context.Context, in *v1.GardenHouseholdListRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdListReply, error)
- // 住户的单元id列表
- GardenHouseholdUnitIds(ctx context.Context, in *v1.GardenHouseholdUnitIdsRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUnitIdsReply, error)
- // 根据单元id获取住户uid列表
- GardenHouseholdUidsFromUnitId(ctx context.Context, in *v1.GardenHouseholdUidsFromUnitIdRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUidsFromUnitIdReply, 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) GardenHouseholdUserList(ctx context.Context, in *v1.GardenHouseholdUserListRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUserListReply, error) {
- out := new(v1.GardenHouseholdUserListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseholdUserList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) GardenHouseholdList(ctx context.Context, in *v1.GardenHouseholdListRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdListReply, error) {
- out := new(v1.GardenHouseholdListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseholdList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) GardenHouseholdUnitIds(ctx context.Context, in *v1.GardenHouseholdUnitIdsRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUnitIdsReply, error) {
- out := new(v1.GardenHouseholdUnitIdsReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseholdUnitIds", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *gardenClient) GardenHouseholdUidsFromUnitId(ctx context.Context, in *v1.GardenHouseholdUidsFromUnitIdRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUidsFromUnitIdReply, error) {
- out := new(v1.GardenHouseholdUidsFromUnitIdReply)
- err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseholdUidsFromUnitId", 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 {
- // 业主信息列表
- GardenHouseholdUserList(context.Context, *v1.GardenHouseholdUserListRequest) (*v1.GardenHouseholdUserListReply, error)
- GardenHouseholdList(context.Context, *v1.GardenHouseholdListRequest) (*v1.GardenHouseholdListReply, error)
- // 住户的单元id列表
- GardenHouseholdUnitIds(context.Context, *v1.GardenHouseholdUnitIdsRequest) (*v1.GardenHouseholdUnitIdsReply, error)
- // 根据单元id获取住户uid列表
- GardenHouseholdUidsFromUnitId(context.Context, *v1.GardenHouseholdUidsFromUnitIdRequest) (*v1.GardenHouseholdUidsFromUnitIdReply, error)
- SystemMsgAdd(context.Context, *v1.SystemMsgAddRequest) (*v1.SystemMsgAddReply, error)
- }
- // UnimplementedGardenServer can be embedded to have forward compatible implementations.
- type UnimplementedGardenServer struct {
- }
- func (*UnimplementedGardenServer) GardenHouseholdUserList(ctx context.Context, req *v1.GardenHouseholdUserListRequest) (*v1.GardenHouseholdUserListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenHouseholdUserList not implemented")
- }
- func (*UnimplementedGardenServer) GardenHouseholdList(ctx context.Context, req *v1.GardenHouseholdListRequest) (*v1.GardenHouseholdListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenHouseholdList not implemented")
- }
- func (*UnimplementedGardenServer) GardenHouseholdUnitIds(ctx context.Context, req *v1.GardenHouseholdUnitIdsRequest) (*v1.GardenHouseholdUnitIdsReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenHouseholdUnitIds not implemented")
- }
- func (*UnimplementedGardenServer) GardenHouseholdUidsFromUnitId(ctx context.Context, req *v1.GardenHouseholdUidsFromUnitIdRequest) (*v1.GardenHouseholdUidsFromUnitIdReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenHouseholdUidsFromUnitId 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_GardenHouseholdUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenHouseholdUserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).GardenHouseholdUserList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/GardenHouseholdUserList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).GardenHouseholdUserList(ctx, req.(*v1.GardenHouseholdUserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_GardenHouseholdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenHouseholdListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).GardenHouseholdList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/GardenHouseholdList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).GardenHouseholdList(ctx, req.(*v1.GardenHouseholdListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_GardenHouseholdUnitIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenHouseholdUnitIdsRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).GardenHouseholdUnitIds(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/GardenHouseholdUnitIds",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).GardenHouseholdUnitIds(ctx, req.(*v1.GardenHouseholdUnitIdsRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Garden_GardenHouseholdUidsFromUnitId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenHouseholdUidsFromUnitIdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(GardenServer).GardenHouseholdUidsFromUnitId(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Garden/GardenHouseholdUidsFromUnitId",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(GardenServer).GardenHouseholdUidsFromUnitId(ctx, req.(*v1.GardenHouseholdUidsFromUnitIdRequest))
- }
- 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: "GardenHouseholdUserList",
- Handler: _Garden_GardenHouseholdUserList_Handler,
- },
- {
- MethodName: "GardenHouseholdList",
- Handler: _Garden_GardenHouseholdList_Handler,
- },
- {
- MethodName: "GardenHouseholdUnitIds",
- Handler: _Garden_GardenHouseholdUnitIds_Handler,
- },
- {
- MethodName: "GardenHouseholdUidsFromUnitId",
- Handler: _Garden_GardenHouseholdUidsFromUnitId_Handler,
- },
- {
- MethodName: "SystemMsgAdd",
- Handler: _Garden_SystemMsgAdd_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "garden_service.proto",
- }
|