garden_service.pb.go 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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-system/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. // 198 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, 0x26, 0x33, 0x71, 0xb1, 0xb9, 0x83, 0x05, 0x84, 0xdc, 0xb8, 0x78, 0x20, 0x2c, 0xcf, 0xbc,
  33. 0xcc, 0x12, 0x97, 0x24, 0x21, 0x29, 0xbd, 0x82, 0xa4, 0xf8, 0x32, 0x43, 0x3d, 0x64, 0xc1, 0xa0,
  34. 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0x29, 0x09, 0xac, 0x72, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42,
  35. 0xfe, 0x5c, 0xfc, 0x10, 0x61, 0x8f, 0xfc, 0xd2, 0xe2, 0x54, 0xcf, 0x62, 0xcf, 0x3c, 0x21, 0x59,
  36. 0x14, 0xe5, 0x70, 0x71, 0x98, 0x69, 0xd2, 0xb8, 0xa4, 0x21, 0x06, 0x16, 0x70, 0x49, 0x21, 0xc9,
  37. 0x04, 0xa5, 0xe6, 0x95, 0x38, 0x67, 0x24, 0xe6, 0xa5, 0xa7, 0xba, 0x65, 0xa6, 0xe6, 0xa4, 0x08,
  38. 0x69, 0x60, 0x6a, 0x46, 0x53, 0x02, 0xb3, 0x46, 0x8d, 0x08, 0x95, 0x60, 0x1b, 0x9d, 0x44, 0xa2,
  39. 0x84, 0x0a, 0x8a, 0xf2, 0x0b, 0x52, 0x8b, 0x4a, 0x2a, 0x75, 0x8b, 0x2b, 0x8b, 0x4b, 0x52, 0x73,
  40. 0xf5, 0x0b, 0x92, 0x92, 0xd8, 0xc0, 0x41, 0x66, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xa1,
  41. 0x4d, 0x15, 0x67, 0x01, 0x00, 0x00,
  42. }
  43. // Reference imports to suppress errors if they are not otherwise used.
  44. var _ context.Context
  45. var _ grpc.ClientConnInterface
  46. // This is a compile-time assertion to ensure that this generated file
  47. // is compatible with the grpc package it is being compiled against.
  48. const _ = grpc.SupportPackageIsVersion6
  49. // GardenClient is the client API for Garden service.
  50. //
  51. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  52. type GardenClient interface {
  53. GardenInitDb(ctx context.Context, in *v1.GardenInitDbRequest, opts ...grpc.CallOption) (*v1.GardenInitDbReply, error)
  54. // 小区是否有房屋入驻
  55. GardenHouseIsIn(ctx context.Context, in *v1.GardenHouseIsInRequest, opts ...grpc.CallOption) (*v1.GardenHouseIsInReply, error)
  56. // 因房屋,小区或单元信息变更需更新租房信息
  57. GardenHouseRentChangeField(ctx context.Context, in *v1.GardenHouseRentChangeFieldRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentChangeFieldReply, error)
  58. }
  59. type gardenClient struct {
  60. cc grpc.ClientConnInterface
  61. }
  62. func NewGardenClient(cc grpc.ClientConnInterface) GardenClient {
  63. return &gardenClient{cc}
  64. }
  65. func (c *gardenClient) GardenInitDb(ctx context.Context, in *v1.GardenInitDbRequest, opts ...grpc.CallOption) (*v1.GardenInitDbReply, error) {
  66. out := new(v1.GardenInitDbReply)
  67. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenInitDb", in, out, opts...)
  68. if err != nil {
  69. return nil, err
  70. }
  71. return out, nil
  72. }
  73. func (c *gardenClient) GardenHouseIsIn(ctx context.Context, in *v1.GardenHouseIsInRequest, opts ...grpc.CallOption) (*v1.GardenHouseIsInReply, error) {
  74. out := new(v1.GardenHouseIsInReply)
  75. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseIsIn", in, out, opts...)
  76. if err != nil {
  77. return nil, err
  78. }
  79. return out, nil
  80. }
  81. func (c *gardenClient) GardenHouseRentChangeField(ctx context.Context, in *v1.GardenHouseRentChangeFieldRequest, opts ...grpc.CallOption) (*v1.GardenHouseRentChangeFieldReply, error) {
  82. out := new(v1.GardenHouseRentChangeFieldReply)
  83. err := c.cc.Invoke(ctx, "/pb.service.Garden/GardenHouseRentChangeField", in, out, opts...)
  84. if err != nil {
  85. return nil, err
  86. }
  87. return out, nil
  88. }
  89. // GardenServer is the server API for Garden service.
  90. type GardenServer interface {
  91. GardenInitDb(context.Context, *v1.GardenInitDbRequest) (*v1.GardenInitDbReply, error)
  92. // 小区是否有房屋入驻
  93. GardenHouseIsIn(context.Context, *v1.GardenHouseIsInRequest) (*v1.GardenHouseIsInReply, error)
  94. // 因房屋,小区或单元信息变更需更新租房信息
  95. GardenHouseRentChangeField(context.Context, *v1.GardenHouseRentChangeFieldRequest) (*v1.GardenHouseRentChangeFieldReply, error)
  96. }
  97. // UnimplementedGardenServer can be embedded to have forward compatible implementations.
  98. type UnimplementedGardenServer struct {
  99. }
  100. func (*UnimplementedGardenServer) GardenInitDb(ctx context.Context, req *v1.GardenInitDbRequest) (*v1.GardenInitDbReply, error) {
  101. return nil, status.Errorf(codes.Unimplemented, "method GardenInitDb not implemented")
  102. }
  103. func (*UnimplementedGardenServer) GardenHouseIsIn(ctx context.Context, req *v1.GardenHouseIsInRequest) (*v1.GardenHouseIsInReply, error) {
  104. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseIsIn not implemented")
  105. }
  106. func (*UnimplementedGardenServer) GardenHouseRentChangeField(ctx context.Context, req *v1.GardenHouseRentChangeFieldRequest) (*v1.GardenHouseRentChangeFieldReply, error) {
  107. return nil, status.Errorf(codes.Unimplemented, "method GardenHouseRentChangeField not implemented")
  108. }
  109. func RegisterGardenServer(s *grpc.Server, srv GardenServer) {
  110. s.RegisterService(&_Garden_serviceDesc, srv)
  111. }
  112. func _Garden_GardenInitDb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  113. in := new(v1.GardenInitDbRequest)
  114. if err := dec(in); err != nil {
  115. return nil, err
  116. }
  117. if interceptor == nil {
  118. return srv.(GardenServer).GardenInitDb(ctx, in)
  119. }
  120. info := &grpc.UnaryServerInfo{
  121. Server: srv,
  122. FullMethod: "/pb.service.Garden/GardenInitDb",
  123. }
  124. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  125. return srv.(GardenServer).GardenInitDb(ctx, req.(*v1.GardenInitDbRequest))
  126. }
  127. return interceptor(ctx, in, info, handler)
  128. }
  129. func _Garden_GardenHouseIsIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  130. in := new(v1.GardenHouseIsInRequest)
  131. if err := dec(in); err != nil {
  132. return nil, err
  133. }
  134. if interceptor == nil {
  135. return srv.(GardenServer).GardenHouseIsIn(ctx, in)
  136. }
  137. info := &grpc.UnaryServerInfo{
  138. Server: srv,
  139. FullMethod: "/pb.service.Garden/GardenHouseIsIn",
  140. }
  141. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  142. return srv.(GardenServer).GardenHouseIsIn(ctx, req.(*v1.GardenHouseIsInRequest))
  143. }
  144. return interceptor(ctx, in, info, handler)
  145. }
  146. func _Garden_GardenHouseRentChangeField_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  147. in := new(v1.GardenHouseRentChangeFieldRequest)
  148. if err := dec(in); err != nil {
  149. return nil, err
  150. }
  151. if interceptor == nil {
  152. return srv.(GardenServer).GardenHouseRentChangeField(ctx, in)
  153. }
  154. info := &grpc.UnaryServerInfo{
  155. Server: srv,
  156. FullMethod: "/pb.service.Garden/GardenHouseRentChangeField",
  157. }
  158. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  159. return srv.(GardenServer).GardenHouseRentChangeField(ctx, req.(*v1.GardenHouseRentChangeFieldRequest))
  160. }
  161. return interceptor(ctx, in, info, handler)
  162. }
  163. var _Garden_serviceDesc = grpc.ServiceDesc{
  164. ServiceName: "pb.service.Garden",
  165. HandlerType: (*GardenServer)(nil),
  166. Methods: []grpc.MethodDesc{
  167. {
  168. MethodName: "GardenInitDb",
  169. Handler: _Garden_GardenInitDb_Handler,
  170. },
  171. {
  172. MethodName: "GardenHouseIsIn",
  173. Handler: _Garden_GardenHouseIsIn_Handler,
  174. },
  175. {
  176. MethodName: "GardenHouseRentChangeField",
  177. Handler: _Garden_GardenHouseRentChangeField_Handler,
  178. },
  179. },
  180. Streams: []grpc.StreamDesc{},
  181. Metadata: "garden_service.proto",
  182. }