From 262d15a6daa0dad68de1685396d860e76f984bb7 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期一, 17 六月 2019 19:25:08 +0800 Subject: [PATCH] fix CameraTask --- protomsg.proto | 4 protomsg.pb.go | 10683 ++-------------------------------------------------------- 2 files changed, 488 insertions(+), 10,199 deletions(-) diff --git a/protomsg.pb.go b/protomsg.pb.go index 761b619..79f547c 100644 --- a/protomsg.pb.go +++ b/protomsg.pb.go @@ -1,13 +1,11 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: protomsg.proto package protomsg import ( - encoding_binary "encoding/binary" fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" + proto "github.com/golang/protobuf/proto" math "math" ) @@ -20,7 +18,7 @@ // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package //TableChanged enum type TableChanged int32 @@ -92,9 +90,12 @@ } type TaskLabel struct { - Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"` - Sdkids []string `protobuf:"bytes,2,rep,name=sdkids,proto3" json:"sdkids,omitempty"` - Index int32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` + Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"` + Sdkids []string `protobuf:"bytes,2,rep,name=sdkids,proto3" json:"sdkids,omitempty"` + Index int32 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TaskLabel) Reset() { *m = TaskLabel{} } @@ -103,26 +104,18 @@ func (*TaskLabel) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{0} } + func (m *TaskLabel) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_TaskLabel.Unmarshal(m, b) } func (m *TaskLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskLabel.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_TaskLabel.Marshal(b, m, deterministic) } func (m *TaskLabel) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskLabel.Merge(m, src) } func (m *TaskLabel) XXX_Size() int { - return m.Size() + return xxx_messageInfo_TaskLabel.Size(m) } func (m *TaskLabel) XXX_DiscardUnknown() { xxx_messageInfo_TaskLabel.DiscardUnknown(m) @@ -153,11 +146,14 @@ //SdkMessage struct test type SdkMessage struct { - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - Tasklab *TaskLabel `protobuf:"bytes,2,opt,name=tasklab,proto3" json:"tasklab,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` - Personaction *Personaction `protobuf:"bytes,4,opt,name=personaction,proto3" json:"personaction,omitempty"` - Vedioperson *Vediopersons `protobuf:"bytes,5,opt,name=vedioperson,proto3" json:"vedioperson,omitempty"` + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + Tasklab *TaskLabel `protobuf:"bytes,2,opt,name=tasklab,proto3" json:"tasklab,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + Personaction *Personaction `protobuf:"bytes,4,opt,name=personaction,proto3" json:"personaction,omitempty"` + Vedioperson *Vediopersons `protobuf:"bytes,5,opt,name=vedioperson,proto3" json:"vedioperson,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkMessage) Reset() { *m = SdkMessage{} } @@ -166,26 +162,18 @@ func (*SdkMessage) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{1} } + func (m *SdkMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_SdkMessage.Unmarshal(m, b) } func (m *SdkMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SdkMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_SdkMessage.Marshal(b, m, deterministic) } func (m *SdkMessage) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkMessage.Merge(m, src) } func (m *SdkMessage) XXX_Size() int { - return m.Size() + return xxx_messageInfo_SdkMessage.Size(m) } func (m *SdkMessage) XXX_DiscardUnknown() { xxx_messageInfo_SdkMessage.DiscardUnknown(m) @@ -229,35 +217,38 @@ } type Personaction struct { - ImgKey string `protobuf:"bytes,1,opt,name=imgKey,proto3" json:"imgKey,omitempty"` - VideoReqNum string `protobuf:"bytes,2,opt,name=videoReqNum,proto3" json:"videoReqNum,omitempty"` - SdkType string `protobuf:"bytes,3,opt,name=sdkType,proto3" json:"sdkType,omitempty"` - PicName string `protobuf:"bytes,4,opt,name=picName,proto3" json:"picName,omitempty"` - Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` - ClusterId string `protobuf:"bytes,6,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` - PersonPicUrl string `protobuf:"bytes,7,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` - ChannlId string `protobuf:"bytes,8,opt,name=channlId,proto3" json:"channlId,omitempty"` - LikeDate string `protobuf:"bytes,9,opt,name=likeDate,proto3" json:"likeDate,omitempty"` - PicAddress string `protobuf:"bytes,10,opt,name=picAddress,proto3" json:"picAddress,omitempty"` - PicMaxUrl string `protobuf:"bytes,11,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` - PicDate string `protobuf:"bytes,12,opt,name=picDate,proto3" json:"picDate,omitempty"` - PicLocalUrl string `protobuf:"bytes,13,opt,name=picLocalUrl,proto3" json:"picLocalUrl,omitempty"` - IsDelete string `protobuf:"bytes,14,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - LikePer string `protobuf:"bytes,15,opt,name=likePer,proto3" json:"likePer,omitempty"` - BaseName string `protobuf:"bytes,16,opt,name=baseName,proto3" json:"baseName,omitempty"` - VideoNum string `protobuf:"bytes,17,opt,name=videoNum,proto3" json:"videoNum,omitempty"` - Collection string `protobuf:"bytes,18,opt,name=collection,proto3" json:"collection,omitempty"` - PicSmUrl string `protobuf:"bytes,19,opt,name=picSmUrl,proto3" json:"picSmUrl,omitempty"` - Indeviceid string `protobuf:"bytes,20,opt,name=indeviceid,proto3" json:"indeviceid,omitempty"` - Idcard string `protobuf:"bytes,21,opt,name=idcard,proto3" json:"idcard,omitempty"` - AckAlarm string `protobuf:"bytes,22,opt,name=ack_alarm,json=ackAlarm,proto3" json:"ack_alarm,omitempty"` - PersonId string `protobuf:"bytes,23,opt,name=personId,proto3" json:"personId,omitempty"` - Id string `protobuf:"bytes,24,opt,name=id,proto3" json:"id,omitempty"` - Indevicename string `protobuf:"bytes,25,opt,name=indevicename,proto3" json:"indevicename,omitempty"` - FaceFeature string `protobuf:"bytes,26,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` - PersonIsHub string `protobuf:"bytes,27,opt,name=personIsHub,proto3" json:"personIsHub,omitempty"` - VideoIp string `protobuf:"bytes,28,opt,name=videoIp,proto3" json:"videoIp,omitempty"` - TaskId string `protobuf:"bytes,29,opt,name=taskId,proto3" json:"taskId,omitempty"` + ImgKey string `protobuf:"bytes,1,opt,name=imgKey,proto3" json:"imgKey,omitempty"` + VideoReqNum string `protobuf:"bytes,2,opt,name=videoReqNum,proto3" json:"videoReqNum,omitempty"` + SdkType string `protobuf:"bytes,3,opt,name=sdkType,proto3" json:"sdkType,omitempty"` + PicName string `protobuf:"bytes,4,opt,name=picName,proto3" json:"picName,omitempty"` + Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` + ClusterId string `protobuf:"bytes,6,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` + PersonPicUrl string `protobuf:"bytes,7,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` + ChannlId string `protobuf:"bytes,8,opt,name=channlId,proto3" json:"channlId,omitempty"` + LikeDate string `protobuf:"bytes,9,opt,name=likeDate,proto3" json:"likeDate,omitempty"` + PicAddress string `protobuf:"bytes,10,opt,name=picAddress,proto3" json:"picAddress,omitempty"` + PicMaxUrl string `protobuf:"bytes,11,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` + PicDate string `protobuf:"bytes,12,opt,name=picDate,proto3" json:"picDate,omitempty"` + PicLocalUrl string `protobuf:"bytes,13,opt,name=picLocalUrl,proto3" json:"picLocalUrl,omitempty"` + IsDelete string `protobuf:"bytes,14,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + LikePer string `protobuf:"bytes,15,opt,name=likePer,proto3" json:"likePer,omitempty"` + BaseName string `protobuf:"bytes,16,opt,name=baseName,proto3" json:"baseName,omitempty"` + VideoNum string `protobuf:"bytes,17,opt,name=videoNum,proto3" json:"videoNum,omitempty"` + Collection string `protobuf:"bytes,18,opt,name=collection,proto3" json:"collection,omitempty"` + PicSmUrl string `protobuf:"bytes,19,opt,name=picSmUrl,proto3" json:"picSmUrl,omitempty"` + Indeviceid string `protobuf:"bytes,20,opt,name=indeviceid,proto3" json:"indeviceid,omitempty"` + Idcard string `protobuf:"bytes,21,opt,name=idcard,proto3" json:"idcard,omitempty"` + AckAlarm string `protobuf:"bytes,22,opt,name=ack_alarm,json=ackAlarm,proto3" json:"ack_alarm,omitempty"` + PersonId string `protobuf:"bytes,23,opt,name=personId,proto3" json:"personId,omitempty"` + Id string `protobuf:"bytes,24,opt,name=id,proto3" json:"id,omitempty"` + Indevicename string `protobuf:"bytes,25,opt,name=indevicename,proto3" json:"indevicename,omitempty"` + FaceFeature string `protobuf:"bytes,26,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` + PersonIsHub string `protobuf:"bytes,27,opt,name=personIsHub,proto3" json:"personIsHub,omitempty"` + VideoIp string `protobuf:"bytes,28,opt,name=videoIp,proto3" json:"videoIp,omitempty"` + TaskId string `protobuf:"bytes,29,opt,name=taskId,proto3" json:"taskId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Personaction) Reset() { *m = Personaction{} } @@ -266,26 +257,18 @@ func (*Personaction) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{2} } + func (m *Personaction) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Personaction.Unmarshal(m, b) } func (m *Personaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Personaction.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Personaction.Marshal(b, m, deterministic) } func (m *Personaction) XXX_Merge(src proto.Message) { xxx_messageInfo_Personaction.Merge(m, src) } func (m *Personaction) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Personaction.Size(m) } func (m *Personaction) XXX_DiscardUnknown() { xxx_messageInfo_Personaction.DiscardUnknown(m) @@ -497,17 +480,20 @@ } type PersonBaseInfo struct { - PersonNamae string `protobuf:"bytes,1,opt,name=personNamae,proto3" json:"personNamae,omitempty"` - IDCard string `protobuf:"bytes,2,opt,name=iDCard,proto3" json:"iDCard,omitempty"` - Gender string `protobuf:"bytes,3,opt,name=gender,proto3" json:"gender,omitempty"` - PersonPicUrl string `protobuf:"bytes,4,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` - LikePer string `protobuf:"bytes,5,opt,name=likePer,proto3" json:"likePer,omitempty"` - TableId string `protobuf:"bytes,6,opt,name=tableId,proto3" json:"tableId,omitempty"` - MonitorLevel string `protobuf:"bytes,7,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` - PersonId string `protobuf:"bytes,8,opt,name=personId,proto3" json:"personId,omitempty"` - PhoneNum string `protobuf:"bytes,9,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` - Content string `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"` - TableName string `protobuf:"bytes,11,opt,name=tableName,proto3" json:"tableName,omitempty"` + PersonNamae string `protobuf:"bytes,1,opt,name=personNamae,proto3" json:"personNamae,omitempty"` + IDCard string `protobuf:"bytes,2,opt,name=iDCard,proto3" json:"iDCard,omitempty"` + Gender string `protobuf:"bytes,3,opt,name=gender,proto3" json:"gender,omitempty"` + PersonPicUrl string `protobuf:"bytes,4,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` + LikePer string `protobuf:"bytes,5,opt,name=likePer,proto3" json:"likePer,omitempty"` + TableId string `protobuf:"bytes,6,opt,name=tableId,proto3" json:"tableId,omitempty"` + MonitorLevel string `protobuf:"bytes,7,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` + PersonId string `protobuf:"bytes,8,opt,name=personId,proto3" json:"personId,omitempty"` + PhoneNum string `protobuf:"bytes,9,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` + Content string `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"` + TableName string `protobuf:"bytes,11,opt,name=tableName,proto3" json:"tableName,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *PersonBaseInfo) Reset() { *m = PersonBaseInfo{} } @@ -516,26 +502,18 @@ func (*PersonBaseInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{3} } + func (m *PersonBaseInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_PersonBaseInfo.Unmarshal(m, b) } func (m *PersonBaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PersonBaseInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_PersonBaseInfo.Marshal(b, m, deterministic) } func (m *PersonBaseInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_PersonBaseInfo.Merge(m, src) } func (m *PersonBaseInfo) XXX_Size() int { - return m.Size() + return xxx_messageInfo_PersonBaseInfo.Size(m) } func (m *PersonBaseInfo) XXX_DiscardUnknown() { xxx_messageInfo_PersonBaseInfo.DiscardUnknown(m) @@ -621,42 +599,45 @@ } type Vediopersons struct { - ID string `protobuf:"bytes,1,opt,name=iD,proto3" json:"iD,omitempty"` - VideoReqNum string `protobuf:"bytes,2,opt,name=videoReqNum,proto3" json:"videoReqNum,omitempty"` - SdkType string `protobuf:"bytes,3,opt,name=sdkType,proto3" json:"sdkType,omitempty"` - Gender string `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"` - PicName string `protobuf:"bytes,5,opt,name=picName,proto3" json:"picName,omitempty"` - Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` - PersonPicUrl string `protobuf:"bytes,7,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` - ChannlId string `protobuf:"bytes,8,opt,name=channlId,proto3" json:"channlId,omitempty"` - LikeDate string `protobuf:"bytes,9,opt,name=likeDate,proto3" json:"likeDate,omitempty"` - Race string `protobuf:"bytes,10,opt,name=race,proto3" json:"race,omitempty"` - PciAddress string `protobuf:"bytes,11,opt,name=pciAddress,proto3" json:"pciAddress,omitempty"` - PicMaxUrl string `protobuf:"bytes,12,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` - Age string `protobuf:"bytes,13,opt,name=age,proto3" json:"age,omitempty"` - PicDate string `protobuf:"bytes,14,opt,name=picDate,proto3" json:"picDate,omitempty"` - PicLocalUrl string `protobuf:"bytes,15,opt,name=picLocalUrl,proto3" json:"picLocalUrl,omitempty"` - IsDelete string `protobuf:"bytes,16,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - TableName []string `protobuf:"bytes,17,rep,name=tableName,proto3" json:"tableName,omitempty"` - VideoNum string `protobuf:"bytes,18,opt,name=videoNum,proto3" json:"videoNum,omitempty"` - PicSmUrl string `protobuf:"bytes,19,opt,name=picSmUrl,proto3" json:"picSmUrl,omitempty"` - SimleLevel string `protobuf:"bytes,20,opt,name=simleLevel,proto3" json:"simleLevel,omitempty"` - IndeviceId string `protobuf:"bytes,21,opt,name=indeviceId,proto3" json:"indeviceId,omitempty"` - IDcard []string `protobuf:"bytes,22,rep,name=iDcard,proto3" json:"iDcard,omitempty"` - PersonId []string `protobuf:"bytes,23,rep,name=personId,proto3" json:"personId,omitempty"` - BeautyLevel string `protobuf:"bytes,24,opt,name=beautyLevel,proto3" json:"beautyLevel,omitempty"` - IndeviceName string `protobuf:"bytes,25,opt,name=indeviceName,proto3" json:"indeviceName,omitempty"` - FaceFeature string `protobuf:"bytes,26,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` - PersonIsHub string `protobuf:"bytes,27,opt,name=personIsHub,proto3" json:"personIsHub,omitempty"` - VideoIp string `protobuf:"bytes,28,opt,name=videoIp,proto3" json:"videoIp,omitempty"` - AckAlarm string `protobuf:"bytes,29,opt,name=ackAlarm,proto3" json:"ackAlarm,omitempty"` - ClusterId string `protobuf:"bytes,30,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - TaskId string `protobuf:"bytes,31,opt,name=taskId,proto3" json:"taskId,omitempty"` - TaskName string `protobuf:"bytes,32,opt,name=taskName,proto3" json:"taskName,omitempty"` - Baseinfo []*PersonBaseInfo `protobuf:"bytes,33,rep,name=baseinfo,proto3" json:"baseinfo,omitempty"` - Collection string `protobuf:"bytes,34,opt,name=collection,proto3" json:"collection,omitempty"` - AgeDescription string `protobuf:"bytes,35,opt,name=ageDescription,proto3" json:"ageDescription,omitempty"` - TableId []string `protobuf:"bytes,36,rep,name=tableId,proto3" json:"tableId,omitempty"` + ID string `protobuf:"bytes,1,opt,name=iD,proto3" json:"iD,omitempty"` + VideoReqNum string `protobuf:"bytes,2,opt,name=videoReqNum,proto3" json:"videoReqNum,omitempty"` + SdkType string `protobuf:"bytes,3,opt,name=sdkType,proto3" json:"sdkType,omitempty"` + Gender string `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"` + PicName string `protobuf:"bytes,5,opt,name=picName,proto3" json:"picName,omitempty"` + Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` + PersonPicUrl string `protobuf:"bytes,7,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` + ChannlId string `protobuf:"bytes,8,opt,name=channlId,proto3" json:"channlId,omitempty"` + LikeDate string `protobuf:"bytes,9,opt,name=likeDate,proto3" json:"likeDate,omitempty"` + Race string `protobuf:"bytes,10,opt,name=race,proto3" json:"race,omitempty"` + PciAddress string `protobuf:"bytes,11,opt,name=pciAddress,proto3" json:"pciAddress,omitempty"` + PicMaxUrl string `protobuf:"bytes,12,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` + Age string `protobuf:"bytes,13,opt,name=age,proto3" json:"age,omitempty"` + PicDate string `protobuf:"bytes,14,opt,name=picDate,proto3" json:"picDate,omitempty"` + PicLocalUrl string `protobuf:"bytes,15,opt,name=picLocalUrl,proto3" json:"picLocalUrl,omitempty"` + IsDelete string `protobuf:"bytes,16,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + TableName []string `protobuf:"bytes,17,rep,name=tableName,proto3" json:"tableName,omitempty"` + VideoNum string `protobuf:"bytes,18,opt,name=videoNum,proto3" json:"videoNum,omitempty"` + PicSmUrl string `protobuf:"bytes,19,opt,name=picSmUrl,proto3" json:"picSmUrl,omitempty"` + SimleLevel string `protobuf:"bytes,20,opt,name=simleLevel,proto3" json:"simleLevel,omitempty"` + IndeviceId string `protobuf:"bytes,21,opt,name=indeviceId,proto3" json:"indeviceId,omitempty"` + IDcard []string `protobuf:"bytes,22,rep,name=iDcard,proto3" json:"iDcard,omitempty"` + PersonId []string `protobuf:"bytes,23,rep,name=personId,proto3" json:"personId,omitempty"` + BeautyLevel string `protobuf:"bytes,24,opt,name=beautyLevel,proto3" json:"beautyLevel,omitempty"` + IndeviceName string `protobuf:"bytes,25,opt,name=indeviceName,proto3" json:"indeviceName,omitempty"` + FaceFeature string `protobuf:"bytes,26,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` + PersonIsHub string `protobuf:"bytes,27,opt,name=personIsHub,proto3" json:"personIsHub,omitempty"` + VideoIp string `protobuf:"bytes,28,opt,name=videoIp,proto3" json:"videoIp,omitempty"` + AckAlarm string `protobuf:"bytes,29,opt,name=ackAlarm,proto3" json:"ackAlarm,omitempty"` + ClusterId string `protobuf:"bytes,30,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + TaskId string `protobuf:"bytes,31,opt,name=taskId,proto3" json:"taskId,omitempty"` + TaskName string `protobuf:"bytes,32,opt,name=taskName,proto3" json:"taskName,omitempty"` + Baseinfo []*PersonBaseInfo `protobuf:"bytes,33,rep,name=baseinfo,proto3" json:"baseinfo,omitempty"` + Collection string `protobuf:"bytes,34,opt,name=collection,proto3" json:"collection,omitempty"` + AgeDescription string `protobuf:"bytes,35,opt,name=ageDescription,proto3" json:"ageDescription,omitempty"` + TableId []string `protobuf:"bytes,36,rep,name=tableId,proto3" json:"tableId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Vediopersons) Reset() { *m = Vediopersons{} } @@ -665,26 +646,18 @@ func (*Vediopersons) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{4} } + func (m *Vediopersons) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Vediopersons.Unmarshal(m, b) } func (m *Vediopersons) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Vediopersons.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Vediopersons.Marshal(b, m, deterministic) } func (m *Vediopersons) XXX_Merge(src proto.Message) { xxx_messageInfo_Vediopersons.Merge(m, src) } func (m *Vediopersons) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Vediopersons.Size(m) } func (m *Vediopersons) XXX_DiscardUnknown() { xxx_messageInfo_Vediopersons.DiscardUnknown(m) @@ -946,9 +919,12 @@ //Area缁撴瀯浣� type Area struct { - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Parentid int32 `protobuf:"varint,2,opt,name=parentid,proto3" json:"parentid,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Parentid int32 `protobuf:"varint,2,opt,name=parentid,proto3" json:"parentid,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Area) Reset() { *m = Area{} } @@ -957,26 +933,18 @@ func (*Area) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{5} } + func (m *Area) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Area.Unmarshal(m, b) } func (m *Area) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Area.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Area.Marshal(b, m, deterministic) } func (m *Area) XXX_Merge(src proto.Message) { xxx_messageInfo_Area.Merge(m, src) } func (m *Area) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Area.Size(m) } func (m *Area) XXX_DiscardUnknown() { xxx_messageInfo_Area.DiscardUnknown(m) @@ -1007,20 +975,23 @@ //Camera缁撴瀯浣� type Camera struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` - Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` - Areaid int32 `protobuf:"varint,5,opt,name=areaid,proto3" json:"areaid,omitempty"` - Longitude float32 `protobuf:"fixed32,6,opt,name=longitude,proto3" json:"longitude,omitempty"` - Latitude float32 `protobuf:"fixed32,7,opt,name=latitude,proto3" json:"latitude,omitempty"` - Rtsp string `protobuf:"bytes,8,opt,name=rtsp,proto3" json:"rtsp,omitempty"` - Ip string `protobuf:"bytes,9,opt,name=ip,proto3" json:"ip,omitempty"` - Port int32 `protobuf:"varint,10,opt,name=port,proto3" json:"port,omitempty"` - Username string `protobuf:"bytes,11,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,12,opt,name=password,proto3" json:"password,omitempty"` - Brand string `protobuf:"bytes,13,opt,name=brand,proto3" json:"brand,omitempty"` - Reserved string `protobuf:"bytes,14,opt,name=reserved,proto3" json:"reserved,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` + Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` + Areaid int32 `protobuf:"varint,5,opt,name=areaid,proto3" json:"areaid,omitempty"` + Longitude float32 `protobuf:"fixed32,6,opt,name=longitude,proto3" json:"longitude,omitempty"` + Latitude float32 `protobuf:"fixed32,7,opt,name=latitude,proto3" json:"latitude,omitempty"` + Rtsp string `protobuf:"bytes,8,opt,name=rtsp,proto3" json:"rtsp,omitempty"` + Ip string `protobuf:"bytes,9,opt,name=ip,proto3" json:"ip,omitempty"` + Port int32 `protobuf:"varint,10,opt,name=port,proto3" json:"port,omitempty"` + Username string `protobuf:"bytes,11,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,12,opt,name=password,proto3" json:"password,omitempty"` + Brand string `protobuf:"bytes,13,opt,name=brand,proto3" json:"brand,omitempty"` + Reserved string `protobuf:"bytes,14,opt,name=reserved,proto3" json:"reserved,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Camera) Reset() { *m = Camera{} } @@ -1029,26 +1000,18 @@ func (*Camera) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{6} } + func (m *Camera) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Camera.Unmarshal(m, b) } func (m *Camera) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Camera.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Camera.Marshal(b, m, deterministic) } func (m *Camera) XXX_Merge(src proto.Message) { xxx_messageInfo_Camera.Merge(m, src) } func (m *Camera) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Camera.Size(m) } func (m *Camera) XXX_DiscardUnknown() { xxx_messageInfo_Camera.DiscardUnknown(m) @@ -1156,8 +1119,11 @@ //鎽勫儚鏈虹殑浠诲姟淇℃伅 type CameraAndTaskInfo struct { - Camera *Camera `protobuf:"bytes,1,opt,name=camera,proto3" json:"camera,omitempty"` - Tasks []*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` + Camera *Camera `protobuf:"bytes,1,opt,name=camera,proto3" json:"camera,omitempty"` + Tasks []*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraAndTaskInfo) Reset() { *m = CameraAndTaskInfo{} } @@ -1166,26 +1132,18 @@ func (*CameraAndTaskInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{7} } + func (m *CameraAndTaskInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraAndTaskInfo.Unmarshal(m, b) } func (m *CameraAndTaskInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraAndTaskInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraAndTaskInfo.Marshal(b, m, deterministic) } func (m *CameraAndTaskInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraAndTaskInfo.Merge(m, src) } func (m *CameraAndTaskInfo) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraAndTaskInfo.Size(m) } func (m *CameraAndTaskInfo) XXX_DiscardUnknown() { xxx_messageInfo_CameraAndTaskInfo.DiscardUnknown(m) @@ -1209,14 +1167,17 @@ //Task缁撴瀯浣� type Task struct { - Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"` - Taskname string `protobuf:"bytes,2,opt,name=taskname,proto3" json:"taskname,omitempty"` - CreateAt string `protobuf:"bytes,3,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` - CreateBy string `protobuf:"bytes,4,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` - UpdateAt string `protobuf:"bytes,5,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"` - Enable bool `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"` - IsAlarm bool `protobuf:"varint,7,opt,name=is_alarm,json=isAlarm,proto3" json:"is_alarm,omitempty"` - DelFlag bool `protobuf:"varint,8,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` + Taskid string `protobuf:"bytes,1,opt,name=taskid,proto3" json:"taskid,omitempty"` + Taskname string `protobuf:"bytes,2,opt,name=taskname,proto3" json:"taskname,omitempty"` + CreateAt string `protobuf:"bytes,3,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"` + CreateBy string `protobuf:"bytes,4,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` + UpdateAt string `protobuf:"bytes,5,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"` + Enable bool `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"` + IsAlarm bool `protobuf:"varint,7,opt,name=is_alarm,json=isAlarm,proto3" json:"is_alarm,omitempty"` + DelFlag bool `protobuf:"varint,8,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Task) Reset() { *m = Task{} } @@ -1225,26 +1186,18 @@ func (*Task) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{8} } + func (m *Task) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Task.Unmarshal(m, b) } func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Task.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Task.Marshal(b, m, deterministic) } func (m *Task) XXX_Merge(src proto.Message) { xxx_messageInfo_Task.Merge(m, src) } func (m *Task) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Task.Size(m) } func (m *Task) XXX_DiscardUnknown() { xxx_messageInfo_Task.DiscardUnknown(m) @@ -1309,8 +1262,11 @@ } type TaskSdkInfo struct { - Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` - Sdks []*Sdk `protobuf:"bytes,2,rep,name=sdks,proto3" json:"sdks,omitempty"` + Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` + Sdks []*Sdk `protobuf:"bytes,2,rep,name=sdks,proto3" json:"sdks,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TaskSdkInfo) Reset() { *m = TaskSdkInfo{} } @@ -1319,26 +1275,18 @@ func (*TaskSdkInfo) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{9} } + func (m *TaskSdkInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_TaskSdkInfo.Unmarshal(m, b) } func (m *TaskSdkInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskSdkInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_TaskSdkInfo.Marshal(b, m, deterministic) } func (m *TaskSdkInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskSdkInfo.Merge(m, src) } func (m *TaskSdkInfo) XXX_Size() int { - return m.Size() + return xxx_messageInfo_TaskSdkInfo.Size(m) } func (m *TaskSdkInfo) XXX_DiscardUnknown() { xxx_messageInfo_TaskSdkInfo.DiscardUnknown(m) @@ -1362,18 +1310,21 @@ //鎽勫儚鏈轰换鍔� type CameraTask struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraIds string `protobuf:"bytes,2,opt,name=camera_ids,json=cameraIds,proto3" json:"camera_ids,omitempty"` - TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - TimeRule []*DayCtl `protobuf:"bytes,4,rep,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` - ReactRule string `protobuf:"bytes,5,opt,name=react_rule,json=reactRule,proto3" json:"react_rule,omitempty"` - ReactDevice string `protobuf:"bytes,6,opt,name=react_device,json=reactDevice,proto3" json:"react_device,omitempty"` - DelFlag bool `protobuf:"varint,7,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` - UpdateFlag bool `protobuf:"varint,8,opt,name=update_flag,json=updateFlag,proto3" json:"update_flag,omitempty"` - Enable bool `protobuf:"varint,9,opt,name=enable,proto3" json:"enable,omitempty"` - Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` - IsFull bool `protobuf:"varint,11,opt,name=is_full,json=isFull,proto3" json:"is_full,omitempty"` - LinkGroupId string `protobuf:"bytes,12,opt,name=link_group_id,json=linkGroupId,proto3" json:"link_group_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + TaskId string `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + TimeRule []*DayCtl `protobuf:"bytes,4,rep,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` + ReactRule string `protobuf:"bytes,5,opt,name=react_rule,json=reactRule,proto3" json:"react_rule,omitempty"` + ReactDevice string `protobuf:"bytes,6,opt,name=react_device,json=reactDevice,proto3" json:"react_device,omitempty"` + DelFlag bool `protobuf:"varint,7,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` + UpdateFlag bool `protobuf:"varint,8,opt,name=update_flag,json=updateFlag,proto3" json:"update_flag,omitempty"` + Enable bool `protobuf:"varint,9,opt,name=enable,proto3" json:"enable,omitempty"` + Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` + IsFull bool `protobuf:"varint,11,opt,name=is_full,json=isFull,proto3" json:"is_full,omitempty"` + LinkTaskId string `protobuf:"bytes,12,opt,name=link_task_id,json=linkTaskId,proto3" json:"link_task_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraTask) Reset() { *m = CameraTask{} } @@ -1382,26 +1333,18 @@ func (*CameraTask) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{10} } + func (m *CameraTask) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraTask.Unmarshal(m, b) } func (m *CameraTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraTask.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraTask.Marshal(b, m, deterministic) } func (m *CameraTask) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraTask.Merge(m, src) } func (m *CameraTask) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraTask.Size(m) } func (m *CameraTask) XXX_DiscardUnknown() { xxx_messageInfo_CameraTask.DiscardUnknown(m) @@ -1416,9 +1359,9 @@ return "" } -func (m *CameraTask) GetCameraIds() string { +func (m *CameraTask) GetCameraId() string { if m != nil { - return m.CameraIds + return m.CameraId } return "" } @@ -1486,18 +1429,21 @@ return false } -func (m *CameraTask) GetLinkGroupId() string { +func (m *CameraTask) GetLinkTaskId() string { if m != nil { - return m.LinkGroupId + return m.LinkTaskId } return "" } //鎽勫儚鏈哄竷闃茬殑鏃堕棿瑙勫垯锛屽彲浠ヨ缃涓�,鐢╥d鍏宠仈鍒板叿浣撶殑瑙勫垯閰嶇疆涓� type CameraTimerule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - TimeRule string `protobuf:"bytes,3,opt,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + TimeRule string `protobuf:"bytes,3,opt,name=time_rule,json=timeRule,proto3" json:"time_rule,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraTimerule) Reset() { *m = CameraTimerule{} } @@ -1506,26 +1452,18 @@ func (*CameraTimerule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{11} } + func (m *CameraTimerule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraTimerule.Unmarshal(m, b) } func (m *CameraTimerule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraTimerule.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraTimerule.Marshal(b, m, deterministic) } func (m *CameraTimerule) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraTimerule.Merge(m, src) } func (m *CameraTimerule) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraTimerule.Size(m) } func (m *CameraTimerule) XXX_DiscardUnknown() { xxx_messageInfo_CameraTimerule.DiscardUnknown(m) @@ -1556,8 +1494,11 @@ //DayCtl struct 姣忓ぉ鐨勬椂闂存帶鍒惰鍒� type DayCtl struct { - Day int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"` - TimeRange []*TimeRange `protobuf:"bytes,2,rep,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` + Day int32 `protobuf:"varint,1,opt,name=day,proto3" json:"day,omitempty"` + TimeRange []*TimeRange `protobuf:"bytes,2,rep,name=time_range,json=timeRange,proto3" json:"time_range,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DayCtl) Reset() { *m = DayCtl{} } @@ -1566,26 +1507,18 @@ func (*DayCtl) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{12} } + func (m *DayCtl) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_DayCtl.Unmarshal(m, b) } func (m *DayCtl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DayCtl.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_DayCtl.Marshal(b, m, deterministic) } func (m *DayCtl) XXX_Merge(src proto.Message) { xxx_messageInfo_DayCtl.Merge(m, src) } func (m *DayCtl) XXX_Size() int { - return m.Size() + return xxx_messageInfo_DayCtl.Size(m) } func (m *DayCtl) XXX_DiscardUnknown() { xxx_messageInfo_DayCtl.DiscardUnknown(m) @@ -1609,8 +1542,11 @@ //鏃堕棿璧峰鑼冨洿 type TimeRange struct { - Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` - End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` + End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TimeRange) Reset() { *m = TimeRange{} } @@ -1619,26 +1555,18 @@ func (*TimeRange) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{13} } + func (m *TimeRange) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_TimeRange.Unmarshal(m, b) } func (m *TimeRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimeRange.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_TimeRange.Marshal(b, m, deterministic) } func (m *TimeRange) XXX_Merge(src proto.Message) { xxx_messageInfo_TimeRange.Merge(m, src) } func (m *TimeRange) XXX_Size() int { - return m.Size() + return xxx_messageInfo_TimeRange.Size(m) } func (m *TimeRange) XXX_DiscardUnknown() { xxx_messageInfo_TimeRange.DiscardUnknown(m) @@ -1662,9 +1590,12 @@ //Polygon struct type Polygon struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Points []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Points []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Polygon) Reset() { *m = Polygon{} } @@ -1673,26 +1604,18 @@ func (*Polygon) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{14} } + func (m *Polygon) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Polygon.Unmarshal(m, b) } func (m *Polygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Polygon.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Polygon.Marshal(b, m, deterministic) } func (m *Polygon) XXX_Merge(src proto.Message) { xxx_messageInfo_Polygon.Merge(m, src) } func (m *Polygon) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Polygon.Size(m) } func (m *Polygon) XXX_DiscardUnknown() { xxx_messageInfo_Polygon.DiscardUnknown(m) @@ -1722,8 +1645,11 @@ } type CameraTaskArgs struct { - CameraId string `protobuf:"bytes,1,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - TaskArgs []*TaskGroupArgs `protobuf:"bytes,2,rep,name=task_args,json=taskArgs,proto3" json:"task_args,omitempty"` + CameraId string `protobuf:"bytes,1,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + TaskArgs []*TaskGroupArgs `protobuf:"bytes,2,rep,name=task_args,json=taskArgs,proto3" json:"task_args,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraTaskArgs) Reset() { *m = CameraTaskArgs{} } @@ -1732,26 +1658,18 @@ func (*CameraTaskArgs) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{15} } + func (m *CameraTaskArgs) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraTaskArgs.Unmarshal(m, b) } func (m *CameraTaskArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraTaskArgs.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraTaskArgs.Marshal(b, m, deterministic) } func (m *CameraTaskArgs) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraTaskArgs.Merge(m, src) } func (m *CameraTaskArgs) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraTaskArgs.Size(m) } func (m *CameraTaskArgs) XXX_DiscardUnknown() { xxx_messageInfo_CameraTaskArgs.DiscardUnknown(m) @@ -1774,8 +1692,11 @@ } type TaskGroupArgs struct { - TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - GroupRules []*GroupRule `protobuf:"bytes,2,rep,name=group_rules,json=groupRules,proto3" json:"group_rules,omitempty"` + TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + GroupRules []*GroupRule `protobuf:"bytes,2,rep,name=group_rules,json=groupRules,proto3" json:"group_rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *TaskGroupArgs) Reset() { *m = TaskGroupArgs{} } @@ -1784,26 +1705,18 @@ func (*TaskGroupArgs) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{16} } + func (m *TaskGroupArgs) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_TaskGroupArgs.Unmarshal(m, b) } func (m *TaskGroupArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TaskGroupArgs.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_TaskGroupArgs.Marshal(b, m, deterministic) } func (m *TaskGroupArgs) XXX_Merge(src proto.Message) { xxx_messageInfo_TaskGroupArgs.Merge(m, src) } func (m *TaskGroupArgs) XXX_Size() int { - return m.Size() + return xxx_messageInfo_TaskGroupArgs.Size(m) } func (m *TaskGroupArgs) XXX_DiscardUnknown() { xxx_messageInfo_TaskGroupArgs.DiscardUnknown(m) @@ -1826,8 +1739,11 @@ } type GroupRule struct { - GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` - Rules []*Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + GroupId string `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + Rules []*Rule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GroupRule) Reset() { *m = GroupRule{} } @@ -1836,26 +1752,18 @@ func (*GroupRule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{17} } + func (m *GroupRule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_GroupRule.Unmarshal(m, b) } func (m *GroupRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupRule.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_GroupRule.Marshal(b, m, deterministic) } func (m *GroupRule) XXX_Merge(src proto.Message) { xxx_messageInfo_GroupRule.Merge(m, src) } func (m *GroupRule) XXX_Size() int { - return m.Size() + return xxx_messageInfo_GroupRule.Size(m) } func (m *GroupRule) XXX_DiscardUnknown() { xxx_messageInfo_GroupRule.DiscardUnknown(m) @@ -1878,18 +1786,21 @@ } type Rule struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraTaskId string `protobuf:"bytes,2,opt,name=camera_task_id,json=cameraTaskId,proto3" json:"camera_task_id,omitempty"` - CameraId string `protobuf:"bytes,3,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - PolygonId string `protobuf:"bytes,4,opt,name=polygon_id,json=polygonId,proto3" json:"polygon_id,omitempty"` - SdkId string `protobuf:"bytes,5,opt,name=sdk_id,json=sdkId,proto3" json:"sdk_id,omitempty"` - SdkArgAlias string `protobuf:"bytes,6,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` - Operator string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"` - OperatorType string `protobuf:"bytes,8,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` - SdkArgValue string `protobuf:"bytes,9,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` - Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` - RuleWithPre string `protobuf:"bytes,11,opt,name=rule_with_pre,json=ruleWithPre,proto3" json:"rule_with_pre,omitempty"` - GroupId string `protobuf:"bytes,12,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraTaskId string `protobuf:"bytes,2,opt,name=camera_task_id,json=cameraTaskId,proto3" json:"camera_task_id,omitempty"` + CameraId string `protobuf:"bytes,3,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + PolygonId string `protobuf:"bytes,4,opt,name=polygon_id,json=polygonId,proto3" json:"polygon_id,omitempty"` + SdkId string `protobuf:"bytes,5,opt,name=sdk_id,json=sdkId,proto3" json:"sdk_id,omitempty"` + SdkArgAlias string `protobuf:"bytes,6,opt,name=sdk_arg_alias,json=sdkArgAlias,proto3" json:"sdk_arg_alias,omitempty"` + Operator string `protobuf:"bytes,7,opt,name=operator,proto3" json:"operator,omitempty"` + OperatorType string `protobuf:"bytes,8,opt,name=operator_type,json=operatorType,proto3" json:"operator_type,omitempty"` + SdkArgValue string `protobuf:"bytes,9,opt,name=sdk_arg_value,json=sdkArgValue,proto3" json:"sdk_arg_value,omitempty"` + Sort int32 `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"` + RuleWithPre string `protobuf:"bytes,11,opt,name=rule_with_pre,json=ruleWithPre,proto3" json:"rule_with_pre,omitempty"` + GroupId string `protobuf:"bytes,12,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Rule) Reset() { *m = Rule{} } @@ -1898,26 +1809,18 @@ func (*Rule) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{18} } + func (m *Rule) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Rule.Unmarshal(m, b) } func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Rule.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Rule.Marshal(b, m, deterministic) } func (m *Rule) XXX_Merge(src proto.Message) { xxx_messageInfo_Rule.Merge(m, src) } func (m *Rule) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Rule.Size(m) } func (m *Rule) XXX_DiscardUnknown() { xxx_messageInfo_Rule.DiscardUnknown(m) @@ -2011,17 +1914,20 @@ //Sdk struct type Sdk struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - SdkType string `protobuf:"bytes,2,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` - SdkName string `protobuf:"bytes,3,opt,name=sdk_name,json=sdkName,proto3" json:"sdk_name,omitempty"` - Args []*SdkArg `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"` - Icon string `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"` - Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` - CreateTime string `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - UpdateTime string `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - CreateBy string `protobuf:"bytes,9,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` - Enabled bool `protobuf:"varint,10,opt,name=enabled,proto3" json:"enabled,omitempty"` - DelFlag int32 `protobuf:"varint,11,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + SdkType string `protobuf:"bytes,2,opt,name=sdk_type,json=sdkType,proto3" json:"sdk_type,omitempty"` + SdkName string `protobuf:"bytes,3,opt,name=sdk_name,json=sdkName,proto3" json:"sdk_name,omitempty"` + Args []*SdkArg `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"` + Icon string `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"` + Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` + CreateTime string `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` + UpdateTime string `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` + CreateBy string `protobuf:"bytes,9,opt,name=create_by,json=createBy,proto3" json:"create_by,omitempty"` + Enabled bool `protobuf:"varint,10,opt,name=enabled,proto3" json:"enabled,omitempty"` + DelFlag int32 `protobuf:"varint,11,opt,name=del_flag,json=delFlag,proto3" json:"del_flag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Sdk) Reset() { *m = Sdk{} } @@ -2030,26 +1936,18 @@ func (*Sdk) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{19} } + func (m *Sdk) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Sdk.Unmarshal(m, b) } func (m *Sdk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Sdk.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Sdk.Marshal(b, m, deterministic) } func (m *Sdk) XXX_Merge(src proto.Message) { xxx_messageInfo_Sdk.Merge(m, src) } func (m *Sdk) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Sdk.Size(m) } func (m *Sdk) XXX_DiscardUnknown() { xxx_messageInfo_Sdk.DiscardUnknown(m) @@ -2136,13 +2034,16 @@ //SdkArg struct type SdkArg struct { - Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Must bool `protobuf:"varint,4,opt,name=must,proto3" json:"must,omitempty"` - Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` - Range string `protobuf:"bytes,6,opt,name=range,proto3" json:"range,omitempty"` - Sort int32 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"` + Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Must bool `protobuf:"varint,4,opt,name=must,proto3" json:"must,omitempty"` + Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` + Range string `protobuf:"bytes,6,opt,name=range,proto3" json:"range,omitempty"` + Sort int32 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SdkArg) Reset() { *m = SdkArg{} } @@ -2151,26 +2052,18 @@ func (*SdkArg) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{20} } + func (m *SdkArg) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_SdkArg.Unmarshal(m, b) } func (m *SdkArg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SdkArg.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_SdkArg.Marshal(b, m, deterministic) } func (m *SdkArg) XXX_Merge(src proto.Message) { xxx_messageInfo_SdkArg.Merge(m, src) } func (m *SdkArg) XXX_Size() int { - return m.Size() + return xxx_messageInfo_SdkArg.Size(m) } func (m *SdkArg) XXX_DiscardUnknown() { xxx_messageInfo_SdkArg.DiscardUnknown(m) @@ -2229,10 +2122,13 @@ //publish db change message type DbChangeMessage struct { - Table TableChanged `protobuf:"varint,1,opt,name=table,proto3,enum=protomsg.TableChanged" json:"table,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Action DbAction `protobuf:"varint,3,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` - Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` + Table TableChanged `protobuf:"varint,1,opt,name=table,proto3,enum=protomsg.TableChanged" json:"table,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Action DbAction `protobuf:"varint,3,opt,name=action,proto3,enum=protomsg.DbAction" json:"action,omitempty"` + Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *DbChangeMessage) Reset() { *m = DbChangeMessage{} } @@ -2241,26 +2137,18 @@ func (*DbChangeMessage) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{21} } + func (m *DbChangeMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_DbChangeMessage.Unmarshal(m, b) } func (m *DbChangeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DbChangeMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_DbChangeMessage.Marshal(b, m, deterministic) } func (m *DbChangeMessage) XXX_Merge(src proto.Message) { xxx_messageInfo_DbChangeMessage.Merge(m, src) } func (m *DbChangeMessage) XXX_Size() int { - return m.Size() + return xxx_messageInfo_DbChangeMessage.Size(m) } func (m *DbChangeMessage) XXX_DiscardUnknown() { xxx_messageInfo_DbChangeMessage.DiscardUnknown(m) @@ -2297,14 +2185,17 @@ } type CameraPolygon struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Polygon string `protobuf:"bytes,4,opt,name=polygon,proto3" json:"polygon,omitempty"` - TriggerLine string `protobuf:"bytes,5,opt,name=trigger_line,json=triggerLine,proto3" json:"trigger_line,omitempty"` - DirectionLine string `protobuf:"bytes,6,opt,name=direction_line,json=directionLine,proto3" json:"direction_line,omitempty"` - Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` - DefenceState int32 `protobuf:"varint,8,opt,name=defence_state,json=defenceState,proto3" json:"defence_state,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=camera_id,json=cameraId,proto3" json:"camera_id,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Polygon string `protobuf:"bytes,4,opt,name=polygon,proto3" json:"polygon,omitempty"` + TriggerLine string `protobuf:"bytes,5,opt,name=trigger_line,json=triggerLine,proto3" json:"trigger_line,omitempty"` + DirectionLine string `protobuf:"bytes,6,opt,name=direction_line,json=directionLine,proto3" json:"direction_line,omitempty"` + Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` + DefenceState int32 `protobuf:"varint,8,opt,name=defence_state,json=defenceState,proto3" json:"defence_state,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *CameraPolygon) Reset() { *m = CameraPolygon{} } @@ -2313,26 +2204,18 @@ func (*CameraPolygon) Descriptor() ([]byte, []int) { return fileDescriptor_32de24555f916688, []int{22} } + func (m *CameraPolygon) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_CameraPolygon.Unmarshal(m, b) } func (m *CameraPolygon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CameraPolygon.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_CameraPolygon.Marshal(b, m, deterministic) } func (m *CameraPolygon) XXX_Merge(src proto.Message) { xxx_messageInfo_CameraPolygon.Merge(m, src) } func (m *CameraPolygon) XXX_Size() int { - return m.Size() + return xxx_messageInfo_CameraPolygon.Size(m) } func (m *CameraPolygon) XXX_DiscardUnknown() { xxx_messageInfo_CameraPolygon.DiscardUnknown(m) @@ -2427,9734 +2310,140 @@ func init() { proto.RegisterFile("protomsg.proto", fileDescriptor_32de24555f916688) } var fileDescriptor_32de24555f916688 = []byte{ - // 2204 bytes of a gzipped FileDescriptorProto + // 2160 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcd, 0x92, 0xdb, 0xc6, - 0x11, 0x16, 0xff, 0x89, 0x26, 0xb9, 0xa2, 0x60, 0x5b, 0x82, 0xfe, 0xd6, 0x2b, 0x48, 0x49, 0x54, - 0xaa, 0x58, 0x07, 0x59, 0x87, 0x54, 0x6e, 0x2b, 0x6d, 0x29, 0x61, 0x45, 0xde, 0x92, 0xb1, 0x6b, - 0xe5, 0x16, 0xd6, 0x10, 0x33, 0x4b, 0x4d, 0x11, 0x04, 0x18, 0x0c, 0xb8, 0xf6, 0x1e, 0xf2, 0x0c, - 0xc9, 0x31, 0xef, 0x90, 0x5b, 0x9e, 0xc2, 0xa7, 0x94, 0x6e, 0xc9, 0x2d, 0x29, 0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a, 0x69, 0x99, - 0xc9, 0xe0, 0x76, 0x25, 0x2d, 0x33, 0x19, 0xfe, 0xad, 0x0d, 0x7b, 0x5c, 0x52, 0x4f, 0x84, 0x51, - 0xb3, 0xf4, 0x2c, 0xab, 0x5e, 0x73, 0x2c, 0xd6, 0x42, 0xd9, 0xca, 0xaa, 0x43, 0xc4, 0xd7, 0xd1, - 0x53, 0xe4, 0xab, 0x6d, 0xf9, 0x22, 0x0b, 0xf1, 0xa5, 0x4a, 0xa5, 0xca, 0x6d, 0x4d, 0x59, 0xeb, - 0x9d, 0xfc, 0xef, 0xbe, 0x27, 0xff, 0x6b, 0x19, 0xd3, 0x6b, 0x66, 0x4c, 0x80, 0x72, 0xb5, 0x48, - 0xd4, 0xcc, 0x55, 0x96, 0x33, 0x71, 0xdd, 0x75, 0x96, 0xea, 0x22, 0xcb, 0x9f, 0xab, 0x73, 0x55, - 0xd6, 0x55, 0x1d, 0x6b, 0x84, 0x69, 0xb8, 0x13, 0x26, 0xf4, 0xbd, 0xca, 0x52, 0x85, 0xf9, 0x66, - 0xeb, 0xca, 0xd9, 0xf5, 0x62, 0x87, 0x66, 0xb1, 0xdf, 0x02, 0x8f, 0x36, 0x40, 0x29, 0x6c, 0x2b, - 0xaa, 0x04, 0xc2, 0xbf, 0x0e, 0x61, 0x5c, 0x57, 0x30, 0xca, 0x85, 0x23, 0xcb, 0x62, 0x5b, 0x1f, - 0xfd, 0x5f, 0xda, 0x54, 0x11, 0xdc, 0x6d, 0x10, 0x5c, 0xd3, 0xac, 0xde, 0x07, 0x35, 0xab, 0xdf, - 0x3c, 0xc6, 0x8f, 0x29, 0x4a, 0x3e, 0x74, 0x73, 0x11, 0x2b, 0xcb, 0x1c, 0x8d, 0x49, 0xa8, 0x62, - 0xed, 0x84, 0x6a, 0x64, 0x85, 0xaa, 0x44, 0x9a, 0x42, 0x35, 0xde, 0x15, 0xaa, 0x29, 0x74, 0xc4, - 0x52, 0x59, 0x19, 0xc2, 0x61, 0x5d,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8, 0x55, 0x5a, 0x68, - 0x96, 0xda, 0x5e, 0x54, 0xda, 0x58, 0x63, 0x74, 0x97, 0xb0, 0x44, 0xd0, 0x38, 0xfc, 0xb6, 0x0d, - 0xfd, 0xa7, 0x62, 0xad, 0xf2, 0xfa, 0x52, 0x7c, 0x05, 0xb9, 0xe9, 0xed, 0x6a, 0x3a, 0x62, 0x85, - 0x53, 0x99, 0x5e, 0x44, 0x63, 0xc4, 0x84, 0x94, 0x4e, 0x60, 0x68, 0x8c, 0x54, 0x8b, 0x5c, 0x09, - 0x2d, 0x49, 0x5d, 0x7a, 0x91, 0xb5, 0x30, 0x40, 0x49, 0x96, 0x2e, 0x75, 0xb1, 0x95, 0x8a, 0xe4, - 0xa5, 0x1d, 0x55, 0x00, 0x09, 0x84, 0x28, 0xd8, 0x39, 0x20, 0x67, 0x69, 0x93, 0x40, 0x14, 0x66, - 0x63, 0x45, 0x85, 0xc6, 0xb4, 0xe3, 0x8d, 0x95, 0x92, 0xb6, 0xde, 0xe0, 0x9c, 0x4d, 0x96, 0xb3, - 0xfc, 0xf6, 0x22, 0x1a, 0xe3, 0x9a, 0x5b, 0xa3, 0xf2, 0xb4, 0x92, 0xde, 0xd2, 0x66, 0xb2, 0x8c, - 0xf9, 0x3a, 0xcb, 0xa5, 0xd5, 0x8f, 0xd2, 0xc6, 0x4e, 0x79, 0x91, 0x8b, 0x54, 0x5a, 0x01, 0x61, - 0x03, 0x9f, 0xc8, 0x95, 0x51, 0xf9, 0xb9, 0x92, 0xae, 0x83, 0x71, 0x76, 0x18, 0xc3, 0x15, 0x66, - 0xf2, 0x30, 0x95, 0xd8, 0x14, 0xd3, 0xd5, 0x78, 0x1f, 0xfa, 0x31, 0x81, 0x44, 0xec, 0xe8, 0xd1, - 0xb4, 0xca, 0x1e, 0x9e, 0x1c, 0x59, 0xbf, 0x7f, 0x0f, 0x7a, 0x98, 0x75, 0xdc, 0xb1, 0x8f, 0x1e, - 0xed, 0x35, 0x3b, 0xec, 0x88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14, 0xc6, 0xce, 0x42, 0xa5, 0x9a, 0xb6, 0xfc, 0x8f, 0x61, 0x5a, 0x47, - 0x50, 0x99, 0xa7, 0x6d, 0x1f, 0xa0, 0x7f, 0x3a, 0xa7, 0x19, 0x1d, 0x7f, 0x02, 0x1e, 0x8f, 0x4f, - 0xe4, 0x6a, 0xda, 0xf5, 0xaf, 0xc0, 0xa4, 0x34, 0x51, 0x21, 0xa7, 0x3d, 0xdf, 0x83, 0xde, 0xe9, - 0x1c, 0xbd, 0xfd, 0x07, 0x0f, 0x61, 0xe8, 0xc2, 0x82, 0x8b, 0xcc, 0x52, 0xa3, 0xf2, 0x62, 0x7a, - 0x09, 0xc7, 0x5f, 0x51, 0x4d, 0x4c, 0x5b, 0x38, 0xe6, 0x2f, 0xd7, 0x69, 0xfb, 0x49, 0xf0, 0xed, - 0x9b, 0xfd, 0xd6, 0xeb, 0x37, 0xfb, 0xad, 0x7f, 0xbd, 0xd9, 0x6f, 0xfd, 0xe9, 0xed, 0xfe, 0xa5, - 0xd7, 0x6f, 0xf7, 0x2f, 0xfd, 0xe3, 0xed, 0xfe, 0xa5, 0x45, 0x9f, 0xe2, 0xfc, 0xf9, 0xff, 0x02, - 0x00, 0x00, 0xff, 0xff, 0xfa, 0x15, 0x02, 0x31, 0x96, 0x16, 0x00, 0x00, -} - -func (m *TaskLabel) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TaskLabel) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Taskid) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Taskid))) - i += copy(dAtA[i:], m.Taskid) - } - if len(m.Sdkids) > 0 { - for _, s := range m.Sdkids { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if m.Index != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Index)) - } - return i, nil -} - -func (m *SdkMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SdkMessage) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Cid) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Cid))) - i += copy(dAtA[i:], m.Cid) - } - if m.Tasklab != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Tasklab.Size())) - n1, err1 := m.Tasklab.MarshalTo(dAtA[i:]) - if err1 != nil { - return 0, err1 - } - i += n1 - } - if len(m.Data) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Data))) - i += copy(dAtA[i:], m.Data) - } - if m.Personaction != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Personaction.Size())) - n2, err2 := m.Personaction.MarshalTo(dAtA[i:]) - if err2 != nil { - return 0, err2 - } - i += n2 - } - if m.Vedioperson != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Vedioperson.Size())) - n3, err3 := m.Vedioperson.MarshalTo(dAtA[i:]) - if err3 != nil { - return 0, err3 - } - i += n3 - } - return i, nil -} - -func (m *Personaction) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Personaction) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ImgKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ImgKey))) - i += copy(dAtA[i:], m.ImgKey) - } - if len(m.VideoReqNum) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoReqNum))) - i += copy(dAtA[i:], m.VideoReqNum) - } - if len(m.SdkType) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) - i += copy(dAtA[i:], m.SdkType) - } - if len(m.PicName) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicName))) - i += copy(dAtA[i:], m.PicName) - } - if len(m.Content) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) - } - if len(m.ClusterId) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ClusterId))) - i += copy(dAtA[i:], m.ClusterId) - } - if len(m.PersonPicUrl) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonPicUrl))) - i += copy(dAtA[i:], m.PersonPicUrl) - } - if len(m.ChannlId) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ChannlId))) - i += copy(dAtA[i:], m.ChannlId) - } - if len(m.LikeDate) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LikeDate))) - i += copy(dAtA[i:], m.LikeDate) - } - if len(m.PicAddress) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicAddress))) - i += copy(dAtA[i:], m.PicAddress) - } - if len(m.PicMaxUrl) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicMaxUrl))) - i += copy(dAtA[i:], m.PicMaxUrl) - } - if len(m.PicDate) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicDate))) - i += copy(dAtA[i:], m.PicDate) - } - if len(m.PicLocalUrl) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicLocalUrl))) - i += copy(dAtA[i:], m.PicLocalUrl) - } - if len(m.IsDelete) > 0 { - dAtA[i] = 0x72 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IsDelete))) - i += copy(dAtA[i:], m.IsDelete) - } - if len(m.LikePer) > 0 { - dAtA[i] = 0x7a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LikePer))) - i += copy(dAtA[i:], m.LikePer) - } - if len(m.BaseName) > 0 { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.BaseName))) - i += copy(dAtA[i:], m.BaseName) - } - if len(m.VideoNum) > 0 { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoNum))) - i += copy(dAtA[i:], m.VideoNum) - } - if len(m.Collection) > 0 { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Collection))) - i += copy(dAtA[i:], m.Collection) - } - if len(m.PicSmUrl) > 0 { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicSmUrl))) - i += copy(dAtA[i:], m.PicSmUrl) - } - if len(m.Indeviceid) > 0 { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Indeviceid))) - i += copy(dAtA[i:], m.Indeviceid) - } - if len(m.Idcard) > 0 { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Idcard))) - i += copy(dAtA[i:], m.Idcard) - } - if len(m.AckAlarm) > 0 { - dAtA[i] = 0xb2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.AckAlarm))) - i += copy(dAtA[i:], m.AckAlarm) - } - if len(m.PersonId) > 0 { - dAtA[i] = 0xba - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonId))) - i += copy(dAtA[i:], m.PersonId) - } - if len(m.Id) > 0 { - dAtA[i] = 0xc2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Indevicename) > 0 { - dAtA[i] = 0xca - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Indevicename))) - i += copy(dAtA[i:], m.Indevicename) - } - if len(m.FaceFeature) > 0 { - dAtA[i] = 0xd2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.FaceFeature))) - i += copy(dAtA[i:], m.FaceFeature) - } - if len(m.PersonIsHub) > 0 { - dAtA[i] = 0xda - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonIsHub))) - i += copy(dAtA[i:], m.PersonIsHub) - } - if len(m.VideoIp) > 0 { - dAtA[i] = 0xe2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoIp))) - i += copy(dAtA[i:], m.VideoIp) - } - if len(m.TaskId) > 0 { - dAtA[i] = 0xea - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) - i += copy(dAtA[i:], m.TaskId) - } - return i, nil -} - -func (m *PersonBaseInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersonBaseInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.PersonNamae) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonNamae))) - i += copy(dAtA[i:], m.PersonNamae) - } - if len(m.IDCard) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IDCard))) - i += copy(dAtA[i:], m.IDCard) - } - if len(m.Gender) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Gender))) - i += copy(dAtA[i:], m.Gender) - } - if len(m.PersonPicUrl) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonPicUrl))) - i += copy(dAtA[i:], m.PersonPicUrl) - } - if len(m.LikePer) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LikePer))) - i += copy(dAtA[i:], m.LikePer) - } - if len(m.TableId) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TableId))) - i += copy(dAtA[i:], m.TableId) - } - if len(m.MonitorLevel) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.MonitorLevel))) - i += copy(dAtA[i:], m.MonitorLevel) - } - if len(m.PersonId) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonId))) - i += copy(dAtA[i:], m.PersonId) - } - if len(m.PhoneNum) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PhoneNum))) - i += copy(dAtA[i:], m.PhoneNum) - } - if len(m.Content) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) - } - if len(m.TableName) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TableName))) - i += copy(dAtA[i:], m.TableName) - } - return i, nil -} - -func (m *Vediopersons) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Vediopersons) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.ID) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ID))) - i += copy(dAtA[i:], m.ID) - } - if len(m.VideoReqNum) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoReqNum))) - i += copy(dAtA[i:], m.VideoReqNum) - } - if len(m.SdkType) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) - i += copy(dAtA[i:], m.SdkType) - } - if len(m.Gender) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Gender))) - i += copy(dAtA[i:], m.Gender) - } - if len(m.PicName) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicName))) - i += copy(dAtA[i:], m.PicName) - } - if len(m.Content) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) - } - if len(m.PersonPicUrl) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonPicUrl))) - i += copy(dAtA[i:], m.PersonPicUrl) - } - if len(m.ChannlId) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ChannlId))) - i += copy(dAtA[i:], m.ChannlId) - } - if len(m.LikeDate) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LikeDate))) - i += copy(dAtA[i:], m.LikeDate) - } - if len(m.Race) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Race))) - i += copy(dAtA[i:], m.Race) - } - if len(m.PciAddress) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PciAddress))) - i += copy(dAtA[i:], m.PciAddress) - } - if len(m.PicMaxUrl) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicMaxUrl))) - i += copy(dAtA[i:], m.PicMaxUrl) - } - if len(m.Age) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Age))) - i += copy(dAtA[i:], m.Age) - } - if len(m.PicDate) > 0 { - dAtA[i] = 0x72 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicDate))) - i += copy(dAtA[i:], m.PicDate) - } - if len(m.PicLocalUrl) > 0 { - dAtA[i] = 0x7a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicLocalUrl))) - i += copy(dAtA[i:], m.PicLocalUrl) - } - if len(m.IsDelete) > 0 { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IsDelete))) - i += copy(dAtA[i:], m.IsDelete) - } - if len(m.TableName) > 0 { - for _, s := range m.TableName { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.VideoNum) > 0 { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoNum))) - i += copy(dAtA[i:], m.VideoNum) - } - if len(m.PicSmUrl) > 0 { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PicSmUrl))) - i += copy(dAtA[i:], m.PicSmUrl) - } - if len(m.SimleLevel) > 0 { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SimleLevel))) - i += copy(dAtA[i:], m.SimleLevel) - } - if len(m.IndeviceId) > 0 { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IndeviceId))) - i += copy(dAtA[i:], m.IndeviceId) - } - if len(m.IDcard) > 0 { - for _, s := range m.IDcard { - dAtA[i] = 0xb2 - i++ - dAtA[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.PersonId) > 0 { - for _, s := range m.PersonId { - dAtA[i] = 0xba - i++ - dAtA[i] = 0x1 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - if len(m.BeautyLevel) > 0 { - dAtA[i] = 0xc2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.BeautyLevel))) - i += copy(dAtA[i:], m.BeautyLevel) - } - if len(m.IndeviceName) > 0 { - dAtA[i] = 0xca - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.IndeviceName))) - i += copy(dAtA[i:], m.IndeviceName) - } - if len(m.FaceFeature) > 0 { - dAtA[i] = 0xd2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.FaceFeature))) - i += copy(dAtA[i:], m.FaceFeature) - } - if len(m.PersonIsHub) > 0 { - dAtA[i] = 0xda - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PersonIsHub))) - i += copy(dAtA[i:], m.PersonIsHub) - } - if len(m.VideoIp) > 0 { - dAtA[i] = 0xe2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.VideoIp))) - i += copy(dAtA[i:], m.VideoIp) - } - if len(m.AckAlarm) > 0 { - dAtA[i] = 0xea - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.AckAlarm))) - i += copy(dAtA[i:], m.AckAlarm) - } - if len(m.ClusterId) > 0 { - dAtA[i] = 0xf2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ClusterId))) - i += copy(dAtA[i:], m.ClusterId) - } - if len(m.TaskId) > 0 { - dAtA[i] = 0xfa - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) - i += copy(dAtA[i:], m.TaskId) - } - if len(m.TaskName) > 0 { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskName))) - i += copy(dAtA[i:], m.TaskName) - } - if len(m.Baseinfo) > 0 { - for _, msg := range m.Baseinfo { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Collection) > 0 { - dAtA[i] = 0x92 - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Collection))) - i += copy(dAtA[i:], m.Collection) - } - if len(m.AgeDescription) > 0 { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x2 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.AgeDescription))) - i += copy(dAtA[i:], m.AgeDescription) - } - if len(m.TableId) > 0 { - for _, s := range m.TableId { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x2 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } - return i, nil -} - -func (m *Area) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Area) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Id)) - } - if m.Parentid != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Parentid)) - } - if len(m.Name) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - return i, nil -} - -func (m *Camera) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Camera) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Type != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Type)) - } - if len(m.Addr) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Addr))) - i += copy(dAtA[i:], m.Addr) - } - if m.Areaid != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Areaid)) - } - if m.Longitude != 0 { - dAtA[i] = 0x35 - i++ - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Longitude)))) - i += 4 - } - if m.Latitude != 0 { - dAtA[i] = 0x3d - i++ - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Latitude)))) - i += 4 - } - if len(m.Rtsp) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Rtsp))) - i += copy(dAtA[i:], m.Rtsp) - } - if len(m.Ip) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Ip))) - i += copy(dAtA[i:], m.Ip) - } - if m.Port != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Port)) - } - if len(m.Username) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Username))) - i += copy(dAtA[i:], m.Username) - } - if len(m.Password) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Password))) - i += copy(dAtA[i:], m.Password) - } - if len(m.Brand) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Brand))) - i += copy(dAtA[i:], m.Brand) - } - if len(m.Reserved) > 0 { - dAtA[i] = 0x72 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Reserved))) - i += copy(dAtA[i:], m.Reserved) - } - return i, nil -} - -func (m *CameraAndTaskInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraAndTaskInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Camera != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Camera.Size())) - n4, err4 := m.Camera.MarshalTo(dAtA[i:]) - if err4 != nil { - return 0, err4 - } - i += n4 - } - if len(m.Tasks) > 0 { - for _, msg := range m.Tasks { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *Task) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Task) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Taskid) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Taskid))) - i += copy(dAtA[i:], m.Taskid) - } - if len(m.Taskname) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Taskname))) - i += copy(dAtA[i:], m.Taskname) - } - if len(m.CreateAt) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateAt))) - i += copy(dAtA[i:], m.CreateAt) - } - if len(m.CreateBy) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateBy))) - i += copy(dAtA[i:], m.CreateBy) - } - if len(m.UpdateAt) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.UpdateAt))) - i += copy(dAtA[i:], m.UpdateAt) - } - if m.Enable { - dAtA[i] = 0x30 - i++ - if m.Enable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.IsAlarm { - dAtA[i] = 0x38 - i++ - if m.IsAlarm { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.DelFlag { - dAtA[i] = 0x40 - i++ - if m.DelFlag { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - -func (m *TaskSdkInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TaskSdkInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Task != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Task.Size())) - n5, err5 := m.Task.MarshalTo(dAtA[i:]) - if err5 != nil { - return 0, err5 - } - i += n5 - } - if len(m.Sdks) > 0 { - for _, msg := range m.Sdks { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *CameraTask) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraTask) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.CameraIds) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraIds))) - i += copy(dAtA[i:], m.CameraIds) - } - if len(m.TaskId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) - i += copy(dAtA[i:], m.TaskId) - } - if len(m.TimeRule) > 0 { - for _, msg := range m.TimeRule { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.ReactRule) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ReactRule))) - i += copy(dAtA[i:], m.ReactRule) - } - if len(m.ReactDevice) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.ReactDevice))) - i += copy(dAtA[i:], m.ReactDevice) - } - if m.DelFlag { - dAtA[i] = 0x38 - i++ - if m.DelFlag { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.UpdateFlag { - dAtA[i] = 0x40 - i++ - if m.UpdateFlag { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.Enable { - dAtA[i] = 0x48 - i++ - if m.Enable { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.Sort != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) - } - if m.IsFull { - dAtA[i] = 0x58 - i++ - if m.IsFull { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.LinkGroupId) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.LinkGroupId))) - i += copy(dAtA[i:], m.LinkGroupId) - } - return i, nil -} - -func (m *CameraTimerule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraTimerule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.TimeRule) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TimeRule))) - i += copy(dAtA[i:], m.TimeRule) - } - return i, nil -} - -func (m *DayCtl) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DayCtl) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Day != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Day)) - } - if len(m.TimeRange) > 0 { - for _, msg := range m.TimeRange { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *TimeRange) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TimeRange) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Start) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Start))) - i += copy(dAtA[i:], m.Start) - } - if len(m.End) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.End))) - i += copy(dAtA[i:], m.End) - } - return i, nil -} - -func (m *Polygon) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Polygon) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Points) > 0 { - for _, msg := range m.Points { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *CameraTaskArgs) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraTaskArgs) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.CameraId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.TaskArgs) > 0 { - for _, msg := range m.TaskArgs { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *TaskGroupArgs) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TaskGroupArgs) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.TaskId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TaskId))) - i += copy(dAtA[i:], m.TaskId) - } - if len(m.GroupRules) > 0 { - for _, msg := range m.GroupRules { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *GroupRule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupRule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.GroupId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.GroupId))) - i += copy(dAtA[i:], m.GroupId) - } - if len(m.Rules) > 0 { - for _, msg := range m.Rules { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *Rule) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Rule) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.CameraTaskId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraTaskId))) - i += copy(dAtA[i:], m.CameraTaskId) - } - if len(m.CameraId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.PolygonId) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.PolygonId))) - i += copy(dAtA[i:], m.PolygonId) - } - if len(m.SdkId) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkId))) - i += copy(dAtA[i:], m.SdkId) - } - if len(m.SdkArgAlias) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgAlias))) - i += copy(dAtA[i:], m.SdkArgAlias) - } - if len(m.Operator) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Operator))) - i += copy(dAtA[i:], m.Operator) - } - if len(m.OperatorType) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.OperatorType))) - i += copy(dAtA[i:], m.OperatorType) - } - if len(m.SdkArgValue) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkArgValue))) - i += copy(dAtA[i:], m.SdkArgValue) - } - if m.Sort != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) - } - if len(m.RuleWithPre) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.RuleWithPre))) - i += copy(dAtA[i:], m.RuleWithPre) - } - if len(m.GroupId) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.GroupId))) - i += copy(dAtA[i:], m.GroupId) - } - return i, nil -} - -func (m *Sdk) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Sdk) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.SdkType) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkType))) - i += copy(dAtA[i:], m.SdkType) - } - if len(m.SdkName) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.SdkName))) - i += copy(dAtA[i:], m.SdkName) - } - if len(m.Args) > 0 { - for _, msg := range m.Args { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Icon) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Icon))) - i += copy(dAtA[i:], m.Icon) - } - if len(m.Url) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Url))) - i += copy(dAtA[i:], m.Url) - } - if len(m.CreateTime) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateTime))) - i += copy(dAtA[i:], m.CreateTime) - } - if len(m.UpdateTime) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.UpdateTime))) - i += copy(dAtA[i:], m.UpdateTime) - } - if len(m.CreateBy) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CreateBy))) - i += copy(dAtA[i:], m.CreateBy) - } - if m.Enabled { - dAtA[i] = 0x50 - i++ - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.DelFlag != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.DelFlag)) - } - return i, nil -} - -func (m *SdkArg) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SdkArg) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Alias) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Alias))) - i += copy(dAtA[i:], m.Alias) - } - if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Type) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if m.Must { - dAtA[i] = 0x20 - i++ - if m.Must { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.Unit) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Unit))) - i += copy(dAtA[i:], m.Unit) - } - if len(m.Range) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Range))) - i += copy(dAtA[i:], m.Range) - } - if m.Sort != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Sort)) - } - return i, nil -} - -func (m *DbChangeMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DbChangeMessage) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Table != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Table)) - } - if len(m.Id) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if m.Action != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.Action)) - } - if len(m.Info) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Info))) - i += copy(dAtA[i:], m.Info) - } - return i, nil -} - -func (m *CameraPolygon) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CameraPolygon) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.CameraId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.Name) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if len(m.Polygon) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Polygon))) - i += copy(dAtA[i:], m.Polygon) - } - if len(m.TriggerLine) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.TriggerLine))) - i += copy(dAtA[i:], m.TriggerLine) - } - if len(m.DirectionLine) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.DirectionLine))) - i += copy(dAtA[i:], m.DirectionLine) - } - if len(m.Type) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(len(m.Type))) - i += copy(dAtA[i:], m.Type) - } - if m.DefenceState != 0 { - dAtA[i] = 0x40 - i++ - i = encodeVarintProtomsg(dAtA, i, uint64(m.DefenceState)) - } - return i, nil -} - -func encodeVarintProtomsg(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *TaskLabel) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Taskid) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Sdkids) > 0 { - for _, s := range m.Sdkids { - l = len(s) - n += 1 + l + sovProtomsg(uint64(l)) - } - } - if m.Index != 0 { - n += 1 + sovProtomsg(uint64(m.Index)) - } - return n -} - -func (m *SdkMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Cid) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Tasklab != nil { - l = m.Tasklab.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Personaction != nil { - l = m.Personaction.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Vedioperson != nil { - l = m.Vedioperson.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Personaction) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ImgKey) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.VideoReqNum) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PersonPicUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.ChannlId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.LikeDate) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicAddress) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicMaxUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicDate) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicLocalUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.IsDelete) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.LikePer) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.BaseName) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.VideoNum) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.Collection) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicSmUrl) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.Indeviceid) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.Idcard) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.AckAlarm) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.PersonId) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.Id) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.Indevicename) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.FaceFeature) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.PersonIsHub) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.VideoIp) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.TaskId) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *PersonBaseInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PersonNamae) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.IDCard) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Gender) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PersonPicUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.LikePer) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TableId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.MonitorLevel) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PersonId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PhoneNum) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TableName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Vediopersons) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.VideoReqNum) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Gender) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PersonPicUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.ChannlId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.LikeDate) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Race) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PciAddress) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicMaxUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Age) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicDate) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicLocalUrl) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.IsDelete) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - if len(m.TableName) > 0 { - for _, s := range m.TableName { - l = len(s) - n += 2 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.VideoNum) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.PicSmUrl) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.SimleLevel) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.IndeviceId) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - if len(m.IDcard) > 0 { - for _, s := range m.IDcard { - l = len(s) - n += 2 + l + sovProtomsg(uint64(l)) - } - } - if len(m.PersonId) > 0 { - for _, s := range m.PersonId { - l = len(s) - n += 2 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.BeautyLevel) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.IndeviceName) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.FaceFeature) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.PersonIsHub) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.VideoIp) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.AckAlarm) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.TaskId) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.TaskName) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - if len(m.Baseinfo) > 0 { - for _, e := range m.Baseinfo { - l = e.Size() - n += 2 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.Collection) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - l = len(m.AgeDescription) - if l > 0 { - n += 2 + l + sovProtomsg(uint64(l)) - } - if len(m.TableId) > 0 { - for _, s := range m.TableId { - l = len(s) - n += 2 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *Area) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Id != 0 { - n += 1 + sovProtomsg(uint64(m.Id)) - } - if m.Parentid != 0 { - n += 1 + sovProtomsg(uint64(m.Parentid)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Camera) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovProtomsg(uint64(m.Type)) - } - l = len(m.Addr) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Areaid != 0 { - n += 1 + sovProtomsg(uint64(m.Areaid)) - } - if m.Longitude != 0 { - n += 5 - } - if m.Latitude != 0 { - n += 5 - } - l = len(m.Rtsp) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Ip) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Port != 0 { - n += 1 + sovProtomsg(uint64(m.Port)) - } - l = len(m.Username) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Password) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Brand) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Reserved) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *CameraAndTaskInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Camera != nil { - l = m.Camera.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Tasks) > 0 { - for _, e := range m.Tasks { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *Task) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Taskid) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Taskname) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CreateAt) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CreateBy) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.UpdateAt) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Enable { - n += 2 - } - if m.IsAlarm { - n += 2 - } - if m.DelFlag { - n += 2 - } - return n -} - -func (m *TaskSdkInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Task != nil { - l = m.Task.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Sdks) > 0 { - for _, e := range m.Sdks { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *CameraTask) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CameraIds) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TaskId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.TimeRule) > 0 { - for _, e := range m.TimeRule { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.ReactRule) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.ReactDevice) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.DelFlag { - n += 2 - } - if m.UpdateFlag { - n += 2 - } - if m.Enable { - n += 2 - } - if m.Sort != 0 { - n += 1 + sovProtomsg(uint64(m.Sort)) - } - if m.IsFull { - n += 2 - } - l = len(m.LinkGroupId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *CameraTimerule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TimeRule) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *DayCtl) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Day != 0 { - n += 1 + sovProtomsg(uint64(m.Day)) - } - if len(m.TimeRange) > 0 { - for _, e := range m.TimeRange { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *TimeRange) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Start) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.End) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Polygon) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Points) > 0 { - for _, e := range m.Points { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *CameraTaskArgs) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.TaskArgs) > 0 { - for _, e := range m.TaskArgs { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *TaskGroupArgs) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TaskId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.GroupRules) > 0 { - for _, e := range m.GroupRules { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *GroupRule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Rules) > 0 { - for _, e := range m.Rules { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - return n -} - -func (m *Rule) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CameraTaskId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.PolygonId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkArgAlias) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Operator) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.OperatorType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkArgValue) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Sort != 0 { - n += 1 + sovProtomsg(uint64(m.Sort)) - } - l = len(m.RuleWithPre) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *Sdk) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkType) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.SdkName) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if len(m.Args) > 0 { - for _, e := range m.Args { - l = e.Size() - n += 1 + l + sovProtomsg(uint64(l)) - } - } - l = len(m.Icon) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Url) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CreateTime) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.UpdateTime) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CreateBy) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Enabled { - n += 2 - } - if m.DelFlag != 0 { - n += 1 + sovProtomsg(uint64(m.DelFlag)) - } - return n -} - -func (m *SdkArg) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Alias) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Must { - n += 2 - } - l = len(m.Unit) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Range) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Sort != 0 { - n += 1 + sovProtomsg(uint64(m.Sort)) - } - return n -} - -func (m *DbChangeMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Table != 0 { - n += 1 + sovProtomsg(uint64(m.Table)) - } - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.Action != 0 { - n += 1 + sovProtomsg(uint64(m.Action)) - } - l = len(m.Info) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - return n -} - -func (m *CameraPolygon) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Polygon) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.TriggerLine) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.DirectionLine) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - l = len(m.Type) - if l > 0 { - n += 1 + l + sovProtomsg(uint64(l)) - } - if m.DefenceState != 0 { - n += 1 + sovProtomsg(uint64(m.DefenceState)) - } - return n -} - -func sovProtomsg(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozProtomsg(x uint64) (n int) { - return sovProtomsg(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *TaskLabel) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskLabel: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskLabel: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Taskid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Taskid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sdkids", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sdkids = append(m.Sdkids, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SdkMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SdkMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SdkMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tasklab", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Tasklab == nil { - m.Tasklab = &TaskLabel{} - } - if err := m.Tasklab.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) - if m.Data == nil { - m.Data = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Personaction", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Personaction == nil { - m.Personaction = &Personaction{} - } - if err := m.Personaction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Vedioperson", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Vedioperson == nil { - m.Vedioperson = &Vediopersons{} - } - if err := m.Vedioperson.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Personaction) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Personaction: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Personaction: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImgKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ImgKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoReqNum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoReqNum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonPicUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonPicUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannlId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannlId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LikeDate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LikeDate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicMaxUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicMaxUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicDate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicDate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicLocalUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicLocalUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IsDelete = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LikePer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LikePer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BaseName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BaseName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoNum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoNum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Collection = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicSmUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicSmUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Indeviceid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Indeviceid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Idcard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Idcard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AckAlarm", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AckAlarm = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Indevicename", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Indevicename = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 26: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FaceFeature = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonIsHub", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonIsHub = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoIp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoIp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 29: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersonBaseInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PersonBaseInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersonBaseInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonNamae", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonNamae = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IDCard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IDCard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gender", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Gender = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonPicUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonPicUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LikePer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LikePer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MonitorLevel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MonitorLevel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PhoneNum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PhoneNum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Vediopersons) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Vediopersons: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Vediopersons: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoReqNum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoReqNum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Gender", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Gender = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonPicUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonPicUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChannlId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChannlId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LikeDate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LikeDate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Race", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Race = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PciAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PciAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicMaxUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicMaxUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Age = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicDate", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicDate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicLocalUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicLocalUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IsDelete = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableName = append(m.TableName, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoNum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoNum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PicSmUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicSmUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SimleLevel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SimleLevel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IndeviceId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IndeviceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IDcard", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IDcard = append(m.IDcard, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonId = append(m.PersonId, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeautyLevel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BeautyLevel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IndeviceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IndeviceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 26: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FaceFeature = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonIsHub", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonIsHub = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoIp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoIp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 29: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AckAlarm", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AckAlarm = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 30: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 31: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 32: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 33: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Baseinfo", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Baseinfo = append(m.Baseinfo, &PersonBaseInfo{}) - if err := m.Baseinfo[len(m.Baseinfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 34: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Collection", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Collection = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 35: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AgeDescription", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AgeDescription = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 36: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableId = append(m.TableId, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Area) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Area: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Area: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - m.Id = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Id |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Parentid", wireType) - } - m.Parentid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Parentid |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Camera) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Camera: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Camera: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Areaid", wireType) - } - m.Areaid = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Areaid |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Longitude", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Longitude = float32(math.Float32frombits(v)) - case 7: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Latitude", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Latitude = float32(math.Float32frombits(v)) - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rtsp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rtsp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Ip = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) - } - m.Port = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Port |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Password = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Brand", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Brand = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserved", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reserved = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraAndTaskInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CameraAndTaskInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraAndTaskInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Camera", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Camera == nil { - m.Camera = &Camera{} - } - if err := m.Camera.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Tasks = append(m.Tasks, &Task{}) - if err := m.Tasks[len(m.Tasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Task) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Task: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Task: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Taskid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Taskid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Taskname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Taskname = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateAt", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CreateAt = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateBy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CreateBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateAt", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UpdateAt = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsAlarm", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsAlarm = bool(v != 0) - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DelFlag", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DelFlag = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskSdkInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskSdkInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskSdkInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Task", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Task == nil { - m.Task = &Task{} - } - if err := m.Task.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sdks", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sdks = append(m.Sdks, &Sdk{}) - if err := m.Sdks[len(m.Sdks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraTask) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CameraTask: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraTask: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraIds", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraIds = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeRule", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeRule = append(m.TimeRule, &DayCtl{}) - if err := m.TimeRule[len(m.TimeRule)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReactRule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReactRule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReactDevice", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReactDevice = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DelFlag", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DelFlag = bool(v != 0) - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateFlag", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UpdateFlag = bool(v != 0) - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enable = bool(v != 0) - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) - } - m.Sort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsFull", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsFull = bool(v != 0) - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkGroupId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkGroupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraTimerule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CameraTimerule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraTimerule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeRule", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeRule = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DayCtl) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DayCtl: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DayCtl: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Day", wireType) - } - m.Day = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Day |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeRange", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeRange = append(m.TimeRange, &TimeRange{}) - if err := m.TimeRange[len(m.TimeRange)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TimeRange) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TimeRange: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TimeRange: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Start = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.End = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Polygon) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Polygon: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Polygon: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Points", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Points = append(m.Points, &Point{}) - if err := m.Points[len(m.Points)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraTaskArgs) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CameraTaskArgs: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraTaskArgs: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskArgs", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskArgs = append(m.TaskArgs, &TaskGroupArgs{}) - if err := m.TaskArgs[len(m.TaskArgs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TaskGroupArgs) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: TaskGroupArgs: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TaskGroupArgs: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TaskId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupRules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupRules = append(m.GroupRules, &GroupRule{}) - if err := m.GroupRules[len(m.GroupRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupRule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupRule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupRule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Rules = append(m.Rules, &Rule{}) - if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Rule) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Rule: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraTaskId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraTaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PolygonId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PolygonId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkArgAlias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkArgAlias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Operator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Operator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OperatorType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OperatorType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkArgValue", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkArgValue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) - } - m.Sort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleWithPre", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuleWithPre = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Sdk) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Sdk: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Sdk: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SdkName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Args", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Args = append(m.Args, &SdkArg{}) - if err := m.Args[len(m.Args)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Icon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Icon = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CreateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UpdateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateBy", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CreateBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DelFlag", wireType) - } - m.DelFlag = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DelFlag |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SdkArg) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SdkArg: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SdkArg: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Alias", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Alias = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Must", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Must = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Unit", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Unit = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Range = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sort", wireType) - } - m.Sort = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sort |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DbChangeMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DbChangeMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DbChangeMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Table", wireType) - } - m.Table = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Table |= TableChanged(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) - } - m.Action = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Action |= DbAction(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Info = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CameraPolygon) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CameraPolygon: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CameraPolygon: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Id = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Polygon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Polygon = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TriggerLine", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TriggerLine = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DirectionLine", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DirectionLine = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtomsg - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtomsg - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Type = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefenceState", wireType) - } - m.DefenceState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtomsg - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DefenceState |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtomsg(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthProtomsg - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipProtomsg(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtomsg - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtomsg - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtomsg - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthProtomsg - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthProtomsg - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtomsg - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipProtomsg(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthProtomsg - } - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") + 0x11, 0x36, 0xff, 0x89, 0xe6, 0x8f, 0x28, 0x58, 0x96, 0xa0, 0x3f, 0x9b, 0x82, 0x94, 0x44, 0xa5, + 0x8a, 0x75, 0x90, 0x75, 0x48, 0xe5, 0xb6, 0xd6, 0x96, 0x12, 0x56, 0xe4, 0x2d, 0x19, 0xbb, 0x56, + 0x6e, 0x61, 0x0d, 0x31, 0xb3, 0xd4, 0x14, 0x41, 0x80, 0xc1, 0x80, 0x6b, 0xef, 0x21, 0xcf, 0x90, + 0x6b, 0xde, 0x21, 0xb7, 0x3c, 0x45, 0x4e, 0xa9, 0xdc, 0x72, 0xcc, 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 0x2d, 0xff, 0x06, 0xcc, 0xea, 0x08, + 0x2a, 0xf3, 0xac, 0xed, 0x03, 0xf4, 0xcf, 0x96, 0x34, 0xa3, 0xe3, 0x4f, 0xc0, 0xe3, 0xf1, 0xa9, + 0xdc, 0xcc, 0xba, 0xfe, 0x75, 0x98, 0x94, 0x26, 0x2a, 0xe4, 0xac, 0xe7, 0x7b, 0xd0, 0x3b, 0x5b, + 0xa2, 0xb7, 0xff, 0xe4, 0x29, 0x0c, 0x5d, 0x58, 0x70, 0x91, 0x45, 0x6a, 0x54, 0x5e, 0xcc, 0x3e, + 0xc2, 0xf1, 0x37, 0x74, 0x27, 0x66, 0x2d, 0x1c, 0xf3, 0x57, 0xeb, 0xac, 0xbd, 0xea, 0x53, 0x34, + 0xbf, 0xf8, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xcf, 0xee, 0xb2, 0xb3, 0x78, 0x16, 0x00, 0x00, } - -var ( - ErrInvalidLengthProtomsg = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowProtomsg = fmt.Errorf("proto: integer overflow") -) diff --git a/protomsg.proto b/protomsg.proto index 3318236..706ac00 100644 --- a/protomsg.proto +++ b/protomsg.proto @@ -158,7 +158,7 @@ //鎽勫儚鏈轰换鍔� message CameraTask { string id = 1; - string camera_ids = 2;//鎽勫儚鏈篿d + string camera_id = 2;//鎽勫儚鏈篿d string task_id = 3;//浠诲姟id repeated DayCtl time_rule = 4;//甯冮槻鏃堕棿 string react_rule = 5;//鑱斿姩鏂瑰紡 @@ -168,7 +168,7 @@ bool enable = 9; //鏄惁鍚敤 int32 sort = 10; //浠诲姟鎺掑簭 bool is_full = 11;//鍙傛暟鏄惁璁剧疆瀹屾暣 - string link_group_id = 12; + string link_task_id = 12; } //鎽勫儚鏈哄竷闃茬殑鏃堕棿瑙勫垯锛屽彲浠ヨ缃涓�,鐢╥d鍏宠仈鍒板叿浣撶殑瑙勫垯閰嶇疆涓� -- Gitblit v1.8.0