From f47dc948390ef0bb2c879c9dba6bef53f2081976 Mon Sep 17 00:00:00 2001 From: panlei <2799247126@qq.com> Date: 星期四, 19 十二月 2019 11:06:52 +0800 Subject: [PATCH] 编译es.proto --- es.pb.go | 2738 +++++------------------------------------------------------ 1 files changed, 243 insertions(+), 2,495 deletions(-) diff --git a/es.pb.go b/es.pb.go index c4da703..98b5240 100644 --- a/es.pb.go +++ b/es.pb.go @@ -1,15 +1,12 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. // source: es.proto package protomsg import ( - encoding_binary "encoding/binary" fmt "fmt" - proto "github.com/gogo/protobuf/proto" - io "io" + proto "github.com/golang/protobuf/proto" math "math" - math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. @@ -21,15 +18,18 @@ // 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 +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 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"` - Enable int32 `protobuf:"varint,5,opt,name=enable,proto3" json:"enable,omitempty"` - AnalyServerId string `protobuf:"bytes,6,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` + 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"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Esinfo) Reset() { *m = Esinfo{} } @@ -38,26 +38,18 @@ func (*Esinfo) Descriptor() ([]byte, []int) { return fileDescriptor_718db5c20d0f3738, []int{0} } + func (m *Esinfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Esinfo.Unmarshal(m, 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 - } + return xxx_messageInfo_Esinfo.Marshal(b, m, deterministic) } func (m *Esinfo) XXX_Merge(src proto.Message) { xxx_messageInfo_Esinfo.Merge(m, src) } func (m *Esinfo) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Esinfo.Size(m) } func (m *Esinfo) XXX_DiscardUnknown() { xxx_messageInfo_Esinfo.DiscardUnknown(m) @@ -108,10 +100,14 @@ } 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"` - CameraId string `protobuf:"bytes,3,opt,name=cameraId,proto3" json:"cameraId,omitempty"` - LinkEsInfo []*LinkEsInfo `protobuf:"bytes,4,rep,name=linkEsInfo,proto3" json:"linkEsInfo,omitempty"` + EsInfo *Esinfo `protobuf:"bytes,1,opt,name=esInfo,proto3" json:"esInfo,omitempty"` + AttachFeature string `protobuf:"bytes,2,opt,name=attachFeature,proto3" json:"attachFeature,omitempty"` + CameraId string `protobuf:"bytes,3,opt,name=cameraId,proto3" json:"cameraId,omitempty"` + LinkEsInfo []*LinkEsInfo `protobuf:"bytes,4,rep,name=linkEsInfo,proto3" json:"linkEsInfo,omitempty"` + TargetLocation *TargetLocation `protobuf:"bytes,5,opt,name=targetLocation,proto3" json:"targetLocation,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *MultiFeaCache) Reset() { *m = MultiFeaCache{} } @@ -120,26 +116,18 @@ func (*MultiFeaCache) Descriptor() ([]byte, []int) { return fileDescriptor_718db5c20d0f3738, []int{1} } + func (m *MultiFeaCache) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_MultiFeaCache.Unmarshal(m, b) } func (m *MultiFeaCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiFeaCache.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_MultiFeaCache.Marshal(b, m, deterministic) } func (m *MultiFeaCache) XXX_Merge(src proto.Message) { xxx_messageInfo_MultiFeaCache.Merge(m, src) } func (m *MultiFeaCache) XXX_Size() int { - return m.Size() + return xxx_messageInfo_MultiFeaCache.Size(m) } func (m *MultiFeaCache) XXX_DiscardUnknown() { xxx_messageInfo_MultiFeaCache.DiscardUnknown(m) @@ -175,38 +163,135 @@ return nil } +func (m *MultiFeaCache) GetTargetLocation() *TargetLocation { + if m != nil { + return m.TargetLocation + } + return nil +} + +type TargetLocation struct { + TopLeft *Location `protobuf:"bytes,1,opt,name=topLeft,proto3" json:"topLeft,omitempty"` + BottomRight *Location `protobuf:"bytes,2,opt,name=bottomRight,proto3" json:"bottomRight,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *TargetLocation) Reset() { *m = TargetLocation{} } +func (m *TargetLocation) String() string { return proto.CompactTextString(m) } +func (*TargetLocation) ProtoMessage() {} +func (*TargetLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_718db5c20d0f3738, []int{2} +} + +func (m *TargetLocation) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_TargetLocation.Unmarshal(m, b) +} +func (m *TargetLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_TargetLocation.Marshal(b, m, deterministic) +} +func (m *TargetLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_TargetLocation.Merge(m, src) +} +func (m *TargetLocation) XXX_Size() int { + return xxx_messageInfo_TargetLocation.Size(m) +} +func (m *TargetLocation) XXX_DiscardUnknown() { + xxx_messageInfo_TargetLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_TargetLocation proto.InternalMessageInfo + +func (m *TargetLocation) GetTopLeft() *Location { + if m != nil { + return m.TopLeft + } + return nil +} + +func (m *TargetLocation) GetBottomRight() *Location { + if m != nil { + return m.BottomRight + } + return nil +} + +type Location struct { + X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"` + Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Location) Reset() { *m = Location{} } +func (m *Location) String() string { return proto.CompactTextString(m) } +func (*Location) ProtoMessage() {} +func (*Location) Descriptor() ([]byte, []int) { + return fileDescriptor_718db5c20d0f3738, []int{3} +} + +func (m *Location) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Location.Unmarshal(m, b) +} +func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Location.Marshal(b, m, deterministic) +} +func (m *Location) XXX_Merge(src proto.Message) { + xxx_messageInfo_Location.Merge(m, src) +} +func (m *Location) XXX_Size() int { + return xxx_messageInfo_Location.Size(m) +} +func (m *Location) XXX_DiscardUnknown() { + xxx_messageInfo_Location.DiscardUnknown(m) +} + +var xxx_messageInfo_Location proto.InternalMessageInfo + +func (m *Location) GetX() float64 { + if m != nil { + return m.X + } + return 0 +} + +func (m *Location) GetY() float64 { + if m != nil { + return m.Y + } + return 0 +} + type LinkEsInfo struct { - CameraId string `protobuf:"bytes,1,opt,name=cameraId,proto3" json:"cameraId,omitempty"` - Feature string `protobuf:"bytes,2,opt,name=feature,proto3" json:"feature,omitempty"` - AttachFeature string `protobuf:"bytes,3,opt,name=attachFeature,proto3" json:"attachFeature,omitempty"` + CameraId string `protobuf:"bytes,1,opt,name=cameraId,proto3" json:"cameraId,omitempty"` + Feature string `protobuf:"bytes,2,opt,name=feature,proto3" json:"feature,omitempty"` + AttachFeature string `protobuf:"bytes,3,opt,name=attachFeature,proto3" json:"attachFeature,omitempty"` + TargetLocation *TargetLocation `protobuf:"bytes,4,opt,name=targetLocation,proto3" json:"targetLocation,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *LinkEsInfo) Reset() { *m = LinkEsInfo{} } 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{4} } + func (m *LinkEsInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_LinkEsInfo.Unmarshal(m, b) } func (m *LinkEsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_LinkEsInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_LinkEsInfo.Marshal(b, m, deterministic) } func (m *LinkEsInfo) XXX_Merge(src proto.Message) { xxx_messageInfo_LinkEsInfo.Merge(m, src) } func (m *LinkEsInfo) XXX_Size() int { - return m.Size() + return xxx_messageInfo_LinkEsInfo.Size(m) } func (m *LinkEsInfo) XXX_DiscardUnknown() { xxx_messageInfo_LinkEsInfo.DiscardUnknown(m) @@ -235,52 +320,54 @@ return "" } +func (m *LinkEsInfo) GetTargetLocation() *TargetLocation { + if m != nil { + return m.TargetLocation + } + return nil +} + type Dbperson 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"` - PersonPicUrl string `protobuf:"bytes,4,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` - PersonName string `protobuf:"bytes,5,opt,name=personName,proto3" json:"personName,omitempty"` - Age string `protobuf:"bytes,6,opt,name=age,proto3" json:"age,omitempty"` - Sex string `protobuf:"bytes,7,opt,name=sex,proto3" json:"sex,omitempty"` - IdCard string `protobuf:"bytes,8,opt,name=idCard,proto3" json:"idCard,omitempty"` - PicDesc string `protobuf:"bytes,9,opt,name=picDesc,proto3" json:"picDesc,omitempty"` - PhoneNum string `protobuf:"bytes,10,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` - CreateTime string `protobuf:"bytes,11,opt,name=createTime,proto3" json:"createTime,omitempty"` - UpdateTime string `protobuf:"bytes,12,opt,name=updateTime,proto3" json:"updateTime,omitempty"` - CreateBy string `protobuf:"bytes,13,opt,name=createBy,proto3" json:"createBy,omitempty"` - IsDelete int32 `protobuf:"varint,14,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - MonitorLevel string `protobuf:"bytes,15,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` - Enable int32 `protobuf:"varint,16,opt,name=enable,proto3" json:"enable,omitempty"` - Reserved string `protobuf:"bytes,17,opt,name=reserved,proto3" json:"reserved,omitempty"` + 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"` + PersonPicUrl string `protobuf:"bytes,4,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"` + PersonName string `protobuf:"bytes,5,opt,name=personName,proto3" json:"personName,omitempty"` + Age string `protobuf:"bytes,6,opt,name=age,proto3" json:"age,omitempty"` + Sex string `protobuf:"bytes,7,opt,name=sex,proto3" json:"sex,omitempty"` + IdCard string `protobuf:"bytes,8,opt,name=idCard,proto3" json:"idCard,omitempty"` + PicDesc string `protobuf:"bytes,9,opt,name=picDesc,proto3" json:"picDesc,omitempty"` + PhoneNum string `protobuf:"bytes,10,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"` + CreateTime string `protobuf:"bytes,11,opt,name=createTime,proto3" json:"createTime,omitempty"` + UpdateTime string `protobuf:"bytes,12,opt,name=updateTime,proto3" json:"updateTime,omitempty"` + CreateBy string `protobuf:"bytes,13,opt,name=createBy,proto3" json:"createBy,omitempty"` + IsDelete int32 `protobuf:"varint,14,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + MonitorLevel string `protobuf:"bytes,15,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"` + Enable int32 `protobuf:"varint,16,opt,name=enable,proto3" json:"enable,omitempty"` + Reserved string `protobuf:"bytes,17,opt,name=reserved,proto3" json:"reserved,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Dbperson) Reset() { *m = Dbperson{} } 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{5} } + func (m *Dbperson) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Dbperson.Unmarshal(m, b) } func (m *Dbperson) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Dbperson.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Dbperson.Marshal(b, m, deterministic) } func (m *Dbperson) XXX_Merge(src proto.Message) { xxx_messageInfo_Dbperson.Merge(m, src) } func (m *Dbperson) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Dbperson.Size(m) } func (m *Dbperson) XXX_DiscardUnknown() { xxx_messageInfo_Dbperson.DiscardUnknown(m) @@ -408,49 +495,44 @@ } type Dbtable struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"` - TableDesc string `protobuf:"bytes,3,opt,name=tableDesc,proto3" json:"tableDesc,omitempty"` - TableType string `protobuf:"bytes,4,opt,name=tableType,proto3" json:"tableType,omitempty"` - BwType string `protobuf:"bytes,5,opt,name=bwType,proto3" json:"bwType,omitempty"` - StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty"` - EndTime string `protobuf:"bytes,7,opt,name=endTime,proto3" json:"endTime,omitempty"` - CreateTime string `protobuf:"bytes,8,opt,name=createTime,proto3" json:"createTime,omitempty"` - UpdateTime string `protobuf:"bytes,9,opt,name=updateTime,proto3" json:"updateTime,omitempty"` - CreateBy string `protobuf:"bytes,10,opt,name=createBy,proto3" json:"createBy,omitempty"` - IsDelete int32 `protobuf:"varint,11,opt,name=isDelete,proto3" json:"isDelete,omitempty"` - IsForever string `protobuf:"bytes,12,opt,name=isForever,proto3" json:"isForever,omitempty"` - Enable int32 `protobuf:"varint,13,opt,name=enable,proto3" json:"enable,omitempty"` - IsSync string `protobuf:"bytes,14,opt,name=isSync,proto3" json:"isSync,omitempty"` - AnalyServerId string `protobuf:"bytes,15,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"` + TableDesc string `protobuf:"bytes,3,opt,name=tableDesc,proto3" json:"tableDesc,omitempty"` + TableType string `protobuf:"bytes,4,opt,name=tableType,proto3" json:"tableType,omitempty"` + BwType string `protobuf:"bytes,5,opt,name=bwType,proto3" json:"bwType,omitempty"` + StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty"` + EndTime string `protobuf:"bytes,7,opt,name=endTime,proto3" json:"endTime,omitempty"` + CreateTime string `protobuf:"bytes,8,opt,name=createTime,proto3" json:"createTime,omitempty"` + UpdateTime string `protobuf:"bytes,9,opt,name=updateTime,proto3" json:"updateTime,omitempty"` + CreateBy string `protobuf:"bytes,10,opt,name=createBy,proto3" json:"createBy,omitempty"` + IsDelete int32 `protobuf:"varint,11,opt,name=isDelete,proto3" json:"isDelete,omitempty"` + IsForever string `protobuf:"bytes,12,opt,name=isForever,proto3" json:"isForever,omitempty"` + Enable int32 `protobuf:"varint,13,opt,name=enable,proto3" json:"enable,omitempty"` + IsSync string `protobuf:"bytes,14,opt,name=isSync,proto3" json:"isSync,omitempty"` + AnalyServerId string `protobuf:"bytes,15,opt,name=analyServerId,proto3" json:"analyServerId,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Dbtable) Reset() { *m = Dbtable{} } 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{6} } + func (m *Dbtable) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + return xxx_messageInfo_Dbtable.Unmarshal(m, b) } func (m *Dbtable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Dbtable.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } + return xxx_messageInfo_Dbtable.Marshal(b, m, deterministic) } func (m *Dbtable) XXX_Merge(src proto.Message) { xxx_messageInfo_Dbtable.Merge(m, src) } func (m *Dbtable) XXX_Size() int { - return m.Size() + return xxx_messageInfo_Dbtable.Size(m) } func (m *Dbtable) XXX_DiscardUnknown() { xxx_messageInfo_Dbtable.DiscardUnknown(m) @@ -566,6 +648,8 @@ func init() { proto.RegisterType((*Esinfo)(nil), "protomsg.Esinfo") proto.RegisterType((*MultiFeaCache)(nil), "protomsg.MultiFeaCache") + proto.RegisterType((*TargetLocation)(nil), "protomsg.TargetLocation") + proto.RegisterType((*Location)(nil), "protomsg.Location") proto.RegisterType((*LinkEsInfo)(nil), "protomsg.LinkEsInfo") proto.RegisterType((*Dbperson)(nil), "protomsg.Dbperson") proto.RegisterType((*Dbtable)(nil), "protomsg.Dbtable") @@ -574,2385 +658,49 @@ func init() { proto.RegisterFile("es.proto", fileDescriptor_718db5c20d0f3738) } var fileDescriptor_718db5c20d0f3738 = []byte{ - // 624 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcd, 0x4e, 0xdb, 0x4e, - 0x14, 0xc5, 0x71, 0x0c, 0x89, 0x7d, 0x43, 0x80, 0xff, 0xe8, 0xaf, 0x6a, 0x84, 0x90, 0x15, 0x45, - 0x5d, 0x64, 0xc5, 0x82, 0xf6, 0x09, 0x20, 0x20, 0x45, 0xa2, 0xa8, 0x32, 0xf4, 0x01, 0x26, 0xf6, - 0x0d, 0x19, 0xd5, 0x5f, 0x9a, 0x71, 0x28, 0x79, 0x8b, 0xbe, 0x49, 0xd5, 0x4d, 0x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ea, 0x5b, - 0xe3, 0xcd, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6d, 0xfd, 0x87, 0xc8, 0x9e, 0x05, 0x00, 0x00, + // 689 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x4d, 0x6e, 0xdb, 0x38, + 0x14, 0x86, 0xec, 0xc4, 0x96, 0x9e, 0x62, 0x27, 0x43, 0x0c, 0x06, 0x44, 0x10, 0x0c, 0x0c, 0x61, + 0x30, 0xf0, 0xa2, 0xc8, 0x22, 0xcd, 0x01, 0x8a, 0xc6, 0x09, 0x60, 0xc0, 0x0d, 0x0a, 0x25, 0x3d, + 0x00, 0x2d, 0x3d, 0xdb, 0x44, 0x25, 0x51, 0xa0, 0xe8, 0xd4, 0xbe, 0x52, 0x37, 0xdd, 0xf5, 0x34, + 0xbd, 0x45, 0x2f, 0x50, 0x90, 0x94, 0x2c, 0xc9, 0x4e, 0xd3, 0x76, 0x65, 0x7f, 0xdf, 0xf7, 0xc4, + 0xf7, 0xf3, 0x3d, 0x12, 0x5c, 0x2c, 0x2e, 0x73, 0x29, 0x94, 0x20, 0xae, 0xf9, 0x49, 0x8b, 0x65, + 0xf0, 0xd5, 0x81, 0xde, 0x6d, 0xc1, 0xb3, 0x85, 0x20, 0x43, 0xe8, 0xf0, 0x98, 0x3a, 0x23, 0x67, + 0xec, 0x85, 0x1d, 0x1e, 0x13, 0x0a, 0x7d, 0xc5, 0xe6, 0x09, 0xf2, 0x98, 0x76, 0x0c, 0x59, 0x41, + 0x32, 0x02, 0x7f, 0xc1, 0x22, 0xbc, 0x43, 0xa6, 0xd6, 0x12, 0x69, 0xd7, 0xa8, 0x4d, 0x8a, 0x04, + 0x70, 0x12, 0x89, 0x34, 0x67, 0x12, 0x1f, 0x22, 0x21, 0x91, 0x1e, 0x8d, 0x9c, 0x71, 0x27, 0x6c, + 0x71, 0xe4, 0x1f, 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25, 0xe4, 0x0c, 0x9f, 0x30, 0xa1, 0xa7, 0x76, 0x5a, 0x4d, 0xae, 0xf1, 0x52, 0x9c, 0xb5, 0x5e, + 0x8a, 0x73, 0x70, 0x25, 0x16, 0xfa, 0x45, 0x88, 0xe9, 0x5f, 0x36, 0x67, 0x85, 0x83, 0x2f, 0x5d, + 0xe8, 0x4f, 0xe6, 0xc6, 0xb5, 0x03, 0x77, 0x2f, 0xc0, 0x33, 0x82, 0x19, 0xbe, 0xf5, 0xb7, 0x26, + 0x76, 0xaa, 0x99, 0x60, 0xb7, 0xa1, 0x9a, 0x19, 0x56, 0xea, 0xe3, 0x36, 0xc7, 0xd2, 0xda, 0x9a, + 0xd0, 0x95, 0xce, 0x3f, 0x19, 0xc9, 0x7a, 0x5a, 0x22, 0xfd, 0x55, 0xa1, 0x98, 0x54, 0x66, 0x78, + 0xd6, 0xd5, 0x9a, 0xd0, 0x8e, 0x61, 0x16, 0x1b, 0xcd, 0xfa, 0x5b, 0xc1, 0x3d, 0x57, 0xdc, 0x5f, + 0xb8, 0xe2, 0xbd, 0xe8, 0x0a, 0xbc, 0xe0, 0x8a, 0xbf, 0xe7, 0xca, 0x05, 0x78, 0xbc, 0xb8, 0x13, + 0x12, 0x9f, 0x50, 0x96, 0x66, 0xd7, 0x44, 0xc3, 0x8f, 0x41, 0xcb, 0x0f, 0xbd, 0x91, 0xc5, 0xc3, + 0x36, 0x8b, 0x8c, 0xcb, 0x7a, 0x23, 0x0d, 0x3a, 0x7c, 0xd1, 0x4f, 0x9f, 0x79, 0xd1, 0xe7, 0x3d, + 0x73, 0x73, 0x5f, 0xff, 0x08, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x5e, 0xe4, 0x00, 0xa7, 0x06, 0x00, + 0x00, } - -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 - } - 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) - } - return i, nil -} - -func (m *MultiFeaCache) 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 *MultiFeaCache) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.EsInfo != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintEs(dAtA, i, uint64(m.EsInfo.Size())) - n1, err1 := m.EsInfo.MarshalTo(dAtA[i:]) - if err1 != nil { - return 0, err1 - } - i += n1 - } - if len(m.AttachFeature) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.AttachFeature))) - i += copy(dAtA[i:], m.AttachFeature) - } - if len(m.CameraId) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.LinkEsInfo) > 0 { - for _, msg := range m.LinkEsInfo { - dAtA[i] = 0x22 - 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 *LinkEsInfo) 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 *LinkEsInfo) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.CameraId) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.CameraId))) - i += copy(dAtA[i:], m.CameraId) - } - if len(m.Feature) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.Feature))) - i += copy(dAtA[i:], m.Feature) - } - if len(m.AttachFeature) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.AttachFeature))) - i += copy(dAtA[i:], m.AttachFeature) - } - return i, nil -} - -func (m *Dbperson) 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 *Dbperson) 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 len(m.PersonPicUrl) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.PersonPicUrl))) - i += copy(dAtA[i:], m.PersonPicUrl) - } - if len(m.PersonName) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.PersonName))) - i += copy(dAtA[i:], m.PersonName) - } - if len(m.Age) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.Age))) - i += copy(dAtA[i:], m.Age) - } - if len(m.Sex) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.Sex))) - i += copy(dAtA[i:], m.Sex) - } - if len(m.IdCard) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.IdCard))) - i += copy(dAtA[i:], m.IdCard) - } - if len(m.PicDesc) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.PicDesc))) - i += copy(dAtA[i:], m.PicDesc) - } - if len(m.PhoneNum) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.PhoneNum))) - i += copy(dAtA[i:], m.PhoneNum) - } - if len(m.CreateTime) > 0 { - dAtA[i] = 0x5a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.CreateTime))) - i += copy(dAtA[i:], m.CreateTime) - } - if len(m.UpdateTime) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.UpdateTime))) - i += copy(dAtA[i:], m.UpdateTime) - } - if len(m.CreateBy) > 0 { - dAtA[i] = 0x6a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.CreateBy))) - i += copy(dAtA[i:], m.CreateBy) - } - if m.IsDelete != 0 { - dAtA[i] = 0x70 - i++ - i = encodeVarintEs(dAtA, i, uint64(m.IsDelete)) - } - if len(m.MonitorLevel) > 0 { - dAtA[i] = 0x7a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.MonitorLevel))) - i += copy(dAtA[i:], m.MonitorLevel) - } - if m.Enable != 0 { - dAtA[i] = 0x80 - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintEs(dAtA, i, uint64(m.Enable)) - } - if len(m.Reserved) > 0 { - dAtA[i] = 0x8a - i++ - dAtA[i] = 0x1 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.Reserved))) - i += copy(dAtA[i:], m.Reserved) - } - return i, nil -} - -func (m *Dbtable) 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 *Dbtable) 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.TableName) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.TableName))) - i += copy(dAtA[i:], m.TableName) - } - if len(m.TableDesc) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.TableDesc))) - i += copy(dAtA[i:], m.TableDesc) - } - if len(m.TableType) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.TableType))) - i += copy(dAtA[i:], m.TableType) - } - if len(m.BwType) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.BwType))) - i += copy(dAtA[i:], m.BwType) - } - if len(m.StartTime) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.StartTime))) - i += copy(dAtA[i:], m.StartTime) - } - if len(m.EndTime) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.EndTime))) - i += copy(dAtA[i:], m.EndTime) - } - if len(m.CreateTime) > 0 { - dAtA[i] = 0x42 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.CreateTime))) - i += copy(dAtA[i:], m.CreateTime) - } - if len(m.UpdateTime) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.UpdateTime))) - i += copy(dAtA[i:], m.UpdateTime) - } - if len(m.CreateBy) > 0 { - dAtA[i] = 0x52 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.CreateBy))) - i += copy(dAtA[i:], m.CreateBy) - } - if m.IsDelete != 0 { - dAtA[i] = 0x58 - i++ - i = encodeVarintEs(dAtA, i, uint64(m.IsDelete)) - } - if len(m.IsForever) > 0 { - dAtA[i] = 0x62 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.IsForever))) - i += copy(dAtA[i:], m.IsForever) - } - if m.Enable != 0 { - dAtA[i] = 0x68 - i++ - i = encodeVarintEs(dAtA, i, uint64(m.Enable)) - } - if len(m.IsSync) > 0 { - dAtA[i] = 0x72 - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.IsSync))) - i += copy(dAtA[i:], m.IsSync) - } - if len(m.AnalyServerId) > 0 { - dAtA[i] = 0x7a - i++ - i = encodeVarintEs(dAtA, i, uint64(len(m.AnalyServerId))) - i += copy(dAtA[i:], m.AnalyServerId) - } - 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 *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 - } - if m.Enable != 0 { - n += 1 + sovEs(uint64(m.Enable)) - } - l = len(m.AnalyServerId) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - return n -} - -func (m *MultiFeaCache) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EsInfo != nil { - l = m.EsInfo.Size() - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.AttachFeature) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - if len(m.LinkEsInfo) > 0 { - for _, e := range m.LinkEsInfo { - l = e.Size() - n += 1 + l + sovEs(uint64(l)) - } - } - return n -} - -func (m *LinkEsInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CameraId) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.Feature) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.AttachFeature) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - return n -} - -func (m *Dbperson) 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)) - } - l = len(m.PersonPicUrl) - 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.Age) - 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.PicDesc) - 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.CreateTime) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.UpdateTime) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.CreateBy) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - if m.IsDelete != 0 { - n += 1 + sovEs(uint64(m.IsDelete)) - } - l = len(m.MonitorLevel) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - if m.Enable != 0 { - n += 2 + sovEs(uint64(m.Enable)) - } - l = len(m.Reserved) - if l > 0 { - n += 2 + l + sovEs(uint64(l)) - } - return n -} - -func (m *Dbtable) 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.TableName) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.TableDesc) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.TableType) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.BwType) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.StartTime) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.EndTime) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.CreateTime) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.UpdateTime) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.CreateBy) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - if m.IsDelete != 0 { - n += 1 + sovEs(uint64(m.IsDelete)) - } - l = len(m.IsForever) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - if m.Enable != 0 { - n += 1 + sovEs(uint64(m.Enable)) - } - l = len(m.IsSync) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - l = len(m.AnalyServerId) - if l > 0 { - n += 1 + l + sovEs(uint64(l)) - } - return n -} - -func sovEs(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozEs(x uint64) (n int) { - return sovEs(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -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)) - 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 - 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 - 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: MultiFeaCache: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiFeaCache: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EsInfo", 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 - } - if m.EsInfo == nil { - m.EsInfo = &Esinfo{} - } - if err := m.EsInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachFeature", 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.AttachFeature = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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.CameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkEsInfo", 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.LinkEsInfo = append(m.LinkEsInfo, &LinkEsInfo{}) - if err := m.LinkEsInfo[len(m.LinkEsInfo)-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 *LinkEsInfo) 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: LinkEsInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LinkEsInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CameraId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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.CameraId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Feature", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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.Feature = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AttachFeature", 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.AttachFeature = 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 *Dbperson) 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: Dbperson: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Dbperson: 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 != 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 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Age", 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.Age = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - 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 8: - 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 9: - 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 - case 10: - 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 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", 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.CreateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", 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.UpdateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateBy", 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.CreateBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) - } - m.IsDelete = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEs - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IsDelete |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - 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 16: - 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 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reserved", 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.Reserved = 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 *Dbtable) 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: Dbtable: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Dbtable: 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 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 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableDesc", 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.TableDesc = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TableType", 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.TableType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BwType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 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.BwType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartTime", 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.StartTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EndTime", 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.EndTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateTime", 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.CreateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdateTime", 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.UpdateTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CreateBy", 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.CreateBy = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsDelete", wireType) - } - m.IsDelete = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEs - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.IsDelete |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IsForever", 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.IsForever = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - 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 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IsSync", 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.IsSync = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 15: - 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 - 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") -) -- Gitblit v1.8.0