123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- // 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/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{
- // 141 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0x49, 0x2d, 0xcb,
- 0x4c, 0x4e, 0x8d, 0x2f, 0x4e, 0x2d, 0x02, 0xd1, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x5c,
- 0x05, 0x49, 0x7a, 0x50, 0x11, 0x29, 0xfe, 0x32, 0x43, 0x7d, 0x88, 0x22, 0x88, 0xa4, 0x51, 0x18,
- 0x17, 0x9b, 0x0b, 0x98, 0x2f, 0xe4, 0xc3, 0xc5, 0xe7, 0x9e, 0x58, 0x92, 0x1a, 0x96, 0x59, 0x9c,
- 0x59, 0x92, 0x5f, 0xe4, 0x98, 0x92, 0x22, 0x24, 0xa3, 0x57, 0x90, 0x14, 0x5f, 0x66, 0xa8, 0x87,
- 0x2a, 0x1c, 0x94, 0x5a, 0x58, 0x9a, 0x5a, 0x5c, 0x22, 0x25, 0x85, 0x43, 0xb6, 0x20, 0xa7, 0x52,
- 0x89, 0xc1, 0x49, 0x3c, 0x4a, 0xb4, 0xa0, 0x28, 0xbf, 0x20, 0xb5, 0xa8, 0xa4, 0x52, 0x37, 0x23,
- 0xbf, 0xb4, 0x38, 0x35, 0x23, 0x3f, 0x27, 0x45, 0xbf, 0x20, 0x29, 0x89, 0x0d, 0x6c, 0xaf, 0x31,
- 0x20, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x9c, 0xce, 0xc5, 0xac, 0x00, 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 {
- GateVisitorAdd(ctx context.Context, in *v1.GateVisitorAddRequest, opts ...grpc.CallOption) (*v1.GateVisitorAddReply, error)
- }
- type deviceClient struct {
- cc grpc.ClientConnInterface
- }
- func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient {
- return &deviceClient{cc}
- }
- func (c *deviceClient) GateVisitorAdd(ctx context.Context, in *v1.GateVisitorAddRequest, opts ...grpc.CallOption) (*v1.GateVisitorAddReply, error) {
- out := new(v1.GateVisitorAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateVisitorAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // DeviceServer is the server API for Device service.
- type DeviceServer interface {
- GateVisitorAdd(context.Context, *v1.GateVisitorAddRequest) (*v1.GateVisitorAddReply, error)
- }
- // UnimplementedDeviceServer can be embedded to have forward compatible implementations.
- type UnimplementedDeviceServer struct {
- }
- func (*UnimplementedDeviceServer) GateVisitorAdd(ctx context.Context, req *v1.GateVisitorAddRequest) (*v1.GateVisitorAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateVisitorAdd not implemented")
- }
- func RegisterDeviceServer(s *grpc.Server, srv DeviceServer) {
- s.RegisterService(&_Device_serviceDesc, srv)
- }
- func _Device_GateVisitorAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateVisitorAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateVisitorAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateVisitorAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateVisitorAdd(ctx, req.(*v1.GateVisitorAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Device_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Device",
- HandlerType: (*DeviceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GateVisitorAdd",
- Handler: _Device_GateVisitorAdd_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "device_service.proto",
- }
|