From ce4117a8c26f0f0ddc7329a5b7f826abcabe42e8 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 19 十一月 2019 17:01:11 +0800 Subject: [PATCH] add aiocean index and del videopersons index --- aiocean.proto | 104 + /dev/null | 60 aiocean.pb.go | 4942 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 5,046 insertions(+), 60 deletions(-) diff --git a/aiocean.pb.go b/aiocean.pb.go new file mode 100644 index 0000000..a5af9b3 --- /dev/null +++ b/aiocean.pb.go @@ -0,0 +1,4942 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: aiocean.proto + +package protomsg + +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package + +type EsDataBase struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` + CameraName string `protobuf:"bytes,3,opt,name=cameraName,proto3" json:"cameraName,omitempty"` + CameraAddr string `protobuf:"bytes,4,opt,name=cameraAddr,proto3" json:"cameraAddr,omitempty"` + AnalyServerId string `protobuf:"bytes,5,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` + AnalyServerName string `protobuf:"bytes,6,opt,name=analyServerName,proto3" json:"analyServerName,omitempty"` + AnalyServerIp string `protobuf:"bytes,7,opt,name=analyServerIp,proto3" json:"analyServerIp,omitempty"` + ClusterId string `protobuf:"bytes,8,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + TaskId string `protobuf:"bytes,9,opt,name=taskId,proto3" json:"taskId,omitempty"` + TaskName string `protobuf:"bytes,10,opt,name=taskName,proto3" json:"taskName,omitempty"` + SdkName string `protobuf:"bytes,11,opt,name=sdkName,proto3" json:"sdkName,omitempty"` + PicMaxUrl string `protobuf:"bytes,12,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` + VideoUrl string `protobuf:"bytes,13,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` + PicDate string `protobuf:"bytes,14,opt,name=picDate,proto3" json:"picDate,omitempty"` + TargetInfo []*TargetInfo `protobuf:"bytes,15,rep,name=targetInfo,proto3" json:"targetInfo,omitempty"` + OtherLabels string `protobuf:"bytes,16,opt,name=otherLabels,proto3" json:"otherLabels,omitempty"` + ShowLabels string `protobuf:"bytes,17,opt,name=showLabels,proto3" json:"showLabels,omitempty"` + LikeDate string `protobuf:"bytes,18,opt,name=likeDate,proto3" json:"likeDate,omitempty"` + BaseInfo []*BaseInfo `protobuf:"bytes,19,rep,name=baseInfo,proto3" json:"baseInfo,omitempty"` + IsAlarm bool `protobuf:"varint,20,opt,name=isAlarm,proto3" json:"isAlarm,omitempty"` + IsAckAlarm bool `protobuf:"varint,21,opt,name=isAckAlarm,proto3" json:"isAckAlarm,omitempty"` + AlarmRules []*AlarmRules `protobuf:"bytes,22,rep,name=alarmRules,proto3" json:"alarmRules,omitempty"` + IsCollect bool `protobuf:"varint,23,opt,name=isCollect,proto3" json:"isCollect,omitempty"` + IsDelete bool `protobuf:"varint,24,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + Content string `protobuf:"bytes,25,opt,name=content,proto3" json:"content,omitempty"` +} + +func (m *EsDataBase) Reset() { *m = EsDataBase{} } +func (m *EsDataBase) String() string { return proto.CompactTextString(m) } +func (*EsDataBase) ProtoMessage() {} +func (*EsDataBase) Descriptor() ([]byte, []int) { + return fileDescriptor_e7fb370e860fe148, []int{0} +} +func (m *EsDataBase) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EsDataBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EsDataBase.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EsDataBase) XXX_Merge(src proto.Message) { + xxx_messageInfo_EsDataBase.Merge(m, src) +} +func (m *EsDataBase) XXX_Size() int { + return m.Size() +} +func (m *EsDataBase) XXX_DiscardUnknown() { + xxx_messageInfo_EsDataBase.DiscardUnknown(m) +} + +var xxx_messageInfo_EsDataBase proto.InternalMessageInfo + +func (m *EsDataBase) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *EsDataBase) GetCameraId() string { + if m != nil { + return m.CameraId + } + return "" +} + +func (m *EsDataBase) GetCameraName() string { + if m != nil { + return m.CameraName + } + return "" +} + +func (m *EsDataBase) GetCameraAddr() string { + if m != nil { + return m.CameraAddr + } + return "" +} + +func (m *EsDataBase) GetAnalyServerId() string { + if m != nil { + return m.AnalyServerId + } + return "" +} + +func (m *EsDataBase) GetAnalyServerName() string { + if m != nil { + return m.AnalyServerName + } + return "" +} + +func (m *EsDataBase) GetAnalyServerIp() string { + if m != nil { + return m.AnalyServerIp + } + return "" +} + +func (m *EsDataBase) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *EsDataBase) GetTaskId() string { + if m != nil { + return m.TaskId + } + return "" +} + +func (m *EsDataBase) GetTaskName() string { + if m != nil { + return m.TaskName + } + return "" +} + +func (m *EsDataBase) GetSdkName() string { + if m != nil { + return m.SdkName + } + return "" +} + +func (m *EsDataBase) GetPicMaxUrl() string { + if m != nil { + return m.PicMaxUrl + } + return "" +} + +func (m *EsDataBase) GetVideoUrl() string { + if m != nil { + return m.VideoUrl + } + return "" +} + +func (m *EsDataBase) GetPicDate() string { + if m != nil { + return m.PicDate + } + return "" +} + +func (m *EsDataBase) GetTargetInfo() []*TargetInfo { + if m != nil { + return m.TargetInfo + } + return nil +} + +func (m *EsDataBase) GetOtherLabels() string { + if m != nil { + return m.OtherLabels + } + return "" +} + +func (m *EsDataBase) GetShowLabels() string { + if m != nil { + return m.ShowLabels + } + return "" +} + +func (m *EsDataBase) GetLikeDate() string { + if m != nil { + return m.LikeDate + } + return "" +} + +func (m *EsDataBase) GetBaseInfo() []*BaseInfo { + if m != nil { + return m.BaseInfo + } + return nil +} + +func (m *EsDataBase) GetIsAlarm() bool { + if m != nil { + return m.IsAlarm + } + return false +} + +func (m *EsDataBase) GetIsAckAlarm() bool { + if m != nil { + return m.IsAckAlarm + } + return false +} + +func (m *EsDataBase) GetAlarmRules() []*AlarmRules { + if m != nil { + return m.AlarmRules + } + return nil +} + +func (m *EsDataBase) GetIsCollect() bool { + if m != nil { + return m.IsCollect + } + return false +} + +func (m *EsDataBase) GetIsDelete() bool { + if m != nil { + return m.IsDelete + } + return false +} + +func (m *EsDataBase) GetContent() string { + if m != nil { + return m.Content + } + return "" +} + +type AIOcean struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` + CameraName string `protobuf:"bytes,3,opt,name=cameraName,proto3" json:"cameraName,omitempty"` + CameraAddr string `protobuf:"bytes,4,opt,name=cameraAddr,proto3" json:"cameraAddr,omitempty"` + AnalyServerId string `protobuf:"bytes,5,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` + AnalyServerName string `protobuf:"bytes,6,opt,name=analyServerName,proto3" json:"analyServerName,omitempty"` + AnalyServerIp string `protobuf:"bytes,7,opt,name=analyServerIp,proto3" json:"analyServerIp,omitempty"` + ClusterId string `protobuf:"bytes,8,opt,name=clusterId,proto3" json:"clusterId,omitempty"` + TaskId string `protobuf:"bytes,9,opt,name=taskId,proto3" json:"taskId,omitempty"` + TaskName string `protobuf:"bytes,10,opt,name=taskName,proto3" json:"taskName,omitempty"` + SdkName string `protobuf:"bytes,11,opt,name=sdkName,proto3" json:"sdkName,omitempty"` + PicMaxUrl string `protobuf:"bytes,12,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` + VideoUrl string `protobuf:"bytes,13,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` + PicDate string `protobuf:"bytes,14,opt,name=picDate,proto3" json:"picDate,omitempty"` + TargetInfo []*TargetInfo `protobuf:"bytes,15,rep,name=targetInfo,proto3" json:"targetInfo,omitempty"` + OtherLabels string `protobuf:"bytes,16,opt,name=otherLabels,proto3" json:"otherLabels,omitempty"` + ShowLabels string `protobuf:"bytes,17,opt,name=showLabels,proto3" json:"showLabels,omitempty"` + LikeDate string `protobuf:"bytes,18,opt,name=likeDate,proto3" json:"likeDate,omitempty"` + BaseInfo []*BaseInfo `protobuf:"bytes,19,rep,name=baseInfo,proto3" json:"baseInfo,omitempty"` + IsAlarm bool `protobuf:"varint,20,opt,name=isAlarm,proto3" json:"isAlarm,omitempty"` + IsAckAlarm bool `protobuf:"varint,21,opt,name=isAckAlarm,proto3" json:"isAckAlarm,omitempty"` + AlarmRules []*AlarmRules `protobuf:"bytes,22,rep,name=alarmRules,proto3" json:"alarmRules,omitempty"` + IsCollect bool `protobuf:"varint,23,opt,name=isCollect,proto3" json:"isCollect,omitempty"` + IsDelete bool `protobuf:"varint,24,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + Content string `protobuf:"bytes,25,opt,name=content,proto3" json:"content,omitempty"` + LinkTag string `protobuf:"bytes,26,opt,name=linkTag,proto3" json:"linkTag,omitempty"` + LinkTagInfo []*EsDataBase `protobuf:"bytes,27,rep,name=linkTagInfo,proto3" json:"linkTagInfo,omitempty"` +} + +func (m *AIOcean) Reset() { *m = AIOcean{} } +func (m *AIOcean) String() string { return proto.CompactTextString(m) } +func (*AIOcean) ProtoMessage() {} +func (*AIOcean) Descriptor() ([]byte, []int) { + return fileDescriptor_e7fb370e860fe148, []int{1} +} +func (m *AIOcean) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AIOcean) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AIOcean.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AIOcean) XXX_Merge(src proto.Message) { + xxx_messageInfo_AIOcean.Merge(m, src) +} +func (m *AIOcean) XXX_Size() int { + return m.Size() +} +func (m *AIOcean) XXX_DiscardUnknown() { + xxx_messageInfo_AIOcean.DiscardUnknown(m) +} + +var xxx_messageInfo_AIOcean proto.InternalMessageInfo + +func (m *AIOcean) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *AIOcean) GetCameraId() string { + if m != nil { + return m.CameraId + } + return "" +} + +func (m *AIOcean) GetCameraName() string { + if m != nil { + return m.CameraName + } + return "" +} + +func (m *AIOcean) GetCameraAddr() string { + if m != nil { + return m.CameraAddr + } + return "" +} + +func (m *AIOcean) GetAnalyServerId() string { + if m != nil { + return m.AnalyServerId + } + return "" +} + +func (m *AIOcean) GetAnalyServerName() string { + if m != nil { + return m.AnalyServerName + } + return "" +} + +func (m *AIOcean) GetAnalyServerIp() string { + if m != nil { + return m.AnalyServerIp + } + return "" +} + +func (m *AIOcean) GetClusterId() string { + if m != nil { + return m.ClusterId + } + return "" +} + +func (m *AIOcean) GetTaskId() string { + if m != nil { + return m.TaskId + } + return "" +} + +func (m *AIOcean) GetTaskName() string { + if m != nil { + return m.TaskName + } + return "" +} + +func (m *AIOcean) GetSdkName() string { + if m != nil { + return m.SdkName + } + return "" +} + +func (m *AIOcean) GetPicMaxUrl() string { + if m != nil { + return m.PicMaxUrl + } + return "" +} + +func (m *AIOcean) GetVideoUrl() string { + if m != nil { + return m.VideoUrl + } + return "" +} + +func (m *AIOcean) GetPicDate() string { + if m != nil { + return m.PicDate + } + return "" +} + +func (m *AIOcean) GetTargetInfo() []*TargetInfo { + if m != nil { + return m.TargetInfo + } + return nil +} + +func (m *AIOcean) GetOtherLabels() string { + if m != nil { + return m.OtherLabels + } + return "" +} + +func (m *AIOcean) GetShowLabels() string { + if m != nil { + return m.ShowLabels + } + return "" +} + +func (m *AIOcean) GetLikeDate() string { + if m != nil { + return m.LikeDate + } + return "" +} + +func (m *AIOcean) GetBaseInfo() []*BaseInfo { + if m != nil { + return m.BaseInfo + } + return nil +} + +func (m *AIOcean) GetIsAlarm() bool { + if m != nil { + return m.IsAlarm + } + return false +} + +func (m *AIOcean) GetIsAckAlarm() bool { + if m != nil { + return m.IsAckAlarm + } + return false +} + +func (m *AIOcean) GetAlarmRules() []*AlarmRules { + if m != nil { + return m.AlarmRules + } + return nil +} + +func (m *AIOcean) GetIsCollect() bool { + if m != nil { + return m.IsCollect + } + return false +} + +func (m *AIOcean) GetIsDelete() bool { + if m != nil { + return m.IsDelete + } + return false +} + +func (m *AIOcean) GetContent() string { + if m != nil { + return m.Content + } + return "" +} + +func (m *AIOcean) GetLinkTag() string { + if m != nil { + return m.LinkTag + } + return "" +} + +func (m *AIOcean) GetLinkTagInfo() []*EsDataBase { + if m != nil { + return m.LinkTagInfo + } + return nil +} + +type TargetInfo struct { + TargetId string `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"` + TargetScore float32 `protobuf:"fixed32,2,opt,name=targetScore,proto3" json:"targetScore,omitempty"` + Feature string `protobuf:"bytes,3,opt,name=feature,proto3" json:"feature,omitempty"` + PicSmUrl string `protobuf:"bytes,4,opt,name=picSmUrl,proto3" json:"picSmUrl,omitempty"` + TargetLocation *TargetLocation `protobuf:"bytes,5,opt,name=targetLocation,proto3" json:"targetLocation,omitempty"` +} + +func (m *TargetInfo) Reset() { *m = TargetInfo{} } +func (m *TargetInfo) String() string { return proto.CompactTextString(m) } +func (*TargetInfo) ProtoMessage() {} +func (*TargetInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_e7fb370e860fe148, []int{2} +} +func (m *TargetInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TargetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TargetInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TargetInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TargetInfo.Merge(m, src) +} +func (m *TargetInfo) XXX_Size() int { + return m.Size() +} +func (m *TargetInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TargetInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_TargetInfo proto.InternalMessageInfo + +func (m *TargetInfo) GetTargetId() string { + if m != nil { + return m.TargetId + } + return "" +} + +func (m *TargetInfo) GetTargetScore() float32 { + if m != nil { + return m.TargetScore + } + return 0 +} + +func (m *TargetInfo) GetFeature() string { + if m != nil { + return m.Feature + } + return "" +} + +func (m *TargetInfo) GetPicSmUrl() string { + if m != nil { + return m.PicSmUrl + } + return "" +} + +func (m *TargetInfo) GetTargetLocation() *TargetLocation { + if m != nil { + return m.TargetLocation + } + return nil +} + +type TargetLocation struct { + TopLeft *Location `protobuf:"bytes,1,opt,name=topLeft,proto3" json:"topLeft,omitempty"` + BottomRight *Location `protobuf:"bytes,2,opt,name=bottomRight,proto3" json:"bottomRight,omitempty"` +} + +func (m *TargetLocation) Reset() { *m = TargetLocation{} } +func (m *TargetLocation) String() string { return proto.CompactTextString(m) } +func (*TargetLocation) ProtoMessage() {} +func (*TargetLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_e7fb370e860fe148, []int{3} +} +func (m *TargetLocation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TargetLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TargetLocation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TargetLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TargetLocation.Merge(m, src) +} +func (m *TargetLocation) XXX_Size() int { + return m.Size() +} +func (m *TargetLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TargetLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_TargetLocation proto.InternalMessageInfo + +func (m *TargetLocation) GetTopLeft() *Location { + if m != nil { + return m.TopLeft + } + return nil +} + +func (m *TargetLocation) GetBottomRight() *Location { + if m != nil { + return m.BottomRight + } + return nil +} + +type Location struct { + X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` + Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` +} + +func (m *Location) Reset() { *m = Location{} } +func (m *Location) String() string { return proto.CompactTextString(m) } +func (*Location) ProtoMessage() {} +func (*Location) Descriptor() ([]byte, []int) { + return fileDescriptor_e7fb370e860fe148, []int{4} +} +func (m *Location) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Location.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Location) XXX_Merge(src proto.Message) { + xxx_messageInfo_Location.Merge(m, src) +} +func (m *Location) XXX_Size() int { + return m.Size() +} +func (m *Location) XXX_DiscardUnknown() { + xxx_messageInfo_Location.DiscardUnknown(m) +} + +var xxx_messageInfo_Location proto.InternalMessageInfo + +func (m *Location) GetX() float32 { + if m != nil { + return m.X + } + return 0 +} + +func (m *Location) GetY() float32 { + if m != nil { + return m.Y + } + return 0 +} + +type AlarmRules struct { + GroupId string `protobuf:"bytes,1,opt,name=groupId,proto3" json:"groupId,omitempty"` + AlarmLevel string `protobuf:"bytes,2,opt,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` + RuleText string `protobuf:"bytes,3,opt,name=ruleText,proto3" json:"ruleText,omitempty"` + DefenceState bool `protobuf:"varint,4,opt,name=defenceState,proto3" json:"defenceState,omitempty"` + IsLink bool `protobuf:"varint,5,opt,name=isLink,proto3" json:"isLink,omitempty"` + LinkInfo string `protobuf:"bytes,6,opt,name=linkInfo,proto3" json:"linkInfo,omitempty"` +} + +func (m *AlarmRules) Reset() { *m = AlarmRules{} } +func (m *AlarmRules) String() string { return proto.CompactTextString(m) } +func (*AlarmRules) ProtoMessage() {} +func (*AlarmRules) Descriptor() ([]byte, []int) { + return fileDescriptor_e7fb370e860fe148, []int{5} +} +func (m *AlarmRules) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AlarmRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AlarmRules.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AlarmRules) XXX_Merge(src proto.Message) { + xxx_messageInfo_AlarmRules.Merge(m, src) +} +func (m *AlarmRules) XXX_Size() int { + return m.Size() +} +func (m *AlarmRules) XXX_DiscardUnknown() { + xxx_messageInfo_AlarmRules.DiscardUnknown(m) +} + +var xxx_messageInfo_AlarmRules proto.InternalMessageInfo + +func (m *AlarmRules) GetGroupId() string { + if m != nil { + return m.GroupId + } + return "" +} + +func (m *AlarmRules) GetAlarmLevel() string { + if m != nil { + return m.AlarmLevel + } + return "" +} + +func (m *AlarmRules) GetRuleText() string { + if m != nil { + return m.RuleText + } + return "" +} + +func (m *AlarmRules) GetDefenceState() bool { + if m != nil { + return m.DefenceState + } + return false +} + +func (m *AlarmRules) GetIsLink() bool { + if m != nil { + return m.IsLink + } + return false +} + +func (m *AlarmRules) GetLinkInfo() string { + if m != nil { + return m.LinkInfo + } + return "" +} + +type BaseInfo struct { + TableId string `protobuf:"bytes,1,opt,name=tableId,proto3" json:"tableId,omitempty"` + TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"` + CompareScore float32 `protobuf:"fixed32,3,opt,name=compareScore,proto3" json:"compareScore,omitempty"` + PersonId string `protobuf:"bytes,4,opt,name=personId,proto3" json:"personId,omitempty"` + PersonName string `protobuf:"bytes,5,opt,name=personName,proto3" json:"personName,omitempty"` + PersonPicUrl string `protobuf:"bytes,6,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` + PhoneNum string `protobuf:"bytes,7,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` + Sex string `protobuf:"bytes,8,opt,name=sex,proto3" json:"sex,omitempty"` + IdCard string `protobuf:"bytes,9,opt,name=idCard,proto3" json:"idCard,omitempty"` + MonitorLevel string `protobuf:"bytes,10,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` + Content string `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` + BwType string `protobuf:"bytes,12,opt,name=bwType,proto3" json:"bwType,omitempty"` +} + +func (m *BaseInfo) Reset() { *m = BaseInfo{} } +func (m *BaseInfo) String() string { return proto.CompactTextString(m) } +func (*BaseInfo) ProtoMessage() {} +func (*BaseInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_e7fb370e860fe148, []int{6} +} +func (m *BaseInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BaseInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BaseInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_BaseInfo.Merge(m, src) +} +func (m *BaseInfo) XXX_Size() int { + return m.Size() +} +func (m *BaseInfo) XXX_DiscardUnknown() { + xxx_messageInfo_BaseInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_BaseInfo proto.InternalMessageInfo + +func (m *BaseInfo) GetTableId() string { + if m != nil { + return m.TableId + } + return "" +} + +func (m *BaseInfo) GetTableName() string { + if m != nil { + return m.TableName + } + return "" +} + +func (m *BaseInfo) GetCompareScore() float32 { + if m != nil { + return m.CompareScore + } + return 0 +} + +func (m *BaseInfo) GetPersonId() string { + if m != nil { + return m.PersonId + } + return "" +} + +func (m *BaseInfo) GetPersonName() string { + if m != nil { + return m.PersonName + } + return "" +} + +func (m *BaseInfo) GetPersonPicUrl() string { + if m != nil { + return m.PersonPicUrl + } + return "" +} + +func (m *BaseInfo) GetPhoneNum() string { + if m != nil { + return m.PhoneNum + } + return "" +} + +func (m *BaseInfo) GetSex() string { + if m != nil { + return m.Sex + } + return "" +} + +func (m *BaseInfo) GetIdCard() string { + if m != nil { + return m.IdCard + } + return "" +} + +func (m *BaseInfo) GetMonitorLevel() string { + if m != nil { + return m.MonitorLevel + } + return "" +} + +func (m *BaseInfo) GetContent() string { + if m != nil { + return m.Content + } + return "" +} + +func (m *BaseInfo) GetBwType() string { + if m != nil { + return m.BwType + } + return "" +} + +func init() { + proto.RegisterType((*EsDataBase)(nil), "protomsg.EsDataBase") + proto.RegisterType((*AIOcean)(nil), "protomsg.AIOcean") + proto.RegisterType((*TargetInfo)(nil), "protomsg.TargetInfo") + proto.RegisterType((*TargetLocation)(nil), "protomsg.TargetLocation") + proto.RegisterType((*Location)(nil), "protomsg.Location") + proto.RegisterType((*AlarmRules)(nil), "protomsg.AlarmRules") + proto.RegisterType((*BaseInfo)(nil), "protomsg.BaseInfo") +} + +func init() { proto.RegisterFile("aiocean.proto", fileDescriptor_e7fb370e860fe148) } + +var fileDescriptor_e7fb370e860fe148 = []byte{ + // 856 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xcd, 0x6e, 0x23, 0x45, + 0x10, 0xce, 0x38, 0x8b, 0xed, 0xb4, 0x93, 0xec, 0xd2, 0x2c, 0xa1, 0x59, 0x90, 0x15, 0x59, 0x08, + 0xe5, 0x80, 0x72, 0x58, 0x56, 0x9c, 0x71, 0x36, 0x1c, 0x2c, 0x99, 0x05, 0x4d, 0xc2, 0x03, 0xb4, + 0x67, 0x2a, 0x4e, 0xcb, 0x33, 0xd3, 0xa3, 0xee, 0x76, 0xd6, 0x79, 0x00, 0xee, 0x3c, 0x0d, 0x07, + 0x8e, 0x9c, 0x38, 0xe6, 0xc8, 0x11, 0x39, 0x2f, 0x82, 0xaa, 0xba, 0xe7, 0xcf, 0x70, 0xd8, 0x07, + 0xc8, 0xc9, 0xfd, 0x7d, 0x55, 0xae, 0xae, 0xae, 0xaa, 0xaf, 0x86, 0x1d, 0x49, 0xa5, 0x13, 0x90, + 0xc5, 0x79, 0x69, 0xb4, 0xd3, 0x7c, 0x48, 0x3f, 0xb9, 0x5d, 0x4e, 0x7e, 0xef, 0x33, 0xf6, 0x83, + 0xbd, 0x94, 0x4e, 0x5e, 0x48, 0x0b, 0xfc, 0x98, 0xf5, 0x54, 0x2a, 0xa2, 0xd3, 0xe8, 0xec, 0x20, + 0xee, 0xa9, 0x94, 0xbf, 0x62, 0xc3, 0x44, 0xe6, 0x60, 0xe4, 0x2c, 0x15, 0x3d, 0x62, 0x6b, 0xcc, + 0xc7, 0x8c, 0xf9, 0xf3, 0x3b, 0x99, 0x83, 0xd8, 0x27, 0x6b, 0x8b, 0x69, 0xec, 0xd3, 0x34, 0x35, + 0xe2, 0x59, 0xdb, 0x8e, 0x0c, 0xff, 0x8a, 0x1d, 0xc9, 0x42, 0x66, 0xf7, 0x57, 0x60, 0xee, 0xc0, + 0xcc, 0x52, 0xf1, 0x11, 0xb9, 0x74, 0x49, 0x7e, 0xc6, 0x9e, 0xb7, 0x08, 0xba, 0xaa, 0x4f, 0x7e, + 0xbb, 0xf4, 0x6e, 0xbc, 0x52, 0x0c, 0xfe, 0x1b, 0xaf, 0xe4, 0x5f, 0xb2, 0x83, 0x24, 0x5b, 0x5b, + 0x47, 0x37, 0x0e, 0xc9, 0xa3, 0x21, 0xf8, 0x09, 0xeb, 0x3b, 0x69, 0x57, 0xb3, 0x54, 0x1c, 0x90, + 0x29, 0x20, 0xac, 0x03, 0x9e, 0xe8, 0x7a, 0xe6, 0xeb, 0x50, 0x61, 0x2e, 0xd8, 0xc0, 0xa6, 0xde, + 0x34, 0x22, 0x53, 0x05, 0xf1, 0xae, 0x52, 0x25, 0x3f, 0xca, 0xcd, 0x2f, 0x26, 0x13, 0x87, 0xfe, + 0xae, 0x9a, 0xc0, 0x98, 0x77, 0x2a, 0x05, 0x8d, 0xc6, 0x23, 0x1f, 0xb3, 0xc2, 0x18, 0xb3, 0x54, + 0xc9, 0xa5, 0x74, 0x20, 0x8e, 0x7d, 0xcc, 0x00, 0xf9, 0x1b, 0xc6, 0x9c, 0x34, 0x4b, 0x70, 0xb3, + 0xe2, 0x46, 0x8b, 0xe7, 0xa7, 0xfb, 0x67, 0xa3, 0xd7, 0x2f, 0xcf, 0xab, 0x7e, 0x9e, 0x5f, 0xd7, + 0xb6, 0xb8, 0xe5, 0xc7, 0x4f, 0xd9, 0x48, 0xbb, 0x5b, 0x30, 0x73, 0xb9, 0x80, 0xcc, 0x8a, 0x17, + 0x14, 0xb3, 0x4d, 0x61, 0xb7, 0xec, 0xad, 0x7e, 0x1f, 0x1c, 0x3e, 0xf6, 0xdd, 0x6a, 0x18, 0xcc, + 0x36, 0x53, 0x2b, 0xa0, 0x94, 0xb8, 0xcf, 0xb6, 0xc2, 0xfc, 0x9c, 0x0d, 0x17, 0xd2, 0x02, 0x65, + 0xf4, 0x09, 0x65, 0xc4, 0x9b, 0x8c, 0x2e, 0x82, 0x25, 0xae, 0x7d, 0xf0, 0x75, 0xca, 0x4e, 0x33, + 0x69, 0x72, 0xf1, 0xf2, 0x34, 0x3a, 0x1b, 0xc6, 0x15, 0xc4, 0x2c, 0x94, 0x9d, 0x26, 0x2b, 0x6f, + 0xfc, 0x94, 0x8c, 0x2d, 0x06, 0x5f, 0x2f, 0xf1, 0x10, 0xaf, 0x33, 0xb0, 0xe2, 0x64, 0xf7, 0xf5, + 0xd3, 0xda, 0x16, 0xb7, 0xfc, 0xb0, 0x0f, 0xca, 0xbe, 0xd5, 0x59, 0x06, 0x89, 0x13, 0x9f, 0x51, + 0xd0, 0x86, 0xc0, 0x97, 0x29, 0x7b, 0x09, 0x19, 0x38, 0x10, 0x82, 0x8c, 0x35, 0xc6, 0x4c, 0x13, + 0x5d, 0x38, 0x28, 0x9c, 0xf8, 0xdc, 0xf7, 0x21, 0xc0, 0xc9, 0xaf, 0x03, 0x36, 0x98, 0xce, 0x7e, + 0x42, 0x51, 0x3d, 0xa9, 0xe6, 0x49, 0x35, 0x4f, 0xaa, 0xf9, 0x10, 0xd5, 0xa0, 0x25, 0x53, 0xc5, + 0xea, 0x5a, 0x2e, 0xc5, 0x2b, 0x6f, 0x09, 0x90, 0x7f, 0xc7, 0x46, 0xe1, 0x48, 0x05, 0xf9, 0x62, + 0x37, 0xc9, 0xe6, 0x23, 0x15, 0xb7, 0x1d, 0x27, 0x7f, 0x46, 0x8c, 0x35, 0xed, 0xf3, 0x23, 0x47, + 0xa8, 0x12, 0x64, 0x8d, 0xb1, 0x9d, 0xfe, 0x7c, 0x95, 0x68, 0x03, 0xa4, 0xcc, 0x5e, 0xdc, 0xa6, + 0x30, 0xbd, 0x1b, 0x90, 0x6e, 0x6d, 0x2a, 0x65, 0x56, 0x10, 0xe3, 0x96, 0x2a, 0xb9, 0xca, 0x71, + 0xec, 0xbc, 0x28, 0x6b, 0xcc, 0xbf, 0x67, 0xc7, 0x3e, 0xc8, 0x5c, 0x27, 0xd2, 0x29, 0x5d, 0x90, + 0x26, 0x47, 0xaf, 0xc5, 0xee, 0x80, 0x55, 0xf6, 0x78, 0xc7, 0x7f, 0xe2, 0xd8, 0x71, 0xd7, 0x83, + 0x7f, 0xc3, 0x06, 0x4e, 0x97, 0x73, 0xb8, 0x71, 0xf4, 0x8c, 0xce, 0x6c, 0xd4, 0x61, 0x2a, 0x17, + 0xfe, 0x86, 0x8d, 0x16, 0xda, 0x39, 0x9d, 0xc7, 0x6a, 0x79, 0xeb, 0xe8, 0x65, 0xff, 0xff, 0x8f, + 0xb6, 0xdb, 0xe4, 0x6b, 0x36, 0xac, 0xef, 0x3b, 0x64, 0xd1, 0x86, 0x6e, 0xea, 0xc5, 0xd1, 0x06, + 0xd1, 0x7d, 0xa8, 0x4f, 0x74, 0x3f, 0xf9, 0x23, 0x62, 0xac, 0x99, 0x11, 0x2c, 0xd2, 0xd2, 0xe8, + 0x75, 0x59, 0x57, 0xb8, 0x82, 0x38, 0x87, 0x34, 0x3f, 0x73, 0xb8, 0x83, 0x2c, 0x6c, 0xbe, 0x16, + 0x83, 0x45, 0x34, 0xeb, 0x0c, 0xae, 0x61, 0xe3, 0x42, 0x7d, 0x6b, 0xcc, 0x27, 0xec, 0x30, 0x85, + 0x1b, 0x28, 0x12, 0xb8, 0x72, 0xa8, 0x96, 0x67, 0x34, 0x53, 0x1d, 0x0e, 0xf7, 0x8c, 0xb2, 0x73, + 0x55, 0xac, 0xa8, 0xc0, 0xc3, 0x38, 0x20, 0xaf, 0xb2, 0x62, 0x45, 0x83, 0xd3, 0xaf, 0x54, 0xe6, + 0xf1, 0x64, 0xdb, 0x63, 0xc3, 0x8b, 0x96, 0x84, 0x9c, 0x5c, 0x64, 0xd0, 0xa4, 0x1e, 0x20, 0x0e, + 0x3b, 0x1d, 0x69, 0x21, 0xf9, 0xcc, 0x1b, 0x02, 0x93, 0x4b, 0x74, 0x5e, 0x4a, 0x03, 0x7e, 0x74, + 0xf6, 0xa9, 0x34, 0x1d, 0x8e, 0x26, 0x04, 0x8c, 0xd5, 0xc5, 0x2c, 0xad, 0x27, 0x24, 0x60, 0x2c, + 0x8c, 0x3f, 0x53, 0x78, 0xbf, 0xb1, 0x5b, 0x0c, 0xc6, 0xf7, 0xe8, 0x67, 0x95, 0xe0, 0x84, 0xf9, + 0x47, 0x74, 0x38, 0x8a, 0x7f, 0xab, 0x0b, 0x78, 0xb7, 0xce, 0xc3, 0x8e, 0xae, 0x31, 0x7f, 0xc1, + 0xf6, 0x2d, 0x6c, 0xc2, 0x62, 0xc6, 0x23, 0x95, 0x2a, 0x7d, 0x2b, 0x4d, 0xbd, 0x92, 0x3d, 0xc2, + 0x9b, 0x72, 0x5d, 0x28, 0xa7, 0x8d, 0x6f, 0x92, 0x5f, 0xcb, 0x1d, 0xae, 0x2d, 0xdf, 0x51, 0x57, + 0xbe, 0x27, 0xac, 0xbf, 0x78, 0x7f, 0x7d, 0x5f, 0x42, 0xd8, 0xcb, 0x01, 0x5d, 0x88, 0xbf, 0xb6, + 0xe3, 0xe8, 0x61, 0x3b, 0x8e, 0xfe, 0xd9, 0x8e, 0xa3, 0xdf, 0x1e, 0xc7, 0x7b, 0x0f, 0x8f, 0xe3, + 0xbd, 0xbf, 0x1f, 0xc7, 0x7b, 0x8b, 0x3e, 0xcd, 0xe0, 0xb7, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x71, 0x1f, 0x4d, 0x70, 0x81, 0x0a, 0x00, 0x00, +} + +func (m *EsDataBase) 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 *EsDataBase) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.CameraId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.CameraId))) + i += copy(dAtA[i:], m.CameraId) + } + if len(m.CameraName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.CameraName))) + i += copy(dAtA[i:], m.CameraName) + } + if len(m.CameraAddr) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.CameraAddr))) + i += copy(dAtA[i:], m.CameraAddr) + } + if len(m.AnalyServerId) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.AnalyServerId))) + i += copy(dAtA[i:], m.AnalyServerId) + } + if len(m.AnalyServerName) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.AnalyServerName))) + i += copy(dAtA[i:], m.AnalyServerName) + } + if len(m.AnalyServerIp) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.AnalyServerIp))) + i += copy(dAtA[i:], m.AnalyServerIp) + } + if len(m.ClusterId) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.ClusterId))) + i += copy(dAtA[i:], m.ClusterId) + } + if len(m.TaskId) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.TaskId))) + i += copy(dAtA[i:], m.TaskId) + } + if len(m.TaskName) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.TaskName))) + i += copy(dAtA[i:], m.TaskName) + } + if len(m.SdkName) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.SdkName))) + i += copy(dAtA[i:], m.SdkName) + } + if len(m.PicMaxUrl) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PicMaxUrl))) + i += copy(dAtA[i:], m.PicMaxUrl) + } + if len(m.VideoUrl) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.VideoUrl))) + i += copy(dAtA[i:], m.VideoUrl) + } + if len(m.PicDate) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PicDate))) + i += copy(dAtA[i:], m.PicDate) + } + if len(m.TargetInfo) > 0 { + for _, msg := range m.TargetInfo { + dAtA[i] = 0x7a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.OtherLabels) > 0 { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.OtherLabels))) + i += copy(dAtA[i:], m.OtherLabels) + } + if len(m.ShowLabels) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.ShowLabels))) + i += copy(dAtA[i:], m.ShowLabels) + } + if len(m.LikeDate) > 0 { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.LikeDate))) + i += copy(dAtA[i:], m.LikeDate) + } + if len(m.BaseInfo) > 0 { + for _, msg := range m.BaseInfo { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.IsAlarm { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x1 + i++ + if m.IsAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.IsAckAlarm { + dAtA[i] = 0xa8 + i++ + dAtA[i] = 0x1 + i++ + if m.IsAckAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.AlarmRules) > 0 { + for _, msg := range m.AlarmRules { + dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.IsCollect { + dAtA[i] = 0xb8 + i++ + dAtA[i] = 0x1 + i++ + if m.IsCollect { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.IsDelete { + dAtA[i] = 0xc0 + i++ + dAtA[i] = 0x1 + i++ + if m.IsDelete { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.Content) > 0 { + dAtA[i] = 0xca + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.Content))) + i += copy(dAtA[i:], m.Content) + } + return i, nil +} + +func (m *AIOcean) 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 *AIOcean) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.CameraId) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.CameraId))) + i += copy(dAtA[i:], m.CameraId) + } + if len(m.CameraName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.CameraName))) + i += copy(dAtA[i:], m.CameraName) + } + if len(m.CameraAddr) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.CameraAddr))) + i += copy(dAtA[i:], m.CameraAddr) + } + if len(m.AnalyServerId) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.AnalyServerId))) + i += copy(dAtA[i:], m.AnalyServerId) + } + if len(m.AnalyServerName) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.AnalyServerName))) + i += copy(dAtA[i:], m.AnalyServerName) + } + if len(m.AnalyServerIp) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.AnalyServerIp))) + i += copy(dAtA[i:], m.AnalyServerIp) + } + if len(m.ClusterId) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.ClusterId))) + i += copy(dAtA[i:], m.ClusterId) + } + if len(m.TaskId) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.TaskId))) + i += copy(dAtA[i:], m.TaskId) + } + if len(m.TaskName) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.TaskName))) + i += copy(dAtA[i:], m.TaskName) + } + if len(m.SdkName) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.SdkName))) + i += copy(dAtA[i:], m.SdkName) + } + if len(m.PicMaxUrl) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PicMaxUrl))) + i += copy(dAtA[i:], m.PicMaxUrl) + } + if len(m.VideoUrl) > 0 { + dAtA[i] = 0x6a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.VideoUrl))) + i += copy(dAtA[i:], m.VideoUrl) + } + if len(m.PicDate) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PicDate))) + i += copy(dAtA[i:], m.PicDate) + } + if len(m.TargetInfo) > 0 { + for _, msg := range m.TargetInfo { + dAtA[i] = 0x7a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.OtherLabels) > 0 { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.OtherLabels))) + i += copy(dAtA[i:], m.OtherLabels) + } + if len(m.ShowLabels) > 0 { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.ShowLabels))) + i += copy(dAtA[i:], m.ShowLabels) + } + if len(m.LikeDate) > 0 { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.LikeDate))) + i += copy(dAtA[i:], m.LikeDate) + } + if len(m.BaseInfo) > 0 { + for _, msg := range m.BaseInfo { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.IsAlarm { + dAtA[i] = 0xa0 + i++ + dAtA[i] = 0x1 + i++ + if m.IsAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.IsAckAlarm { + dAtA[i] = 0xa8 + i++ + dAtA[i] = 0x1 + i++ + if m.IsAckAlarm { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.AlarmRules) > 0 { + for _, msg := range m.AlarmRules { + dAtA[i] = 0xb2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if m.IsCollect { + dAtA[i] = 0xb8 + i++ + dAtA[i] = 0x1 + i++ + if m.IsCollect { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.IsDelete { + dAtA[i] = 0xc0 + i++ + dAtA[i] = 0x1 + i++ + if m.IsDelete { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.Content) > 0 { + dAtA[i] = 0xca + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.Content))) + i += copy(dAtA[i:], m.Content) + } + if len(m.LinkTag) > 0 { + dAtA[i] = 0xd2 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.LinkTag))) + i += copy(dAtA[i:], m.LinkTag) + } + if len(m.LinkTagInfo) > 0 { + for _, msg := range m.LinkTagInfo { + dAtA[i] = 0xda + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *TargetInfo) 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 *TargetInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TargetId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.TargetId))) + i += copy(dAtA[i:], m.TargetId) + } + if m.TargetScore != 0 { + dAtA[i] = 0x15 + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.TargetScore)))) + i += 4 + } + if len(m.Feature) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.Feature))) + i += copy(dAtA[i:], m.Feature) + } + if len(m.PicSmUrl) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PicSmUrl))) + i += copy(dAtA[i:], m.PicSmUrl) + } + if m.TargetLocation != nil { + dAtA[i] = 0x2a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(m.TargetLocation.Size())) + n1, err1 := m.TargetLocation.MarshalTo(dAtA[i:]) + if err1 != nil { + return 0, err1 + } + i += n1 + } + return i, nil +} + +func (m *TargetLocation) 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 *TargetLocation) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.TopLeft != nil { + dAtA[i] = 0xa + i++ + i = encodeVarintAiocean(dAtA, i, uint64(m.TopLeft.Size())) + n2, err2 := m.TopLeft.MarshalTo(dAtA[i:]) + if err2 != nil { + return 0, err2 + } + i += n2 + } + if m.BottomRight != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(m.BottomRight.Size())) + n3, err3 := m.BottomRight.MarshalTo(dAtA[i:]) + if err3 != nil { + return 0, err3 + } + i += n3 + } + return i, nil +} + +func (m *Location) 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 *Location) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.X != 0 { + dAtA[i] = 0xd + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.X)))) + i += 4 + } + if m.Y != 0 { + dAtA[i] = 0x15 + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Y)))) + i += 4 + } + return i, nil +} + +func (m *AlarmRules) 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 *AlarmRules) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.GroupId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.GroupId))) + i += copy(dAtA[i:], m.GroupId) + } + if len(m.AlarmLevel) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.AlarmLevel))) + i += copy(dAtA[i:], m.AlarmLevel) + } + if len(m.RuleText) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.RuleText))) + i += copy(dAtA[i:], m.RuleText) + } + if m.DefenceState { + dAtA[i] = 0x20 + i++ + if m.DefenceState { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if m.IsLink { + dAtA[i] = 0x28 + i++ + if m.IsLink { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + if len(m.LinkInfo) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.LinkInfo))) + i += copy(dAtA[i:], m.LinkInfo) + } + return i, nil +} + +func (m *BaseInfo) 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 *BaseInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TableId) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.TableId))) + i += copy(dAtA[i:], m.TableId) + } + if len(m.TableName) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.TableName))) + i += copy(dAtA[i:], m.TableName) + } + if m.CompareScore != 0 { + dAtA[i] = 0x1d + i++ + encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore)))) + i += 4 + } + if len(m.PersonId) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PersonId))) + i += copy(dAtA[i:], m.PersonId) + } + if len(m.PersonName) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PersonName))) + i += copy(dAtA[i:], m.PersonName) + } + if len(m.PersonPicUrl) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PersonPicUrl))) + i += copy(dAtA[i:], m.PersonPicUrl) + } + if len(m.PhoneNum) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.PhoneNum))) + i += copy(dAtA[i:], m.PhoneNum) + } + if len(m.Sex) > 0 { + dAtA[i] = 0x42 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.Sex))) + i += copy(dAtA[i:], m.Sex) + } + if len(m.IdCard) > 0 { + dAtA[i] = 0x4a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.IdCard))) + i += copy(dAtA[i:], m.IdCard) + } + if len(m.MonitorLevel) > 0 { + dAtA[i] = 0x52 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.MonitorLevel))) + i += copy(dAtA[i:], m.MonitorLevel) + } + if len(m.Content) > 0 { + dAtA[i] = 0x5a + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.Content))) + i += copy(dAtA[i:], m.Content) + } + if len(m.BwType) > 0 { + dAtA[i] = 0x62 + i++ + i = encodeVarintAiocean(dAtA, i, uint64(len(m.BwType))) + i += copy(dAtA[i:], m.BwType) + } + return i, nil +} + +func encodeVarintAiocean(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 *EsDataBase) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.CameraId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.CameraName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.CameraAddr) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.AnalyServerId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.AnalyServerName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.AnalyServerIp) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.TaskId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.TaskName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.SdkName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.PicMaxUrl) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.VideoUrl) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.PicDate) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + if len(m.TargetInfo) > 0 { + for _, e := range m.TargetInfo { + l = e.Size() + n += 1 + l + sovAiocean(uint64(l)) + } + } + l = len(m.OtherLabels) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + l = len(m.ShowLabels) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + l = len(m.LikeDate) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + if len(m.BaseInfo) > 0 { + for _, e := range m.BaseInfo { + l = e.Size() + n += 2 + l + sovAiocean(uint64(l)) + } + } + if m.IsAlarm { + n += 3 + } + if m.IsAckAlarm { + n += 3 + } + if len(m.AlarmRules) > 0 { + for _, e := range m.AlarmRules { + l = e.Size() + n += 2 + l + sovAiocean(uint64(l)) + } + } + if m.IsCollect { + n += 3 + } + if m.IsDelete { + n += 3 + } + l = len(m.Content) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + return n +} + +func (m *AIOcean) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.CameraId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.CameraName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.CameraAddr) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.AnalyServerId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.AnalyServerName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.AnalyServerIp) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.ClusterId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.TaskId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.TaskName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.SdkName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.PicMaxUrl) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.VideoUrl) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.PicDate) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + if len(m.TargetInfo) > 0 { + for _, e := range m.TargetInfo { + l = e.Size() + n += 1 + l + sovAiocean(uint64(l)) + } + } + l = len(m.OtherLabels) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + l = len(m.ShowLabels) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + l = len(m.LikeDate) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + if len(m.BaseInfo) > 0 { + for _, e := range m.BaseInfo { + l = e.Size() + n += 2 + l + sovAiocean(uint64(l)) + } + } + if m.IsAlarm { + n += 3 + } + if m.IsAckAlarm { + n += 3 + } + if len(m.AlarmRules) > 0 { + for _, e := range m.AlarmRules { + l = e.Size() + n += 2 + l + sovAiocean(uint64(l)) + } + } + if m.IsCollect { + n += 3 + } + if m.IsDelete { + n += 3 + } + l = len(m.Content) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + l = len(m.LinkTag) + if l > 0 { + n += 2 + l + sovAiocean(uint64(l)) + } + if len(m.LinkTagInfo) > 0 { + for _, e := range m.LinkTagInfo { + l = e.Size() + n += 2 + l + sovAiocean(uint64(l)) + } + } + return n +} + +func (m *TargetInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TargetId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + if m.TargetScore != 0 { + n += 5 + } + l = len(m.Feature) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.PicSmUrl) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + if m.TargetLocation != nil { + l = m.TargetLocation.Size() + n += 1 + l + sovAiocean(uint64(l)) + } + return n +} + +func (m *TargetLocation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopLeft != nil { + l = m.TopLeft.Size() + n += 1 + l + sovAiocean(uint64(l)) + } + if m.BottomRight != nil { + l = m.BottomRight.Size() + n += 1 + l + sovAiocean(uint64(l)) + } + return n +} + +func (m *Location) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.X != 0 { + n += 5 + } + if m.Y != 0 { + n += 5 + } + return n +} + +func (m *AlarmRules) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.GroupId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.AlarmLevel) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.RuleText) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + if m.DefenceState { + n += 2 + } + if m.IsLink { + n += 2 + } + l = len(m.LinkInfo) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + return n +} + +func (m *BaseInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.TableId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.TableName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + if m.CompareScore != 0 { + n += 5 + } + l = len(m.PersonId) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.PersonName) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.PersonPicUrl) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.PhoneNum) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.Sex) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.IdCard) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.MonitorLevel) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.Content) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + l = len(m.BwType) + if l > 0 { + n += 1 + l + sovAiocean(uint64(l)) + } + return n +} + +func sovAiocean(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozAiocean(x uint64) (n int) { + return sovAiocean(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *EsDataBase) 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 ErrIntOverflowAiocean + } + 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: EsDataBase: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: EsDataBase: 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 CameraName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CameraName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CameraAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CameraAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkName = 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 VideoUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VideoUrl = 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 TargetInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetInfo = append(m.TargetInfo, &TargetInfo{}) + if err := m.TargetInfo[len(m.TargetInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OtherLabels", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OtherLabels = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShowLabels", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ShowLabels = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LikeDate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 19: + 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 ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseInfo = append(m.BaseInfo, &BaseInfo{}) + if err := m.BaseInfo[len(m.BaseInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + 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 ErrIntOverflowAiocean + } + 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 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsAckAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsAckAlarm = bool(v != 0) + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AlarmRules = append(m.AlarmRules, &AlarmRules{}) + if err := m.AlarmRules[len(m.AlarmRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsCollect", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsCollect = bool(v != 0) + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsDelete = bool(v != 0) + case 25: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAiocean(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AIOcean) 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 ErrIntOverflowAiocean + } + 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: AIOcean: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AIOcean: 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 CameraName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CameraName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CameraAddr", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CameraAddr = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerIp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AnalyServerIp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TaskName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkName = 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 VideoUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VideoUrl = 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 TargetInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetInfo = append(m.TargetInfo, &TargetInfo{}) + if err := m.TargetInfo[len(m.TargetInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OtherLabels", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OtherLabels = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ShowLabels", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ShowLabels = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LikeDate = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 19: + 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 ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BaseInfo = append(m.BaseInfo, &BaseInfo{}) + if err := m.BaseInfo[len(m.BaseInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + 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 ErrIntOverflowAiocean + } + 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 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsAckAlarm", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsAckAlarm = bool(v != 0) + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AlarmRules", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AlarmRules = append(m.AlarmRules, &AlarmRules{}) + if err := m.AlarmRules[len(m.AlarmRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsCollect", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsCollect = bool(v != 0) + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsDelete = bool(v != 0) + case 25: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkTag", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinkTag = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 27: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkTagInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinkTagInfo = append(m.LinkTagInfo, &EsDataBase{}) + if err := m.LinkTagInfo[len(m.LinkTagInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAiocean(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TargetInfo) 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 ErrIntOverflowAiocean + } + 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: TargetInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TargetInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetScore", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.TargetScore = float32(math.Float32frombits(v)) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Feature", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feature = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PicSmUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetLocation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TargetLocation == nil { + m.TargetLocation = &TargetLocation{} + } + if err := m.TargetLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAiocean(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TargetLocation) 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 ErrIntOverflowAiocean + } + 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: TargetLocation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TargetLocation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopLeft", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TopLeft == nil { + m.TopLeft = &Location{} + } + if err := m.TopLeft.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BottomRight", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthAiocean + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BottomRight == nil { + m.BottomRight = &Location{} + } + if err := m.BottomRight.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAiocean(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Location) 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 ErrIntOverflowAiocean + } + 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: Location: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Location: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field X", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.X = float32(math.Float32frombits(v)) + case 2: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field Y", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.Y = float32(math.Float32frombits(v)) + default: + iNdEx = preIndex + skippy, err := skipAiocean(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *AlarmRules) 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 ErrIntOverflowAiocean + } + 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: AlarmRules: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AlarmRules: 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + 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 AlarmLevel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AlarmLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RuleText", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RuleText = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefenceState", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.DefenceState = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsLink", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsLink = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LinkInfo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LinkInfo = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAiocean(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BaseInfo) 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 ErrIntOverflowAiocean + } + 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: BaseInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BaseInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TableName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 5 { + return fmt.Errorf("proto: wrong wireType = %d for field CompareScore", wireType) + } + var v uint32 + if (iNdEx + 4) > l { + return io.ErrUnexpectedEOF + } + v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) + iNdEx += 4 + m.CompareScore = float32(math.Float32frombits(v)) + case 4: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersonName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersonPicUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PhoneNum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sex = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.IdCard = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MonitorLevel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 11: + 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 ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Content = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BwType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowAiocean + } + 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 ErrInvalidLengthAiocean + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthAiocean + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BwType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipAiocean(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthAiocean + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipAiocean(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, ErrIntOverflowAiocean + } + 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, ErrIntOverflowAiocean + } + 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, ErrIntOverflowAiocean + } + 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, ErrInvalidLengthAiocean + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthAiocean + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowAiocean + } + 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 := skipAiocean(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthAiocean + } + } + 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") +} + +var ( + ErrInvalidLengthAiocean = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowAiocean = fmt.Errorf("proto: integer overflow") +) diff --git a/aiocean.proto b/aiocean.proto new file mode 100644 index 0000000..5c21469 --- /dev/null +++ b/aiocean.proto @@ -0,0 +1,104 @@ +syntax = "proto3"; + +package protomsg; + +message EsDataBase { + string id =1; + string cameraId =2; + string cameraName =3; + string cameraAddr =4; + string analyServerId =5; + string analyServerName =6; + string analyServerIp =7; + string clusterId =8; + string taskId =9; + string taskName =10; + string sdkName =11; + string picMaxUrl =12; + string videoUrl =13; + string picDate =14; + repeated TargetInfo targetInfo =15; + string otherLabels =16; + string showLabels =17; + string likeDate =18; + repeated BaseInfo baseInfo =19; + bool isAlarm =20; + bool isAckAlarm =21; + repeated AlarmRules alarmRules =22; + bool isCollect =23; + bool isDelete =24; + string content =25; +} + +message AIOcean { + string id =1; + string cameraId =2; + string cameraName =3; + string cameraAddr =4; + string analyServerId =5; + string analyServerName =6; + string analyServerIp =7; + string clusterId =8; + string taskId =9; + string taskName =10; + string sdkName =11; + string picMaxUrl =12; + string videoUrl =13; + string picDate =14; + repeated TargetInfo targetInfo =15; + string otherLabels =16; + string showLabels =17; + string likeDate =18; + repeated BaseInfo baseInfo =19; + bool isAlarm =20; + bool isAckAlarm =21; + repeated AlarmRules alarmRules =22; + bool isCollect =23; + bool isDelete =24; + string content =25; + + string linkTag =26; + repeated EsDataBase linkTagInfo =27; +} + +message TargetInfo { + string targetId =1; + float targetScore =2; + string feature =3; + string picSmUrl =4; + TargetLocation targetLocation =5; +} + +message TargetLocation { + Location topLeft =1; + Location bottomRight =2; +} + +message Location { + float x =1; + float y =2; +} + +message AlarmRules { + string groupId =1; + string alarmLevel =2; + string ruleText =3; + bool defenceState =4; + bool isLink =5; + string linkInfo =6; +} + +message BaseInfo { + string tableId =1; + string tableName =2; + float compareScore =3; + string personId =4; + string personName =5; + string personPicUrl =6; + string phoneNum =7; + string sex =8; + string idCard =9; + string monitorLevel =10; + string content =11; + string bwType =12; +} diff --git a/videoperson.pb.go b/videoperson.pb.go deleted file mode 100644 index 5792535..0000000 --- a/videoperson.pb.go +++ /dev/null @@ -1,2885 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: videoperson.proto - -package protomsg - -import ( - encoding_binary "encoding/binary" - fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package - -type Videopersons struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CameraId string `protobuf:"bytes,2,opt,name=cameraId,proto3" json:"cameraId,omitempty"` - CameraAddr string `protobuf:"bytes,3,opt,name=cameraAddr,proto3" json:"cameraAddr,omitempty"` - PicDate string `protobuf:"bytes,4,opt,name=picDate,proto3" json:"picDate,omitempty"` - PicMaxUrl string `protobuf:"bytes,5,opt,name=picMaxUrl,proto3" json:"picMaxUrl,omitempty"` - TaskId string `protobuf:"bytes,6,opt,name=taskId,proto3" json:"taskId,omitempty"` - TaskName string `protobuf:"bytes,7,opt,name=taskName,proto3" json:"taskName,omitempty"` - SdkName string `protobuf:"bytes,8,opt,name=sdkName,proto3" json:"sdkName,omitempty"` - Content string `protobuf:"bytes,9,opt,name=content,proto3" json:"content,omitempty"` - LikeDate string `protobuf:"bytes,10,opt,name=likeDate,proto3" json:"likeDate,omitempty"` - DetectScore string `protobuf:"bytes,11,opt,name=detectScore,proto3" json:"detectScore,omitempty"` - Sex string `protobuf:"bytes,12,opt,name=sex,proto3" json:"sex,omitempty"` - Age int32 `protobuf:"varint,13,opt,name=age,proto3" json:"age,omitempty"` - AgeDescription string `protobuf:"bytes,14,opt,name=ageDescription,proto3" json:"ageDescription,omitempty"` - Race string `protobuf:"bytes,15,opt,name=race,proto3" json:"race,omitempty"` - SmileLevel string `protobuf:"bytes,16,opt,name=smileLevel,proto3" json:"smileLevel,omitempty"` - BeautyLevel string `protobuf:"bytes,17,opt,name=beautyLevel,proto3" json:"beautyLevel,omitempty"` - PicSmUrl []string `protobuf:"bytes,18,rep,name=picSmUrl,proto3" json:"picSmUrl,omitempty"` - VideoUrl string `protobuf:"bytes,19,opt,name=videoUrl,proto3" json:"videoUrl,omitempty"` - AnalyServerId string `protobuf:"bytes,20,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` - AnalyServerName string `protobuf:"bytes,21,opt,name=analyServerName,proto3" json:"analyServerName,omitempty"` - AnalyServerIp string `protobuf:"bytes,22,opt,name=analyServerIp,proto3" json:"analyServerIp,omitempty"` - ClusterId string `protobuf:"bytes,23,opt,name=clusterId,proto3" json:"clusterId,omitempty"` - IsAlarm string `protobuf:"bytes,24,opt,name=isAlarm,proto3" json:"isAlarm,omitempty"` - IsAckAlarm string `protobuf:"bytes,25,opt,name=isAckAlarm,proto3" json:"isAckAlarm,omitempty"` - IsCollect int32 `protobuf:"varint,26,opt,name=isCollect,proto3" json:"isCollect,omitempty"` - IsDelete int32 `protobuf:"varint,27,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - AlarmRules []*AlarmRules `protobuf:"bytes,28,rep,name=alarmRules,proto3" json:"alarmRules,omitempty"` - BaseInfo []*BaseInfo `protobuf:"bytes,29,rep,name=baseInfo,proto3" json:"baseInfo,omitempty"` -} - -func (m *Videopersons) Reset() { *m = Videopersons{} } -func (m *Videopersons) String() string { return proto.CompactTextString(m) } -func (*Videopersons) ProtoMessage() {} -func (*Videopersons) Descriptor() ([]byte, []int) { - return fileDescriptor_149f81aa0f752265, []int{0} -} -func (m *Videopersons) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Videopersons) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Videopersons.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Videopersons) XXX_Merge(src proto.Message) { - xxx_messageInfo_Videopersons.Merge(m, src) -} -func (m *Videopersons) XXX_Size() int { - return m.Size() -} -func (m *Videopersons) XXX_DiscardUnknown() { - xxx_messageInfo_Videopersons.DiscardUnknown(m) -} - -var xxx_messageInfo_Videopersons proto.InternalMessageInfo - -func (m *Videopersons) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Videopersons) GetCameraId() string { - if m != nil { - return m.CameraId - } - return "" -} - -func (m *Videopersons) GetCameraAddr() string { - if m != nil { - return m.CameraAddr - } - return "" -} - -func (m *Videopersons) GetPicDate() string { - if m != nil { - return m.PicDate - } - return "" -} - -func (m *Videopersons) GetPicMaxUrl() string { - if m != nil { - return m.PicMaxUrl - } - return "" -} - -func (m *Videopersons) GetTaskId() string { - if m != nil { - return m.TaskId - } - return "" -} - -func (m *Videopersons) GetTaskName() string { - if m != nil { - return m.TaskName - } - return "" -} - -func (m *Videopersons) GetSdkName() string { - if m != nil { - return m.SdkName - } - return "" -} - -func (m *Videopersons) GetContent() string { - if m != nil { - return m.Content - } - return "" -} - -func (m *Videopersons) GetLikeDate() string { - if m != nil { - return m.LikeDate - } - return "" -} - -func (m *Videopersons) GetDetectScore() string { - if m != nil { - return m.DetectScore - } - return "" -} - -func (m *Videopersons) GetSex() string { - if m != nil { - return m.Sex - } - return "" -} - -func (m *Videopersons) GetAge() int32 { - if m != nil { - return m.Age - } - return 0 -} - -func (m *Videopersons) GetAgeDescription() string { - if m != nil { - return m.AgeDescription - } - return "" -} - -func (m *Videopersons) GetRace() string { - if m != nil { - return m.Race - } - return "" -} - -func (m *Videopersons) GetSmileLevel() string { - if m != nil { - return m.SmileLevel - } - return "" -} - -func (m *Videopersons) GetBeautyLevel() string { - if m != nil { - return m.BeautyLevel - } - return "" -} - -func (m *Videopersons) GetPicSmUrl() []string { - if m != nil { - return m.PicSmUrl - } - return nil -} - -func (m *Videopersons) GetVideoUrl() string { - if m != nil { - return m.VideoUrl - } - return "" -} - -func (m *Videopersons) GetAnalyServerId() string { - if m != nil { - return m.AnalyServerId - } - return "" -} - -func (m *Videopersons) GetAnalyServerName() string { - if m != nil { - return m.AnalyServerName - } - return "" -} - -func (m *Videopersons) GetAnalyServerIp() string { - if m != nil { - return m.AnalyServerIp - } - return "" -} - -func (m *Videopersons) GetClusterId() string { - if m != nil { - return m.ClusterId - } - return "" -} - -func (m *Videopersons) GetIsAlarm() string { - if m != nil { - return m.IsAlarm - } - return "" -} - -func (m *Videopersons) GetIsAckAlarm() string { - if m != nil { - return m.IsAckAlarm - } - return "" -} - -func (m *Videopersons) GetIsCollect() int32 { - if m != nil { - return m.IsCollect - } - return 0 -} - -func (m *Videopersons) GetIsDelete() int32 { - if m != nil { - return m.IsDelete - } - return 0 -} - -func (m *Videopersons) GetAlarmRules() []*AlarmRules { - if m != nil { - return m.AlarmRules - } - return nil -} - -func (m *Videopersons) GetBaseInfo() []*BaseInfo { - if m != nil { - return m.BaseInfo - } - return nil -} - -type AlarmRules struct { - GroupId string `protobuf:"bytes,1,opt,name=groupId,proto3" json:"groupId,omitempty"` - AlarmLevel string `protobuf:"bytes,2,opt,name=alarmLevel,proto3" json:"alarmLevel,omitempty"` - RuleText string `protobuf:"bytes,3,opt,name=ruleText,proto3" json:"ruleText,omitempty"` - DefenceState bool `protobuf:"varint,4,opt,name=defenceState,proto3" json:"defenceState,omitempty"` - IsLink bool `protobuf:"varint,5,opt,name=isLink,proto3" json:"isLink,omitempty"` - LinkInfo string `protobuf:"bytes,6,opt,name=linkInfo,proto3" json:"linkInfo,omitempty"` -} - -func (m *AlarmRules) Reset() { *m = AlarmRules{} } -func (m *AlarmRules) String() string { return proto.CompactTextString(m) } -func (*AlarmRules) ProtoMessage() {} -func (*AlarmRules) Descriptor() ([]byte, []int) { - return fileDescriptor_149f81aa0f752265, []int{1} -} -func (m *AlarmRules) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AlarmRules) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AlarmRules.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AlarmRules) XXX_Merge(src proto.Message) { - xxx_messageInfo_AlarmRules.Merge(m, src) -} -func (m *AlarmRules) XXX_Size() int { - return m.Size() -} -func (m *AlarmRules) XXX_DiscardUnknown() { - xxx_messageInfo_AlarmRules.DiscardUnknown(m) -} - -var xxx_messageInfo_AlarmRules proto.InternalMessageInfo - -func (m *AlarmRules) GetGroupId() string { - if m != nil { - return m.GroupId - } - return "" -} - -func (m *AlarmRules) GetAlarmLevel() string { - if m != nil { - return m.AlarmLevel - } - return "" -} - -func (m *AlarmRules) GetRuleText() string { - if m != nil { - return m.RuleText - } - return "" -} - -func (m *AlarmRules) GetDefenceState() bool { - if m != nil { - return m.DefenceState - } - return false -} - -func (m *AlarmRules) GetIsLink() bool { - if m != nil { - return m.IsLink - } - return false -} - -func (m *AlarmRules) GetLinkInfo() string { - if m != nil { - return m.LinkInfo - } - return "" -} - -type BaseInfo struct { - TableId string `protobuf:"bytes,1,opt,name=tableId,proto3" json:"tableId,omitempty"` - TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"` - CompareScore float32 `protobuf:"fixed32,3,opt,name=compareScore,proto3" json:"compareScore,omitempty"` - PersonId string `protobuf:"bytes,4,opt,name=personId,proto3" json:"personId,omitempty"` - PersonName string `protobuf:"bytes,5,opt,name=personName,proto3" json:"personName,omitempty"` - PersonPicUrl string `protobuf:"bytes,6,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` - PhoneNum string `protobuf:"bytes,7,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` - Sex string `protobuf:"bytes,8,opt,name=sex,proto3" json:"sex,omitempty"` - IdCard string `protobuf:"bytes,9,opt,name=idCard,proto3" json:"idCard,omitempty"` - MonitorLevel string `protobuf:"bytes,10,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` - Content string `protobuf:"bytes,11,opt,name=content,proto3" json:"content,omitempty"` - BwType string `protobuf:"bytes,12,opt,name=bwType,proto3" json:"bwType,omitempty"` -} - -func (m *BaseInfo) Reset() { *m = BaseInfo{} } -func (m *BaseInfo) String() string { return proto.CompactTextString(m) } -func (*BaseInfo) ProtoMessage() {} -func (*BaseInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_149f81aa0f752265, []int{2} -} -func (m *BaseInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BaseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BaseInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BaseInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_BaseInfo.Merge(m, src) -} -func (m *BaseInfo) XXX_Size() int { - return m.Size() -} -func (m *BaseInfo) XXX_DiscardUnknown() { - xxx_messageInfo_BaseInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_BaseInfo proto.InternalMessageInfo - -func (m *BaseInfo) GetTableId() string { - if m != nil { - return m.TableId - } - return "" -} - -func (m *BaseInfo) GetTableName() string { - if m != nil { - return m.TableName - } - return "" -} - -func (m *BaseInfo) GetCompareScore() float32 { - if m != nil { - return m.CompareScore - } - return 0 -} - -func (m *BaseInfo) GetPersonId() string { - if m != nil { - return m.PersonId - } - return "" -} - -func (m *BaseInfo) GetPersonName() string { - if m != nil { - return m.PersonName - } - return "" -} - -func (m *BaseInfo) GetPersonPicUrl() string { - if m != nil { - return m.PersonPicUrl - } - return "" -} - -func (m *BaseInfo) GetPhoneNum() string { - if m != nil { - return m.PhoneNum - } - return "" -} - -func (m *BaseInfo) GetSex() string { - if m != nil { - return m.Sex - } - return "" -} - -func (m *BaseInfo) GetIdCard() string { - if m != nil { - return m.IdCard - } - return "" -} - -func (m *BaseInfo) GetMonitorLevel() string { - if m != nil { - return m.MonitorLevel - } - return "" -} - -func (m *BaseInfo) GetContent() string { - if m != nil { - return m.Content - } - return "" -} - -func (m *BaseInfo) GetBwType() string { - if m != nil { - return m.BwType - } - return "" -} - -func init() { - proto.RegisterType((*Videopersons)(nil), "protomsg.Videopersons") - proto.RegisterType((*AlarmRules)(nil), "protomsg.AlarmRules") - proto.RegisterType((*BaseInfo)(nil), "protomsg.BaseInfo") -} - -func init() { proto.RegisterFile("videoperson.proto", fileDescriptor_149f81aa0f752265) } - -var fileDescriptor_149f81aa0f752265 = []byte{ - // 713 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x54, 0xcf, 0x6e, 0x13, 0x3f, - 0x10, 0x6e, 0x92, 0x36, 0xdd, 0x3a, 0xfd, 0xeb, 0x5f, 0x7f, 0xc5, 0x94, 0x12, 0x45, 0x11, 0x42, - 0x39, 0xe5, 0x00, 0xbc, 0x40, 0xda, 0x5e, 0x22, 0x95, 0x0a, 0x6d, 0x0a, 0x77, 0xc7, 0x3b, 0x0d, - 0x56, 0xf6, 0x9f, 0x6c, 0xa7, 0xb4, 0x37, 0x1e, 0x81, 0xe7, 0xe1, 0x09, 0x38, 0xf6, 0xc8, 0x11, - 0xa5, 0x2f, 0x82, 0x66, 0xbc, 0x9b, 0xdd, 0x94, 0xd3, 0xce, 0xf7, 0x7d, 0xde, 0xf1, 0xcc, 0x78, - 0x66, 0xd8, 0xd1, 0x9d, 0x8e, 0x20, 0xcb, 0xc1, 0xd8, 0x2c, 0x1d, 0xe6, 0x26, 0x73, 0x19, 0x0f, - 0xe8, 0x93, 0xd8, 0x59, 0xff, 0xfb, 0x36, 0xdb, 0xfd, 0x52, 0xe9, 0x96, 0xef, 0xb3, 0xa6, 0x8e, - 0x44, 0xa3, 0xd7, 0x18, 0xec, 0x84, 0x4d, 0x1d, 0xf1, 0x53, 0x16, 0x28, 0x99, 0x80, 0x91, 0xe3, - 0x48, 0x34, 0x89, 0x5d, 0x61, 0xde, 0x65, 0xcc, 0xdb, 0xa3, 0x28, 0x32, 0xa2, 0x45, 0x6a, 0x8d, - 0xe1, 0x82, 0x6d, 0xe7, 0x5a, 0x5d, 0x4a, 0x07, 0x62, 0x93, 0xc4, 0x12, 0xf2, 0x33, 0xb6, 0x93, - 0x6b, 0xf5, 0x51, 0xde, 0x7f, 0x36, 0xb1, 0xd8, 0x22, 0xad, 0x22, 0xf8, 0x09, 0x6b, 0x3b, 0x69, - 0xe7, 0xe3, 0x48, 0xb4, 0x49, 0x2a, 0x10, 0xc6, 0x82, 0xd6, 0xb5, 0x4c, 0x40, 0x6c, 0xfb, 0x58, - 0x4a, 0x8c, 0x77, 0xd9, 0xc8, 0x4b, 0x81, 0xbf, 0xab, 0x80, 0xa8, 0xa8, 0x2c, 0x75, 0x90, 0x3a, - 0xb1, 0xe3, 0x95, 0x02, 0xa2, 0xbf, 0x58, 0xcf, 0x81, 0x02, 0x64, 0xde, 0x5f, 0x89, 0x79, 0x8f, - 0x75, 0x22, 0x70, 0xa0, 0xdc, 0x44, 0x65, 0x06, 0x44, 0x87, 0xe4, 0x3a, 0xc5, 0x0f, 0x59, 0xcb, - 0xc2, 0xbd, 0xd8, 0x25, 0x05, 0x4d, 0x64, 0xe4, 0x0c, 0xc4, 0x5e, 0xaf, 0x31, 0xd8, 0x0a, 0xd1, - 0xe4, 0x6f, 0xd9, 0xbe, 0x9c, 0xc1, 0x25, 0x58, 0x65, 0x74, 0xee, 0x74, 0x96, 0x8a, 0x7d, 0x3a, - 0xfe, 0x8c, 0xe5, 0x9c, 0x6d, 0x1a, 0xa9, 0x40, 0x1c, 0x90, 0x4a, 0x36, 0x56, 0xd7, 0x26, 0x3a, - 0x86, 0x2b, 0xb8, 0x83, 0x58, 0x1c, 0xfa, 0xea, 0x56, 0x0c, 0x46, 0x38, 0x05, 0xb9, 0x70, 0x0f, - 0xfe, 0xc0, 0x91, 0x8f, 0xb0, 0x46, 0x61, 0x7e, 0xb9, 0x56, 0x93, 0x04, 0x8b, 0xcc, 0x7b, 0x2d, - 0xcc, 0xaf, 0xc4, 0xa8, 0x51, 0x5f, 0xa0, 0xf6, 0x9f, 0xcf, 0xbd, 0xc4, 0xfc, 0x0d, 0xdb, 0x93, - 0xa9, 0x8c, 0x1f, 0x26, 0x60, 0xee, 0xc0, 0x8c, 0x23, 0x71, 0x4c, 0x07, 0xd6, 0x49, 0x3e, 0x60, - 0x07, 0x35, 0x82, 0x2a, 0xff, 0x3f, 0x9d, 0x7b, 0x4e, 0x3f, 0xf7, 0x97, 0x8b, 0x93, 0x7f, 0xfd, - 0xe5, 0xd8, 0x13, 0x2a, 0x5e, 0x58, 0x47, 0x37, 0xbe, 0xf0, 0x3d, 0xb1, 0x22, 0xf0, 0x15, 0xb5, - 0x1d, 0xc5, 0xd2, 0x24, 0x42, 0xf8, 0x57, 0x2c, 0x20, 0xd6, 0x49, 0xdb, 0x91, 0x9a, 0x7b, 0xf1, - 0xa5, 0xaf, 0x53, 0xc5, 0xa0, 0x5f, 0x6d, 0x2f, 0xb2, 0x38, 0x06, 0xe5, 0xc4, 0x29, 0xbd, 0x4d, - 0x45, 0x60, 0x1d, 0xb4, 0xbd, 0x84, 0x18, 0x1c, 0x88, 0x57, 0x24, 0xae, 0x30, 0xff, 0xc0, 0x98, - 0x44, 0x17, 0xe1, 0x22, 0x06, 0x2b, 0xce, 0x7a, 0xad, 0x41, 0xe7, 0xdd, 0xf1, 0xb0, 0x9c, 0x9d, - 0xe1, 0x68, 0xa5, 0x85, 0xb5, 0x73, 0x7c, 0xc8, 0x82, 0xa9, 0xb4, 0x30, 0x4e, 0x6f, 0x33, 0xf1, - 0x9a, 0xfe, 0xe1, 0xd5, 0x3f, 0xe7, 0x85, 0x12, 0xae, 0xce, 0xf4, 0x7f, 0x36, 0x18, 0xab, 0x5c, - 0x61, 0xa2, 0x33, 0x93, 0x2d, 0xf2, 0x71, 0x39, 0x85, 0x25, 0xc4, 0x44, 0xe9, 0x1a, 0xff, 0xde, - 0x7e, 0x18, 0x6b, 0x0c, 0xa6, 0x62, 0x16, 0x31, 0xdc, 0xc0, 0xbd, 0x2b, 0x86, 0x71, 0x85, 0x79, - 0x9f, 0xed, 0x46, 0x70, 0x0b, 0xa9, 0x82, 0x89, 0x2b, 0xe7, 0x31, 0x08, 0xd7, 0x38, 0x1c, 0x3b, - 0x6d, 0xaf, 0x74, 0x3a, 0xa7, 0x89, 0x0c, 0xc2, 0x02, 0xf9, 0x31, 0x49, 0xe7, 0x94, 0x50, 0xbb, - 0x1c, 0x13, 0x8f, 0xfb, 0xcb, 0x26, 0x0b, 0xca, 0x9c, 0x30, 0x74, 0x27, 0xa7, 0x31, 0x54, 0xa1, - 0x17, 0x10, 0xdf, 0x80, 0x4c, 0xea, 0x12, 0x1f, 0x79, 0x45, 0x60, 0x70, 0x2a, 0x4b, 0x72, 0x69, - 0xc0, 0x0f, 0x1b, 0x06, 0xdf, 0x0c, 0xd7, 0x38, 0xea, 0x65, 0x5a, 0x51, 0xe3, 0xa8, 0x58, 0x26, - 0x2b, 0x8c, 0x85, 0xf1, 0x36, 0xb9, 0xf7, 0xeb, 0xa4, 0xc6, 0xa0, 0x7f, 0x8f, 0x3e, 0x69, 0x85, - 0xfd, 0xee, 0x93, 0x58, 0xe3, 0xc8, 0xff, 0xd7, 0x2c, 0x85, 0xeb, 0x45, 0x52, 0xee, 0x96, 0x12, - 0x97, 0x93, 0x1e, 0x54, 0x93, 0x8e, 0xa5, 0x8a, 0x2e, 0xa4, 0x89, 0x8a, 0x95, 0x52, 0x20, 0xbc, - 0x29, 0xc9, 0x52, 0xed, 0x32, 0xe3, 0x1f, 0xc9, 0x6f, 0x95, 0x35, 0xae, 0xbe, 0x8f, 0x3a, 0xeb, - 0xfb, 0xe8, 0x84, 0xb5, 0xa7, 0xdf, 0x6e, 0x1e, 0x72, 0x28, 0x96, 0x4a, 0x81, 0xce, 0xc5, 0xaf, - 0x65, 0xb7, 0xf1, 0xb8, 0xec, 0x36, 0xfe, 0x2c, 0xbb, 0x8d, 0x1f, 0x4f, 0xdd, 0x8d, 0xc7, 0xa7, - 0xee, 0xc6, 0xef, 0xa7, 0xee, 0xc6, 0xb4, 0x4d, 0x8d, 0xf5, 0xfe, 0x6f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x3a, 0xb7, 0x6f, 0x3f, 0xe4, 0x05, 0x00, 0x00, -} - -func (m *Videopersons) 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 *Videopersons) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) - } - if len(m.CameraId) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.CameraAddr) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.CameraAddr))) - i += copy(dAtA[i:], m.CameraAddr) - } - if len(m.PicDate) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PicDate))) - i += copy(dAtA[i:], m.PicDate) - } - if len(m.PicMaxUrl) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PicMaxUrl))) - i += copy(dAtA[i:], m.PicMaxUrl) - } - if len(m.TaskId) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.TaskId))) - i += copy(dAtA[i:], m.TaskId) - } - if len(m.TaskName) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.TaskName))) - i += copy(dAtA[i:], m.TaskName) - } - if len(m.SdkName) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.SdkName))) - i += copy(dAtA[i:], m.SdkName) - } - if len(m.Content) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) - } - if len(m.LikeDate) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.LikeDate))) - i += copy(dAtA[i:], m.LikeDate) - } - if len(m.DetectScore) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.DetectScore))) - i += copy(dAtA[i:], m.DetectScore) - } - if len(m.Sex) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Sex))) - i += copy(dAtA[i:], m.Sex) - } - if m.Age != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(m.Age)) - } - if len(m.AgeDescription) > 0 { - dAtA[i] = 0x72 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AgeDescription))) - i += copy(dAtA[i:], m.AgeDescription) - } - if len(m.Race) > 0 { - dAtA[i] = 0x7a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Race))) - i += copy(dAtA[i:], m.Race) - } - if len(m.SmileLevel) > 0 { - dAtA[i] = 0x82 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.SmileLevel))) - i += copy(dAtA[i:], m.SmileLevel) - } - if len(m.BeautyLevel) > 0 { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.BeautyLevel))) - i += copy(dAtA[i:], m.BeautyLevel) - } - if len(m.PicSmUrl) > 0 { - for _, s := range m.PicSmUrl { - dAtA[i] = 0x92 - 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.VideoUrl) > 0 { - dAtA[i] = 0x9a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.VideoUrl))) - i += copy(dAtA[i:], m.VideoUrl) - } - if len(m.AnalyServerId) > 0 { - dAtA[i] = 0xa2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AnalyServerId))) - i += copy(dAtA[i:], m.AnalyServerId) - } - if len(m.AnalyServerName) > 0 { - dAtA[i] = 0xaa - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AnalyServerName))) - i += copy(dAtA[i:], m.AnalyServerName) - } - if len(m.AnalyServerIp) > 0 { - dAtA[i] = 0xb2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AnalyServerIp))) - i += copy(dAtA[i:], m.AnalyServerIp) - } - if len(m.ClusterId) > 0 { - dAtA[i] = 0xba - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.ClusterId))) - i += copy(dAtA[i:], m.ClusterId) - } - if len(m.IsAlarm) > 0 { - dAtA[i] = 0xc2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.IsAlarm))) - i += copy(dAtA[i:], m.IsAlarm) - } - if len(m.IsAckAlarm) > 0 { - dAtA[i] = 0xca - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.IsAckAlarm))) - i += copy(dAtA[i:], m.IsAckAlarm) - } - if m.IsCollect != 0 { - dAtA[i] = 0xd0 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(m.IsCollect)) - } - if m.IsDelete != 0 { - dAtA[i] = 0xd8 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(m.IsDelete)) - } - if len(m.AlarmRules) > 0 { - for _, msg := range m.AlarmRules { - dAtA[i] = 0xe2 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.BaseInfo) > 0 { - for _, msg := range m.BaseInfo { - dAtA[i] = 0xea - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - return i, nil -} - -func (m *AlarmRules) 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 *AlarmRules) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.GroupId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.GroupId))) - i += copy(dAtA[i:], m.GroupId) - } - if len(m.AlarmLevel) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.AlarmLevel))) - i += copy(dAtA[i:], m.AlarmLevel) - } - if len(m.RuleText) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.RuleText))) - i += copy(dAtA[i:], m.RuleText) - } - if m.DefenceState { - dAtA[i] = 0x20 - i++ - if m.DefenceState { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if m.IsLink { - dAtA[i] = 0x28 - i++ - if m.IsLink { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.LinkInfo) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.LinkInfo))) - i += copy(dAtA[i:], m.LinkInfo) - } - return i, nil -} - -func (m *BaseInfo) 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 *BaseInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.TableId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.TableId))) - i += copy(dAtA[i:], m.TableId) - } - if len(m.TableName) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.TableName))) - i += copy(dAtA[i:], m.TableName) - } - if m.CompareScore != 0 { - dAtA[i] = 0x1d - i++ - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore)))) - i += 4 - } - if len(m.PersonId) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PersonId))) - i += copy(dAtA[i:], m.PersonId) - } - if len(m.PersonName) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PersonName))) - i += copy(dAtA[i:], m.PersonName) - } - if len(m.PersonPicUrl) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PersonPicUrl))) - i += copy(dAtA[i:], m.PersonPicUrl) - } - if len(m.PhoneNum) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PhoneNum))) - i += copy(dAtA[i:], m.PhoneNum) - } - if len(m.Sex) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Sex))) - i += copy(dAtA[i:], m.Sex) - } - if len(m.IdCard) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.IdCard))) - i += copy(dAtA[i:], m.IdCard) - } - if len(m.MonitorLevel) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.MonitorLevel))) - i += copy(dAtA[i:], m.MonitorLevel) - } - if len(m.Content) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) - } - if len(m.BwType) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintVideoperson(dAtA, i, uint64(len(m.BwType))) - i += copy(dAtA[i:], m.BwType) - } - return i, nil -} - -func encodeVarintVideoperson(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 *Videopersons) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.CameraAddr) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.PicDate) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.PicMaxUrl) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.TaskId) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.TaskName) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.SdkName) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.LikeDate) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.DetectScore) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.Sex) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - if m.Age != 0 { - n += 1 + sovVideoperson(uint64(m.Age)) - } - l = len(m.AgeDescription) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.Race) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.SmileLevel) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - l = len(m.BeautyLevel) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - if len(m.PicSmUrl) > 0 { - for _, s := range m.PicSmUrl { - l = len(s) - n += 2 + l + sovVideoperson(uint64(l)) - } - } - l = len(m.VideoUrl) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - l = len(m.AnalyServerId) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - l = len(m.AnalyServerName) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - l = len(m.AnalyServerIp) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - l = len(m.ClusterId) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - l = len(m.IsAlarm) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - l = len(m.IsAckAlarm) - if l > 0 { - n += 2 + l + sovVideoperson(uint64(l)) - } - if m.IsCollect != 0 { - n += 2 + sovVideoperson(uint64(m.IsCollect)) - } - if m.IsDelete != 0 { - n += 2 + sovVideoperson(uint64(m.IsDelete)) - } - if len(m.AlarmRules) > 0 { - for _, e := range m.AlarmRules { - l = e.Size() - n += 2 + l + sovVideoperson(uint64(l)) - } - } - if len(m.BaseInfo) > 0 { - for _, e := range m.BaseInfo { - l = e.Size() - n += 2 + l + sovVideoperson(uint64(l)) - } - } - return n -} - -func (m *AlarmRules) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupId) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.AlarmLevel) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.RuleText) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - if m.DefenceState { - n += 2 - } - if m.IsLink { - n += 2 - } - l = len(m.LinkInfo) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - return n -} - -func (m *BaseInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TableId) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.TableName) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - if m.CompareScore != 0 { - n += 5 - } - l = len(m.PersonId) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.PersonName) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.PersonPicUrl) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.PhoneNum) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.Sex) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.IdCard) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.MonitorLevel) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - l = len(m.BwType) - if l > 0 { - n += 1 + l + sovVideoperson(uint64(l)) - } - return n -} - -func sovVideoperson(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozVideoperson(x uint64) (n int) { - return sovVideoperson(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Videopersons) 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 ErrIntOverflowVideoperson - } - 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: Videopersons: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Videopersons: 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - 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 CameraAddr", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CameraAddr = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicDate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicMaxUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TaskName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SdkName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LikeDate = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DetectScore", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DetectScore = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sex = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Age", wireType) - } - m.Age = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Age |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AgeDescription = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Race = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SmileLevel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SmileLevel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 17: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BeautyLevel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 18: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PicSmUrl = append(m.PicSmUrl, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VideoUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VideoUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AnalyServerId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AnalyServerName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnalyServerIp", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AnalyServerIp = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 23: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ClusterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IsAlarm", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IsAlarm = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IsAckAlarm", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IsAckAlarm = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 26: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsCollect", wireType) - } - m.IsCollect = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IsCollect |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 27: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) - } - m.IsDelete = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IsDelete |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AlarmRules", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVideoperson - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AlarmRules = append(m.AlarmRules, &AlarmRules{}) - if err := m.AlarmRules[len(m.AlarmRules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 29: - 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 ErrIntOverflowVideoperson - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthVideoperson - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BaseInfo = append(m.BaseInfo, &BaseInfo{}) - if err := m.BaseInfo[len(m.BaseInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVideoperson(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthVideoperson - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthVideoperson - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AlarmRules) 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 ErrIntOverflowVideoperson - } - 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: AlarmRules: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AlarmRules: 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - 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 AlarmLevel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AlarmLevel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RuleText", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RuleText = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DefenceState", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DefenceState = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsLink", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsLink = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkInfo", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkInfo = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVideoperson(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthVideoperson - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthVideoperson - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BaseInfo) 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 ErrIntOverflowVideoperson - } - 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: BaseInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BaseInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TableName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field CompareScore", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.CompareScore = float32(math.Float32frombits(v)) - case 4: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersonPicUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PhoneNum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sex = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.IdCard = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MonitorLevel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - 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 ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Content = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BwType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowVideoperson - } - 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 ErrInvalidLengthVideoperson - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthVideoperson - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BwType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipVideoperson(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthVideoperson - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthVideoperson - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipVideoperson(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, ErrIntOverflowVideoperson - } - 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, ErrIntOverflowVideoperson - } - 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, ErrIntOverflowVideoperson - } - 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, ErrInvalidLengthVideoperson - } - iNdEx += length - if iNdEx < 0 { - return 0, ErrInvalidLengthVideoperson - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowVideoperson - } - 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 := skipVideoperson(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - if iNdEx < 0 { - return 0, ErrInvalidLengthVideoperson - } - } - 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") -} - -var ( - ErrInvalidLengthVideoperson = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowVideoperson = fmt.Errorf("proto: integer overflow") -) diff --git a/videoperson.proto b/videoperson.proto deleted file mode 100644 index 8383313..0000000 --- a/videoperson.proto +++ /dev/null @@ -1,60 +0,0 @@ -syntax = "proto3"; - -package protomsg; - -message Videopersons { - string id =1; - string cameraId =2; - string cameraAddr =3; - string picDate =4; - string picMaxUrl =5; - string taskId =6; - string taskName =7; - string sdkName =8; - string content =9; - string likeDate =10; - string detectScore =11; - string sex =12; - int32 age =13; - string ageDescription =14; - string race =15; - string smileLevel =16; - string beautyLevel =17; - repeated string picSmUrl =18; - string videoUrl =19; - string analyServerId =20; - string analyServerName =21; - string analyServerIp =22; - string clusterId =23; - string isAlarm =24; - string isAckAlarm =25; - int32 isCollect =26; - int32 isDelete =27; - repeated AlarmRules alarmRules =28; - repeated BaseInfo baseInfo =29; -} - -message AlarmRules { - string groupId =1; - string alarmLevel =2; - string ruleText =3; - bool defenceState =4; - bool isLink =5; - string linkInfo =6; -} - -message BaseInfo { - string tableId =1; - string tableName =2; - float compareScore =3; - string personId =4; - string personName =5; - string personPicUrl =6; - string phoneNum =7; - string sex =8; - string idCard =9; - string monitorLevel =10; - string content =11; - string bwType =12; -} - -- Gitblit v1.8.0