// Code generated by protoc-gen-go. DO NOT EDIT. // source: mqtt_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-device/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("mqtt_service.proto", fileDescriptor_cbc3e69b5d2bfe54) } var fileDescriptor_cbc3e69b5d2bfe54 = []byte{ // 222 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xc1, 0x4b, 0x85, 0x40, 0x10, 0x87, 0x23, 0x22, 0x62, 0xe8, 0x5d, 0x86, 0x47, 0x94, 0xdd, 0xba, 0xb7, 0x0f, 0xeb, 0xd6, 0xa9, 0x42, 0x84, 0x0e, 0x15, 0x78, 0x09, 0xba, 0x48, 0xab, 0x03, 0x09, 0xd6, 0x8e, 0xeb, 0x64, 0xf8, 0xd7, 0xf6, 0xaf, 0xc4, 0xee, 0x2a, 0x28, 0xfa, 0xae, 0xdf, 0xf7, 0x9b, 0xef, 0x30, 0x80, 0x5f, 0x8d, 0x48, 0xde, 0x92, 0xed, 0xaa, 0x82, 0x14, 0x5b, 0x23, 0x06, 0x81, 0xb5, 0x1a, 0x48, 0xb4, 0xe9, 0xe2, 0x9d, 0x9b, 0x04, 0x75, 0xf3, 0x77, 0x08, 0x47, 0xcf, 0x8d, 0x08, 0xa6, 0x70, 0x9a, 0x7e, 0x14, 0xf4, 0xf6, 0x59, 0x09, 0x3d, 0x94, 0x25, 0x46, 0x8a, 0x75, 0xde, 0xc5, 0x6a, 0x0a, 0x33, 0x6a, 0x7e, 0xa8, 0x95, 0xe8, 0x7c, 0xd5, 0x71, 0xdd, 0x5f, 0x1d, 0xcc, 0x3a, 0x09, 0xd5, 0xcb, 0x4e, 0x42, 0xf5, 0xde, 0x8e, 0x77, 0xa1, 0x73, 0x0f, 0xe0, 0x70, 0x46, 0xda, 0x18, 0xc1, 0xe9, 0x32, 0xa0, 0xb1, 0x71, 0xb6, 0x62, 0x42, 0xe1, 0x0e, 0x4e, 0x1c, 0x7c, 0x65, 0xfa, 0xc6, 0xe9, 0xca, 0x81, 0xf1, 0x7a, 0xbb, 0xe0, 0xe1, 0xf6, 0x09, 0x36, 0x2f, 0xf4, 0xeb, 0x1e, 0x93, 0x90, 0x7b, 0x1b, 0x5e, 0x0e, 0xc3, 0x19, 0x1d, 0x2b, 0x17, 0xeb, 0xd2, 0xa7, 0x1e, 0xb7, 0xef, 0xc8, 0xd6, 0x30, 0x59, 0xe9, 0xaf, 0x4b, 0x6f, 0x76, 0xac, 0xf5, 0xb1, 0x7f, 0xff, 0xed, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0x69, 0x2b, 0xe7, 0xaf, 0x01, 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 // MqttClient is the client API for Mqtt service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MqttClient interface { FaceWhiteAdd(ctx context.Context, in *v1.FaceWhiteAddRequest, opts ...grpc.CallOption) (*v1.FaceWhiteAddReply, error) FaceWhiteDel(ctx context.Context, in *v1.FaceWhiteDelRequest, opts ...grpc.CallOption) (*v1.FaceWhiteDelReply, error) FaceReboot(ctx context.Context, in *v1.FaceRebootRequest, opts ...grpc.CallOption) (*v1.FaceRebootReply, error) FaceOpen(ctx context.Context, in *v1.FaceOpenRequest, opts ...grpc.CallOption) (*v1.FaceOpenReply, error) NewMqttDevice(ctx context.Context, in *v1.NewMqttDeviceRequest, opts ...grpc.CallOption) (*v1.NewMqttDeviceReply, error) } type mqttClient struct { cc grpc.ClientConnInterface } func NewMqttClient(cc grpc.ClientConnInterface) MqttClient { return &mqttClient{cc} } func (c *mqttClient) FaceWhiteAdd(ctx context.Context, in *v1.FaceWhiteAddRequest, opts ...grpc.CallOption) (*v1.FaceWhiteAddReply, error) { out := new(v1.FaceWhiteAddReply) err := c.cc.Invoke(ctx, "/pb.service.Mqtt/FaceWhiteAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mqttClient) FaceWhiteDel(ctx context.Context, in *v1.FaceWhiteDelRequest, opts ...grpc.CallOption) (*v1.FaceWhiteDelReply, error) { out := new(v1.FaceWhiteDelReply) err := c.cc.Invoke(ctx, "/pb.service.Mqtt/FaceWhiteDel", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mqttClient) FaceReboot(ctx context.Context, in *v1.FaceRebootRequest, opts ...grpc.CallOption) (*v1.FaceRebootReply, error) { out := new(v1.FaceRebootReply) err := c.cc.Invoke(ctx, "/pb.service.Mqtt/FaceReboot", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mqttClient) FaceOpen(ctx context.Context, in *v1.FaceOpenRequest, opts ...grpc.CallOption) (*v1.FaceOpenReply, error) { out := new(v1.FaceOpenReply) err := c.cc.Invoke(ctx, "/pb.service.Mqtt/FaceOpen", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *mqttClient) NewMqttDevice(ctx context.Context, in *v1.NewMqttDeviceRequest, opts ...grpc.CallOption) (*v1.NewMqttDeviceReply, error) { out := new(v1.NewMqttDeviceReply) err := c.cc.Invoke(ctx, "/pb.service.Mqtt/NewMqttDevice", in, out, opts...) if err != nil { return nil, err } return out, nil } // MqttServer is the server API for Mqtt service. type MqttServer interface { FaceWhiteAdd(context.Context, *v1.FaceWhiteAddRequest) (*v1.FaceWhiteAddReply, error) FaceWhiteDel(context.Context, *v1.FaceWhiteDelRequest) (*v1.FaceWhiteDelReply, error) FaceReboot(context.Context, *v1.FaceRebootRequest) (*v1.FaceRebootReply, error) FaceOpen(context.Context, *v1.FaceOpenRequest) (*v1.FaceOpenReply, error) NewMqttDevice(context.Context, *v1.NewMqttDeviceRequest) (*v1.NewMqttDeviceReply, error) } // UnimplementedMqttServer can be embedded to have forward compatible implementations. type UnimplementedMqttServer struct { } func (*UnimplementedMqttServer) FaceWhiteAdd(ctx context.Context, req *v1.FaceWhiteAddRequest) (*v1.FaceWhiteAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FaceWhiteAdd not implemented") } func (*UnimplementedMqttServer) FaceWhiteDel(ctx context.Context, req *v1.FaceWhiteDelRequest) (*v1.FaceWhiteDelReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FaceWhiteDel not implemented") } func (*UnimplementedMqttServer) FaceReboot(ctx context.Context, req *v1.FaceRebootRequest) (*v1.FaceRebootReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FaceReboot not implemented") } func (*UnimplementedMqttServer) FaceOpen(ctx context.Context, req *v1.FaceOpenRequest) (*v1.FaceOpenReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FaceOpen not implemented") } func (*UnimplementedMqttServer) NewMqttDevice(ctx context.Context, req *v1.NewMqttDeviceRequest) (*v1.NewMqttDeviceReply, error) { return nil, status.Errorf(codes.Unimplemented, "method NewMqttDevice not implemented") } func RegisterMqttServer(s *grpc.Server, srv MqttServer) { s.RegisterService(&_Mqtt_serviceDesc, srv) } func _Mqtt_FaceWhiteAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.FaceWhiteAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MqttServer).FaceWhiteAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Mqtt/FaceWhiteAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MqttServer).FaceWhiteAdd(ctx, req.(*v1.FaceWhiteAddRequest)) } return interceptor(ctx, in, info, handler) } func _Mqtt_FaceWhiteDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.FaceWhiteDelRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MqttServer).FaceWhiteDel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Mqtt/FaceWhiteDel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MqttServer).FaceWhiteDel(ctx, req.(*v1.FaceWhiteDelRequest)) } return interceptor(ctx, in, info, handler) } func _Mqtt_FaceReboot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.FaceRebootRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MqttServer).FaceReboot(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Mqtt/FaceReboot", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MqttServer).FaceReboot(ctx, req.(*v1.FaceRebootRequest)) } return interceptor(ctx, in, info, handler) } func _Mqtt_FaceOpen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.FaceOpenRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MqttServer).FaceOpen(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Mqtt/FaceOpen", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MqttServer).FaceOpen(ctx, req.(*v1.FaceOpenRequest)) } return interceptor(ctx, in, info, handler) } func _Mqtt_NewMqttDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.NewMqttDeviceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MqttServer).NewMqttDevice(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Mqtt/NewMqttDevice", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MqttServer).NewMqttDevice(ctx, req.(*v1.NewMqttDeviceRequest)) } return interceptor(ctx, in, info, handler) } var _Mqtt_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.Mqtt", HandlerType: (*MqttServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FaceWhiteAdd", Handler: _Mqtt_FaceWhiteAdd_Handler, }, { MethodName: "FaceWhiteDel", Handler: _Mqtt_FaceWhiteDel_Handler, }, { MethodName: "FaceReboot", Handler: _Mqtt_FaceReboot_Handler, }, { MethodName: "FaceOpen", Handler: _Mqtt_FaceOpen_Handler, }, { MethodName: "NewMqttDevice", Handler: _Mqtt_NewMqttDevice_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mqtt_service.proto", }