From 3e7fd5950d794150c2045b6fc2d764f72602c94e Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 19 十一月 2019 17:33:50 +0800 Subject: [PATCH] update BaseInfo --- sdk.pb.go | 3047 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 2,908 insertions(+), 139 deletions(-) diff --git a/sdk.pb.go b/sdk.pb.go index 4914303..d36f76b 100644 --- a/sdk.pb.go +++ b/sdk.pb.go @@ -24,9 +24,12 @@ // Image ipc struct type Image struct { - Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` - Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` - Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` + Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Id int64 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"` + Cid string `protobuf:"bytes,6,opt,name=cid,proto3" json:"cid,omitempty"` } func (m *Image) Reset() { *m = Image{} } @@ -81,6 +84,27 @@ return m.Data } return nil +} + +func (m *Image) GetTimestamp() string { + if m != nil { + return m.Timestamp + } + return "" +} + +func (m *Image) GetId() int64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *Image) GetCid() string { + if m != nil { + return m.Cid + } + return "" } type FaceAngle struct { @@ -236,6 +260,7 @@ FAngle *FaceAngle `protobuf:"bytes,6,opt,name=fAngle,proto3" json:"fAngle,omitempty"` Quality int32 `protobuf:"varint,7,opt,name=quality,proto3" json:"quality,omitempty"` FacialData []byte `protobuf:"bytes,8,opt,name=facialData,proto3" json:"facialData,omitempty"` + FaceID uint64 `protobuf:"varint,9,opt,name=faceID,proto3" json:"faceID,omitempty"` } func (m *FacePos) Reset() { *m = FacePos{} } @@ -325,6 +350,13 @@ return m.FacialData } return nil +} + +func (m *FacePos) GetFaceID() uint64 { + if m != nil { + return m.FaceID + } + return 0 } type FaceInfo struct { @@ -439,6 +471,7 @@ RcObj *Rect `protobuf:"bytes,1,opt,name=rcObj,proto3" json:"rcObj,omitempty"` Typ int32 `protobuf:"varint,2,opt,name=typ,proto3" json:"typ,omitempty"` Prob float32 `protobuf:"fixed32,3,opt,name=prob,proto3" json:"prob,omitempty"` + ObjID uint64 `protobuf:"varint,4,opt,name=objID,proto3" json:"objID,omitempty"` } func (m *ObjInfo) Reset() { *m = ObjInfo{} } @@ -495,18 +528,83 @@ return 0 } +func (m *ObjInfo) GetObjID() uint64 { + if m != nil { + return m.ObjID + } + return 0 +} + // sdk face property -type ParamFacePos struct { +type ResultFaceDetect struct { Pos *FacePos `protobuf:"bytes,1,opt,name=pos,proto3" json:"pos,omitempty"` Result *ThftResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` - Img *Image `protobuf:"bytes,3,opt,name=img,proto3" json:"img,omitempty"` + Feats []byte `protobuf:"bytes,3,opt,name=feats,proto3" json:"feats,omitempty"` +} + +func (m *ResultFaceDetect) Reset() { *m = ResultFaceDetect{} } +func (m *ResultFaceDetect) String() string { return proto.CompactTextString(m) } +func (*ResultFaceDetect) ProtoMessage() {} +func (*ResultFaceDetect) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{6} +} +func (m *ResultFaceDetect) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResultFaceDetect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ResultFaceDetect.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 *ResultFaceDetect) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResultFaceDetect.Merge(m, src) +} +func (m *ResultFaceDetect) XXX_Size() int { + return m.Size() +} +func (m *ResultFaceDetect) XXX_DiscardUnknown() { + xxx_messageInfo_ResultFaceDetect.DiscardUnknown(m) +} + +var xxx_messageInfo_ResultFaceDetect proto.InternalMessageInfo + +func (m *ResultFaceDetect) GetPos() *FacePos { + if m != nil { + return m.Pos + } + return nil +} + +func (m *ResultFaceDetect) GetResult() *ThftResult { + if m != nil { + return m.Result + } + return nil +} + +func (m *ResultFaceDetect) GetFeats() []byte { + if m != nil { + return m.Feats + } + return nil +} + +type ParamFacePos struct { + Faces []*ResultFaceDetect `protobuf:"bytes,1,rep,name=faces,proto3" json:"faces,omitempty"` } func (m *ParamFacePos) Reset() { *m = ParamFacePos{} } func (m *ParamFacePos) String() string { return proto.CompactTextString(m) } func (*ParamFacePos) ProtoMessage() {} func (*ParamFacePos) Descriptor() ([]byte, []int) { - return fileDescriptor_70decb0fb6f436df, []int{6} + return fileDescriptor_70decb0fb6f436df, []int{7} } func (m *ParamFacePos) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -535,45 +633,31 @@ var xxx_messageInfo_ParamFacePos proto.InternalMessageInfo -func (m *ParamFacePos) GetPos() *FacePos { +func (m *ParamFacePos) GetFaces() []*ResultFaceDetect { if m != nil { - return m.Pos + return m.Faces } return nil } -func (m *ParamFacePos) GetResult() *ThftResult { - if m != nil { - return m.Result - } - return nil +type ResultFaceExtCom struct { + Feats []byte `protobuf:"bytes,1,opt,name=feats,proto3" json:"feats,omitempty"` + Comp []byte `protobuf:"bytes,2,opt,name=comp,proto3" json:"comp,omitempty"` + Pos *ResultFaceDetect `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos,omitempty"` } -func (m *ParamFacePos) GetImg() *Image { - if m != nil { - return m.Img - } - return nil +func (m *ResultFaceExtCom) Reset() { *m = ResultFaceExtCom{} } +func (m *ResultFaceExtCom) String() string { return proto.CompactTextString(m) } +func (*ResultFaceExtCom) ProtoMessage() {} +func (*ResultFaceExtCom) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{8} } - -// sdk face extract -type ParamFaceCompare struct { - Feat1 []byte `protobuf:"bytes,1,opt,name=feat1,proto3" json:"feat1,omitempty"` - Feat2 []byte `protobuf:"bytes,2,opt,name=feat2,proto3" json:"feat2,omitempty"` -} - -func (m *ParamFaceCompare) Reset() { *m = ParamFaceCompare{} } -func (m *ParamFaceCompare) String() string { return proto.CompactTextString(m) } -func (*ParamFaceCompare) ProtoMessage() {} -func (*ParamFaceCompare) Descriptor() ([]byte, []int) { - return fileDescriptor_70decb0fb6f436df, []int{7} -} -func (m *ParamFaceCompare) XXX_Unmarshal(b []byte) error { +func (m *ResultFaceExtCom) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *ParamFaceCompare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *ResultFaceExtCom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_ParamFaceCompare.Marshal(b, m, deterministic) + return xxx_messageInfo_ResultFaceExtCom.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalTo(b) @@ -583,28 +667,79 @@ return b[:n], nil } } -func (m *ParamFaceCompare) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParamFaceCompare.Merge(m, src) +func (m *ResultFaceExtCom) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResultFaceExtCom.Merge(m, src) } -func (m *ParamFaceCompare) XXX_Size() int { +func (m *ResultFaceExtCom) XXX_Size() int { return m.Size() } -func (m *ParamFaceCompare) XXX_DiscardUnknown() { - xxx_messageInfo_ParamFaceCompare.DiscardUnknown(m) +func (m *ResultFaceExtCom) XXX_DiscardUnknown() { + xxx_messageInfo_ResultFaceExtCom.DiscardUnknown(m) } -var xxx_messageInfo_ParamFaceCompare proto.InternalMessageInfo +var xxx_messageInfo_ResultFaceExtCom proto.InternalMessageInfo -func (m *ParamFaceCompare) GetFeat1() []byte { +func (m *ResultFaceExtCom) GetFeats() []byte { if m != nil { - return m.Feat1 + return m.Feats } return nil } -func (m *ParamFaceCompare) GetFeat2() []byte { +func (m *ResultFaceExtCom) GetComp() []byte { if m != nil { - return m.Feat2 + return m.Comp + } + return nil +} + +func (m *ResultFaceExtCom) GetPos() *ResultFaceDetect { + if m != nil { + return m.Pos + } + return nil +} + +type ParamFaceFeature struct { + ExtComp []*ResultFaceExtCom `protobuf:"bytes,2,rep,name=extComp,proto3" json:"extComp,omitempty"` +} + +func (m *ParamFaceFeature) Reset() { *m = ParamFaceFeature{} } +func (m *ParamFaceFeature) String() string { return proto.CompactTextString(m) } +func (*ParamFaceFeature) ProtoMessage() {} +func (*ParamFaceFeature) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{9} +} +func (m *ParamFaceFeature) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParamFaceFeature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ParamFaceFeature.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 *ParamFaceFeature) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParamFaceFeature.Merge(m, src) +} +func (m *ParamFaceFeature) XXX_Size() int { + return m.Size() +} +func (m *ParamFaceFeature) XXX_DiscardUnknown() { + xxx_messageInfo_ParamFaceFeature.DiscardUnknown(m) +} + +var xxx_messageInfo_ParamFaceFeature proto.InternalMessageInfo + +func (m *ParamFaceFeature) GetExtComp() []*ResultFaceExtCom { + if m != nil { + return m.ExtComp } return nil } @@ -612,14 +747,13 @@ // sdk yolo detect type ParamYoloObj struct { Infos []*ObjInfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"` - Img *Image `protobuf:"bytes,2,opt,name=img,proto3" json:"img,omitempty"` } func (m *ParamYoloObj) Reset() { *m = ParamYoloObj{} } func (m *ParamYoloObj) String() string { return proto.CompactTextString(m) } func (*ParamYoloObj) ProtoMessage() {} func (*ParamYoloObj) Descriptor() ([]byte, []int) { - return fileDescriptor_70decb0fb6f436df, []int{8} + return fileDescriptor_70decb0fb6f436df, []int{10} } func (m *ParamYoloObj) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -655,9 +789,480 @@ return nil } -func (m *ParamYoloObj) GetImg() *Image { +type SoInfo struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + SdkId string `protobuf:"bytes,2,opt,name=sdkId,proto3" json:"sdkId,omitempty"` + SoName string `protobuf:"bytes,3,opt,name=soName,proto3" json:"soName,omitempty"` +} + +func (m *SoInfo) Reset() { *m = SoInfo{} } +func (m *SoInfo) String() string { return proto.CompactTextString(m) } +func (*SoInfo) ProtoMessage() {} +func (*SoInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{11} +} +func (m *SoInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SoInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_SoInfo.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 *SoInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_SoInfo.Merge(m, src) +} +func (m *SoInfo) XXX_Size() int { + return m.Size() +} +func (m *SoInfo) XXX_DiscardUnknown() { + xxx_messageInfo_SoInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_SoInfo proto.InternalMessageInfo + +func (m *SoInfo) GetId() string { if m != nil { - return m.Img + return m.Id + } + return "" +} + +func (m *SoInfo) GetSdkId() string { + if m != nil { + return m.SdkId + } + return "" +} + +func (m *SoInfo) GetSoName() string { + if m != nil { + return m.SoName + } + return "" +} + +// sdk plate id detect +type PlateID struct { + License string `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"` + Color string `protobuf:"bytes,2,opt,name=color,proto3" json:"color,omitempty"` + NColor int32 `protobuf:"varint,3,opt,name=nColor,proto3" json:"nColor,omitempty"` + NType int32 `protobuf:"varint,4,opt,name=nType,proto3" json:"nType,omitempty"` + NConfidence int32 `protobuf:"varint,5,opt,name=nConfidence,proto3" json:"nConfidence,omitempty"` + NBright int32 `protobuf:"varint,6,opt,name=nBright,proto3" json:"nBright,omitempty"` + NDirection int32 `protobuf:"varint,7,opt,name=nDirection,proto3" json:"nDirection,omitempty"` + RcLocation *Rect `protobuf:"bytes,8,opt,name=rcLocation,proto3" json:"rcLocation,omitempty"` + NTime int32 `protobuf:"varint,9,opt,name=nTime,proto3" json:"nTime,omitempty"` + NCarBright int32 `protobuf:"varint,10,opt,name=nCarBright,proto3" json:"nCarBright,omitempty"` + NCarColor int32 `protobuf:"varint,11,opt,name=NCarColor,proto3" json:"NCarColor,omitempty"` + NCarLogo int32 `protobuf:"varint,12,opt,name=nCarLogo,proto3" json:"nCarLogo,omitempty"` + NCarType int32 `protobuf:"varint,13,opt,name=nCarType,proto3" json:"nCarType,omitempty"` + PlateBin []byte `protobuf:"bytes,14,opt,name=plateBin,proto3" json:"plateBin,omitempty"` + NBinPlateWidth []byte `protobuf:"bytes,15,opt,name=nBinPlateWidth,proto3" json:"nBinPlateWidth,omitempty"` + NBinPlateHeight []byte `protobuf:"bytes,16,opt,name=nBinPlateHeight,proto3" json:"nBinPlateHeight,omitempty"` + RcLogoLocation *Rect `protobuf:"bytes,17,opt,name=rcLogoLocation,proto3" json:"rcLogoLocation,omitempty"` + NCarModel []byte `protobuf:"bytes,18,opt,name=nCarModel,proto3" json:"nCarModel,omitempty"` + NCarModelConfidence []byte `protobuf:"bytes,19,opt,name=nCarModelConfidence,proto3" json:"nCarModelConfidence,omitempty"` +} + +func (m *PlateID) Reset() { *m = PlateID{} } +func (m *PlateID) String() string { return proto.CompactTextString(m) } +func (*PlateID) ProtoMessage() {} +func (*PlateID) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{12} +} +func (m *PlateID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PlateID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PlateID.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 *PlateID) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlateID.Merge(m, src) +} +func (m *PlateID) XXX_Size() int { + return m.Size() +} +func (m *PlateID) XXX_DiscardUnknown() { + xxx_messageInfo_PlateID.DiscardUnknown(m) +} + +var xxx_messageInfo_PlateID proto.InternalMessageInfo + +func (m *PlateID) GetLicense() string { + if m != nil { + return m.License + } + return "" +} + +func (m *PlateID) GetColor() string { + if m != nil { + return m.Color + } + return "" +} + +func (m *PlateID) GetNColor() int32 { + if m != nil { + return m.NColor + } + return 0 +} + +func (m *PlateID) GetNType() int32 { + if m != nil { + return m.NType + } + return 0 +} + +func (m *PlateID) GetNConfidence() int32 { + if m != nil { + return m.NConfidence + } + return 0 +} + +func (m *PlateID) GetNBright() int32 { + if m != nil { + return m.NBright + } + return 0 +} + +func (m *PlateID) GetNDirection() int32 { + if m != nil { + return m.NDirection + } + return 0 +} + +func (m *PlateID) GetRcLocation() *Rect { + if m != nil { + return m.RcLocation + } + return nil +} + +func (m *PlateID) GetNTime() int32 { + if m != nil { + return m.NTime + } + return 0 +} + +func (m *PlateID) GetNCarBright() int32 { + if m != nil { + return m.NCarBright + } + return 0 +} + +func (m *PlateID) GetNCarColor() int32 { + if m != nil { + return m.NCarColor + } + return 0 +} + +func (m *PlateID) GetNCarLogo() int32 { + if m != nil { + return m.NCarLogo + } + return 0 +} + +func (m *PlateID) GetNCarType() int32 { + if m != nil { + return m.NCarType + } + return 0 +} + +func (m *PlateID) GetPlateBin() []byte { + if m != nil { + return m.PlateBin + } + return nil +} + +func (m *PlateID) GetNBinPlateWidth() []byte { + if m != nil { + return m.NBinPlateWidth + } + return nil +} + +func (m *PlateID) GetNBinPlateHeight() []byte { + if m != nil { + return m.NBinPlateHeight + } + return nil +} + +func (m *PlateID) GetRcLogoLocation() *Rect { + if m != nil { + return m.RcLogoLocation + } + return nil +} + +func (m *PlateID) GetNCarModel() []byte { + if m != nil { + return m.NCarModel + } + return nil +} + +func (m *PlateID) GetNCarModelConfidence() []byte { + if m != nil { + return m.NCarModelConfidence + } + return nil +} + +type PlateIDResult struct { + Result []*PlateID `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` +} + +func (m *PlateIDResult) Reset() { *m = PlateIDResult{} } +func (m *PlateIDResult) String() string { return proto.CompactTextString(m) } +func (*PlateIDResult) ProtoMessage() {} +func (*PlateIDResult) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{13} +} +func (m *PlateIDResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PlateIDResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PlateIDResult.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 *PlateIDResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlateIDResult.Merge(m, src) +} +func (m *PlateIDResult) XXX_Size() int { + return m.Size() +} +func (m *PlateIDResult) XXX_DiscardUnknown() { + xxx_messageInfo_PlateIDResult.DiscardUnknown(m) +} + +var xxx_messageInfo_PlateIDResult proto.InternalMessageInfo + +func (m *PlateIDResult) GetResult() []*PlateID { + if m != nil { + return m.Result + } + return nil +} + +// cloud +type PlateCloudID struct { + License string `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"` + RcLocation *Rect `protobuf:"bytes,2,opt,name=rcLocation,proto3" json:"rcLocation,omitempty"` + NConfidence int32 `protobuf:"varint,3,opt,name=nConfidence,proto3" json:"nConfidence,omitempty"` + NType int32 `protobuf:"varint,4,opt,name=nType,proto3" json:"nType,omitempty"` + NDirection int32 `protobuf:"varint,5,opt,name=nDirection,proto3" json:"nDirection,omitempty"` + NCarColor int32 `protobuf:"varint,6,opt,name=nCarColor,proto3" json:"nCarColor,omitempty"` + NCarColor1 int32 `protobuf:"varint,7,opt,name=nCarColor1,proto3" json:"nCarColor1,omitempty"` + NCarBright int32 `protobuf:"varint,8,opt,name=nCarBright,proto3" json:"nCarBright,omitempty"` + FrameNo int32 `protobuf:"varint,9,opt,name=frameNo,proto3" json:"frameNo,omitempty"` + FaceWidth int32 `protobuf:"varint,10,opt,name=faceWidth,proto3" json:"faceWidth,omitempty"` + FaceHeight int32 `protobuf:"varint,11,opt,name=faceHeight,proto3" json:"faceHeight,omitempty"` + GrayFaceFlag int32 `protobuf:"varint,12,opt,name=grayFaceFlag,proto3" json:"grayFaceFlag,omitempty"` + CharNum int32 `protobuf:"varint,13,opt,name=charNum,proto3" json:"charNum,omitempty"` +} + +func (m *PlateCloudID) Reset() { *m = PlateCloudID{} } +func (m *PlateCloudID) String() string { return proto.CompactTextString(m) } +func (*PlateCloudID) ProtoMessage() {} +func (*PlateCloudID) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{14} +} +func (m *PlateCloudID) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PlateCloudID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PlateCloudID.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 *PlateCloudID) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlateCloudID.Merge(m, src) +} +func (m *PlateCloudID) XXX_Size() int { + return m.Size() +} +func (m *PlateCloudID) XXX_DiscardUnknown() { + xxx_messageInfo_PlateCloudID.DiscardUnknown(m) +} + +var xxx_messageInfo_PlateCloudID proto.InternalMessageInfo + +func (m *PlateCloudID) GetLicense() string { + if m != nil { + return m.License + } + return "" +} + +func (m *PlateCloudID) GetRcLocation() *Rect { + if m != nil { + return m.RcLocation + } + return nil +} + +func (m *PlateCloudID) GetNConfidence() int32 { + if m != nil { + return m.NConfidence + } + return 0 +} + +func (m *PlateCloudID) GetNType() int32 { + if m != nil { + return m.NType + } + return 0 +} + +func (m *PlateCloudID) GetNDirection() int32 { + if m != nil { + return m.NDirection + } + return 0 +} + +func (m *PlateCloudID) GetNCarColor() int32 { + if m != nil { + return m.NCarColor + } + return 0 +} + +func (m *PlateCloudID) GetNCarColor1() int32 { + if m != nil { + return m.NCarColor1 + } + return 0 +} + +func (m *PlateCloudID) GetNCarBright() int32 { + if m != nil { + return m.NCarBright + } + return 0 +} + +func (m *PlateCloudID) GetFrameNo() int32 { + if m != nil { + return m.FrameNo + } + return 0 +} + +func (m *PlateCloudID) GetFaceWidth() int32 { + if m != nil { + return m.FaceWidth + } + return 0 +} + +func (m *PlateCloudID) GetFaceHeight() int32 { + if m != nil { + return m.FaceHeight + } + return 0 +} + +func (m *PlateCloudID) GetGrayFaceFlag() int32 { + if m != nil { + return m.GrayFaceFlag + } + return 0 +} + +func (m *PlateCloudID) GetCharNum() int32 { + if m != nil { + return m.CharNum + } + return 0 +} + +type PlateCloudIDResult struct { + Result []*PlateCloudID `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"` +} + +func (m *PlateCloudIDResult) Reset() { *m = PlateCloudIDResult{} } +func (m *PlateCloudIDResult) String() string { return proto.CompactTextString(m) } +func (*PlateCloudIDResult) ProtoMessage() {} +func (*PlateCloudIDResult) Descriptor() ([]byte, []int) { + return fileDescriptor_70decb0fb6f436df, []int{15} +} +func (m *PlateCloudIDResult) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PlateCloudIDResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_PlateCloudIDResult.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 *PlateCloudIDResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_PlateCloudIDResult.Merge(m, src) +} +func (m *PlateCloudIDResult) XXX_Size() int { + return m.Size() +} +func (m *PlateCloudIDResult) XXX_DiscardUnknown() { + xxx_messageInfo_PlateCloudIDResult.DiscardUnknown(m) +} + +var xxx_messageInfo_PlateCloudIDResult proto.InternalMessageInfo + +func (m *PlateCloudIDResult) GetResult() []*PlateCloudID { + if m != nil { + return m.Result } return nil } @@ -669,53 +1274,93 @@ proto.RegisterType((*FacePos)(nil), "protomsg.FacePos") proto.RegisterType((*FaceInfo)(nil), "protomsg.FaceInfo") proto.RegisterType((*ObjInfo)(nil), "protomsg.ObjInfo") + proto.RegisterType((*ResultFaceDetect)(nil), "protomsg.ResultFaceDetect") proto.RegisterType((*ParamFacePos)(nil), "protomsg.ParamFacePos") - proto.RegisterType((*ParamFaceCompare)(nil), "protomsg.ParamFaceCompare") + proto.RegisterType((*ResultFaceExtCom)(nil), "protomsg.ResultFaceExtCom") + proto.RegisterType((*ParamFaceFeature)(nil), "protomsg.ParamFaceFeature") proto.RegisterType((*ParamYoloObj)(nil), "protomsg.ParamYoloObj") + proto.RegisterType((*SoInfo)(nil), "protomsg.SoInfo") + proto.RegisterType((*PlateID)(nil), "protomsg.PlateID") + proto.RegisterType((*PlateIDResult)(nil), "protomsg.PlateIDResult") + proto.RegisterType((*PlateCloudID)(nil), "protomsg.PlateCloudID") + proto.RegisterType((*PlateCloudIDResult)(nil), "protomsg.PlateCloudIDResult") } func init() { proto.RegisterFile("sdk.proto", fileDescriptor_70decb0fb6f436df) } var fileDescriptor_70decb0fb6f436df = []byte{ - // 598 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x54, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xae, 0xed, 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, 0xb9, 0x67, 0x7c, 0x5b, 0x78, 0x5b, 0xe7, 0x0b, 0x6f, - 0xeb, 0xe7, 0xc2, 0xdb, 0x0a, 0x1c, 0xa4, 0x3f, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0x19, 0xbd, - 0x52, 0xcd, 0xa2, 0x05, 0x00, 0x00, + // 1122 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcd, 0x8e, 0x1b, 0x45, + 0x10, 0xce, 0xd8, 0xeb, 0xbf, 0xb2, 0xb3, 0xd9, 0x74, 0xa2, 0x68, 0xb4, 0x42, 0x96, 0x35, 0xa0, + 0xc4, 0x11, 0x61, 0x09, 0x0b, 0x02, 0x89, 0x13, 0xac, 0x9d, 0x28, 0x96, 0x92, 0xcd, 0xaa, 0x89, + 0x84, 0x38, 0xb6, 0x67, 0xda, 0xf6, 0x6c, 0x66, 0xa6, 0x87, 0x99, 0xb6, 0x12, 0x8b, 0x27, 0xe0, + 0xc6, 0x43, 0xf0, 0x30, 0x1c, 0x73, 0xe4, 0x88, 0xb2, 0xf0, 0x08, 0xdc, 0x51, 0x55, 0xf7, 0xfc, + 0xac, 0xd7, 0x09, 0x17, 0x8e, 0x9c, 0xdc, 0x5f, 0xd5, 0xe7, 0xa9, 0xbf, 0xaf, 0x6b, 0x06, 0x7a, + 0x79, 0xf0, 0xf2, 0x28, 0xcd, 0x94, 0x56, 0xac, 0x4b, 0x3f, 0x71, 0xbe, 0x3c, 0x84, 0xb9, 0xc8, + 0xa5, 0xb1, 0x7a, 0x3f, 0x3b, 0xd0, 0x9a, 0xc5, 0x62, 0x29, 0xd9, 0x6d, 0x68, 0xbd, 0x0a, 0x03, + 0xbd, 0x72, 0x9d, 0x91, 0x33, 0x6e, 0x71, 0x03, 0xd8, 0x1d, 0x68, 0xaf, 0x64, 0xb8, 0x5c, 0x69, + 0xb7, 0x41, 0x66, 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+ 0xb1, 0x55, 0x76, 0x01, 0xbd, 0x29, 0xb0, 0xfa, 0x94, 0xec, 0x9c, 0x8f, 0xb6, 0xe6, 0x7c, 0x67, + 0x6b, 0xce, 0x05, 0xdb, 0xb2, 0x4e, 0xdc, 0xdf, 0xde, 0x0e, 0x9d, 0x37, 0x6f, 0x87, 0xce, 0x1f, + 0x6f, 0x87, 0xce, 0x2f, 0x17, 0xc3, 0x6b, 0x6f, 0x2e, 0x86, 0xd7, 0x7e, 0xbf, 0x18, 0x5e, 0x9b, + 0xb7, 0xe9, 0x8f, 0x9f, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0x46, 0x9d, 0xa9, 0xfd, 0x85, 0x0b, + 0x00, 0x00, } func (m *Image) Marshal() (dAtA []byte, err error) { @@ -748,6 +1393,23 @@ i++ i = encodeVarintSdk(dAtA, i, uint64(len(m.Data))) i += copy(dAtA[i:], m.Data) + } + if len(m.Timestamp) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Timestamp))) + i += copy(dAtA[i:], m.Timestamp) + } + if m.Id != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Id)) + } + if len(m.Cid) > 0 { + dAtA[i] = 0x32 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Cid))) + i += copy(dAtA[i:], m.Cid) } return i, nil } @@ -920,6 +1582,11 @@ i = encodeVarintSdk(dAtA, i, uint64(len(m.FacialData))) i += copy(dAtA[i:], m.FacialData) } + if m.FaceID != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.FaceID)) + } return i, nil } @@ -1053,10 +1720,15 @@ encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Prob)))) i += 4 } + if m.ObjID != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.ObjID)) + } return i, nil } -func (m *ParamFacePos) Marshal() (dAtA []byte, err error) { +func (m *ResultFaceDetect) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -1066,7 +1738,7 @@ return dAtA[:n], nil } -func (m *ParamFacePos) MarshalTo(dAtA []byte) (int, error) { +func (m *ResultFaceDetect) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1091,20 +1763,16 @@ } i += n15 } - if m.Img != nil { + if len(m.Feats) > 0 { dAtA[i] = 0x1a i++ - i = encodeVarintSdk(dAtA, i, uint64(m.Img.Size())) - n16, err16 := m.Img.MarshalTo(dAtA[i:]) - if err16 != nil { - return 0, err16 - } - i += n16 + i = encodeVarintSdk(dAtA, i, uint64(len(m.Feats))) + i += copy(dAtA[i:], m.Feats) } return i, nil } -func (m *ParamFaceCompare) Marshal() (dAtA []byte, err error) { +func (m *ParamFacePos) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -1114,22 +1782,92 @@ return dAtA[:n], nil } -func (m *ParamFaceCompare) MarshalTo(dAtA []byte) (int, error) { +func (m *ParamFacePos) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int _ = l - if len(m.Feat1) > 0 { + if len(m.Faces) > 0 { + for _, msg := range m.Faces { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *ResultFaceExtCom) 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 *ResultFaceExtCom) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Feats) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintSdk(dAtA, i, uint64(len(m.Feat1))) - i += copy(dAtA[i:], m.Feat1) + i = encodeVarintSdk(dAtA, i, uint64(len(m.Feats))) + i += copy(dAtA[i:], m.Feats) } - if len(m.Feat2) > 0 { + if len(m.Comp) > 0 { dAtA[i] = 0x12 i++ - i = encodeVarintSdk(dAtA, i, uint64(len(m.Feat2))) - i += copy(dAtA[i:], m.Feat2) + i = encodeVarintSdk(dAtA, i, uint64(len(m.Comp))) + i += copy(dAtA[i:], m.Comp) + } + if m.Pos != nil { + dAtA[i] = 0x1a + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.Pos.Size())) + n16, err16 := m.Pos.MarshalTo(dAtA[i:]) + if err16 != nil { + return 0, err16 + } + i += n16 + } + return i, nil +} + +func (m *ParamFaceFeature) 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 *ParamFaceFeature) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.ExtComp) > 0 { + for _, msg := range m.ExtComp { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } return i, nil } @@ -1161,15 +1899,328 @@ i += n } } - if m.Img != nil { + return i, nil +} + +func (m *SoInfo) 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 *SoInfo) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if len(m.SdkId) > 0 { dAtA[i] = 0x12 i++ - i = encodeVarintSdk(dAtA, i, uint64(m.Img.Size())) - n17, err17 := m.Img.MarshalTo(dAtA[i:]) + i = encodeVarintSdk(dAtA, i, uint64(len(m.SdkId))) + i += copy(dAtA[i:], m.SdkId) + } + if len(m.SoName) > 0 { + dAtA[i] = 0x1a + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.SoName))) + i += copy(dAtA[i:], m.SoName) + } + return i, nil +} + +func (m *PlateID) 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 *PlateID) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.License) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.License))) + i += copy(dAtA[i:], m.License) + } + if len(m.Color) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.Color))) + i += copy(dAtA[i:], m.Color) + } + if m.NColor != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NColor)) + } + if m.NType != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NType)) + } + if m.NConfidence != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NConfidence)) + } + if m.NBright != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NBright)) + } + if m.NDirection != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NDirection)) + } + if m.RcLocation != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.RcLocation.Size())) + n17, err17 := m.RcLocation.MarshalTo(dAtA[i:]) if err17 != nil { return 0, err17 } i += n17 + } + if m.NTime != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NTime)) + } + if m.NCarBright != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarBright)) + } + if m.NCarColor != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarColor)) + } + if m.NCarLogo != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarLogo)) + } + if m.NCarType != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarType)) + } + if len(m.PlateBin) > 0 { + dAtA[i] = 0x72 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.PlateBin))) + i += copy(dAtA[i:], m.PlateBin) + } + if len(m.NBinPlateWidth) > 0 { + dAtA[i] = 0x7a + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.NBinPlateWidth))) + i += copy(dAtA[i:], m.NBinPlateWidth) + } + if len(m.NBinPlateHeight) > 0 { + dAtA[i] = 0x82 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.NBinPlateHeight))) + i += copy(dAtA[i:], m.NBinPlateHeight) + } + if m.RcLogoLocation != nil { + dAtA[i] = 0x8a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.RcLogoLocation.Size())) + n18, err18 := m.RcLogoLocation.MarshalTo(dAtA[i:]) + if err18 != nil { + return 0, err18 + } + i += n18 + } + if len(m.NCarModel) > 0 { + dAtA[i] = 0x92 + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.NCarModel))) + i += copy(dAtA[i:], m.NCarModel) + } + if len(m.NCarModelConfidence) > 0 { + dAtA[i] = 0x9a + i++ + dAtA[i] = 0x1 + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.NCarModelConfidence))) + i += copy(dAtA[i:], m.NCarModelConfidence) + } + return i, nil +} + +func (m *PlateIDResult) 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 *PlateIDResult) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Result) > 0 { + for _, msg := range m.Result { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } + } + return i, nil +} + +func (m *PlateCloudID) 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 *PlateCloudID) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.License) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(len(m.License))) + i += copy(dAtA[i:], m.License) + } + if m.RcLocation != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.RcLocation.Size())) + n19, err19 := m.RcLocation.MarshalTo(dAtA[i:]) + if err19 != nil { + return 0, err19 + } + i += n19 + } + if m.NConfidence != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NConfidence)) + } + if m.NType != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NType)) + } + if m.NDirection != 0 { + dAtA[i] = 0x28 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NDirection)) + } + if m.NCarColor != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarColor)) + } + if m.NCarColor1 != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarColor1)) + } + if m.NCarBright != 0 { + dAtA[i] = 0x40 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.NCarBright)) + } + if m.FrameNo != 0 { + dAtA[i] = 0x48 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.FrameNo)) + } + if m.FaceWidth != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.FaceWidth)) + } + if m.FaceHeight != 0 { + dAtA[i] = 0x58 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.FaceHeight)) + } + if m.GrayFaceFlag != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.GrayFaceFlag)) + } + if m.CharNum != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintSdk(dAtA, i, uint64(m.CharNum)) + } + return i, nil +} + +func (m *PlateCloudIDResult) 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 *PlateCloudIDResult) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Result) > 0 { + for _, msg := range m.Result { + dAtA[i] = 0xa + i++ + i = encodeVarintSdk(dAtA, i, uint64(msg.Size())) + n, err := msg.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n + } } return i, nil } @@ -1196,6 +2247,17 @@ n += 1 + sovSdk(uint64(m.Height)) } l = len(m.Data) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.Timestamp) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.Id != 0 { + n += 1 + sovSdk(uint64(m.Id)) + } + l = len(m.Cid) if l > 0 { n += 1 + l + sovSdk(uint64(l)) } @@ -1284,6 +2346,9 @@ if l > 0 { n += 1 + l + sovSdk(uint64(l)) } + if m.FaceID != 0 { + n += 1 + sovSdk(uint64(m.FaceID)) + } return n } @@ -1346,10 +2411,13 @@ if m.Prob != 0 { n += 5 } + if m.ObjID != 0 { + n += 1 + sovSdk(uint64(m.ObjID)) + } return n } -func (m *ParamFacePos) Size() (n int) { +func (m *ResultFaceDetect) Size() (n int) { if m == nil { return 0 } @@ -1363,26 +2431,60 @@ l = m.Result.Size() n += 1 + l + sovSdk(uint64(l)) } - if m.Img != nil { - l = m.Img.Size() + l = len(m.Feats) + if l > 0 { n += 1 + l + sovSdk(uint64(l)) } return n } -func (m *ParamFaceCompare) Size() (n int) { +func (m *ParamFacePos) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Feat1) + if len(m.Faces) > 0 { + for _, e := range m.Faces { + l = e.Size() + n += 1 + l + sovSdk(uint64(l)) + } + } + return n +} + +func (m *ResultFaceExtCom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Feats) if l > 0 { n += 1 + l + sovSdk(uint64(l)) } - l = len(m.Feat2) + l = len(m.Comp) if l > 0 { n += 1 + l + sovSdk(uint64(l)) + } + if m.Pos != nil { + l = m.Pos.Size() + n += 1 + l + sovSdk(uint64(l)) + } + return n +} + +func (m *ParamFaceFeature) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ExtComp) > 0 { + for _, e := range m.ExtComp { + l = e.Size() + n += 1 + l + sovSdk(uint64(l)) + } } return n } @@ -1399,9 +2501,181 @@ n += 1 + l + sovSdk(uint64(l)) } } - if m.Img != nil { - l = m.Img.Size() + return n +} + +func (m *SoInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Id) + if l > 0 { n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.SdkId) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.SoName) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + return n +} + +func (m *PlateID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.License) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.Color) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.NColor != 0 { + n += 1 + sovSdk(uint64(m.NColor)) + } + if m.NType != 0 { + n += 1 + sovSdk(uint64(m.NType)) + } + if m.NConfidence != 0 { + n += 1 + sovSdk(uint64(m.NConfidence)) + } + if m.NBright != 0 { + n += 1 + sovSdk(uint64(m.NBright)) + } + if m.NDirection != 0 { + n += 1 + sovSdk(uint64(m.NDirection)) + } + if m.RcLocation != nil { + l = m.RcLocation.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.NTime != 0 { + n += 1 + sovSdk(uint64(m.NTime)) + } + if m.NCarBright != 0 { + n += 1 + sovSdk(uint64(m.NCarBright)) + } + if m.NCarColor != 0 { + n += 1 + sovSdk(uint64(m.NCarColor)) + } + if m.NCarLogo != 0 { + n += 1 + sovSdk(uint64(m.NCarLogo)) + } + if m.NCarType != 0 { + n += 1 + sovSdk(uint64(m.NCarType)) + } + l = len(m.PlateBin) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.NBinPlateWidth) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + l = len(m.NBinPlateHeight) + if l > 0 { + n += 2 + l + sovSdk(uint64(l)) + } + if m.RcLogoLocation != nil { + l = m.RcLogoLocation.Size() + n += 2 + l + sovSdk(uint64(l)) + } + l = len(m.NCarModel) + if l > 0 { + n += 2 + l + sovSdk(uint64(l)) + } + l = len(m.NCarModelConfidence) + if l > 0 { + n += 2 + l + sovSdk(uint64(l)) + } + return n +} + +func (m *PlateIDResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Result) > 0 { + for _, e := range m.Result { + l = e.Size() + n += 1 + l + sovSdk(uint64(l)) + } + } + return n +} + +func (m *PlateCloudID) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.License) + if l > 0 { + n += 1 + l + sovSdk(uint64(l)) + } + if m.RcLocation != nil { + l = m.RcLocation.Size() + n += 1 + l + sovSdk(uint64(l)) + } + if m.NConfidence != 0 { + n += 1 + sovSdk(uint64(m.NConfidence)) + } + if m.NType != 0 { + n += 1 + sovSdk(uint64(m.NType)) + } + if m.NDirection != 0 { + n += 1 + sovSdk(uint64(m.NDirection)) + } + if m.NCarColor != 0 { + n += 1 + sovSdk(uint64(m.NCarColor)) + } + if m.NCarColor1 != 0 { + n += 1 + sovSdk(uint64(m.NCarColor1)) + } + if m.NCarBright != 0 { + n += 1 + sovSdk(uint64(m.NCarBright)) + } + if m.FrameNo != 0 { + n += 1 + sovSdk(uint64(m.FrameNo)) + } + if m.FaceWidth != 0 { + n += 1 + sovSdk(uint64(m.FaceWidth)) + } + if m.FaceHeight != 0 { + n += 1 + sovSdk(uint64(m.FaceHeight)) + } + if m.GrayFaceFlag != 0 { + n += 1 + sovSdk(uint64(m.GrayFaceFlag)) + } + if m.CharNum != 0 { + n += 1 + sovSdk(uint64(m.CharNum)) + } + return n +} + +func (m *PlateCloudIDResult) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Result) > 0 { + for _, e := range m.Result { + l = e.Size() + n += 1 + l + sovSdk(uint64(l)) + } } return n } @@ -1519,6 +2793,89 @@ if m.Data == nil { m.Data = []byte{} } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Timestamp = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cid = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -2111,6 +3468,25 @@ m.FacialData = []byte{} } iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FaceID", wireType) + } + m.FaceID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FaceID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipSdk(dAtA[iNdEx:]) @@ -2571,6 +3947,25 @@ v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) iNdEx += 4 m.Prob = float32(math.Float32frombits(v)) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjID", wireType) + } + m.ObjID = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.ObjID |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipSdk(dAtA[iNdEx:]) @@ -2595,7 +3990,7 @@ } return nil } -func (m *ParamFacePos) Unmarshal(dAtA []byte) error { +func (m *ResultFaceDetect) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2618,10 +4013,10 @@ fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ParamFacePos: wiretype end group for non-group") + return fmt.Errorf("proto: ResultFaceDetect: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ParamFacePos: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ResultFaceDetect: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2698,7 +4093,94 @@ iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Img", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Feats", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Feats = append(m.Feats[:0], dAtA[iNdEx:postIndex]...) + if m.Feats == nil { + m.Feats = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParamFacePos) 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 ErrIntOverflowSdk + } + 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: ParamFacePos: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParamFacePos: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Faces", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2725,10 +4207,8 @@ if postIndex > l { return io.ErrUnexpectedEOF } - if m.Img == nil { - m.Img = &Image{} - } - if err := m.Img.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Faces = append(m.Faces, &ResultFaceDetect{}) + if err := m.Faces[len(m.Faces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2756,7 +4236,7 @@ } return nil } -func (m *ParamFaceCompare) Unmarshal(dAtA []byte) error { +func (m *ResultFaceExtCom) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2779,15 +4259,15 @@ fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ParamFaceCompare: wiretype end group for non-group") + return fmt.Errorf("proto: ResultFaceExtCom: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ParamFaceCompare: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ResultFaceExtCom: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feat1", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Feats", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -2814,14 +4294,14 @@ if postIndex > l { return io.ErrUnexpectedEOF } - m.Feat1 = append(m.Feat1[:0], dAtA[iNdEx:postIndex]...) - if m.Feat1 == nil { - m.Feat1 = []byte{} + m.Feats = append(m.Feats[:0], dAtA[iNdEx:postIndex]...) + if m.Feats == nil { + m.Feats = []byte{} } iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feat2", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Comp", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -2848,9 +4328,132 @@ if postIndex > l { return io.ErrUnexpectedEOF } - m.Feat2 = append(m.Feat2[:0], dAtA[iNdEx:postIndex]...) - if m.Feat2 == nil { - m.Feat2 = []byte{} + m.Comp = append(m.Comp[:0], dAtA[iNdEx:postIndex]...) + if m.Comp == nil { + m.Comp = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pos", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pos == nil { + m.Pos = &ResultFaceDetect{} + } + if err := m.Pos.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParamFaceFeature) 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 ErrIntOverflowSdk + } + 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: ParamFaceFeature: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParamFaceFeature: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtComp", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtComp = append(m.ExtComp, &ResultFaceExtCom{}) + if err := m.ExtComp[len(m.ExtComp)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: @@ -2940,9 +4543,370 @@ return err } iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SoInfo) 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 ErrIntOverflowSdk + } + 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: SoInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SoInfo: 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 ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + 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 Img", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field SdkId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SdkId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SoName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SoName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PlateID) 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 ErrIntOverflowSdk + } + 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: PlateID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PlateID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field License", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.License = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Color = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NColor", wireType) + } + m.NColor = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NColor |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NType", wireType) + } + m.NType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NConfidence", wireType) + } + m.NConfidence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NConfidence |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NBright", wireType) + } + m.NBright = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NBright |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NDirection", wireType) + } + m.NDirection = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NDirection |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RcLocation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -2969,10 +4933,815 @@ if postIndex > l { return io.ErrUnexpectedEOF } - if m.Img == nil { - m.Img = &Image{} + if m.RcLocation == nil { + m.RcLocation = &Rect{} } - if err := m.Img.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RcLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NTime", wireType) + } + m.NTime = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NTime |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarBright", wireType) + } + m.NCarBright = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarBright |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarColor", wireType) + } + m.NCarColor = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarColor |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarLogo", wireType) + } + m.NCarLogo = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarLogo |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarType", wireType) + } + m.NCarType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PlateBin", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PlateBin = append(m.PlateBin[:0], dAtA[iNdEx:postIndex]...) + if m.PlateBin == nil { + m.PlateBin = []byte{} + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NBinPlateWidth", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NBinPlateWidth = append(m.NBinPlateWidth[:0], dAtA[iNdEx:postIndex]...) + if m.NBinPlateWidth == nil { + m.NBinPlateWidth = []byte{} + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NBinPlateHeight", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NBinPlateHeight = append(m.NBinPlateHeight[:0], dAtA[iNdEx:postIndex]...) + if m.NBinPlateHeight == nil { + m.NBinPlateHeight = []byte{} + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RcLogoLocation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RcLogoLocation == nil { + m.RcLogoLocation = &Rect{} + } + if err := m.RcLogoLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarModel", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NCarModel = append(m.NCarModel[:0], dAtA[iNdEx:postIndex]...) + if m.NCarModel == nil { + m.NCarModel = []byte{} + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarModelConfidence", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NCarModelConfidence = append(m.NCarModelConfidence[:0], dAtA[iNdEx:postIndex]...) + if m.NCarModelConfidence == nil { + m.NCarModelConfidence = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PlateIDResult) 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 ErrIntOverflowSdk + } + 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: PlateIDResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PlateIDResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Result = append(m.Result, &PlateID{}) + if err := m.Result[len(m.Result)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PlateCloudID) 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 ErrIntOverflowSdk + } + 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: PlateCloudID: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PlateCloudID: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field License", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.License = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RcLocation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RcLocation == nil { + m.RcLocation = &Rect{} + } + if err := m.RcLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NConfidence", wireType) + } + m.NConfidence = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NConfidence |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NType", wireType) + } + m.NType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NType |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NDirection", wireType) + } + m.NDirection = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NDirection |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarColor", wireType) + } + m.NCarColor = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarColor |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarColor1", wireType) + } + m.NCarColor1 = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarColor1 |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NCarBright", wireType) + } + m.NCarBright = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NCarBright |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FrameNo", wireType) + } + m.FrameNo = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FrameNo |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FaceWidth", wireType) + } + m.FaceWidth = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FaceWidth |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FaceHeight", wireType) + } + m.FaceHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FaceHeight |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GrayFaceFlag", wireType) + } + m.GrayFaceFlag = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GrayFaceFlag |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CharNum", wireType) + } + m.CharNum = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CharNum |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipSdk(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthSdk + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PlateCloudIDResult) 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 ErrIntOverflowSdk + } + 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: PlateCloudIDResult: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PlateCloudIDResult: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowSdk + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthSdk + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthSdk + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Result = append(m.Result, &PlateCloudID{}) + if err := m.Result[len(m.Result)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex -- Gitblit v1.8.0