garden_service.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: garden_service.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "property-device/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("garden_service.proto", fileDescriptor_e527eed98167eca4)
  26. }
  27. var fileDescriptor_e527eed98167eca4 = []byte{
  28. // 247 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x4f, 0x2c, 0x4a,
  30. 0x49, 0xcd, 0x8b, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9,
  31. 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0xf1, 0x97, 0x19, 0xea, 0x43, 0x14, 0x41, 0x24,
  32. 0x8d, 0xbe, 0x33, 0x73, 0xb1, 0xb9, 0x83, 0x05, 0x84, 0xd2, 0xb9, 0xc4, 0x21, 0x2c, 0x8f, 0xfc,
  33. 0xd2, 0xe2, 0xd4, 0x8c, 0xfc, 0x9c, 0x94, 0xd0, 0xe2, 0xd4, 0x22, 0x9f, 0xcc, 0xe2, 0x12, 0x21,
  34. 0x55, 0xbd, 0x82, 0xa4, 0xf8, 0x32, 0x43, 0x3d, 0x1c, 0xf2, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5,
  35. 0x25, 0x52, 0xca, 0x84, 0x94, 0x15, 0xe4, 0x54, 0x2a, 0x31, 0x08, 0x45, 0x73, 0x09, 0xa3, 0xa9,
  36. 0x00, 0x5b, 0xa2, 0x88, 0x5d, 0x37, 0xb2, 0x05, 0xf2, 0xf8, 0x94, 0x40, 0x0c, 0x4f, 0xe1, 0x12,
  37. 0x43, 0xb7, 0x3e, 0x2f, 0xb3, 0xc4, 0x33, 0xa5, 0x58, 0x48, 0x05, 0x87, 0xeb, 0x20, 0xd2, 0x30,
  38. 0x2b, 0x94, 0x08, 0xa8, 0x82, 0xd8, 0x52, 0xc9, 0x25, 0x8b, 0xae, 0x20, 0x33, 0xa5, 0xd8, 0xad,
  39. 0x28, 0x3f, 0x17, 0xa2, 0x50, 0x48, 0x1b, 0x87, 0x31, 0x28, 0xaa, 0x60, 0x76, 0x6a, 0x12, 0xa7,
  40. 0x18, 0x62, 0xb5, 0x1b, 0x17, 0x4f, 0x70, 0x65, 0x71, 0x49, 0x6a, 0xae, 0x6f, 0x71, 0xba, 0x63,
  41. 0x4a, 0x8a, 0x90, 0x14, 0x54, 0x33, 0xb2, 0x20, 0xcc, 0x60, 0x09, 0xac, 0x72, 0x60, 0x73, 0x9c,
  42. 0x44, 0xa2, 0x84, 0x0a, 0x8a, 0xf2, 0x0b, 0x52, 0x8b, 0x4a, 0x2a, 0x75, 0x53, 0x52, 0x41, 0xa9,
  43. 0x43, 0xbf, 0x20, 0x29, 0x89, 0x0d, 0x9c, 0x2c, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x62,
  44. 0x20, 0xca, 0x3c, 0x4b, 0x02, 0x00, 0x00,
  45. }
  46. // Reference imports to suppress errors if they are not otherwise used.
  47. var _ context.Context
  48. var _ grpc.ClientConnInterface
  49. // This is a compile-time assertion to ensure that this generated file
  50. // is compatible with the grpc package it is being compiled against.
  51. const _ = grpc.SupportPackageIsVersion6
  52. // GardenClient is the client API for Garden service.
  53. //
  54. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  55. type GardenClient interface {
  56. // 业主信息列表
  57. GardenHouseholdUserList(ctx context.Context, in *v1.GardenHouseholdUserListRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUserListReply, error)
  58. GardenHouseholdList(ctx context.Context, in *v1.GardenHouseholdListRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdListReply, error)
  59. // 住户的单元id列表
  60. GardenHouseholdUnitIds(ctx context.Context, in *v1.GardenHouseholdUnitIdsRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUnitIdsReply, error)
  61. // 根据单元id获取住户uid列表
  62. GardenHouseholdUidsFromUnitId(ctx context.Context, in *v1.GardenHouseholdUidsFromUnitIdRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUidsFromUnitIdReply, error)
  63. SystemMsgAdd(ctx context.Context, in *v1.SystemMsgAddRequest, opts ...grpc.CallOption) (*v1.SystemMsgAddReply, error)
  64. }
  65. type gardenClient struct {
  66. cc grpc.ClientConnInterface
  67. }
  68. func NewGardenClient(cc grpc.ClientConnInterface) GardenClient {
  69. return &gardenClient{cc}
  70. }
  71. func (c *gardenClient) GardenHouseholdUserList(ctx context.Context, in *v1.GardenHouseholdUserListRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUserListReply, error) {
  72. out := new(v1.GardenHouseholdUserListReply)
  73. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseholdUserList", in, out, opts...)
  74. if err != nil {
  75. return nil, err
  76. }
  77. return out, nil
  78. }
  79. func (c *gardenClient) GardenHouseholdList(ctx context.Context, in *v1.GardenHouseholdListRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdListReply, error) {
  80. out := new(v1.GardenHouseholdListReply)
  81. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseholdList", in, out, opts...)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return out, nil
  86. }
  87. func (c *gardenClient) GardenHouseholdUnitIds(ctx context.Context, in *v1.GardenHouseholdUnitIdsRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUnitIdsReply, error) {
  88. out := new(v1.GardenHouseholdUnitIdsReply)
  89. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseholdUnitIds", in, out, opts...)
  90. if err != nil {
  91. return nil, err
  92. }
  93. return out, nil
  94. }
  95. func (c *gardenClient) GardenHouseholdUidsFromUnitId(ctx context.Context, in *v1.GardenHouseholdUidsFromUnitIdRequest, opts ...grpc.CallOption) (*v1.GardenHouseholdUidsFromUnitIdReply, error) {
  96. out := new(v1.GardenHouseholdUidsFromUnitIdReply)
  97. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseholdUidsFromUnitId", in, out, opts...)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return out, nil
  102. }
  103. func (c *gardenClient) SystemMsgAdd(ctx context.Context, in *v1.SystemMsgAddRequest, opts ...grpc.CallOption) (*v1.SystemMsgAddReply, error) {
  104. out := new(v1.SystemMsgAddReply)
  105. err := c.cc.Invoke(ctx, "/pb.service.Garden/SystemMsgAdd", in, out, opts...)
  106. if err != nil {
  107. return nil, err
  108. }
  109. return out, nil
  110. }
  111. // GardenServer is the server API for Garden service.
  112. type GardenServer interface {
  113. // 业主信息列表
  114. GardenHouseholdUserList(context.Context, *v1.GardenHouseholdUserListRequest) (*v1.GardenHouseholdUserListReply, error)
  115. GardenHouseholdList(context.Context, *v1.GardenHouseholdListRequest) (*v1.GardenHouseholdListReply, error)
  116. // 住户的单元id列表
  117. GardenHouseholdUnitIds(context.Context, *v1.GardenHouseholdUnitIdsRequest) (*v1.GardenHouseholdUnitIdsReply, error)
  118. // 根据单元id获取住户uid列表
  119. GardenHouseholdUidsFromUnitId(context.Context, *v1.GardenHouseholdUidsFromUnitIdRequest) (*v1.GardenHouseholdUidsFromUnitIdReply, error)
  120. SystemMsgAdd(context.Context, *v1.SystemMsgAddRequest) (*v1.SystemMsgAddReply, error)
  121. }
  122. // UnimplementedGardenServer can be embedded to have forward compatible implementations.
  123. type UnimplementedGardenServer struct {
  124. }
  125. func (*UnimplementedGardenServer) GardenHouseholdUserList(ctx context.Context, req *v1.GardenHouseholdUserListRequest) (*v1.GardenHouseholdUserListReply, error) {
  126. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseholdUserList not implemented")
  127. }
  128. func (*UnimplementedGardenServer) GardenHouseholdList(ctx context.Context, req *v1.GardenHouseholdListRequest) (*v1.GardenHouseholdListReply, error) {
  129. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseholdList not implemented")
  130. }
  131. func (*UnimplementedGardenServer) GardenHouseholdUnitIds(ctx context.Context, req *v1.GardenHouseholdUnitIdsRequest) (*v1.GardenHouseholdUnitIdsReply, error) {
  132. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseholdUnitIds not implemented")
  133. }
  134. func (*UnimplementedGardenServer) GardenHouseholdUidsFromUnitId(ctx context.Context, req *v1.GardenHouseholdUidsFromUnitIdRequest) (*v1.GardenHouseholdUidsFromUnitIdReply, error) {
  135. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseholdUidsFromUnitId not implemented")
  136. }
  137. func (*UnimplementedGardenServer) SystemMsgAdd(ctx context.Context, req *v1.SystemMsgAddRequest) (*v1.SystemMsgAddReply, error) {
  138. return nil, status.Errorf(codes.Unimplemented, "method SystemMsgAdd not implemented")
  139. }
  140. func RegisterGardenServer(s *grpc.Server, srv GardenServer) {
  141. s.RegisterService(&_Garden_serviceDesc, srv)
  142. }
  143. func _Garden_GardenHouseholdUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  144. in := new(v1.GardenHouseholdUserListRequest)
  145. if err := dec(in); err != nil {
  146. return nil, err
  147. }
  148. if interceptor == nil {
  149. return srv.(GardenServer).GardenHouseholdUserList(ctx, in)
  150. }
  151. info := &grpc.UnaryServerInfo{
  152. Server: srv,
  153. FullMethod: "/pb.service.Garden/GardenHouseholdUserList",
  154. }
  155. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  156. return srv.(GardenServer).GardenHouseholdUserList(ctx, req.(*v1.GardenHouseholdUserListRequest))
  157. }
  158. return interceptor(ctx, in, info, handler)
  159. }
  160. func _Garden_GardenHouseholdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  161. in := new(v1.GardenHouseholdListRequest)
  162. if err := dec(in); err != nil {
  163. return nil, err
  164. }
  165. if interceptor == nil {
  166. return srv.(GardenServer).GardenHouseholdList(ctx, in)
  167. }
  168. info := &grpc.UnaryServerInfo{
  169. Server: srv,
  170. FullMethod: "/pb.service.Garden/GardenHouseholdList",
  171. }
  172. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  173. return srv.(GardenServer).GardenHouseholdList(ctx, req.(*v1.GardenHouseholdListRequest))
  174. }
  175. return interceptor(ctx, in, info, handler)
  176. }
  177. func _Garden_GardenHouseholdUnitIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  178. in := new(v1.GardenHouseholdUnitIdsRequest)
  179. if err := dec(in); err != nil {
  180. return nil, err
  181. }
  182. if interceptor == nil {
  183. return srv.(GardenServer).GardenHouseholdUnitIds(ctx, in)
  184. }
  185. info := &grpc.UnaryServerInfo{
  186. Server: srv,
  187. FullMethod: "/pb.service.Garden/GardenHouseholdUnitIds",
  188. }
  189. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  190. return srv.(GardenServer).GardenHouseholdUnitIds(ctx, req.(*v1.GardenHouseholdUnitIdsRequest))
  191. }
  192. return interceptor(ctx, in, info, handler)
  193. }
  194. func _Garden_GardenHouseholdUidsFromUnitId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  195. in := new(v1.GardenHouseholdUidsFromUnitIdRequest)
  196. if err := dec(in); err != nil {
  197. return nil, err
  198. }
  199. if interceptor == nil {
  200. return srv.(GardenServer).GardenHouseholdUidsFromUnitId(ctx, in)
  201. }
  202. info := &grpc.UnaryServerInfo{
  203. Server: srv,
  204. FullMethod: "/pb.service.Garden/GardenHouseholdUidsFromUnitId",
  205. }
  206. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  207. return srv.(GardenServer).GardenHouseholdUidsFromUnitId(ctx, req.(*v1.GardenHouseholdUidsFromUnitIdRequest))
  208. }
  209. return interceptor(ctx, in, info, handler)
  210. }
  211. func _Garden_SystemMsgAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  212. in := new(v1.SystemMsgAddRequest)
  213. if err := dec(in); err != nil {
  214. return nil, err
  215. }
  216. if interceptor == nil {
  217. return srv.(GardenServer).SystemMsgAdd(ctx, in)
  218. }
  219. info := &grpc.UnaryServerInfo{
  220. Server: srv,
  221. FullMethod: "/pb.service.Garden/SystemMsgAdd",
  222. }
  223. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  224. return srv.(GardenServer).SystemMsgAdd(ctx, req.(*v1.SystemMsgAddRequest))
  225. }
  226. return interceptor(ctx, in, info, handler)
  227. }
  228. var _Garden_serviceDesc = grpc.ServiceDesc{
  229. ServiceName: "pb.service.Garden",
  230. HandlerType: (*GardenServer)(nil),
  231. Methods: []grpc.MethodDesc{
  232. {
  233. MethodName: "GardenHouseholdUserList",
  234. Handler: _Garden_GardenHouseholdUserList_Handler,
  235. },
  236. {
  237. MethodName: "GardenHouseholdList",
  238. Handler: _Garden_GardenHouseholdList_Handler,
  239. },
  240. {
  241. MethodName: "GardenHouseholdUnitIds",
  242. Handler: _Garden_GardenHouseholdUnitIds_Handler,
  243. },
  244. {
  245. MethodName: "GardenHouseholdUidsFromUnitId",
  246. Handler: _Garden_GardenHouseholdUidsFromUnitId_Handler,
  247. },
  248. {
  249. MethodName: "SystemMsgAdd",
  250. Handler: _Garden_SystemMsgAdd_Handler,
  251. },
  252. },
  253. Streams: []grpc.StreamDesc{},
  254. Metadata: "garden_service.proto",
  255. }