123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: smart_auth.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 "smart-auth/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("smart_auth.proto", fileDescriptor_aaaceba66a98f379)
- }
- var fileDescriptor_aaaceba66a98f379 = []byte{
- // 267 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0x41, 0x4b, 0xc3, 0x40,
- 0x10, 0x85, 0x45, 0x41, 0xe8, 0xa0, 0x56, 0x46, 0x8b, 0x58, 0xf1, 0xe2, 0xdd, 0x94, 0xea, 0x41,
- 0xf0, 0x64, 0x6b, 0x50, 0x7a, 0x11, 0x69, 0xf0, 0xe2, 0x45, 0x36, 0x66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
- 0x25, 0x66, 0x03, 0x9e, 0x9a, 0x6d, 0x7f, 0x4f, 0x3b, 0x8b, 0x1d, 0xaa, 0x07, 0xe7, 0xc3, 0xf7,
- 0x43, 0x7d, 0x25, 0xd7, 0xf5, 0x95, 0x4c, 0x64, 0x18, 0xee, 0xeb, 0xa3, 0xb8, 0xfd, 0x0d, 0x00,
- 0x00, 0xff, 0xff, 0xa7, 0x85, 0x64, 0xf0, 0x3d, 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
- // SmartAuthClient is the client API for SmartAuth service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type SmartAuthClient interface {
- // 获取设备基本信息
- DeviceInfo(ctx context.Context, in *v1.DeviceInfoRequest, opts ...grpc.CallOption) (*v1.DeviceInfoReply, error)
- DeviceInfoById(ctx context.Context, in *v1.DeviceInfoByIdRequest, opts ...grpc.CallOption) (*v1.DeviceInfoByIdReply, error)
- // 设备状态更新
- DeviceStatusUpdate(ctx context.Context, in *v1.DeviceStatusUpdateRequest, opts ...grpc.CallOption) (*v1.DeviceStatusUpdateReply, error)
- // 设备参数设置
- DeviceParamSet(ctx context.Context, in *v1.DeviceParamSetRequest, opts ...grpc.CallOption) (*v1.DeviceParamSetReply, error)
- // 设备信息变动通知
- DeviceChangeNotify(ctx context.Context, in *v1.DeviceChangeNotifyRequest, opts ...grpc.CallOption) (*v1.DeviceChangeNotifyReply, error)
- // 获取所有扬尘sn码
- GetAllDustSn(ctx context.Context, in *v1.GetAllDustSnRequest, opts ...grpc.CallOption) (*v1.GetAllDustSnReply, error)
- DelDevice(ctx context.Context, in *v1.DelDeviceRequest, opts ...grpc.CallOption) (*v1.DelDeviceReply, error)
- }
- type smartAuthClient struct {
- cc grpc.ClientConnInterface
- }
- func NewSmartAuthClient(cc grpc.ClientConnInterface) SmartAuthClient {
- return &smartAuthClient{cc}
- }
- func (c *smartAuthClient) DeviceInfo(ctx context.Context, in *v1.DeviceInfoRequest, opts ...grpc.CallOption) (*v1.DeviceInfoReply, error) {
- out := new(v1.DeviceInfoReply)
- err := c.cc.Invoke(ctx, "/pb.SmartAuth/DeviceInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartAuthClient) DeviceInfoById(ctx context.Context, in *v1.DeviceInfoByIdRequest, opts ...grpc.CallOption) (*v1.DeviceInfoByIdReply, error) {
- out := new(v1.DeviceInfoByIdReply)
- err := c.cc.Invoke(ctx, "/pb.SmartAuth/DeviceInfoById", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartAuthClient) DeviceStatusUpdate(ctx context.Context, in *v1.DeviceStatusUpdateRequest, opts ...grpc.CallOption) (*v1.DeviceStatusUpdateReply, error) {
- out := new(v1.DeviceStatusUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.SmartAuth/DeviceStatusUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartAuthClient) DeviceParamSet(ctx context.Context, in *v1.DeviceParamSetRequest, opts ...grpc.CallOption) (*v1.DeviceParamSetReply, error) {
- out := new(v1.DeviceParamSetReply)
- err := c.cc.Invoke(ctx, "/pb.SmartAuth/DeviceParamSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartAuthClient) DeviceChangeNotify(ctx context.Context, in *v1.DeviceChangeNotifyRequest, opts ...grpc.CallOption) (*v1.DeviceChangeNotifyReply, error) {
- out := new(v1.DeviceChangeNotifyReply)
- err := c.cc.Invoke(ctx, "/pb.SmartAuth/DeviceChangeNotify", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartAuthClient) GetAllDustSn(ctx context.Context, in *v1.GetAllDustSnRequest, opts ...grpc.CallOption) (*v1.GetAllDustSnReply, error) {
- out := new(v1.GetAllDustSnReply)
- err := c.cc.Invoke(ctx, "/pb.SmartAuth/GetAllDustSn", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartAuthClient) DelDevice(ctx context.Context, in *v1.DelDeviceRequest, opts ...grpc.CallOption) (*v1.DelDeviceReply, error) {
- out := new(v1.DelDeviceReply)
- err := c.cc.Invoke(ctx, "/pb.SmartAuth/DelDevice", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // SmartAuthServer is the server API for SmartAuth service.
- type SmartAuthServer interface {
- // 获取设备基本信息
- DeviceInfo(context.Context, *v1.DeviceInfoRequest) (*v1.DeviceInfoReply, error)
- DeviceInfoById(context.Context, *v1.DeviceInfoByIdRequest) (*v1.DeviceInfoByIdReply, error)
- // 设备状态更新
- DeviceStatusUpdate(context.Context, *v1.DeviceStatusUpdateRequest) (*v1.DeviceStatusUpdateReply, error)
- // 设备参数设置
- DeviceParamSet(context.Context, *v1.DeviceParamSetRequest) (*v1.DeviceParamSetReply, error)
- // 设备信息变动通知
- DeviceChangeNotify(context.Context, *v1.DeviceChangeNotifyRequest) (*v1.DeviceChangeNotifyReply, error)
- // 获取所有扬尘sn码
- GetAllDustSn(context.Context, *v1.GetAllDustSnRequest) (*v1.GetAllDustSnReply, error)
- DelDevice(context.Context, *v1.DelDeviceRequest) (*v1.DelDeviceReply, error)
- }
- // UnimplementedSmartAuthServer can be embedded to have forward compatible implementations.
- type UnimplementedSmartAuthServer struct {
- }
- func (*UnimplementedSmartAuthServer) DeviceInfo(ctx context.Context, req *v1.DeviceInfoRequest) (*v1.DeviceInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceInfo not implemented")
- }
- func (*UnimplementedSmartAuthServer) DeviceInfoById(ctx context.Context, req *v1.DeviceInfoByIdRequest) (*v1.DeviceInfoByIdReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceInfoById not implemented")
- }
- func (*UnimplementedSmartAuthServer) DeviceStatusUpdate(ctx context.Context, req *v1.DeviceStatusUpdateRequest) (*v1.DeviceStatusUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceStatusUpdate not implemented")
- }
- func (*UnimplementedSmartAuthServer) DeviceParamSet(ctx context.Context, req *v1.DeviceParamSetRequest) (*v1.DeviceParamSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceParamSet not implemented")
- }
- func (*UnimplementedSmartAuthServer) DeviceChangeNotify(ctx context.Context, req *v1.DeviceChangeNotifyRequest) (*v1.DeviceChangeNotifyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceChangeNotify not implemented")
- }
- func (*UnimplementedSmartAuthServer) GetAllDustSn(ctx context.Context, req *v1.GetAllDustSnRequest) (*v1.GetAllDustSnReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetAllDustSn not implemented")
- }
- func (*UnimplementedSmartAuthServer) DelDevice(ctx context.Context, req *v1.DelDeviceRequest) (*v1.DelDeviceReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DelDevice not implemented")
- }
- func RegisterSmartAuthServer(s *grpc.Server, srv SmartAuthServer) {
- s.RegisterService(&_SmartAuth_serviceDesc, srv)
- }
- func _SmartAuth_DeviceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartAuthServer).DeviceInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartAuth/DeviceInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartAuthServer).DeviceInfo(ctx, req.(*v1.DeviceInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartAuth_DeviceInfoById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceInfoByIdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartAuthServer).DeviceInfoById(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartAuth/DeviceInfoById",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartAuthServer).DeviceInfoById(ctx, req.(*v1.DeviceInfoByIdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartAuth_DeviceStatusUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceStatusUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartAuthServer).DeviceStatusUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartAuth/DeviceStatusUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartAuthServer).DeviceStatusUpdate(ctx, req.(*v1.DeviceStatusUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartAuth_DeviceParamSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceParamSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartAuthServer).DeviceParamSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartAuth/DeviceParamSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartAuthServer).DeviceParamSet(ctx, req.(*v1.DeviceParamSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartAuth_DeviceChangeNotify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceChangeNotifyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartAuthServer).DeviceChangeNotify(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartAuth/DeviceChangeNotify",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartAuthServer).DeviceChangeNotify(ctx, req.(*v1.DeviceChangeNotifyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartAuth_GetAllDustSn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GetAllDustSnRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartAuthServer).GetAllDustSn(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartAuth/GetAllDustSn",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartAuthServer).GetAllDustSn(ctx, req.(*v1.GetAllDustSnRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartAuth_DelDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DelDeviceRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartAuthServer).DelDevice(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartAuth/DelDevice",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartAuthServer).DelDevice(ctx, req.(*v1.DelDeviceRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _SmartAuth_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.SmartAuth",
- HandlerType: (*SmartAuthServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "DeviceInfo",
- Handler: _SmartAuth_DeviceInfo_Handler,
- },
- {
- MethodName: "DeviceInfoById",
- Handler: _SmartAuth_DeviceInfoById_Handler,
- },
- {
- MethodName: "DeviceStatusUpdate",
- Handler: _SmartAuth_DeviceStatusUpdate_Handler,
- },
- {
- MethodName: "DeviceParamSet",
- Handler: _SmartAuth_DeviceParamSet_Handler,
- },
- {
- MethodName: "DeviceChangeNotify",
- Handler: _SmartAuth_DeviceChangeNotify_Handler,
- },
- {
- MethodName: "GetAllDustSn",
- Handler: _SmartAuth_GetAllDustSn_Handler,
- },
- {
- MethodName: "DelDevice",
- Handler: _SmartAuth_DelDevice_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "smart_auth.proto",
- }
|