garden_service.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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-household/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. // 290 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4d, 0x4b, 0xf3, 0x40,
  30. 0x14, 0x46, 0xdf, 0xc5, 0x4b, 0xc1, 0x41, 0x29, 0x8c, 0x96, 0x6a, 0x8a, 0x9f, 0x7b, 0x13, 0xa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 0x88,
  42. 0x93, 0x42, 0xf1, 0x57, 0xc6, 0x03, 0x90, 0x51, 0xa1, 0x42, 0x8c, 0xb0, 0xd0, 0x58, 0x24, 0x21,
  43. 0x20, 0x3f, 0x6b, 0x0e, 0x37, 0x91, 0x4d, 0x9f, 0x6c, 0x31, 0xa8, 0xfc, 0xc0, 0x76, 0xc3, 0x5a,
  44. 0x23, 0x7c, 0x3e, 0xeb, 0xec, 0x36, 0x4d, 0xb9, 0xd3, 0x5c, 0xac, 0x8f, 0xb6, 0x76, 0xd8, 0xc9,
  45. 0x4c, 0xe7, 0x6e, 0xfc, 0x36, 0x92, 0x4a, 0x48, 0x50, 0x58, 0x5f, 0xb6, 0xaf, 0xcb, 0x93, 0x71,
  46. 0x3c, 0x30, 0x2f, 0xec, 0xfa, 0x27, 0x00, 0x00, 0xff, 0xff, 0x65, 0x38, 0x27, 0x39, 0xaa, 0x02,
  47. 0x00, 0x00,
  48. }
  49. // Reference imports to suppress errors if they are not otherwise used.
  50. var _ context.Context
  51. var _ grpc.ClientConnInterface
  52. // This is a compile-time assertion to ensure that this generated file
  53. // is compatible with the grpc package it is being compiled against.
  54. const _ = grpc.SupportPackageIsVersion6
  55. // GardenClient is the client API for Garden service.
  56. //
  57. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  58. type GardenClient interface {
  59. HouseInfo(ctx context.Context, in *v1.HouseInfoRequest, opts ...grpc.CallOption) (*v1.HouseInfoReply, error)
  60. HouseholdSync(ctx context.Context, in *v1.HouseholdSyncRequest, opts ...grpc.CallOption) (*v1.HouseholdSyncReply, error)
  61. HouseholdChange(ctx context.Context, in *v1.HouseholdChangeRequest, opts ...grpc.CallOption) (*v1.HouseholdChangeReply, error)
  62. // 同步租房信息
  63. GardenHouseRentSync(ctx context.Context, in *v1.GardenHouseRentSyncRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentSyncReply, error)
  64. GardenHouseRentList(ctx context.Context, in *v1.GardenHouseRentListRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentListReply, error)
  65. RepairStatisticSet(ctx context.Context, in *v1.RepairStatisticSetRequest, opts ...grpc.CallOption) (*v1.RepairStatisticSetReply, error)
  66. // 添加物业系统消息
  67. SystemMsgAdd(ctx context.Context, in *v1.SystemMsgAddRequest, opts ...grpc.CallOption) (*v1.SystemMsgAddReply, error)
  68. }
  69. type gardenClient struct {
  70. cc grpc.ClientConnInterface
  71. }
  72. func NewGardenClient(cc grpc.ClientConnInterface) GardenClient {
  73. return &gardenClient{cc}
  74. }
  75. func (c *gardenClient) HouseInfo(ctx context.Context, in *v1.HouseInfoRequest, opts ...grpc.CallOption) (*v1.HouseInfoReply, error) {
  76. out := new(v1.HouseInfoReply)
  77. err := c.cc.Invoke(ctx, "/pb.service.Garden/HouseInfo", in, out, opts...)
  78. if err != nil {
  79. return nil, err
  80. }
  81. return out, nil
  82. }
  83. func (c *gardenClient) HouseholdSync(ctx context.Context, in *v1.HouseholdSyncRequest, opts ...grpc.CallOption) (*v1.HouseholdSyncReply, error) {
  84. out := new(v1.HouseholdSyncReply)
  85. err := c.cc.Invoke(ctx, "/pb.service.Garden/HouseholdSync", in, out, opts...)
  86. if err != nil {
  87. return nil, err
  88. }
  89. return out, nil
  90. }
  91. func (c *gardenClient) HouseholdChange(ctx context.Context, in *v1.HouseholdChangeRequest, opts ...grpc.CallOption) (*v1.HouseholdChangeReply, error) {
  92. out := new(v1.HouseholdChangeReply)
  93. err := c.cc.Invoke(ctx, "/pb.service.Garden/HouseholdChange", in, out, opts...)
  94. if err != nil {
  95. return nil, err
  96. }
  97. return out, nil
  98. }
  99. func (c *gardenClient) GardenHouseRentSync(ctx context.Context, in *v1.GardenHouseRentSyncRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentSyncReply, error) {
  100. out := new(v1.GardenHouseRentSyncReply)
  101. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseRentSync", in, out, opts...)
  102. if err != nil {
  103. return nil, err
  104. }
  105. return out, nil
  106. }
  107. func (c *gardenClient) GardenHouseRentList(ctx context.Context, in *v1.GardenHouseRentListRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentListReply, error) {
  108. out := new(v1.GardenHouseRentListReply)
  109. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseRentList", in, out, opts...)
  110. if err != nil {
  111. return nil, err
  112. }
  113. return out, nil
  114. }
  115. func (c *gardenClient) RepairStatisticSet(ctx context.Context, in *v1.RepairStatisticSetRequest, opts ...grpc.CallOption) (*v1.RepairStatisticSetReply, error) {
  116. out := new(v1.RepairStatisticSetReply)
  117. err := c.cc.Invoke(ctx, "/pb.service.Garden/RepairStatisticSet", in, out, opts...)
  118. if err != nil {
  119. return nil, err
  120. }
  121. return out, nil
  122. }
  123. func (c *gardenClient) SystemMsgAdd(ctx context.Context, in *v1.SystemMsgAddRequest, opts ...grpc.CallOption) (*v1.SystemMsgAddReply, error) {
  124. out := new(v1.SystemMsgAddReply)
  125. err := c.cc.Invoke(ctx, "/pb.service.Garden/SystemMsgAdd", in, out, opts...)
  126. if err != nil {
  127. return nil, err
  128. }
  129. return out, nil
  130. }
  131. // GardenServer is the server API for Garden service.
  132. type GardenServer interface {
  133. HouseInfo(context.Context, *v1.HouseInfoRequest) (*v1.HouseInfoReply, error)
  134. HouseholdSync(context.Context, *v1.HouseholdSyncRequest) (*v1.HouseholdSyncReply, error)
  135. HouseholdChange(context.Context, *v1.HouseholdChangeRequest) (*v1.HouseholdChangeReply, error)
  136. // 同步租房信息
  137. GardenHouseRentSync(context.Context, *v1.GardenHouseRentSyncRequest) (*v1.GardenHouseRentSyncReply, error)
  138. GardenHouseRentList(context.Context, *v1.GardenHouseRentListRequest) (*v1.GardenHouseRentListReply, error)
  139. RepairStatisticSet(context.Context, *v1.RepairStatisticSetRequest) (*v1.RepairStatisticSetReply, error)
  140. // 添加物业系统消息
  141. SystemMsgAdd(context.Context, *v1.SystemMsgAddRequest) (*v1.SystemMsgAddReply, error)
  142. }
  143. // UnimplementedGardenServer can be embedded to have forward compatible implementations.
  144. type UnimplementedGardenServer struct {
  145. }
  146. func (*UnimplementedGardenServer) HouseInfo(ctx context.Context, req *v1.HouseInfoRequest) (*v1.HouseInfoReply, error) {
  147. return nil, status.Errorf(codes.Unimplemented, "method HouseInfo not implemented")
  148. }
  149. func (*UnimplementedGardenServer) HouseholdSync(ctx context.Context, req *v1.HouseholdSyncRequest) (*v1.HouseholdSyncReply, error) {
  150. return nil, status.Errorf(codes.Unimplemented, "method HouseholdSync not implemented")
  151. }
  152. func (*UnimplementedGardenServer) HouseholdChange(ctx context.Context, req *v1.HouseholdChangeRequest) (*v1.HouseholdChangeReply, error) {
  153. return nil, status.Errorf(codes.Unimplemented, "method HouseholdChange not implemented")
  154. }
  155. func (*UnimplementedGardenServer) GardenHouseRentSync(ctx context.Context, req *v1.GardenHouseRentSyncRequest) (*v1.GardenHouseRentSyncReply, error) {
  156. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseRentSync not implemented")
  157. }
  158. func (*UnimplementedGardenServer) GardenHouseRentList(ctx context.Context, req *v1.GardenHouseRentListRequest) (*v1.GardenHouseRentListReply, error) {
  159. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseRentList not implemented")
  160. }
  161. func (*UnimplementedGardenServer) RepairStatisticSet(ctx context.Context, req *v1.RepairStatisticSetRequest) (*v1.RepairStatisticSetReply, error) {
  162. return nil, status.Errorf(codes.Unimplemented, "method RepairStatisticSet not implemented")
  163. }
  164. func (*UnimplementedGardenServer) SystemMsgAdd(ctx context.Context, req *v1.SystemMsgAddRequest) (*v1.SystemMsgAddReply, error) {
  165. return nil, status.Errorf(codes.Unimplemented, "method SystemMsgAdd not implemented")
  166. }
  167. func RegisterGardenServer(s *grpc.Server, srv GardenServer) {
  168. s.RegisterService(&_Garden_serviceDesc, srv)
  169. }
  170. func _Garden_HouseInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  171. in := new(v1.HouseInfoRequest)
  172. if err := dec(in); err != nil {
  173. return nil, err
  174. }
  175. if interceptor == nil {
  176. return srv.(GardenServer).HouseInfo(ctx, in)
  177. }
  178. info := &grpc.UnaryServerInfo{
  179. Server: srv,
  180. FullMethod: "/pb.service.Garden/HouseInfo",
  181. }
  182. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  183. return srv.(GardenServer).HouseInfo(ctx, req.(*v1.HouseInfoRequest))
  184. }
  185. return interceptor(ctx, in, info, handler)
  186. }
  187. func _Garden_HouseholdSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  188. in := new(v1.HouseholdSyncRequest)
  189. if err := dec(in); err != nil {
  190. return nil, err
  191. }
  192. if interceptor == nil {
  193. return srv.(GardenServer).HouseholdSync(ctx, in)
  194. }
  195. info := &grpc.UnaryServerInfo{
  196. Server: srv,
  197. FullMethod: "/pb.service.Garden/HouseholdSync",
  198. }
  199. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  200. return srv.(GardenServer).HouseholdSync(ctx, req.(*v1.HouseholdSyncRequest))
  201. }
  202. return interceptor(ctx, in, info, handler)
  203. }
  204. func _Garden_HouseholdChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  205. in := new(v1.HouseholdChangeRequest)
  206. if err := dec(in); err != nil {
  207. return nil, err
  208. }
  209. if interceptor == nil {
  210. return srv.(GardenServer).HouseholdChange(ctx, in)
  211. }
  212. info := &grpc.UnaryServerInfo{
  213. Server: srv,
  214. FullMethod: "/pb.service.Garden/HouseholdChange",
  215. }
  216. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  217. return srv.(GardenServer).HouseholdChange(ctx, req.(*v1.HouseholdChangeRequest))
  218. }
  219. return interceptor(ctx, in, info, handler)
  220. }
  221. func _Garden_GardenHouseRentSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  222. in := new(v1.GardenHouseRentSyncRequest)
  223. if err := dec(in); err != nil {
  224. return nil, err
  225. }
  226. if interceptor == nil {
  227. return srv.(GardenServer).GardenHouseRentSync(ctx, in)
  228. }
  229. info := &grpc.UnaryServerInfo{
  230. Server: srv,
  231. FullMethod: "/pb.service.Garden/GardenHouseRentSync",
  232. }
  233. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  234. return srv.(GardenServer).GardenHouseRentSync(ctx, req.(*v1.GardenHouseRentSyncRequest))
  235. }
  236. return interceptor(ctx, in, info, handler)
  237. }
  238. func _Garden_GardenHouseRentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  239. in := new(v1.GardenHouseRentListRequest)
  240. if err := dec(in); err != nil {
  241. return nil, err
  242. }
  243. if interceptor == nil {
  244. return srv.(GardenServer).GardenHouseRentList(ctx, in)
  245. }
  246. info := &grpc.UnaryServerInfo{
  247. Server: srv,
  248. FullMethod: "/pb.service.Garden/GardenHouseRentList",
  249. }
  250. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  251. return srv.(GardenServer).GardenHouseRentList(ctx, req.(*v1.GardenHouseRentListRequest))
  252. }
  253. return interceptor(ctx, in, info, handler)
  254. }
  255. func _Garden_RepairStatisticSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  256. in := new(v1.RepairStatisticSetRequest)
  257. if err := dec(in); err != nil {
  258. return nil, err
  259. }
  260. if interceptor == nil {
  261. return srv.(GardenServer).RepairStatisticSet(ctx, in)
  262. }
  263. info := &grpc.UnaryServerInfo{
  264. Server: srv,
  265. FullMethod: "/pb.service.Garden/RepairStatisticSet",
  266. }
  267. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  268. return srv.(GardenServer).RepairStatisticSet(ctx, req.(*v1.RepairStatisticSetRequest))
  269. }
  270. return interceptor(ctx, in, info, handler)
  271. }
  272. func _Garden_SystemMsgAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  273. in := new(v1.SystemMsgAddRequest)
  274. if err := dec(in); err != nil {
  275. return nil, err
  276. }
  277. if interceptor == nil {
  278. return srv.(GardenServer).SystemMsgAdd(ctx, in)
  279. }
  280. info := &grpc.UnaryServerInfo{
  281. Server: srv,
  282. FullMethod: "/pb.service.Garden/SystemMsgAdd",
  283. }
  284. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  285. return srv.(GardenServer).SystemMsgAdd(ctx, req.(*v1.SystemMsgAddRequest))
  286. }
  287. return interceptor(ctx, in, info, handler)
  288. }
  289. var _Garden_serviceDesc = grpc.ServiceDesc{
  290. ServiceName: "pb.service.Garden",
  291. HandlerType: (*GardenServer)(nil),
  292. Methods: []grpc.MethodDesc{
  293. {
  294. MethodName: "HouseInfo",
  295. Handler: _Garden_HouseInfo_Handler,
  296. },
  297. {
  298. MethodName: "HouseholdSync",
  299. Handler: _Garden_HouseholdSync_Handler,
  300. },
  301. {
  302. MethodName: "HouseholdChange",
  303. Handler: _Garden_HouseholdChange_Handler,
  304. },
  305. {
  306. MethodName: "GardenHouseRentSync",
  307. Handler: _Garden_GardenHouseRentSync_Handler,
  308. },
  309. {
  310. MethodName: "GardenHouseRentList",
  311. Handler: _Garden_GardenHouseRentList_Handler,
  312. },
  313. {
  314. MethodName: "RepairStatisticSet",
  315. Handler: _Garden_RepairStatisticSet_Handler,
  316. },
  317. {
  318. MethodName: "SystemMsgAdd",
  319. Handler: _Garden_SystemMsgAdd_Handler,
  320. },
  321. },
  322. Streams: []grpc.StreamDesc{},
  323. Metadata: "garden_service.proto",
  324. }