// 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" 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 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,opt,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,opt,name=alarmRules,proto3" json:"alarmRules,omitempty"` BaseInfo *BaseInfo `protobuf:"bytes,29,opt,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 "" } 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"` } 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 } 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"` } 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 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{ // 678 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x54, 0x4d, 0x6f, 0x13, 0x3d, 0x10, 0xee, 0xa6, 0x6d, 0x9a, 0x3a, 0xfd, 0xf4, 0xdb, 0xb7, 0x98, 0x52, 0xa2, 0x28, 0x42, 0x28, 0xa7, 0x1c, 0x80, 0x3f, 0x90, 0xb6, 0x97, 0x48, 0x50, 0xa1, 0x04, 0xb8, 0x3b, 0xde, 0x69, 0xb0, 0xba, 0xbb, 0x5e, 0xd9, 0x4e, 0xd5, 0xde, 0x38, 0x71, 0xe6, 0x67, 0x21, 0x4e, 0x3d, 0x72, 0x44, 0xed, 0x1f, 0x41, 0x33, 0xde, 0xaf, 0x94, 0xd3, 0xce, 0xf3, 0x3c, 0xde, 0xf1, 0xcc, 0x78, 0x66, 0xd8, 0xe1, 0x8d, 0x8e, 0xc1, 0xe4, 0x60, 0x9d, 0xc9, 0x46, 0xb9, 0x35, 0xde, 0xf0, 0x0e, 0x7d, 0x52, 0xb7, 0x18, 0x7c, 0xdb, 0x62, 0x3b, 0x5f, 0x6a, 0xdd, 0xf1, 0x3d, 0xd6, 0xd2, 0xb1, 0x88, 0xfa, 0xd1, 0x70, 0x7b, 0xda, 0xd2, 0x31, 0x3f, 0x61, 0x1d, 0x25, 0x53, 0xb0, 0x72, 0x12, 0x8b, 0x16, 0xb1, 0x15, 0xe6, 0x3d, 0xc6, 0x82, 0x3d, 0x8e, 0x63, 0x2b, 0xd6, 0x49, 0x6d, 0x30, 0x5c, 0xb0, 0xad, 0x5c, 0xab, 0x0b, 0xe9, 0x41, 0x6c, 0x90, 0x58, 0x42, 0x7e, 0xca, 0xb6, 0x73, 0xad, 0x3e, 0xc8, 0xdb, 0xcf, 0x36, 0x11, 0x9b, 0xa4, 0xd5, 0x04, 0x3f, 0x66, 0x6d, 0x2f, 0xdd, 0xf5, 0x24, 0x16, 0x6d, 0x92, 0x0a, 0x84, 0xb1, 0xa0, 0x75, 0x29, 0x53, 0x10, 0x5b, 0x21, 0x96, 0x12, 0xe3, 0x5d, 0x2e, 0x0e, 0x52, 0x27, 0xdc, 0x55, 0x40, 0x54, 0x94, 0xc9, 0x3c, 0x64, 0x5e, 0x6c, 0x07, 0xa5, 0x80, 0xe8, 0x2f, 0xd1, 0xd7, 0x40, 0x01, 0xb2, 0xe0, 0xaf, 0xc4, 0xbc, 0xcf, 0xba, 0x31, 0x78, 0x50, 0x7e, 0xa6, 0x8c, 0x05, 0xd1, 0x25, 0xb9, 0x49, 0xf1, 0x03, 0xb6, 0xee, 0xe0, 0x56, 0xec, 0x90, 0x82, 0x26, 0x32, 0x72, 0x01, 0x62, 0xb7, 0x1f, 0x0d, 0x37, 0xa7, 0x68, 0xf2, 0xd7, 0x6c, 0x4f, 0x2e, 0xe0, 0x02, 0x9c, 0xb2, 0x3a, 0xf7, 0xda, 0x64, 0x62, 0x8f, 0x8e, 0x3f, 0x61, 0x39, 0x67, 0x1b, 0x56, 0x2a, 0x10, 0xfb, 0xa4, 0x92, 0x8d, 0xd5, 0x75, 0xa9, 0x4e, 0xe0, 0x3d, 0xdc, 0x40, 0x22, 0x0e, 0x42, 0x75, 0x6b, 0x06, 0x23, 0x9c, 0x83, 0x5c, 0xfa, 0xbb, 0x70, 0xe0, 0x30, 0x44, 0xd8, 0xa0, 0x30, 0xbf, 0x5c, 0xab, 0x59, 0x8a, 0x45, 0xe6, 0x21, 0xbf, 0x12, 0xa3, 0x46, 0x7d, 0x81, 0xda, 0x7f, 0x41, 0x2b, 0x31, 0x7f, 0xc5, 0x76, 0x65, 0x26, 0x93, 0xbb, 0x19, 0xd8, 0x1b, 0xb0, 0x93, 0x58, 0x1c, 0xd1, 0x81, 0x55, 0x92, 0x0f, 0xd9, 0x7e, 0x83, 0xa0, 0xca, 0xff, 0x4f, 0xe7, 0x9e, 0xd2, 0x4f, 0xfd, 0xe5, 0xe2, 0xf8, 0x5f, 0x7f, 0x39, 0xf6, 0x84, 0x4a, 0x96, 0xce, 0xd3, 0x8d, 0xcf, 0x42, 0x4f, 0x54, 0x04, 0xbe, 0xa2, 0x76, 0xe3, 0x44, 0xda, 0x54, 0x88, 0xf0, 0x8a, 0x05, 0xc4, 0x3a, 0x69, 0x37, 0x56, 0xd7, 0x41, 0x7c, 0x1e, 0xea, 0x54, 0x33, 0xe8, 0x57, 0xbb, 0x73, 0x93, 0x24, 0xa0, 0xbc, 0x38, 0xa1, 0xb7, 0xa9, 0x09, 0xac, 0x83, 0x76, 0x17, 0x90, 0x80, 0x07, 0xf1, 0x82, 0xc4, 0x0a, 0xf3, 0x77, 0x8c, 0x49, 0x74, 0x31, 0x5d, 0x26, 0xe0, 0xc4, 0x69, 0x3f, 0x1a, 0x76, 0xdf, 0x1c, 0x8d, 0xca, 0xd9, 0x19, 0x8d, 0x2b, 0x6d, 0xda, 0x38, 0xc7, 0x47, 0xac, 0x33, 0x97, 0x0e, 0x26, 0xd9, 0x95, 0x11, 0x2f, 0xe9, 0x1f, 0x5e, 0xff, 0x73, 0x56, 0x28, 0xd3, 0xea, 0xcc, 0xe0, 0x7b, 0xc4, 0x58, 0xed, 0x0a, 0x13, 0x5d, 0x58, 0xb3, 0xcc, 0x27, 0xe5, 0x14, 0x96, 0x10, 0x13, 0xa5, 0x6b, 0xc2, 0x7b, 0x87, 0x61, 0x6c, 0x30, 0x98, 0x8a, 0x5d, 0x26, 0xf0, 0x09, 0x6e, 0x7d, 0x31, 0x8c, 0x15, 0xe6, 0x03, 0xb6, 0x13, 0xc3, 0x15, 0x64, 0x0a, 0x66, 0xbe, 0x9c, 0xc7, 0xce, 0x74, 0x85, 0x1b, 0xfc, 0x6a, 0xb1, 0x4e, 0x19, 0x1f, 0x86, 0xe1, 0xe5, 0x3c, 0x81, 0x3a, 0x8c, 0x02, 0x62, 0x3d, 0xc9, 0xa4, 0x17, 0x0f, 0x51, 0xd4, 0x04, 0x5e, 0xa4, 0x4c, 0x9a, 0x4b, 0x0b, 0x61, 0x70, 0x30, 0x90, 0xd6, 0x74, 0x85, 0xa3, 0xbe, 0xa4, 0x75, 0x33, 0x89, 0x8b, 0xc5, 0x50, 0x61, 0x4c, 0x32, 0xd8, 0xe4, 0x3e, 0xac, 0x86, 0x06, 0x83, 0xfe, 0x03, 0xfa, 0xa8, 0x15, 0xf6, 0x6e, 0xd8, 0x10, 0x2b, 0x1c, 0xf9, 0xff, 0x6a, 0x32, 0xb8, 0x5c, 0xa6, 0xe5, 0x9e, 0x28, 0x71, 0x39, 0xb5, 0x9d, 0x7a, 0x6a, 0x8f, 0x59, 0x5b, 0xc7, 0xe7, 0xd2, 0xc6, 0xc5, 0x7a, 0x28, 0x10, 0xde, 0x94, 0x9a, 0x4c, 0x7b, 0x63, 0x43, 0xc1, 0xc3, 0x86, 0x58, 0xe1, 0x9a, 0xbb, 0xa5, 0xbb, 0xb2, 0x5b, 0xce, 0xc4, 0xcf, 0x87, 0x5e, 0x74, 0xff, 0xd0, 0x8b, 0xfe, 0x3c, 0xf4, 0xa2, 0x1f, 0x8f, 0xbd, 0xb5, 0xfb, 0xc7, 0xde, 0xda, 0xef, 0xc7, 0xde, 0xda, 0xbc, 0x4d, 0xcd, 0xf0, 0xf6, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x19, 0x66, 0x05, 0x98, 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 { dAtA[i] = 0x92 i++ dAtA[i] = 0x1 i++ i = encodeVarintVideoperson(dAtA, i, uint64(len(m.PicSmUrl))) i += copy(dAtA[i:], m.PicSmUrl) } 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 m.AlarmRules != nil { dAtA[i] = 0xe2 i++ dAtA[i] = 0x1 i++ i = encodeVarintVideoperson(dAtA, i, uint64(m.AlarmRules.Size())) n1, err1 := m.AlarmRules.MarshalTo(dAtA[i:]) if err1 != nil { return 0, err1 } i += n1 } if m.BaseInfo != nil { dAtA[i] = 0xea i++ dAtA[i] = 0x1 i++ i = encodeVarintVideoperson(dAtA, i, uint64(m.BaseInfo.Size())) n2, err2 := m.BaseInfo.MarshalTo(dAtA[i:]) if err2 != nil { return 0, err2 } i += n2 } 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++ } 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) } 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)) } l = len(m.PicSmUrl) if l > 0 { 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 m.AlarmRules != nil { l = m.AlarmRules.Size() n += 2 + l + sovVideoperson(uint64(l)) } if m.BaseInfo != nil { l = m.BaseInfo.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 } 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)) } return n } func sovVideoperson(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } 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 = 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 } if m.AlarmRules == nil { m.AlarmRules = &AlarmRules{} } if err := m.AlarmRules.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 } if m.BaseInfo == nil { m.BaseInfo = &BaseInfo{} } if err := m.BaseInfo.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) 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 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") )