// Code generated by protoc-gen-go. DO NOT EDIT. // source: device_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" v1 "property-household-gateway/pb/v1" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("device_service.proto", fileDescriptor_5b575c291bff7431) } var fileDescriptor_5b575c291bff7431 = []byte{ // 246 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4b, 0xc3, 0x30, 0x14, 0x80, 0x05, 0x61, 0x48, 0x0e, 0x0e, 0xc2, 0xf0, 0x50, 0x1d, 0x82, 0xf7, 0x65, 0x4c, 0x6f, 0xde, 0x94, 0x81, 0x08, 0x03, 0x45, 0xd0, 0x83, 0x97, 0xd2, 0x34, 0x4f, 0x1b, 0x28, 0x4d, 0x4c, 0x5e, 0x2b, 0xfd, 0x97, 0xfe, 0x24, 0x69, 0xda, 0xae, 0x09, 0x6d, 0x4f, 0x81, 0xef, 0x7b, 0x79, 0x7c, 0xf0, 0xc8, 0x4a, 0x40, 0x25, 0x53, 0x88, 0x2d, 0x98, 0xe6, 0x65, 0xda, 0x28, 0x54, 0x94, 0x68, 0xce, 0x3a, 0x12, 0x2d, 0xab, 0xdd, 0xb6, 0x1d, 0x6a, 0xe5, 0xed, 0xdf, 0x29, 0x59, 0xec, 0x1d, 0xa0, 0xf7, 0xe4, 0xec, 0x29, 0x41, 0x38, 0x48, 0x8b, 0xf4, 0x82, 0x69, 0x1e, 0x57, 0x3b, 0xd6, 0x83, 0x37, 0xf8, 0x29, 0xc1, 0x62, 0xb4, 0x1a, 0x71, 0x9d, 0xd7, 0x37, 0x27, 0xf4, 0x40, 0xce, 0x1b, 0xf4, 0x21, 0xad, 0x44, 0x65, 0xf6, 0x90, 0xd3, 0x2b, 0x6f, 0x72, 0xc0, 0xfd, 0x9e, 0x68, 0xc6, 0xb6, 0xdb, 0x5e, 0xc8, 0xd2, 0x13, 0x2e, 0x68, 0x3d, 0xfe, 0xe0, 0x77, 0x5d, 0xce, 0xe9, 0x20, 0xef, 0xdd, 0x82, 0x79, 0x95, 0xe9, 0x83, 0x10, 0x41, 0xde, 0x80, 0xa7, 0xf2, 0x7c, 0x1b, 0xe4, 0x75, 0xe2, 0xb9, 0xf8, 0x52, 0x41, 0x9e, 0xc7, 0xa7, 0xf2, 0x02, 0x1d, 0xe6, 0x15, 0x12, 0xbb, 0x5b, 0x04, 0x79, 0x47, 0x3c, 0x99, 0xe7, 0x59, 0xb7, 0xed, 0xf1, 0xfa, 0x73, 0xad, 0x8d, 0xd2, 0x60, 0xb0, 0xde, 0x64, 0xaa, 0xb4, 0x90, 0xa9, 0x5c, 0x6c, 0xbe, 0x13, 0x84, 0xdf, 0xa4, 0xde, 0x6a, 0xce, 0x17, 0xee, 0xf4, 0x77, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd5, 0xcf, 0x27, 0x7b, 0x2f, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // DeviceClient is the client API for Device service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type DeviceClient interface { // 门禁列表 GateList(ctx context.Context, in *v1.GateListRequest, opts ...grpc.CallOption) (*v1.GateListReply, error) GateVisitorDel(ctx context.Context, in *v1.GateVisitorDelRequest, opts ...grpc.CallOption) (*v1.GateVisitorDelReply, error) GateVisitorList(ctx context.Context, in *v1.GateVisitorListRequest, opts ...grpc.CallOption) (*v1.GateVisitorListReply, error) // 门禁人脸申请 GateUserPicAdd(ctx context.Context, in *v1.GateUserPicAddRequest, opts ...grpc.CallOption) (*v1.GateUserPicAddReply, error) // 获取人脸录入信息 GateUserPicInfo(ctx context.Context, in *v1.GateUserPicInfoRequest, opts ...grpc.CallOption) (*v1.GateUserPicInfoReply, error) // 获取绑定了某单元的门禁列表 GateUnitDevice(ctx context.Context, in *v1.GateUnitDeviceRequest, opts ...grpc.CallOption) (*v1.GateUnitDeviceReply, error) } type deviceClient struct { cc grpc.ClientConnInterface } func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient { return &deviceClient{cc} } func (c *deviceClient) GateList(ctx context.Context, in *v1.GateListRequest, opts ...grpc.CallOption) (*v1.GateListReply, error) { out := new(v1.GateListReply) err := c.cc.Invoke(ctx, "/pb.service.Device/GateList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *deviceClient) GateVisitorDel(ctx context.Context, in *v1.GateVisitorDelRequest, opts ...grpc.CallOption) (*v1.GateVisitorDelReply, error) { out := new(v1.GateVisitorDelReply) err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorDel", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *deviceClient) GateVisitorList(ctx context.Context, in *v1.GateVisitorListRequest, opts ...grpc.CallOption) (*v1.GateVisitorListReply, error) { out := new(v1.GateVisitorListReply) err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *deviceClient) GateUserPicAdd(ctx context.Context, in *v1.GateUserPicAddRequest, opts ...grpc.CallOption) (*v1.GateUserPicAddReply, error) { out := new(v1.GateUserPicAddReply) err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *deviceClient) GateUserPicInfo(ctx context.Context, in *v1.GateUserPicInfoRequest, opts ...grpc.CallOption) (*v1.GateUserPicInfoReply, error) { out := new(v1.GateUserPicInfoReply) err := c.cc.Invoke(ctx, "/pb.service.Device/GateUserPicInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *deviceClient) GateUnitDevice(ctx context.Context, in *v1.GateUnitDeviceRequest, opts ...grpc.CallOption) (*v1.GateUnitDeviceReply, error) { out := new(v1.GateUnitDeviceReply) err := c.cc.Invoke(ctx, "/pb.service.Device/GateUnitDevice", in, out, opts...) if err != nil { return nil, err } return out, nil } // DeviceServer is the server API for Device service. type DeviceServer interface { // 门禁列表 GateList(context.Context, *v1.GateListRequest) (*v1.GateListReply, error) GateVisitorDel(context.Context, *v1.GateVisitorDelRequest) (*v1.GateVisitorDelReply, error) GateVisitorList(context.Context, *v1.GateVisitorListRequest) (*v1.GateVisitorListReply, error) // 门禁人脸申请 GateUserPicAdd(context.Context, *v1.GateUserPicAddRequest) (*v1.GateUserPicAddReply, error) // 获取人脸录入信息 GateUserPicInfo(context.Context, *v1.GateUserPicInfoRequest) (*v1.GateUserPicInfoReply, error) // 获取绑定了某单元的门禁列表 GateUnitDevice(context.Context, *v1.GateUnitDeviceRequest) (*v1.GateUnitDeviceReply, error) } // UnimplementedDeviceServer can be embedded to have forward compatible implementations. type UnimplementedDeviceServer struct { } func (*UnimplementedDeviceServer) GateList(ctx context.Context, req *v1.GateListRequest) (*v1.GateListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GateList not implemented") } func (*UnimplementedDeviceServer) GateVisitorDel(ctx context.Context, req *v1.GateVisitorDelRequest) (*v1.GateVisitorDelReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GateVisitorDel not implemented") } func (*UnimplementedDeviceServer) GateVisitorList(ctx context.Context, req *v1.GateVisitorListRequest) (*v1.GateVisitorListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GateVisitorList not implemented") } func (*UnimplementedDeviceServer) GateUserPicAdd(ctx context.Context, req *v1.GateUserPicAddRequest) (*v1.GateUserPicAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GateUserPicAdd not implemented") } func (*UnimplementedDeviceServer) GateUserPicInfo(ctx context.Context, req *v1.GateUserPicInfoRequest) (*v1.GateUserPicInfoReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GateUserPicInfo not implemented") } func (*UnimplementedDeviceServer) GateUnitDevice(ctx context.Context, req *v1.GateUnitDeviceRequest) (*v1.GateUnitDeviceReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GateUnitDevice not implemented") } func RegisterDeviceServer(s *grpc.Server, srv DeviceServer) { s.RegisterService(&_Device_serviceDesc, srv) } func _Device_GateList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GateListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DeviceServer).GateList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Device/GateList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DeviceServer).GateList(ctx, req.(*v1.GateListRequest)) } return interceptor(ctx, in, info, handler) } func _Device_GateVisitorDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GateVisitorDelRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DeviceServer).GateVisitorDel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Device/GateVisitorDel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DeviceServer).GateVisitorDel(ctx, req.(*v1.GateVisitorDelRequest)) } return interceptor(ctx, in, info, handler) } func _Device_GateVisitorList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GateVisitorListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DeviceServer).GateVisitorList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Device/GateVisitorList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DeviceServer).GateVisitorList(ctx, req.(*v1.GateVisitorListRequest)) } return interceptor(ctx, in, info, handler) } func _Device_GateUserPicAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GateUserPicAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DeviceServer).GateUserPicAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Device/GateUserPicAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DeviceServer).GateUserPicAdd(ctx, req.(*v1.GateUserPicAddRequest)) } return interceptor(ctx, in, info, handler) } func _Device_GateUserPicInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GateUserPicInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DeviceServer).GateUserPicInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Device/GateUserPicInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DeviceServer).GateUserPicInfo(ctx, req.(*v1.GateUserPicInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Device_GateUnitDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.GateUnitDeviceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DeviceServer).GateUnitDevice(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Device/GateUnitDevice", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DeviceServer).GateUnitDevice(ctx, req.(*v1.GateUnitDeviceRequest)) } return interceptor(ctx, in, info, handler) } var _Device_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.Device", HandlerType: (*DeviceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GateList", Handler: _Device_GateList_Handler, }, { MethodName: "GateVisitorDel", Handler: _Device_GateVisitorDel_Handler, }, { MethodName: "GateVisitorList", Handler: _Device_GateVisitorList_Handler, }, { MethodName: "GateUserPicAdd", Handler: _Device_GateUserPicAdd_Handler, }, { MethodName: "GateUserPicInfo", Handler: _Device_GateUserPicInfo_Handler, }, { MethodName: "GateUnitDevice", Handler: _Device_GateUnitDevice_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "device_service.proto", }