123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870 |
- // 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-applete-gateway/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{
- // 473 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x5f, 0xab, 0xd3, 0x30,
- 0x18, 0xc6, 0xbd, 0x9a, 0x12, 0xff, 0x1c, 0x8c, 0xf3, 0x30, 0xbb, 0x73, 0x10, 0x0e, 0xde, 0x9e,
- 0x1e, 0xa6, 0x82, 0xe0, 0x95, 0xba, 0xf9, 0x67, 0x30, 0x19, 0x6c, 0x0c, 0xc1, 0x9b, 0x91, 0xb6,
- 0x2f, 0xae, 0x90, 0xb5, 0xb1, 0x4d, 0x2b, 0xfd, 0x5e, 0x7e, 0x40, 0x49, 0xb2, 0x74, 0x79, 0xdb,
- 0x14, 0xaf, 0x06, 0xbf, 0xe7, 0x7d, 0x9e, 0xe6, 0xc9, 0x1b, 0x46, 0xc6, 0x09, 0xd4, 0x69, 0x0c,
- 0xfb, 0x12, 0x0a, 0xf5, 0x1b, 0x8a, 0x22, 0x97, 0x39, 0x25, 0x22, 0x0a, 0x4f, 0x24, 0xb8, 0xa8,
- 0x67, 0x77, 0x66, 0xc8, 0x88, 0xaf, 0xff, 0x3e, 0x24, 0xa3, 0x85, 0x06, 0xf4, 0x03, 0x21, 0x5f,
- 0x99, 0x84, 0x75, 0xc6, 0xd3, 0x0c, 0xe8, 0x24, 0x14, 0xd1, 0xbe, 0x9e, 0x85, 0x67, 0xb4, 0x81,
- 0xdf, 0x15, 0x94, 0x32, 0xb8, 0xf4, 0x28, 0x82, 0x37, 0x37, 0xf7, 0xe8, 0x5b, 0x32, 0x52, 0x70,
- 0x99, 0xd1, 0xb1, 0x33, 0xb3, 0xcc, 0xac, 0x93, 0x76, 0xa8, 0x71, 0xbd, 0x27, 0x0f, 0x14, 0x58,
- 0xa5, 0xa5, 0xa4, 0x6e, 0xb6, 0x02, 0xd6, 0x39, 0xee, 0x71, 0xe3, 0x7d, 0x47, 0xee, 0xeb, 0x63,
- 0x54, 0x92, 0x3e, 0x77, 0x8f, 0x55, 0xb5, 0xce, 0x67, 0x5d, 0x8c, 0x8c, 0x0b, 0xe0, 0xc8, 0xb8,
- 0x00, 0xee, 0x33, 0x6a, 0x6c, 0x8c, 0x5f, 0xc8, 0x23, 0x45, 0x36, 0x10, 0xe7, 0x35, 0x14, 0x0d,
- 0x0d, 0x9c, 0x31, 0x0b, 0x6d, 0xc4, 0xc4, 0xab, 0x99, 0x9c, 0xd3, 0x6d, 0x7f, 0xce, 0x58, 0xc4,
- 0xf1, 0x6d, 0x1b, 0xe4, 0xbb, 0x6d, 0xab, 0xa0, 0x0a, 0x5b, 0xc0, 0xdd, 0xb7, 0xe0, 0xed, 0xae,
- 0x31, 0xaa, 0xf0, 0xe3, 0x90, 0x4a, 0xf8, 0x98, 0x24, 0xa8, 0x82, 0x85, 0xbe, 0x0a, 0x67, 0xad,
- 0x9f, 0xa3, 0x2e, 0xb2, 0x97, 0xe3, 0xdc, 0xe6, 0xc4, 0xab, 0x99, 0x9c, 0x84, 0x5c, 0xb6, 0xf8,
- 0x5b, 0x5e, 0x95, 0x70, 0xc8, 0x79, 0xa2, 0x9f, 0xc3, 0xab, 0xae, 0x0b, 0xc9, 0x36, 0xfb, 0xe6,
- 0x3f, 0x53, 0xe6, 0x2b, 0x3b, 0xf2, 0xb4, 0x1d, 0x98, 0xb3, 0xc2, 0x7c, 0xe0, 0x65, 0xd7, 0x6a,
- 0x15, 0x9b, 0x7d, 0x3d, 0x3c, 0x60, 0x62, 0x57, 0xe4, 0x49, 0xab, 0x7d, 0x67, 0x32, 0x3e, 0xd0,
- 0xab, 0xae, 0x45, 0x63, 0x1b, 0x18, 0x0c, 0xa8, 0x26, 0x6d, 0x49, 0x1e, 0xdb, 0xc7, 0x52, 0x24,
- 0x6a, 0x37, 0xd3, 0xce, 0x13, 0xd2, 0xd4, 0x66, 0xbd, 0xf0, 0x8b, 0xe8, 0x60, 0x86, 0xeb, 0xb2,
- 0x57, 0xbd, 0x71, 0xb7, 0x69, 0x30, 0xa0, 0xa2, 0xb4, 0x79, 0x7e, 0x3c, 0xb2, 0x2c, 0xd9, 0x95,
- 0x80, 0xd2, 0xce, 0xd8, 0x97, 0xe6, 0xaa, 0xa8, 0xa6, 0xee, 0xbf, 0x6d, 0xb2, 0x18, 0xd5, 0x6c,
- 0xa9, 0xaf, 0xa6, 0x23, 0xa2, 0xb5, 0x9e, 0xbe, 0xb1, 0x81, 0xb2, 0xe2, 0x78, 0xad, 0x48, 0xf1,
- 0xad, 0xb5, 0x33, 0xe0, 0xeb, 0xab, 0x36, 0xe1, 0xe9, 0xeb, 0xac, 0x22, 0x18, 0x50, 0x4d, 0xda,
- 0x9a, 0x5c, 0x38, 0x82, 0x5e, 0x86, 0xe7, 0x04, 0xee, 0x36, 0xa6, 0x43, 0xb2, 0x0e, 0xfc, 0x74,
- 0xfd, 0x73, 0x2a, 0x8a, 0x5c, 0x40, 0x21, 0x9b, 0x5b, 0x26, 0x04, 0x07, 0x09, 0xb7, 0xbf, 0x98,
- 0x84, 0x3f, 0xac, 0xb9, 0x13, 0x51, 0x34, 0xd2, 0x7f, 0xee, 0x6f, 0xfe, 0x05, 0x00, 0x00, 0xff,
- 0xff, 0xb1, 0x22, 0x30, 0x6e, 0x11, 0x06, 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 {
- // 门禁在线
- GateOnline(ctx context.Context, in *v1.GateOnlineRequest, opts ...grpc.CallOption) (*v1.GateOnlineReply, error)
- // 门禁入库
- GateIn(ctx context.Context, in *v1.GateInRequest, opts ...grpc.CallOption) (*v1.GateInReply, error)
- // 门禁列表
- GateList(ctx context.Context, in *v1.GateListRequest, opts ...grpc.CallOption) (*v1.GateListReply, error)
- // 门禁出库
- GateOut(ctx context.Context, in *v1.GateOutRequest, opts ...grpc.CallOption) (*v1.GateOutReply, error)
- // 删除门禁
- GateDel(ctx context.Context, in *v1.GateDelRequest, opts ...grpc.CallOption) (*v1.GateDelReply, error)
- // 门禁回收
- GateRecovery(ctx context.Context, in *v1.GateRecoveryRequest, opts ...grpc.CallOption) (*v1.GateRecoveryReply, error)
- // 门禁起停用
- GateEnable(ctx context.Context, in *v1.GateEnableRequest, opts ...grpc.CallOption) (*v1.GateEnableReply, error)
- // 设置门禁位置和进场出场
- GateSet(ctx context.Context, in *v1.GateSetRequest, opts ...grpc.CallOption) (*v1.GateSetReply, error)
- // 添加门禁白名单
- GateWhiteAdd(ctx context.Context, in *v1.GateWhiteAddRequest, opts ...grpc.CallOption) (*v1.GateWhiteAddReply, error)
- // 删除门禁白名单
- GateWhiteDel(ctx context.Context, in *v1.GateWhiteDelRequest, opts ...grpc.CallOption) (*v1.GateWhiteDelReply, error)
- // 门禁白名单用户列表
- GateWhiteHouseholdList(ctx context.Context, in *v1.GateWhiteHouseholdListRequest, opts ...grpc.CallOption) (*v1.GateWhiteHouseholdListReply, error)
- // 门禁白名单ic卡列表
- GateWhiteCardList(ctx context.Context, in *v1.GateWhiteCardListRequest, opts ...grpc.CallOption) (*v1.GateWhiteCardListReply, error)
- // 门禁白名单匹配
- GateWhiteMatch(ctx context.Context, in *v1.GateWhiteMatchRequest, opts ...grpc.CallOption) (*v1.GateWhiteMatchReply, error)
- // 门禁进出记录添加
- GateRecordAdd(ctx context.Context, in *v1.GateRecordAddRequest, opts ...grpc.CallOption) (*v1.GateRecordAddReply, error)
- // 门禁进出记录列表
- GateRecordList(ctx context.Context, in *v1.GateRecordListRequest, opts ...grpc.CallOption) (*v1.GateRecordListReply, error)
- // 获取门禁远程命令
- GateCommandUse(ctx context.Context, in *v1.GateCommandUseRequest, opts ...grpc.CallOption) (*v1.GateCommandUseReply, error)
- // 门禁白名单手动同步
- GateWhiteSync(ctx context.Context, in *v1.GateWhiteSyncRequest, opts ...grpc.CallOption) (*v1.GateWhiteSyncReply, error)
- // 门禁远程命令结果
- GateCommandResult(ctx context.Context, in *v1.GateCommandResultRequest, opts ...grpc.CallOption) (*v1.GateCommandResultReply, error)
- // 门禁命令添加
- GateCommandAdd(ctx context.Context, in *v1.GateCommandAddRequest, opts ...grpc.CallOption) (*v1.GateCommandAddReply, error)
- // 门禁命令记录
- GateCommandList(ctx context.Context, in *v1.GateCommandListRequest, opts ...grpc.CallOption) (*v1.GateCommandListReply, error)
- }
- type deviceClient struct {
- cc grpc.ClientConnInterface
- }
- func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient {
- return &deviceClient{cc}
- }
- func (c *deviceClient) GateOnline(ctx context.Context, in *v1.GateOnlineRequest, opts ...grpc.CallOption) (*v1.GateOnlineReply, error) {
- out := new(v1.GateOnlineReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateOnline", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateIn(ctx context.Context, in *v1.GateInRequest, opts ...grpc.CallOption) (*v1.GateInReply, error) {
- out := new(v1.GateInReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateIn", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateList(ctx context.Context, in *v1.GateListRequest, opts ...grpc.CallOption) (*v1.GateListReply, error) {
- out := new(v1.GateListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateOut(ctx context.Context, in *v1.GateOutRequest, opts ...grpc.CallOption) (*v1.GateOutReply, error) {
- out := new(v1.GateOutReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateOut", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateDel(ctx context.Context, in *v1.GateDelRequest, opts ...grpc.CallOption) (*v1.GateDelReply, error) {
- out := new(v1.GateDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateRecovery(ctx context.Context, in *v1.GateRecoveryRequest, opts ...grpc.CallOption) (*v1.GateRecoveryReply, error) {
- out := new(v1.GateRecoveryReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecovery", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateEnable(ctx context.Context, in *v1.GateEnableRequest, opts ...grpc.CallOption) (*v1.GateEnableReply, error) {
- out := new(v1.GateEnableReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateEnable", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateSet(ctx context.Context, in *v1.GateSetRequest, opts ...grpc.CallOption) (*v1.GateSetReply, error) {
- out := new(v1.GateSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateWhiteAdd(ctx context.Context, in *v1.GateWhiteAddRequest, opts ...grpc.CallOption) (*v1.GateWhiteAddReply, error) {
- out := new(v1.GateWhiteAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateWhiteAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateWhiteDel(ctx context.Context, in *v1.GateWhiteDelRequest, opts ...grpc.CallOption) (*v1.GateWhiteDelReply, error) {
- out := new(v1.GateWhiteDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateWhiteDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateWhiteHouseholdList(ctx context.Context, in *v1.GateWhiteHouseholdListRequest, opts ...grpc.CallOption) (*v1.GateWhiteHouseholdListReply, error) {
- out := new(v1.GateWhiteHouseholdListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateWhiteHouseholdList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateWhiteCardList(ctx context.Context, in *v1.GateWhiteCardListRequest, opts ...grpc.CallOption) (*v1.GateWhiteCardListReply, error) {
- out := new(v1.GateWhiteCardListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateWhiteCardList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateWhiteMatch(ctx context.Context, in *v1.GateWhiteMatchRequest, opts ...grpc.CallOption) (*v1.GateWhiteMatchReply, error) {
- out := new(v1.GateWhiteMatchReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateWhiteMatch", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateRecordAdd(ctx context.Context, in *v1.GateRecordAddRequest, opts ...grpc.CallOption) (*v1.GateRecordAddReply, error) {
- out := new(v1.GateRecordAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecordAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateRecordList(ctx context.Context, in *v1.GateRecordListRequest, opts ...grpc.CallOption) (*v1.GateRecordListReply, error) {
- out := new(v1.GateRecordListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateRecordList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCommandUse(ctx context.Context, in *v1.GateCommandUseRequest, opts ...grpc.CallOption) (*v1.GateCommandUseReply, error) {
- out := new(v1.GateCommandUseReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandUse", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateWhiteSync(ctx context.Context, in *v1.GateWhiteSyncRequest, opts ...grpc.CallOption) (*v1.GateWhiteSyncReply, error) {
- out := new(v1.GateWhiteSyncReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateWhiteSync", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCommandResult(ctx context.Context, in *v1.GateCommandResultRequest, opts ...grpc.CallOption) (*v1.GateCommandResultReply, error) {
- out := new(v1.GateCommandResultReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandResult", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCommandAdd(ctx context.Context, in *v1.GateCommandAddRequest, opts ...grpc.CallOption) (*v1.GateCommandAddReply, error) {
- out := new(v1.GateCommandAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *deviceClient) GateCommandList(ctx context.Context, in *v1.GateCommandListRequest, opts ...grpc.CallOption) (*v1.GateCommandListReply, error) {
- out := new(v1.GateCommandListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Device/GateCommandList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // DeviceServer is the server API for Device service.
- type DeviceServer interface {
- // 门禁在线
- GateOnline(context.Context, *v1.GateOnlineRequest) (*v1.GateOnlineReply, error)
- // 门禁入库
- GateIn(context.Context, *v1.GateInRequest) (*v1.GateInReply, error)
- // 门禁列表
- GateList(context.Context, *v1.GateListRequest) (*v1.GateListReply, error)
- // 门禁出库
- GateOut(context.Context, *v1.GateOutRequest) (*v1.GateOutReply, error)
- // 删除门禁
- GateDel(context.Context, *v1.GateDelRequest) (*v1.GateDelReply, error)
- // 门禁回收
- GateRecovery(context.Context, *v1.GateRecoveryRequest) (*v1.GateRecoveryReply, error)
- // 门禁起停用
- GateEnable(context.Context, *v1.GateEnableRequest) (*v1.GateEnableReply, error)
- // 设置门禁位置和进场出场
- GateSet(context.Context, *v1.GateSetRequest) (*v1.GateSetReply, error)
- // 添加门禁白名单
- GateWhiteAdd(context.Context, *v1.GateWhiteAddRequest) (*v1.GateWhiteAddReply, error)
- // 删除门禁白名单
- GateWhiteDel(context.Context, *v1.GateWhiteDelRequest) (*v1.GateWhiteDelReply, error)
- // 门禁白名单用户列表
- GateWhiteHouseholdList(context.Context, *v1.GateWhiteHouseholdListRequest) (*v1.GateWhiteHouseholdListReply, error)
- // 门禁白名单ic卡列表
- GateWhiteCardList(context.Context, *v1.GateWhiteCardListRequest) (*v1.GateWhiteCardListReply, error)
- // 门禁白名单匹配
- GateWhiteMatch(context.Context, *v1.GateWhiteMatchRequest) (*v1.GateWhiteMatchReply, error)
- // 门禁进出记录添加
- GateRecordAdd(context.Context, *v1.GateRecordAddRequest) (*v1.GateRecordAddReply, error)
- // 门禁进出记录列表
- GateRecordList(context.Context, *v1.GateRecordListRequest) (*v1.GateRecordListReply, error)
- // 获取门禁远程命令
- GateCommandUse(context.Context, *v1.GateCommandUseRequest) (*v1.GateCommandUseReply, error)
- // 门禁白名单手动同步
- GateWhiteSync(context.Context, *v1.GateWhiteSyncRequest) (*v1.GateWhiteSyncReply, error)
- // 门禁远程命令结果
- GateCommandResult(context.Context, *v1.GateCommandResultRequest) (*v1.GateCommandResultReply, error)
- // 门禁命令添加
- GateCommandAdd(context.Context, *v1.GateCommandAddRequest) (*v1.GateCommandAddReply, error)
- // 门禁命令记录
- GateCommandList(context.Context, *v1.GateCommandListRequest) (*v1.GateCommandListReply, error)
- }
- // UnimplementedDeviceServer can be embedded to have forward compatible implementations.
- type UnimplementedDeviceServer struct {
- }
- func (*UnimplementedDeviceServer) GateOnline(ctx context.Context, req *v1.GateOnlineRequest) (*v1.GateOnlineReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateOnline not implemented")
- }
- func (*UnimplementedDeviceServer) GateIn(ctx context.Context, req *v1.GateInRequest) (*v1.GateInReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateIn not implemented")
- }
- func (*UnimplementedDeviceServer) GateList(ctx context.Context, req *v1.GateListRequest) (*v1.GateListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateList not implemented")
- }
- func (*UnimplementedDeviceServer) GateOut(ctx context.Context, req *v1.GateOutRequest) (*v1.GateOutReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateOut not implemented")
- }
- func (*UnimplementedDeviceServer) GateDel(ctx context.Context, req *v1.GateDelRequest) (*v1.GateDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateDel not implemented")
- }
- func (*UnimplementedDeviceServer) GateRecovery(ctx context.Context, req *v1.GateRecoveryRequest) (*v1.GateRecoveryReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateRecovery not implemented")
- }
- func (*UnimplementedDeviceServer) GateEnable(ctx context.Context, req *v1.GateEnableRequest) (*v1.GateEnableReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateEnable not implemented")
- }
- func (*UnimplementedDeviceServer) GateSet(ctx context.Context, req *v1.GateSetRequest) (*v1.GateSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateSet not implemented")
- }
- func (*UnimplementedDeviceServer) GateWhiteAdd(ctx context.Context, req *v1.GateWhiteAddRequest) (*v1.GateWhiteAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateWhiteAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateWhiteDel(ctx context.Context, req *v1.GateWhiteDelRequest) (*v1.GateWhiteDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateWhiteDel not implemented")
- }
- func (*UnimplementedDeviceServer) GateWhiteHouseholdList(ctx context.Context, req *v1.GateWhiteHouseholdListRequest) (*v1.GateWhiteHouseholdListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateWhiteHouseholdList not implemented")
- }
- func (*UnimplementedDeviceServer) GateWhiteCardList(ctx context.Context, req *v1.GateWhiteCardListRequest) (*v1.GateWhiteCardListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateWhiteCardList not implemented")
- }
- func (*UnimplementedDeviceServer) GateWhiteMatch(ctx context.Context, req *v1.GateWhiteMatchRequest) (*v1.GateWhiteMatchReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateWhiteMatch not implemented")
- }
- func (*UnimplementedDeviceServer) GateRecordAdd(ctx context.Context, req *v1.GateRecordAddRequest) (*v1.GateRecordAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateRecordAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateRecordList(ctx context.Context, req *v1.GateRecordListRequest) (*v1.GateRecordListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateRecordList not implemented")
- }
- func (*UnimplementedDeviceServer) GateCommandUse(ctx context.Context, req *v1.GateCommandUseRequest) (*v1.GateCommandUseReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCommandUse not implemented")
- }
- func (*UnimplementedDeviceServer) GateWhiteSync(ctx context.Context, req *v1.GateWhiteSyncRequest) (*v1.GateWhiteSyncReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateWhiteSync not implemented")
- }
- func (*UnimplementedDeviceServer) GateCommandResult(ctx context.Context, req *v1.GateCommandResultRequest) (*v1.GateCommandResultReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCommandResult not implemented")
- }
- func (*UnimplementedDeviceServer) GateCommandAdd(ctx context.Context, req *v1.GateCommandAddRequest) (*v1.GateCommandAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCommandAdd not implemented")
- }
- func (*UnimplementedDeviceServer) GateCommandList(ctx context.Context, req *v1.GateCommandListRequest) (*v1.GateCommandListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GateCommandList not implemented")
- }
- func RegisterDeviceServer(s *grpc.Server, srv DeviceServer) {
- s.RegisterService(&_Device_serviceDesc, srv)
- }
- func _Device_GateOnline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateOnlineRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateOnline(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateOnline",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateOnline(ctx, req.(*v1.GateOnlineRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateInRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateIn(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateIn",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateIn(ctx, req.(*v1.GateInRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateList(ctx, req.(*v1.GateListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateOutRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateOut(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateOut",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateOut(ctx, req.(*v1.GateOutRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateDel(ctx, req.(*v1.GateDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateRecovery_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateRecoveryRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateRecovery(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateRecovery",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateRecovery(ctx, req.(*v1.GateRecoveryRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateEnableRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateEnable(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateEnable",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateEnable(ctx, req.(*v1.GateEnableRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateSet(ctx, req.(*v1.GateSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateWhiteAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateWhiteAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateWhiteAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateWhiteAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateWhiteAdd(ctx, req.(*v1.GateWhiteAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateWhiteDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateWhiteDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateWhiteDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateWhiteDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateWhiteDel(ctx, req.(*v1.GateWhiteDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateWhiteHouseholdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateWhiteHouseholdListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateWhiteHouseholdList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateWhiteHouseholdList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateWhiteHouseholdList(ctx, req.(*v1.GateWhiteHouseholdListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateWhiteCardList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateWhiteCardListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateWhiteCardList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateWhiteCardList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateWhiteCardList(ctx, req.(*v1.GateWhiteCardListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateWhiteMatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateWhiteMatchRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateWhiteMatch(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateWhiteMatch",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateWhiteMatch(ctx, req.(*v1.GateWhiteMatchRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateRecordAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateRecordAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateRecordAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateRecordAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateRecordAdd(ctx, req.(*v1.GateRecordAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateRecordListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateRecordList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateRecordList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateRecordList(ctx, req.(*v1.GateRecordListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCommandUse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCommandUseRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCommandUse(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCommandUse",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCommandUse(ctx, req.(*v1.GateCommandUseRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateWhiteSync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateWhiteSyncRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateWhiteSync(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateWhiteSync",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateWhiteSync(ctx, req.(*v1.GateWhiteSyncRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCommandResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCommandResultRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCommandResult(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCommandResult",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCommandResult(ctx, req.(*v1.GateCommandResultRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCommandAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCommandAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCommandAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCommandAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCommandAdd(ctx, req.(*v1.GateCommandAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Device_GateCommandList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GateCommandListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(DeviceServer).GateCommandList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Device/GateCommandList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(DeviceServer).GateCommandList(ctx, req.(*v1.GateCommandListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Device_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Device",
- HandlerType: (*DeviceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "GateOnline",
- Handler: _Device_GateOnline_Handler,
- },
- {
- MethodName: "GateIn",
- Handler: _Device_GateIn_Handler,
- },
- {
- MethodName: "GateList",
- Handler: _Device_GateList_Handler,
- },
- {
- MethodName: "GateOut",
- Handler: _Device_GateOut_Handler,
- },
- {
- MethodName: "GateDel",
- Handler: _Device_GateDel_Handler,
- },
- {
- MethodName: "GateRecovery",
- Handler: _Device_GateRecovery_Handler,
- },
- {
- MethodName: "GateEnable",
- Handler: _Device_GateEnable_Handler,
- },
- {
- MethodName: "GateSet",
- Handler: _Device_GateSet_Handler,
- },
- {
- MethodName: "GateWhiteAdd",
- Handler: _Device_GateWhiteAdd_Handler,
- },
- {
- MethodName: "GateWhiteDel",
- Handler: _Device_GateWhiteDel_Handler,
- },
- {
- MethodName: "GateWhiteHouseholdList",
- Handler: _Device_GateWhiteHouseholdList_Handler,
- },
- {
- MethodName: "GateWhiteCardList",
- Handler: _Device_GateWhiteCardList_Handler,
- },
- {
- MethodName: "GateWhiteMatch",
- Handler: _Device_GateWhiteMatch_Handler,
- },
- {
- MethodName: "GateRecordAdd",
- Handler: _Device_GateRecordAdd_Handler,
- },
- {
- MethodName: "GateRecordList",
- Handler: _Device_GateRecordList_Handler,
- },
- {
- MethodName: "GateCommandUse",
- Handler: _Device_GateCommandUse_Handler,
- },
- {
- MethodName: "GateWhiteSync",
- Handler: _Device_GateWhiteSync_Handler,
- },
- {
- MethodName: "GateCommandResult",
- Handler: _Device_GateCommandResult_Handler,
- },
- {
- MethodName: "GateCommandAdd",
- Handler: _Device_GateCommandAdd_Handler,
- },
- {
- MethodName: "GateCommandList",
- Handler: _Device_GateCommandList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "device_service.proto",
- }
|