// Code generated by protoc-gen-go. DO NOT EDIT. // source: device_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" v1 "cp-system-management/pb/v1" 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" ) // 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{ // 137 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, 0x00, 0x17, 0x9b, 0x0b, 0x98, 0x2f, 0xe4, 0xc6, 0xc5, 0xe3, 0x99, 0x97, 0x59, 0x02, 0xe1, 0xb9, 0x24, 0x09, 0x49, 0xe9, 0x15, 0x24, 0xc5, 0x97, 0x19, 0xea, 0x21, 0x0b, 0x06, 0xa5, 0x16, 0x96, 0xa6, 0x16, 0x97, 0x48, 0x49, 0x60, 0x95, 0x2b, 0xc8, 0xa9, 0x54, 0x62, 0x70, 0x92, 0x8c, 0x12, 0x4f, 0x2e, 0xd0, 0x2d, 0xae, 0x2c, 0x2e, 0x49, 0xcd, 0xd5, 0xcd, 0x4d, 0xcc, 0x4b, 0x4c, 0x4f, 0xcd, 0x4d, 0xcd, 0x2b, 0xd1, 0x2f, 0x48, 0x4a, 0x62, 0x03, 0xdb, 0x69, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x66, 0x77, 0xb8, 0x83, 0xa8, 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 { InitDeviceDb(ctx context.Context, in *v1.InitDeviceDbRequest, opts ...grpc.CallOption) (*v1.InitDeviceDbReply, error) } type deviceClient struct { cc grpc.ClientConnInterface } func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient { return &deviceClient{cc} } func (c *deviceClient) InitDeviceDb(ctx context.Context, in *v1.InitDeviceDbRequest, opts ...grpc.CallOption) (*v1.InitDeviceDbReply, error) { out := new(v1.InitDeviceDbReply) err := c.cc.Invoke(ctx, "/pb.service.Device/InitDeviceDb", in, out, opts...) if err != nil { return nil, err } return out, nil } // DeviceServer is the server API for Device service. type DeviceServer interface { InitDeviceDb(context.Context, *v1.InitDeviceDbRequest) (*v1.InitDeviceDbReply, error) } // UnimplementedDeviceServer can be embedded to have forward compatible implementations. type UnimplementedDeviceServer struct { } func (*UnimplementedDeviceServer) InitDeviceDb(ctx context.Context, req *v1.InitDeviceDbRequest) (*v1.InitDeviceDbReply, error) { return nil, status.Errorf(codes.Unimplemented, "method InitDeviceDb not implemented") } func RegisterDeviceServer(s *grpc.Server, srv DeviceServer) { s.RegisterService(&_Device_serviceDesc, srv) } func _Device_InitDeviceDb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.InitDeviceDbRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(DeviceServer).InitDeviceDb(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Device/InitDeviceDb", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DeviceServer).InitDeviceDb(ctx, req.(*v1.InitDeviceDbRequest)) } return interceptor(ctx, in, info, handler) } var _Device_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.Device", HandlerType: (*DeviceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InitDeviceDb", Handler: _Device_InitDeviceDb_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "device_service.proto", }