device_service.pb.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: device_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-garden/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("device_service.proto", fileDescriptor_5b575c291bff7431)
  26. }
  27. var fileDescriptor_5b575c291bff7431 = []byte{
  28. // 147 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x49, 0x2d, 0xcb,
  30. 0x4c, 0x4e, 0x8d, 0x2f, 0x4e, 0x2d, 0x02, 0xd1, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x5c,
  31. 0x05, 0x49, 0x7a, 0x50, 0x11, 0x29, 0xfe, 0x32, 0x43, 0x7d, 0x88, 0x22, 0x88, 0xa4, 0x51, 0x1e,
  32. 0x17, 0x9b, 0x0b, 0x98, 0x2f, 0x94, 0xc2, 0x25, 0xe6, 0x91, 0x5f, 0x5a, 0x9c, 0x9a, 0x91, 0x9f,
  33. 0x93, 0xe2, 0x9e, 0x58, 0x92, 0x1a, 0x5c, 0x99, 0x97, 0xec, 0x9c, 0x91, 0x9a, 0x9c, 0x2d, 0xa4,
  34. 0xa2, 0x57, 0x90, 0x14, 0x5f, 0x66, 0xa8, 0x87, 0x5d, 0x3a, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8,
  35. 0x44, 0x4a, 0x89, 0x80, 0xaa, 0x82, 0x9c, 0x4a, 0x25, 0x06, 0x27, 0x91, 0x28, 0xa1, 0x82, 0xa2,
  36. 0xfc, 0x82, 0xd4, 0xa2, 0x92, 0x4a, 0xdd, 0xf4, 0xc4, 0xa2, 0x94, 0xd4, 0x3c, 0xfd, 0x82, 0xa4,
  37. 0x24, 0x36, 0xb0, 0x63, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0xcb, 0xb4, 0x37, 0xa3, 0xc1,
  38. 0x00, 0x00, 0x00,
  39. }
  40. // Reference imports to suppress errors if they are not otherwise used.
  41. var _ context.Context
  42. var _ grpc.ClientConnInterface
  43. // This is a compile-time assertion to ensure that this generated file
  44. // is compatible with the grpc package it is being compiled against.
  45. const _ = grpc.SupportPackageIsVersion6
  46. // DeviceClient is the client API for Device service.
  47. //
  48. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  49. type DeviceClient interface {
  50. // 住户申请房屋后,检查是否有设备需要同步人脸
  51. HouseholdGateSyncCheck(ctx context.Context, in *v1.HouseholdGateSyncCheckRequest, opts ...grpc.CallOption) (*v1.HouseholdGateSyncCheckReply, error)
  52. }
  53. type deviceClient struct {
  54. cc grpc.ClientConnInterface
  55. }
  56. func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient {
  57. return &deviceClient{cc}
  58. }
  59. func (c *deviceClient) HouseholdGateSyncCheck(ctx context.Context, in *v1.HouseholdGateSyncCheckRequest, opts ...grpc.CallOption) (*v1.HouseholdGateSyncCheckReply, error) {
  60. out := new(v1.HouseholdGateSyncCheckReply)
  61. err := c.cc.Invoke(ctx, "/pb.service.Device/HouseholdGateSyncCheck", in, out, opts...)
  62. if err != nil {
  63. return nil, err
  64. }
  65. return out, nil
  66. }
  67. // DeviceServer is the server API for Device service.
  68. type DeviceServer interface {
  69. // 住户申请房屋后,检查是否有设备需要同步人脸
  70. HouseholdGateSyncCheck(context.Context, *v1.HouseholdGateSyncCheckRequest) (*v1.HouseholdGateSyncCheckReply, error)
  71. }
  72. // UnimplementedDeviceServer can be embedded to have forward compatible implementations.
  73. type UnimplementedDeviceServer struct {
  74. }
  75. func (*UnimplementedDeviceServer) HouseholdGateSyncCheck(ctx context.Context, req *v1.HouseholdGateSyncCheckRequest) (*v1.HouseholdGateSyncCheckReply, error) {
  76. return nil, status.Errorf(codes.Unimplemented, "method HouseholdGateSyncCheck not implemented")
  77. }
  78. func RegisterDeviceServer(s *grpc.Server, srv DeviceServer) {
  79. s.RegisterService(&_Device_serviceDesc, srv)
  80. }
  81. func _Device_HouseholdGateSyncCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  82. in := new(v1.HouseholdGateSyncCheckRequest)
  83. if err := dec(in); err != nil {
  84. return nil, err
  85. }
  86. if interceptor == nil {
  87. return srv.(DeviceServer).HouseholdGateSyncCheck(ctx, in)
  88. }
  89. info := &grpc.UnaryServerInfo{
  90. Server: srv,
  91. FullMethod: "/pb.service.Device/HouseholdGateSyncCheck",
  92. }
  93. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  94. return srv.(DeviceServer).HouseholdGateSyncCheck(ctx, req.(*v1.HouseholdGateSyncCheckRequest))
  95. }
  96. return interceptor(ctx, in, info, handler)
  97. }
  98. var _Device_serviceDesc = grpc.ServiceDesc{
  99. ServiceName: "pb.service.Device",
  100. HandlerType: (*DeviceServer)(nil),
  101. Methods: []grpc.MethodDesc{
  102. {
  103. MethodName: "HouseholdGateSyncCheck",
  104. Handler: _Device_HouseholdGateSyncCheck_Handler,
  105. },
  106. },
  107. Streams: []grpc.StreamDesc{},
  108. Metadata: "device_service.proto",
  109. }