From e15c83fc33ab00707c8ac75261fe4f5bd51943b9 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期五, 06 三月 2020 14:00:13 +0800 Subject: [PATCH] add carNo --- es.proto | 11 + es.pb.go | 526 +++++++++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 490 insertions(+), 47 deletions(-) diff --git a/es.pb.go b/es.pb.go index a590c45..f19eaae 100644 --- a/es.pb.go +++ b/es.pb.go @@ -107,6 +107,98 @@ return "" } +type PersonCar 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"` + Enable int32 `protobuf:"varint,5,opt,name=enable,proto3" json:"enable,omitempty"` + AnalyServerId string `protobuf:"bytes,6,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` + CarNo string `protobuf:"bytes,7,opt,name=carNo,proto3" json:"carNo,omitempty"` +} + +func (m *PersonCar) Reset() { *m = PersonCar{} } +func (m *PersonCar) String() string { return proto.CompactTextString(m) } +func (*PersonCar) ProtoMessage() {} +func (*PersonCar) Descriptor() ([]byte, []int) { + return fileDescriptor_718db5c20d0f3738, []int{1} +} +func (m *PersonCar) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PersonCar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PersonCar.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 *PersonCar) XXX_Merge(src proto.Message) { + xxx_messageInfo_PersonCar.Merge(m, src) +} +func (m *PersonCar) XXX_Size() int { + return m.Size() +} +func (m *PersonCar) XXX_DiscardUnknown() { + xxx_messageInfo_PersonCar.DiscardUnknown(m) +} + +var xxx_messageInfo_PersonCar proto.InternalMessageInfo + +func (m *PersonCar) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *PersonCar) GetTableid() string { + if m != nil { + return m.Tableid + } + return "" +} + +func (m *PersonCar) GetFaceFeature() string { + if m != nil { + return m.FaceFeature + } + return "" +} + +func (m *PersonCar) GetCompareScore() float32 { + if m != nil { + return m.CompareScore + } + return 0 +} + +func (m *PersonCar) GetEnable() int32 { + if m != nil { + return m.Enable + } + return 0 +} + +func (m *PersonCar) GetAnalyServerId() string { + if m != nil { + return m.AnalyServerId + } + return "" +} + +func (m *PersonCar) GetCarNo() string { + if m != nil { + return m.CarNo + } + return "" +} + type MultiFeaCache struct { EsInfo *Esinfo `protobuf:"bytes,1,opt,name=esInfo,proto3" json:"esInfo,omitempty"` AttachFeature string `protobuf:"bytes,2,opt,name=attachFeature,proto3" json:"attachFeature,omitempty"` @@ -119,7 +211,7 @@ func (m *MultiFeaCache) String() string { return proto.CompactTextString(m) } func (*MultiFeaCache) ProtoMessage() {} func (*MultiFeaCache) Descriptor() ([]byte, []int) { - return fileDescriptor_718db5c20d0f3738, []int{1} + return fileDescriptor_718db5c20d0f3738, []int{2} } func (m *MultiFeaCache) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -194,7 +286,7 @@ func (m *LinkEsInfo) String() string { return proto.CompactTextString(m) } func (*LinkEsInfo) ProtoMessage() {} func (*LinkEsInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_718db5c20d0f3738, []int{2} + return fileDescriptor_718db5c20d0f3738, []int{3} } func (m *LinkEsInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -275,7 +367,7 @@ func (m *Dbperson) String() string { return proto.CompactTextString(m) } func (*Dbperson) ProtoMessage() {} func (*Dbperson) Descriptor() ([]byte, []int) { - return fileDescriptor_718db5c20d0f3738, []int{3} + return fileDescriptor_718db5c20d0f3738, []int{4} } func (m *Dbperson) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -445,7 +537,7 @@ func (m *Dbtable) String() string { return proto.CompactTextString(m) } func (*Dbtable) ProtoMessage() {} func (*Dbtable) Descriptor() ([]byte, []int) { - return fileDescriptor_718db5c20d0f3738, []int{4} + return fileDescriptor_718db5c20d0f3738, []int{5} } func (m *Dbtable) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -581,6 +673,7 @@ func init() { proto.RegisterType((*Esinfo)(nil), "protomsg.Esinfo") + proto.RegisterType((*PersonCar)(nil), "protomsg.PersonCar") proto.RegisterType((*MultiFeaCache)(nil), "protomsg.MultiFeaCache") proto.RegisterType((*LinkEsInfo)(nil), "protomsg.LinkEsInfo") proto.RegisterType((*Dbperson)(nil), "protomsg.Dbperson") @@ -590,49 +683,51 @@ func init() { proto.RegisterFile("es.proto", fileDescriptor_718db5c20d0f3738) } var fileDescriptor_718db5c20d0f3738 = []byte{ - // 669 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0x41, 0x4e, 0xdb, 0x40, - 0x14, 0x86, 0x71, 0x0c, 0x89, 0xfd, 0x42, 0x80, 0x5a, 0x55, 0x35, 0x42, 0xc8, 0x8a, 0xa2, 0x2e, - 0xb2, 0x62, 0x41, 0x7b, 0x80, 0x0a, 0x02, 0x52, 0x24, 0x8a, 0x2a, 0x43, 0x0f, 0x30, 0xb1, 0x5f, - 0x60, 0x54, 0xdb, 0x63, 0x8d, 0x27, 0x94, 0xdc, 0xa2, 0xe7, 0xe8, 0xa6, 0xbb, 0x9e, 0xa1, 0x4b, - 0x96, 0x5d, 0x74, 0x51, 0x91, 0x23, 0xf4, 0x02, 0xd5, 0xcc, 0xd8, 0xb1, 0x9d, 0x50, 0xda, 0xae, - 0x92, 0xff, 0xff, 0xed, 0x99, 0xf7, 0xe6, 0x7b, 0x63, 0x70, 0x30, 0x3f, 0xcc, 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0xbe, 0xf5, 0x69, - 0xe1, 0x6f, 0xdc, 0x2f, 0xfc, 0x8d, 0xef, 0x0b, 0x7f, 0x63, 0xd2, 0xd6, 0x77, 0xfa, 0xd5, 0xef, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x33, 0x20, 0xa3, 0x6a, 0x32, 0x06, 0x00, 0x00, + // 694 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x94, 0x41, 0x4e, 0xdb, 0x4e, + 0x14, 0xc6, 0x71, 0x02, 0x49, 0xfc, 0x42, 0x80, 0xff, 0x08, 0xfd, 0x35, 0x42, 0x28, 0x8a, 0xa2, + 0x2e, 0xb2, 0x62, 0x41, 0x7b, 0x80, 0x0a, 0x02, 0x52, 0x24, 0x8a, 0x90, 0xa1, 0x07, 0x98, 0x8c, + 0x5f, 0x60, 0xd4, 0xd8, 0x63, 0x8d, 0x27, 0xb4, 0xb9, 0x45, 0xcf, 0xd1, 0x4d, 0x77, 0x3d, 0x43, + 0x77, 0x65, 0xd9, 0x45, 0x17, 0x15, 0x1c, 0xa1, 0x17, 0xa8, 0x66, 0xc6, 0x8e, 0xed, 0x84, 0xd2, + 0x76, 0xd9, 0x55, 0xf2, 0x7d, 0x9f, 0x3d, 0xf3, 0xe6, 0xfd, 0xde, 0x18, 0x5a, 0x98, 0x1e, 0x24, + 0x4a, 0x6a, 0x49, 0x5a, 0xf6, 0x27, 0x4a, 0xaf, 0xf7, 0x3a, 0x4c, 0x48, 0x8e, 0x2c, 0x76, 0x41, + 0xff, 0x93, 0x07, 0x8d, 0x93, 0x54, 0xc4, 0x13, 0x49, 0xb6, 0xa0, 0x26, 0x42, 0xea, 0xf5, 0xbc, + 0x81, 0x1f, 0xd4, 0x44, 0x48, 0x28, 0x34, 0x35, 0x1b, 0x4f, 0x51, 0x84, 0xb4, 0x66, 0xcd, 0x5c, + 0x92, 0x1e, 0xb4, 0x27, 0x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info) Marshal() (dAtA []byte, err error) { @@ -684,6 +779,65 @@ i++ i = encodeVarintEs(dAtA, i, uint64(len(m.AnalyServerId))) i += copy(dAtA[i:], m.AnalyServerId) + } + return i, nil +} + +func (m *PersonCar) 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 *PersonCar) 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 + } + if m.Enable != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintEs(dAtA, i, uint64(m.Enable)) + } + if len(m.AnalyServerId) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.AnalyServerId))) + i += copy(dAtA[i:], m.AnalyServerId) + } + if len(m.CarNo) > 0 { + dAtA[i] = 0x3a + i++ + i = encodeVarintEs(dAtA, i, uint64(len(m.CarNo))) + i += copy(dAtA[i:], m.CarNo) } return i, nil } @@ -1058,6 +1212,41 @@ n += 1 + sovEs(uint64(m.Enable)) } l = len(m.AnalyServerId) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + return n +} + +func (m *PersonCar) 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 + } + if m.Enable != 0 { + n += 1 + sovEs(uint64(m.Enable)) + } + l = len(m.AnalyServerId) + if l > 0 { + n += 1 + l + sovEs(uint64(l)) + } + l = len(m.CarNo) if l > 0 { n += 1 + l + sovEs(uint64(l)) } @@ -1479,6 +1668,249 @@ } return nil } +func (m *PersonCar) 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: PersonCar: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PersonCar: 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)) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType) + } + m.Enable = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEs + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Enable |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + 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 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.AnalyServerId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CarNo", 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.CarNo = 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 *MultiFeaCache) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/es.proto b/es.proto index 0475e91..0513353 100644 --- a/es.proto +++ b/es.proto @@ -13,6 +13,17 @@ string analyServerId =6; } +message PersonCar { + string id =1; + string tableid =2; + string faceFeature =3; + float compareScore =4; + int32 enable =5; + string analyServerId =6; + + string carNo =7;//杞︾墝鍙� +} + message MultiFeaCache { Esinfo esInfo = 1; string attachFeature = 2; -- Gitblit v1.8.0