New file |
| | |
| | | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| | | // source: es.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 Baseinfo struct { |
| | | FaceFeature string `protobuf:"bytes,1,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` |
| | | PersonId string `protobuf:"bytes,2,opt,name=personId,proto3" json:"personId,omitempty"` |
| | | TableId string `protobuf:"bytes,3,opt,name=tableId,proto3" json:"tableId,omitempty"` |
| | | TableName string `protobuf:"bytes,4,opt,name=tableName,proto3" json:"tableName,omitempty"` |
| | | PersonName string `protobuf:"bytes,6,opt,name=personName,proto3" json:"personName,omitempty"` |
| | | PersonPicUrl string `protobuf:"bytes,7,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` |
| | | PhoneNum string `protobuf:"bytes,8,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` |
| | | Sex string `protobuf:"bytes,9,opt,name=sex,proto3" json:"sex,omitempty"` |
| | | IdCard string `protobuf:"bytes,10,opt,name=idCard,proto3" json:"idCard,omitempty"` |
| | | MonitorLevel string `protobuf:"bytes,11,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` |
| | | Content string `protobuf:"bytes,12,opt,name=content,proto3" json:"content,omitempty"` |
| | | PicDesc string `protobuf:"bytes,13,opt,name=picDesc,proto3" json:"picDesc,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_718db5c20d0f3738, []int{0} |
| | | } |
| | | 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) GetFaceFeature() string { |
| | | if m != nil { |
| | | return m.FaceFeature |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (m *Baseinfo) GetPersonId() string { |
| | | if m != nil { |
| | | return m.PersonId |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | 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) 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) GetPicDesc() string { |
| | | if m != nil { |
| | | return m.PicDesc |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | type Binfos struct { |
| | | Infos []*Baseinfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"` |
| | | } |
| | | |
| | | func (m *Binfos) Reset() { *m = Binfos{} } |
| | | func (m *Binfos) String() string { return proto.CompactTextString(m) } |
| | | func (*Binfos) ProtoMessage() {} |
| | | func (*Binfos) Descriptor() ([]byte, []int) { |
| | | return fileDescriptor_718db5c20d0f3738, []int{1} |
| | | } |
| | | func (m *Binfos) XXX_Unmarshal(b []byte) error { |
| | | return m.Unmarshal(b) |
| | | } |
| | | func (m *Binfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| | | if deterministic { |
| | | return xxx_messageInfo_Binfos.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 *Binfos) XXX_Merge(src proto.Message) { |
| | | xxx_messageInfo_Binfos.Merge(m, src) |
| | | } |
| | | func (m *Binfos) XXX_Size() int { |
| | | return m.Size() |
| | | } |
| | | func (m *Binfos) XXX_DiscardUnknown() { |
| | | xxx_messageInfo_Binfos.DiscardUnknown(m) |
| | | } |
| | | |
| | | var xxx_messageInfo_Binfos proto.InternalMessageInfo |
| | | |
| | | func (m *Binfos) GetInfos() []*Baseinfo { |
| | | if m != nil { |
| | | return m.Infos |
| | | } |
| | | return nil |
| | | } |
| | | |
| | | type Esinfo struct { |
| | | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| | | Tableid string `protobuf:"bytes,2,opt,name=tableid,proto3" json:"tableid,omitempty"` |
| | | FaceFeature string `protobuf:"bytes,3,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"` |
| | | CompareScore float32 `protobuf:"fixed32,4,opt,name=compareScore,proto3" json:"compareScore,omitempty"` |
| | | } |
| | | |
| | | func (m *Esinfo) Reset() { *m = Esinfo{} } |
| | | func (m *Esinfo) String() string { return proto.CompactTextString(m) } |
| | | func (*Esinfo) ProtoMessage() {} |
| | | func (*Esinfo) Descriptor() ([]byte, []int) { |
| | | return fileDescriptor_718db5c20d0f3738, []int{2} |
| | | } |
| | | func (m *Esinfo) XXX_Unmarshal(b []byte) error { |
| | | return m.Unmarshal(b) |
| | | } |
| | | func (m *Esinfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| | | if deterministic { |
| | | return xxx_messageInfo_Esinfo.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 *Esinfo) XXX_Merge(src proto.Message) { |
| | | xxx_messageInfo_Esinfo.Merge(m, src) |
| | | } |
| | | func (m *Esinfo) XXX_Size() int { |
| | | return m.Size() |
| | | } |
| | | func (m *Esinfo) XXX_DiscardUnknown() { |
| | | xxx_messageInfo_Esinfo.DiscardUnknown(m) |
| | | } |
| | | |
| | | var xxx_messageInfo_Esinfo proto.InternalMessageInfo |
| | | |
| | | func (m *Esinfo) GetId() string { |
| | | if m != nil { |
| | | return m.Id |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (m *Esinfo) GetTableid() string { |
| | | if m != nil { |
| | | return m.Tableid |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (m *Esinfo) GetFaceFeature() string { |
| | | if m != nil { |
| | | return m.FaceFeature |
| | | } |
| | | return "" |
| | | } |
| | | |
| | | func (m *Esinfo) GetCompareScore() float32 { |
| | | if m != nil { |
| | | return m.CompareScore |
| | | } |
| | | return 0 |
| | | } |
| | | |
| | | func init() { |
| | | proto.RegisterType((*Baseinfo)(nil), "protomsg.Baseinfo") |
| | | proto.RegisterType((*Binfos)(nil), "protomsg.Binfos") |
| | | proto.RegisterType((*Esinfo)(nil), "protomsg.Esinfo") |
| | | } |
| | | |
| | | func init() { proto.RegisterFile("es.proto", fileDescriptor_718db5c20d0f3738) } |
| | | |
| | | var fileDescriptor_718db5c20d0f3738 = []byte{ |
| | | // 346 bytes of a gzipped FileDescriptorProto |
| | | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xcf, 0x6a, 0xea, 0x40, |
| | | 0x14, 0xc6, 0x4d, 0x72, 0x6f, 0x8c, 0x47, 0xef, 0xa5, 0xcc, 0xa2, 0x1c, 0x4a, 0x09, 0x92, 0x95, |
| | | 0x2b, 0x17, 0xf6, 0x0d, 0xec, 0x1f, 0x10, 0x8a, 0x14, 0x4b, 0x1f, 0x20, 0x26, 0xc7, 0x76, 0xc0, |
| | | 0x64, 0xc2, 0x4c, 0x2c, 0x3e, 0x46, 0x1f, 0xab, 0x4b, 0x97, 0x5d, 0x96, 0xf8, 0x22, 0x25, 0x67, |
| | | 0x92, 0xaa, 0xed, 0x2a, 0xe7, 0xfb, 0xbe, 0x21, 0xe7, 0xcf, 0x0f, 0x02, 0x32, 0xe3, 0x42, 0xab, |
| | | 0x52, 0x89, 0x80, 0x3f, 0x99, 0x79, 0x8e, 0x2a, 0x17, 0x82, 0x69, 0x6c, 0x48, 0xe6, 0x2b, 0x25, |
| | | 0x86, 0xd0, 0x5f, 0xc5, 0x09, 0xdd, 0x51, 0x5c, 0x6e, 0x34, 0xa1, 0x33, 0x74, 0x46, 0xbd, 0xc5, |
| | | 0xb1, 0x25, 0x2e, 0x20, 0x28, 0x48, 0x1b, 0x95, 0xcf, 0x52, 0x74, 0x39, 0xfe, 0xd6, 0x02, 0xa1, |
| | | 0x5b, 0xc6, 0xcb, 0x35, 0xcd, 0x52, 0xf4, 0x38, 0x6a, 0xa5, 0xb8, 0x84, 0x1e, 0x97, 0xf3, 0x38, |
| | | 0x23, 0xfc, 0xc3, 0xd9, 0xc1, 0x10, 0x21, 0x80, 0xfd, 0x07, 0xc7, 0x3e, 0xc7, 0x47, 0x8e, 0x88, |
| | | 0x60, 0x60, 0xd5, 0x83, 0x4c, 0x9e, 0xf4, 0x1a, 0xbb, 0xfc, 0xe2, 0xc4, 0xe3, 0xb9, 0x5e, 0x54, |
| | | 0x4e, 0xf3, 0x4d, 0x86, 0x41, 0x33, 0x57, 0xa3, 0xc5, 0x19, 0x78, 0x86, 0xb6, 0xd8, 0x63, 0xbb, |
| | | 0x2e, 0xc5, 0x39, 0xf8, 0x32, 0xbd, 0x8e, 0x75, 0x8a, 0xc0, 0x66, 0xa3, 0xea, 0x4e, 0x99, 0xca, |
| | | 0x65, 0xa9, 0xf4, 0x3d, 0xbd, 0xd2, 0x1a, 0xfb, 0xb6, 0xd3, 0xb1, 0x57, 0x6f, 0x99, 0xa8, 0xbc, |
| | | 0xa4, 0xbc, 0xc4, 0x81, 0xdd, 0xb2, 0x91, 0x75, 0x52, 0xc8, 0xe4, 0x86, 0x4c, 0x82, 0xff, 0x6c, |
| | | 0xd2, 0xc8, 0x68, 0x02, 0xfe, 0xb4, 0x3e, 0xb0, 0x11, 0x23, 0xf8, 0xcb, 0x05, 0x3a, 0x43, 0x6f, |
| | | 0xd4, 0x9f, 0x88, 0x71, 0x0b, 0x62, 0xdc, 0x42, 0x58, 0xd8, 0x07, 0xd1, 0x16, 0xfc, 0x5b, 0xc3, |
| | | 0x54, 0xfe, 0x83, 0x2b, 0xd3, 0x06, 0x86, 0x2b, 0x0f, 0x77, 0x96, 0x2d, 0x82, 0x56, 0xfe, 0xe4, |
| | | 0xe7, 0xfd, 0xe6, 0x17, 0xc1, 0x20, 0x51, 0x59, 0x11, 0x6b, 0x7a, 0x4c, 0x94, 0xb6, 0x30, 0xdc, |
| | | 0xc5, 0x89, 0x37, 0xc5, 0xf7, 0x2a, 0x74, 0x76, 0x55, 0xe8, 0x7c, 0x56, 0xa1, 0xf3, 0xb6, 0x0f, |
| | | 0x3b, 0xbb, 0x7d, 0xd8, 0xf9, 0xd8, 0x87, 0x9d, 0xa5, 0xcf, 0xd3, 0x5e, 0x7d, 0x05, 0x00, 0x00, |
| | | 0xff, 0xff, 0x9a, 0x19, 0xca, 0x49, 0x49, 0x02, 0x00, 0x00, |
| | | } |
| | | |
| | | 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.FaceFeature) > 0 { |
| | | dAtA[i] = 0xa |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature))) |
| | | i += copy(dAtA[i:], m.FaceFeature) |
| | | } |
| | | if len(m.PersonId) > 0 { |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PersonId))) |
| | | i += copy(dAtA[i:], m.PersonId) |
| | | } |
| | | if len(m.TableId) > 0 { |
| | | dAtA[i] = 0x1a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableId))) |
| | | i += copy(dAtA[i:], m.TableId) |
| | | } |
| | | if len(m.TableName) > 0 { |
| | | dAtA[i] = 0x22 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableName))) |
| | | i += copy(dAtA[i:], m.TableName) |
| | | } |
| | | if len(m.PersonName) > 0 { |
| | | dAtA[i] = 0x32 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PersonName))) |
| | | i += copy(dAtA[i:], m.PersonName) |
| | | } |
| | | if len(m.PersonPicUrl) > 0 { |
| | | dAtA[i] = 0x3a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PersonPicUrl))) |
| | | i += copy(dAtA[i:], m.PersonPicUrl) |
| | | } |
| | | if len(m.PhoneNum) > 0 { |
| | | dAtA[i] = 0x42 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PhoneNum))) |
| | | i += copy(dAtA[i:], m.PhoneNum) |
| | | } |
| | | if len(m.Sex) > 0 { |
| | | dAtA[i] = 0x4a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Sex))) |
| | | i += copy(dAtA[i:], m.Sex) |
| | | } |
| | | if len(m.IdCard) > 0 { |
| | | dAtA[i] = 0x52 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.IdCard))) |
| | | i += copy(dAtA[i:], m.IdCard) |
| | | } |
| | | if len(m.MonitorLevel) > 0 { |
| | | dAtA[i] = 0x5a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.MonitorLevel))) |
| | | i += copy(dAtA[i:], m.MonitorLevel) |
| | | } |
| | | if len(m.Content) > 0 { |
| | | dAtA[i] = 0x62 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Content))) |
| | | i += copy(dAtA[i:], m.Content) |
| | | } |
| | | if len(m.PicDesc) > 0 { |
| | | dAtA[i] = 0x6a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PicDesc))) |
| | | i += copy(dAtA[i:], m.PicDesc) |
| | | } |
| | | return i, nil |
| | | } |
| | | |
| | | func (m *Binfos) 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 *Binfos) MarshalTo(dAtA []byte) (int, error) { |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if len(m.Infos) > 0 { |
| | | for _, msg := range m.Infos { |
| | | dAtA[i] = 0xa |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(msg.Size())) |
| | | n, err := msg.MarshalTo(dAtA[i:]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i += n |
| | | } |
| | | } |
| | | return i, nil |
| | | } |
| | | |
| | | func (m *Esinfo) 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 *Esinfo) MarshalTo(dAtA []byte) (int, error) { |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if len(m.Id) > 0 { |
| | | dAtA[i] = 0xa |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Id))) |
| | | i += copy(dAtA[i:], m.Id) |
| | | } |
| | | if len(m.Tableid) > 0 { |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Tableid))) |
| | | i += copy(dAtA[i:], m.Tableid) |
| | | } |
| | | if len(m.FaceFeature) > 0 { |
| | | dAtA[i] = 0x1a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature))) |
| | | i += copy(dAtA[i:], m.FaceFeature) |
| | | } |
| | | if m.CompareScore != 0 { |
| | | dAtA[i] = 0x25 |
| | | i++ |
| | | encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore)))) |
| | | i += 4 |
| | | } |
| | | return i, nil |
| | | } |
| | | |
| | | func encodeVarintEs(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 *Baseinfo) Size() (n int) { |
| | | if m == nil { |
| | | return 0 |
| | | } |
| | | var l int |
| | | _ = l |
| | | l = len(m.FaceFeature) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.PersonId) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.TableId) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.TableName) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.PersonName) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.PersonPicUrl) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.PhoneNum) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.Sex) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.IdCard) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.MonitorLevel) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.Content) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.PicDesc) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | return n |
| | | } |
| | | |
| | | func (m *Binfos) Size() (n int) { |
| | | if m == nil { |
| | | return 0 |
| | | } |
| | | var l int |
| | | _ = l |
| | | if len(m.Infos) > 0 { |
| | | for _, e := range m.Infos { |
| | | l = e.Size() |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | } |
| | | return n |
| | | } |
| | | |
| | | func (m *Esinfo) Size() (n int) { |
| | | if m == nil { |
| | | return 0 |
| | | } |
| | | var l int |
| | | _ = l |
| | | l = len(m.Id) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.Tableid) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | l = len(m.FaceFeature) |
| | | if l > 0 { |
| | | n += 1 + l + sovEs(uint64(l)) |
| | | } |
| | | if m.CompareScore != 0 { |
| | | n += 5 |
| | | } |
| | | return n |
| | | } |
| | | |
| | | func sovEs(x uint64) (n int) { |
| | | for { |
| | | n++ |
| | | x >>= 7 |
| | | if x == 0 { |
| | | break |
| | | } |
| | | } |
| | | return n |
| | | } |
| | | func sozEs(x uint64) (n int) { |
| | | return sovEs(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| | | } |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | 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 FaceFeature", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.FaceFeature = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 2: |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.PersonId = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 3: |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.TableId = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 4: |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.TableName = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 6: |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.PersonName = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 7: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field PersonPicUrl", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.PersonPicUrl = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 8: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field PhoneNum", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.PhoneNum = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 9: |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.Sex = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 10: |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.IdCard = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 11: |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.MonitorLevel = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 12: |
| | | 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.Content = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 13: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field PicDesc", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.PicDesc = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | default: |
| | | iNdEx = preIndex |
| | | skippy, err := skipEs(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if skippy < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if (iNdEx + skippy) < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if (iNdEx + skippy) > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | |
| | | if iNdEx > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | return nil |
| | | } |
| | | func (m *Binfos) 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 ErrIntOverflowEs |
| | | } |
| | | 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: Binfos: wiretype end group for non-group") |
| | | } |
| | | if fieldNum <= 0 { |
| | | return fmt.Errorf("proto: Binfos: illegal tag %d (wire type %d)", fieldNum, wire) |
| | | } |
| | | switch fieldNum { |
| | | case 1: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field Infos", wireType) |
| | | } |
| | | var msglen int |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | msglen |= int(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | if msglen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + msglen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.Infos = append(m.Infos, &Baseinfo{}) |
| | | if err := m.Infos[len(m.Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| | | return err |
| | | } |
| | | iNdEx = postIndex |
| | | default: |
| | | iNdEx = preIndex |
| | | skippy, err := skipEs(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if skippy < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if (iNdEx + skippy) < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if (iNdEx + skippy) > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | |
| | | if iNdEx > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | return nil |
| | | } |
| | | func (m *Esinfo) 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 ErrIntOverflowEs |
| | | } |
| | | 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: Esinfo: wiretype end group for non-group") |
| | | } |
| | | if fieldNum <= 0 { |
| | | return fmt.Errorf("proto: Esinfo: 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 ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | 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 Tableid", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.Tableid = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 3: |
| | | if wireType != 2 { |
| | | return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType) |
| | | } |
| | | var stringLen uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return ErrIntOverflowEs |
| | | } |
| | | if iNdEx >= l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | b := dAtA[iNdEx] |
| | | iNdEx++ |
| | | stringLen |= uint64(b&0x7F) << shift |
| | | if b < 0x80 { |
| | | break |
| | | } |
| | | } |
| | | intStringLen := int(stringLen) |
| | | if intStringLen < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | postIndex := iNdEx + intStringLen |
| | | if postIndex < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if postIndex > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | m.FaceFeature = string(dAtA[iNdEx:postIndex]) |
| | | iNdEx = postIndex |
| | | case 4: |
| | | 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)) |
| | | default: |
| | | iNdEx = preIndex |
| | | skippy, err := skipEs(dAtA[iNdEx:]) |
| | | if err != nil { |
| | | return err |
| | | } |
| | | if skippy < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if (iNdEx + skippy) < 0 { |
| | | return ErrInvalidLengthEs |
| | | } |
| | | if (iNdEx + skippy) > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | iNdEx += skippy |
| | | } |
| | | } |
| | | |
| | | if iNdEx > l { |
| | | return io.ErrUnexpectedEOF |
| | | } |
| | | return nil |
| | | } |
| | | func skipEs(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, ErrIntOverflowEs |
| | | } |
| | | 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, ErrIntOverflowEs |
| | | } |
| | | 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, ErrIntOverflowEs |
| | | } |
| | | 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, ErrInvalidLengthEs |
| | | } |
| | | iNdEx += length |
| | | if iNdEx < 0 { |
| | | return 0, ErrInvalidLengthEs |
| | | } |
| | | return iNdEx, nil |
| | | case 3: |
| | | for { |
| | | var innerWire uint64 |
| | | var start int = iNdEx |
| | | for shift := uint(0); ; shift += 7 { |
| | | if shift >= 64 { |
| | | return 0, ErrIntOverflowEs |
| | | } |
| | | 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 := skipEs(dAtA[start:]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | iNdEx = start + next |
| | | if iNdEx < 0 { |
| | | return 0, ErrInvalidLengthEs |
| | | } |
| | | } |
| | | 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 ( |
| | | ErrInvalidLengthEs = fmt.Errorf("proto: negative length found during unmarshaling") |
| | | ErrIntOverflowEs = fmt.Errorf("proto: integer overflow") |
| | | ) |