| | |
| | | // 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| | | const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
| | | |
| | | type Esinfo struct { |
| | | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| | |
| | | return xxx_messageInfo_Esinfo.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | n, err := m.MarshalTo(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | return xxx_messageInfo_MultiFeaCache.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | n, err := m.MarshalTo(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | return xxx_messageInfo_LinkEsInfo.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | n, err := m.MarshalTo(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | return xxx_messageInfo_Dbperson.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | n, err := m.MarshalTo(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | return xxx_messageInfo_Dbtable.Marshal(b, m, deterministic) |
| | | } else { |
| | | b = b[:cap(b)] |
| | | n, err := m.MarshalToSizedBuffer(b) |
| | | n, err := m.MarshalTo(b) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | func (m *Esinfo) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | n, err := m.MarshalTo(dAtA) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | } |
| | | |
| | | func (m *Esinfo) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *Esinfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if len(m.AnalyServerId) > 0 { |
| | | i -= len(m.AnalyServerId) |
| | | copy(dAtA[i:], m.AnalyServerId) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.AnalyServerId))) |
| | | i-- |
| | | dAtA[i] = 0x32 |
| | | } |
| | | if m.Enable != 0 { |
| | | i = encodeVarintEs(dAtA, i, uint64(m.Enable)) |
| | | i-- |
| | | dAtA[i] = 0x28 |
| | | } |
| | | if m.CompareScore != 0 { |
| | | i -= 4 |
| | | encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore)))) |
| | | i-- |
| | | dAtA[i] = 0x25 |
| | | } |
| | | if len(m.FaceFeature) > 0 { |
| | | i -= len(m.FaceFeature) |
| | | copy(dAtA[i:], m.FaceFeature) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature))) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | 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 { |
| | | i -= len(m.Tableid) |
| | | copy(dAtA[i:], m.Tableid) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Tableid))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Tableid))) |
| | | i += copy(dAtA[i:], m.Tableid) |
| | | } |
| | | if len(m.Id) > 0 { |
| | | i -= len(m.Id) |
| | | copy(dAtA[i:], m.Id) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Id))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | if len(m.FaceFeature) > 0 { |
| | | dAtA[i] = 0x1a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature))) |
| | | i += copy(dAtA[i:], m.FaceFeature) |
| | | } |
| | | return len(dAtA) - i, nil |
| | | 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.MarshalToSizedBuffer(dAtA[:size]) |
| | | n, err := m.MarshalTo(dAtA) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | } |
| | | |
| | | func (m *MultiFeaCache) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *MultiFeaCache) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if m.TargetLocation != nil { |
| | | { |
| | | size, err := m.TargetLocation.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintEs(dAtA, i, uint64(size)) |
| | | 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-- |
| | | dAtA[i] = 0x2a |
| | | } |
| | | if len(m.LinkEsInfo) > 0 { |
| | | for iNdEx := len(m.LinkEsInfo) - 1; iNdEx >= 0; iNdEx-- { |
| | | { |
| | | size, err := m.LinkEsInfo[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintEs(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x22 |
| | | } |
| | | } |
| | | if len(m.CameraId) > 0 { |
| | | i -= len(m.CameraId) |
| | | copy(dAtA[i:], m.CameraId) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.CameraId))) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | i += n1 |
| | | } |
| | | if len(m.AttachFeature) > 0 { |
| | | i -= len(m.AttachFeature) |
| | | copy(dAtA[i:], m.AttachFeature) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.AttachFeature))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.AttachFeature))) |
| | | i += copy(dAtA[i:], m.AttachFeature) |
| | | } |
| | | if m.EsInfo != nil { |
| | | { |
| | | size, err := m.EsInfo.MarshalToSizedBuffer(dAtA[:i]) |
| | | 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 -= size |
| | | i = encodeVarintEs(dAtA, i, uint64(size)) |
| | | i += n |
| | | } |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | } |
| | | return len(dAtA) - i, nil |
| | | if m.TargetLocation != nil { |
| | | dAtA[i] = 0x2a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(m.TargetLocation.Size())) |
| | | n2, err2 := m.TargetLocation.MarshalTo(dAtA[i:]) |
| | | if err2 != nil { |
| | | return 0, err2 |
| | | } |
| | | i += n2 |
| | | } |
| | | return i, nil |
| | | } |
| | | |
| | | func (m *LinkEsInfo) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | n, err := m.MarshalTo(dAtA) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | } |
| | | |
| | | func (m *LinkEsInfo) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *LinkEsInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if m.TargetLocation != nil { |
| | | { |
| | | size, err := m.TargetLocation.MarshalToSizedBuffer(dAtA[:i]) |
| | | if err != nil { |
| | | return 0, err |
| | | } |
| | | i -= size |
| | | i = encodeVarintEs(dAtA, i, uint64(size)) |
| | | } |
| | | i-- |
| | | dAtA[i] = 0x22 |
| | | } |
| | | if len(m.AttachFeature) > 0 { |
| | | i -= len(m.AttachFeature) |
| | | copy(dAtA[i:], m.AttachFeature) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.AttachFeature))) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | 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 { |
| | | i -= len(m.Feature) |
| | | copy(dAtA[i:], m.Feature) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Feature))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Feature))) |
| | | i += copy(dAtA[i:], m.Feature) |
| | | } |
| | | if len(m.CameraId) > 0 { |
| | | i -= len(m.CameraId) |
| | | copy(dAtA[i:], m.CameraId) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.CameraId))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | if len(m.AttachFeature) > 0 { |
| | | dAtA[i] = 0x1a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.AttachFeature))) |
| | | i += copy(dAtA[i:], m.AttachFeature) |
| | | } |
| | | return len(dAtA) - i, nil |
| | | if m.TargetLocation != nil { |
| | | dAtA[i] = 0x22 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(m.TargetLocation.Size())) |
| | | n3, err3 := m.TargetLocation.MarshalTo(dAtA[i:]) |
| | | if err3 != nil { |
| | | return 0, err3 |
| | | } |
| | | i += n3 |
| | | } |
| | | return i, nil |
| | | } |
| | | |
| | | func (m *Dbperson) Marshal() (dAtA []byte, err error) { |
| | | size := m.Size() |
| | | dAtA = make([]byte, size) |
| | | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| | | n, err := m.MarshalTo(dAtA) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | } |
| | | |
| | | func (m *Dbperson) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *Dbperson) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if len(m.Reserved) > 0 { |
| | | i -= len(m.Reserved) |
| | | copy(dAtA[i:], m.Reserved) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Reserved))) |
| | | i-- |
| | | dAtA[i] = 0x1 |
| | | i-- |
| | | dAtA[i] = 0x8a |
| | | } |
| | | if m.Enable != 0 { |
| | | i = encodeVarintEs(dAtA, i, uint64(m.Enable)) |
| | | i-- |
| | | dAtA[i] = 0x1 |
| | | i-- |
| | | dAtA[i] = 0x80 |
| | | } |
| | | if len(m.MonitorLevel) > 0 { |
| | | i -= len(m.MonitorLevel) |
| | | copy(dAtA[i:], m.MonitorLevel) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.MonitorLevel))) |
| | | i-- |
| | | dAtA[i] = 0x7a |
| | | } |
| | | if m.IsDelete != 0 { |
| | | i = encodeVarintEs(dAtA, i, uint64(m.IsDelete)) |
| | | i-- |
| | | dAtA[i] = 0x70 |
| | | } |
| | | if len(m.CreateBy) > 0 { |
| | | i -= len(m.CreateBy) |
| | | copy(dAtA[i:], m.CreateBy) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.CreateBy))) |
| | | i-- |
| | | dAtA[i] = 0x6a |
| | | } |
| | | if len(m.UpdateTime) > 0 { |
| | | i -= len(m.UpdateTime) |
| | | copy(dAtA[i:], m.UpdateTime) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.UpdateTime))) |
| | | i-- |
| | | dAtA[i] = 0x62 |
| | | } |
| | | if len(m.CreateTime) > 0 { |
| | | i -= len(m.CreateTime) |
| | | copy(dAtA[i:], m.CreateTime) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.CreateTime))) |
| | | i-- |
| | | dAtA[i] = 0x5a |
| | | } |
| | | if len(m.PhoneNum) > 0 { |
| | | i -= len(m.PhoneNum) |
| | | copy(dAtA[i:], m.PhoneNum) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PhoneNum))) |
| | | i-- |
| | | dAtA[i] = 0x52 |
| | | } |
| | | if len(m.PicDesc) > 0 { |
| | | i -= len(m.PicDesc) |
| | | copy(dAtA[i:], m.PicDesc) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PicDesc))) |
| | | i-- |
| | | dAtA[i] = 0x4a |
| | | } |
| | | if len(m.IdCard) > 0 { |
| | | i -= len(m.IdCard) |
| | | copy(dAtA[i:], m.IdCard) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.IdCard))) |
| | | i-- |
| | | dAtA[i] = 0x42 |
| | | } |
| | | if len(m.Sex) > 0 { |
| | | i -= len(m.Sex) |
| | | copy(dAtA[i:], m.Sex) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Sex))) |
| | | i-- |
| | | dAtA[i] = 0x3a |
| | | } |
| | | if len(m.Age) > 0 { |
| | | i -= len(m.Age) |
| | | copy(dAtA[i:], m.Age) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Age))) |
| | | i-- |
| | | dAtA[i] = 0x32 |
| | | } |
| | | if len(m.PersonName) > 0 { |
| | | i -= len(m.PersonName) |
| | | copy(dAtA[i:], m.PersonName) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PersonName))) |
| | | i-- |
| | | dAtA[i] = 0x2a |
| | | } |
| | | if len(m.PersonPicUrl) > 0 { |
| | | i -= len(m.PersonPicUrl) |
| | | copy(dAtA[i:], m.PersonPicUrl) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.PersonPicUrl))) |
| | | i-- |
| | | dAtA[i] = 0x22 |
| | | } |
| | | if len(m.FaceFeature) > 0 { |
| | | i -= len(m.FaceFeature) |
| | | copy(dAtA[i:], m.FaceFeature) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature))) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | 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 { |
| | | i -= len(m.TableId) |
| | | copy(dAtA[i:], m.TableId) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableId))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableId))) |
| | | i += copy(dAtA[i:], m.TableId) |
| | | } |
| | | if len(m.Id) > 0 { |
| | | i -= len(m.Id) |
| | | copy(dAtA[i:], m.Id) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Id))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | if len(m.FaceFeature) > 0 { |
| | | dAtA[i] = 0x1a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature))) |
| | | i += copy(dAtA[i:], m.FaceFeature) |
| | | } |
| | | return len(dAtA) - i, nil |
| | | 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.MarshalToSizedBuffer(dAtA[:size]) |
| | | n, err := m.MarshalTo(dAtA) |
| | | if err != nil { |
| | | return nil, err |
| | | } |
| | |
| | | } |
| | | |
| | | func (m *Dbtable) MarshalTo(dAtA []byte) (int, error) { |
| | | size := m.Size() |
| | | return m.MarshalToSizedBuffer(dAtA[:size]) |
| | | } |
| | | |
| | | func (m *Dbtable) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| | | i := len(dAtA) |
| | | var i int |
| | | _ = i |
| | | var l int |
| | | _ = l |
| | | if len(m.AnalyServerId) > 0 { |
| | | i -= len(m.AnalyServerId) |
| | | copy(dAtA[i:], m.AnalyServerId) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.AnalyServerId))) |
| | | i-- |
| | | dAtA[i] = 0x7a |
| | | } |
| | | if len(m.IsSync) > 0 { |
| | | i -= len(m.IsSync) |
| | | copy(dAtA[i:], m.IsSync) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.IsSync))) |
| | | i-- |
| | | dAtA[i] = 0x72 |
| | | } |
| | | if m.Enable != 0 { |
| | | i = encodeVarintEs(dAtA, i, uint64(m.Enable)) |
| | | i-- |
| | | dAtA[i] = 0x68 |
| | | } |
| | | if len(m.IsForever) > 0 { |
| | | i -= len(m.IsForever) |
| | | copy(dAtA[i:], m.IsForever) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.IsForever))) |
| | | i-- |
| | | dAtA[i] = 0x62 |
| | | } |
| | | if m.IsDelete != 0 { |
| | | i = encodeVarintEs(dAtA, i, uint64(m.IsDelete)) |
| | | i-- |
| | | dAtA[i] = 0x58 |
| | | } |
| | | if len(m.CreateBy) > 0 { |
| | | i -= len(m.CreateBy) |
| | | copy(dAtA[i:], m.CreateBy) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.CreateBy))) |
| | | i-- |
| | | dAtA[i] = 0x52 |
| | | } |
| | | if len(m.UpdateTime) > 0 { |
| | | i -= len(m.UpdateTime) |
| | | copy(dAtA[i:], m.UpdateTime) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.UpdateTime))) |
| | | i-- |
| | | dAtA[i] = 0x4a |
| | | } |
| | | if len(m.CreateTime) > 0 { |
| | | i -= len(m.CreateTime) |
| | | copy(dAtA[i:], m.CreateTime) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.CreateTime))) |
| | | i-- |
| | | dAtA[i] = 0x42 |
| | | } |
| | | if len(m.EndTime) > 0 { |
| | | i -= len(m.EndTime) |
| | | copy(dAtA[i:], m.EndTime) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.EndTime))) |
| | | i-- |
| | | dAtA[i] = 0x3a |
| | | } |
| | | if len(m.StartTime) > 0 { |
| | | i -= len(m.StartTime) |
| | | copy(dAtA[i:], m.StartTime) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.StartTime))) |
| | | i-- |
| | | dAtA[i] = 0x32 |
| | | } |
| | | if len(m.BwType) > 0 { |
| | | i -= len(m.BwType) |
| | | copy(dAtA[i:], m.BwType) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.BwType))) |
| | | i-- |
| | | dAtA[i] = 0x2a |
| | | } |
| | | if len(m.TableType) > 0 { |
| | | i -= len(m.TableType) |
| | | copy(dAtA[i:], m.TableType) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableType))) |
| | | i-- |
| | | dAtA[i] = 0x22 |
| | | } |
| | | if len(m.TableDesc) > 0 { |
| | | i -= len(m.TableDesc) |
| | | copy(dAtA[i:], m.TableDesc) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableDesc))) |
| | | i-- |
| | | dAtA[i] = 0x1a |
| | | 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 { |
| | | i -= len(m.TableName) |
| | | copy(dAtA[i:], m.TableName) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableName))) |
| | | i-- |
| | | dAtA[i] = 0x12 |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableName))) |
| | | i += copy(dAtA[i:], m.TableName) |
| | | } |
| | | if len(m.Id) > 0 { |
| | | i -= len(m.Id) |
| | | copy(dAtA[i:], m.Id) |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.Id))) |
| | | i-- |
| | | dAtA[i] = 0xa |
| | | if len(m.TableDesc) > 0 { |
| | | dAtA[i] = 0x1a |
| | | i++ |
| | | i = encodeVarintEs(dAtA, i, uint64(len(m.TableDesc))) |
| | | i += copy(dAtA[i:], m.TableDesc) |
| | | } |
| | | return len(dAtA) - i, nil |
| | | 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 { |
| | | offset -= sovEs(v) |
| | | base := offset |
| | | for v >= 1<<7 { |
| | | dAtA[offset] = uint8(v&0x7f | 0x80) |
| | | v >>= 7 |
| | | offset++ |
| | | } |
| | | dAtA[offset] = uint8(v) |
| | | return base |
| | | return offset + 1 |
| | | } |
| | | func (m *Esinfo) Size() (n int) { |
| | | if m == nil { |
| | |
| | | func skipEs(dAtA []byte) (n int, err error) { |
| | | l := len(dAtA) |
| | | iNdEx := 0 |
| | | depth := 0 |
| | | for iNdEx < l { |
| | | var wire uint64 |
| | | for shift := uint(0); ; shift += 7 { |
| | |
| | | break |
| | | } |
| | | } |
| | | return iNdEx, nil |
| | | case 1: |
| | | iNdEx += 8 |
| | | return iNdEx, nil |
| | | case 2: |
| | | var length int |
| | | for shift := uint(0); ; shift += 7 { |
| | |
| | | return 0, ErrInvalidLengthEs |
| | | } |
| | | iNdEx += length |
| | | case 3: |
| | | depth++ |
| | | case 4: |
| | | if depth == 0 { |
| | | return 0, ErrUnexpectedEndOfGroupEs |
| | | if iNdEx < 0 { |
| | | return 0, ErrInvalidLengthEs |
| | | } |
| | | depth-- |
| | | 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) |
| | | } |
| | | if iNdEx < 0 { |
| | | return 0, ErrInvalidLengthEs |
| | | } |
| | | if depth == 0 { |
| | | return iNdEx, nil |
| | | } |
| | | } |
| | | return 0, io.ErrUnexpectedEOF |
| | | panic("unreachable") |
| | | } |
| | | |
| | | var ( |
| | | ErrInvalidLengthEs = fmt.Errorf("proto: negative length found during unmarshaling") |
| | | ErrIntOverflowEs = fmt.Errorf("proto: integer overflow") |
| | | ErrUnexpectedEndOfGroupEs = fmt.Errorf("proto: unexpected end of group") |
| | | ErrInvalidLengthEs = fmt.Errorf("proto: negative length found during unmarshaling") |
| | | ErrIntOverflowEs = fmt.Errorf("proto: integer overflow") |
| | | ) |