smart_auth.pb.go 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: smart_auth.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 "smart-government-management/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("smart_auth.proto", fileDescriptor_aaaceba66a98f379)
  26. }
  27. var fileDescriptor_aaaceba66a98f379 = []byte{
  28. // 147 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x28, 0xce, 0x4d, 0x2c,
  30. 0x2a, 0x89, 0x4f, 0x2c, 0x2d, 0xc9, 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48,
  31. 0x92, 0xe2, 0x2f, 0x33, 0xd4, 0x4f, 0x49, 0x2d, 0xcb, 0x4c, 0x4e, 0x85, 0x08, 0x1a, 0xc5, 0x73,
  32. 0x71, 0x06, 0x83, 0x14, 0x3a, 0x96, 0x96, 0x64, 0x08, 0x05, 0x71, 0x09, 0xb9, 0x80, 0x25, 0x9d,
  33. 0x33, 0x12, 0xf3, 0xd2, 0x53, 0xfd, 0xf2, 0x4b, 0x32, 0xd3, 0x2a, 0x85, 0x64, 0xf5, 0xca, 0x0c,
  34. 0xf5, 0x30, 0xc5, 0x83, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0xa4, 0xa4, 0x71, 0x49, 0x17, 0xe4,
  35. 0x54, 0x2a, 0x31, 0x38, 0x29, 0x44, 0xc9, 0x81, 0x5d, 0xa2, 0x9b, 0x9e, 0x5f, 0x96, 0x5a, 0x94,
  36. 0x97, 0x9b, 0x9a, 0x57, 0xa2, 0x9b, 0x9b, 0x98, 0x97, 0x98, 0x9e, 0x0a, 0x62, 0xea, 0x17, 0x24,
  37. 0x25, 0xb1, 0x81, 0x5d, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x95, 0x60, 0x37, 0xb6, 0xb2,
  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. // SmartAuthClient is the client API for SmartAuth 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 SmartAuthClient interface {
  50. DeviceChangeNotify(ctx context.Context, in *v1.DeviceChangeNotifyRequest, opts ...grpc.CallOption) (*v1.DeviceChangeNotifyReply, error)
  51. }
  52. type smartAuthClient struct {
  53. cc grpc.ClientConnInterface
  54. }
  55. func NewSmartAuthClient(cc grpc.ClientConnInterface) SmartAuthClient {
  56. return &smartAuthClient{cc}
  57. }
  58. func (c *smartAuthClient) DeviceChangeNotify(ctx context.Context, in *v1.DeviceChangeNotifyRequest, opts ...grpc.CallOption) (*v1.DeviceChangeNotifyReply, error) {
  59. out := new(v1.DeviceChangeNotifyReply)
  60. err := c.cc.Invoke(ctx, "/pb.SmartAuth/DeviceChangeNotify", in, out, opts...)
  61. if err != nil {
  62. return nil, err
  63. }
  64. return out, nil
  65. }
  66. // SmartAuthServer is the server API for SmartAuth service.
  67. type SmartAuthServer interface {
  68. DeviceChangeNotify(context.Context, *v1.DeviceChangeNotifyRequest) (*v1.DeviceChangeNotifyReply, error)
  69. }
  70. // UnimplementedSmartAuthServer can be embedded to have forward compatible implementations.
  71. type UnimplementedSmartAuthServer struct {
  72. }
  73. func (*UnimplementedSmartAuthServer) DeviceChangeNotify(ctx context.Context, req *v1.DeviceChangeNotifyRequest) (*v1.DeviceChangeNotifyReply, error) {
  74. return nil, status.Errorf(codes.Unimplemented, "method DeviceChangeNotify not implemented")
  75. }
  76. func RegisterSmartAuthServer(s *grpc.Server, srv SmartAuthServer) {
  77. s.RegisterService(&_SmartAuth_serviceDesc, srv)
  78. }
  79. func _SmartAuth_DeviceChangeNotify_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  80. in := new(v1.DeviceChangeNotifyRequest)
  81. if err := dec(in); err != nil {
  82. return nil, err
  83. }
  84. if interceptor == nil {
  85. return srv.(SmartAuthServer).DeviceChangeNotify(ctx, in)
  86. }
  87. info := &grpc.UnaryServerInfo{
  88. Server: srv,
  89. FullMethod: "/pb.SmartAuth/DeviceChangeNotify",
  90. }
  91. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  92. return srv.(SmartAuthServer).DeviceChangeNotify(ctx, req.(*v1.DeviceChangeNotifyRequest))
  93. }
  94. return interceptor(ctx, in, info, handler)
  95. }
  96. var _SmartAuth_serviceDesc = grpc.ServiceDesc{
  97. ServiceName: "pb.SmartAuth",
  98. HandlerType: (*SmartAuthServer)(nil),
  99. Methods: []grpc.MethodDesc{
  100. {
  101. MethodName: "DeviceChangeNotify",
  102. Handler: _SmartAuth_DeviceChangeNotify_Handler,
  103. },
  104. },
  105. Streams: []grpc.StreamDesc{},
  106. Metadata: "smart_auth.proto",
  107. }