household_service.pb.go 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: household_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("household_service.proto", fileDescriptor_29439a8e98771332)
  26. }
  27. var fileDescriptor_29439a8e98771332 = []byte{
  28. // 175 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcf, 0xc8, 0x2f, 0x2d,
  30. 0x4e, 0xcd, 0xc8, 0xcf, 0x49, 0x89, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28,
  31. 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0x09, 0x95, 0x19, 0xea, 0xc3,
  32. 0xd5, 0x41, 0xe4, 0x8d, 0x4e, 0x33, 0x72, 0x71, 0x7a, 0xc0, 0xc4, 0x84, 0x72, 0xb9, 0x24, 0xe1,
  33. 0x1c, 0xf7, 0xc4, 0xa2, 0x94, 0xd4, 0x3c, 0xbf, 0xc4, 0xdc, 0x54, 0xe7, 0x8c, 0xc4, 0xbc, 0xf4,
  34. 0x54, 0x21, 0x75, 0xbd, 0x82, 0xa4, 0xf8, 0x32, 0x43, 0x3d, 0x9c, 0x2a, 0x82, 0x52, 0x0b, 0x4b,
  35. 0x53, 0x8b, 0x4b, 0xa4, 0x54, 0x09, 0x2b, 0x2c, 0xc8, 0xa9, 0x54, 0x62, 0x10, 0xf2, 0xe7, 0xe2,
  36. 0x87, 0xab, 0x09, 0x4a, 0x4d, 0x2b, 0x2d, 0x4e, 0x15, 0x92, 0x45, 0xd7, 0x0b, 0x11, 0x87, 0x19,
  37. 0x2d, 0x8d, 0x4b, 0x1a, 0x6c, 0xa0, 0x93, 0x48, 0x94, 0x50, 0x41, 0x51, 0x7e, 0x41, 0x6a, 0x51,
  38. 0x49, 0xa5, 0x6e, 0x71, 0x65, 0x71, 0x49, 0x6a, 0xae, 0x7e, 0x41, 0x52, 0x12, 0x1b, 0xd8, 0xab,
  39. 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x42, 0x86, 0x41, 0x09, 0x25, 0x01, 0x00, 0x00,
  40. }
  41. // Reference imports to suppress errors if they are not otherwise used.
  42. var _ context.Context
  43. var _ grpc.ClientConnInterface
  44. // This is a compile-time assertion to ensure that this generated file
  45. // is compatible with the grpc package it is being compiled against.
  46. const _ = grpc.SupportPackageIsVersion6
  47. // HouseholdClient is the client API for Household service.
  48. //
  49. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  50. type HouseholdClient interface {
  51. HouseholdGardenNameChange(ctx context.Context, in *v1.HouseholdGardenNameChangeRequest, opts ...grpc.CallOption) (*v1.HouseholdGardenNameChangeReply, error)
  52. // 因房屋更新,需拒绝申请
  53. HouseholdRefuse(ctx context.Context, in *v1.HouseholdRefuseRequest, opts ...grpc.CallOption) (*v1.HouseholdRefuseReply, error)
  54. }
  55. type householdClient struct {
  56. cc grpc.ClientConnInterface
  57. }
  58. func NewHouseholdClient(cc grpc.ClientConnInterface) HouseholdClient {
  59. return &householdClient{cc}
  60. }
  61. func (c *householdClient) HouseholdGardenNameChange(ctx context.Context, in *v1.HouseholdGardenNameChangeRequest, opts ...grpc.CallOption) (*v1.HouseholdGardenNameChangeReply, error) {
  62. out := new(v1.HouseholdGardenNameChangeReply)
  63. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdGardenNameChange", in, out, opts...)
  64. if err != nil {
  65. return nil, err
  66. }
  67. return out, nil
  68. }
  69. func (c *householdClient) HouseholdRefuse(ctx context.Context, in *v1.HouseholdRefuseRequest, opts ...grpc.CallOption) (*v1.HouseholdRefuseReply, error) {
  70. out := new(v1.HouseholdRefuseReply)
  71. err := c.cc.Invoke(ctx, "/pb.service.Household/HouseholdRefuse", in, out, opts...)
  72. if err != nil {
  73. return nil, err
  74. }
  75. return out, nil
  76. }
  77. // HouseholdServer is the server API for Household service.
  78. type HouseholdServer interface {
  79. HouseholdGardenNameChange(context.Context, *v1.HouseholdGardenNameChangeRequest) (*v1.HouseholdGardenNameChangeReply, error)
  80. // 因房屋更新,需拒绝申请
  81. HouseholdRefuse(context.Context, *v1.HouseholdRefuseRequest) (*v1.HouseholdRefuseReply, error)
  82. }
  83. // UnimplementedHouseholdServer can be embedded to have forward compatible implementations.
  84. type UnimplementedHouseholdServer struct {
  85. }
  86. func (*UnimplementedHouseholdServer) HouseholdGardenNameChange(ctx context.Context, req *v1.HouseholdGardenNameChangeRequest) (*v1.HouseholdGardenNameChangeReply, error) {
  87. return nil, status.Errorf(codes.Unimplemented, "method HouseholdGardenNameChange not implemented")
  88. }
  89. func (*UnimplementedHouseholdServer) HouseholdRefuse(ctx context.Context, req *v1.HouseholdRefuseRequest) (*v1.HouseholdRefuseReply, error) {
  90. return nil, status.Errorf(codes.Unimplemented, "method HouseholdRefuse not implemented")
  91. }
  92. func RegisterHouseholdServer(s *grpc.Server, srv HouseholdServer) {
  93. s.RegisterService(&_Household_serviceDesc, srv)
  94. }
  95. func _Household_HouseholdGardenNameChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  96. in := new(v1.HouseholdGardenNameChangeRequest)
  97. if err := dec(in); err != nil {
  98. return nil, err
  99. }
  100. if interceptor == nil {
  101. return srv.(HouseholdServer).HouseholdGardenNameChange(ctx, in)
  102. }
  103. info := &grpc.UnaryServerInfo{
  104. Server: srv,
  105. FullMethod: "/pb.service.Household/HouseholdGardenNameChange",
  106. }
  107. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  108. return srv.(HouseholdServer).HouseholdGardenNameChange(ctx, req.(*v1.HouseholdGardenNameChangeRequest))
  109. }
  110. return interceptor(ctx, in, info, handler)
  111. }
  112. func _Household_HouseholdRefuse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  113. in := new(v1.HouseholdRefuseRequest)
  114. if err := dec(in); err != nil {
  115. return nil, err
  116. }
  117. if interceptor == nil {
  118. return srv.(HouseholdServer).HouseholdRefuse(ctx, in)
  119. }
  120. info := &grpc.UnaryServerInfo{
  121. Server: srv,
  122. FullMethod: "/pb.service.Household/HouseholdRefuse",
  123. }
  124. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  125. return srv.(HouseholdServer).HouseholdRefuse(ctx, req.(*v1.HouseholdRefuseRequest))
  126. }
  127. return interceptor(ctx, in, info, handler)
  128. }
  129. var _Household_serviceDesc = grpc.ServiceDesc{
  130. ServiceName: "pb.service.Household",
  131. HandlerType: (*HouseholdServer)(nil),
  132. Methods: []grpc.MethodDesc{
  133. {
  134. MethodName: "HouseholdGardenNameChange",
  135. Handler: _Household_HouseholdGardenNameChange_Handler,
  136. },
  137. {
  138. MethodName: "HouseholdRefuse",
  139. Handler: _Household_HouseholdRefuse_Handler,
  140. },
  141. },
  142. Streams: []grpc.StreamDesc{},
  143. Metadata: "household_service.proto",
  144. }