From b089e092a8eb6bb0980f9dd46c7cd9fcf7849d13 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 26 六月 2019 11:34:28 +0800
Subject: [PATCH] nothing
---
sdk.pb.go | 474 ++++---
sdk.proto | 15
es.proto | 25
sysset.pb.go | 1884 ++++++++++++++++++++++++++++++-
es.pb.go | 1057 ++++++++++++++++++
5 files changed, 3,145 insertions(+), 310 deletions(-)
diff --git a/es.pb.go b/es.pb.go
new file mode 100644
index 0000000..8ac1d03
--- /dev/null
+++ b/es.pb.go
@@ -0,0 +1,1057 @@
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
+// source: es.proto
+
+package protomsg
+
+import (
+ encoding_binary "encoding/binary"
+ fmt "fmt"
+ proto "github.com/gogo/protobuf/proto"
+ io "io"
+ math "math"
+)
+
+// Reference imports to suppress errors if they are not otherwise used.
+var _ = proto.Marshal
+var _ = fmt.Errorf
+var _ = math.Inf
+
+// This is a compile-time assertion to ensure that this generated file
+// is compatible with the proto package it is being compiled against.
+// A compilation error at this line likely means your copy of the
+// proto package needs to be updated.
+const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
+
+type Baseinfo struct {
+ FaceFeature string `protobuf:"bytes,1,opt,name=faceFeature,proto3" json:"faceFeature,omitempty"`
+ PersonId string `protobuf:"bytes,2,opt,name=personId,proto3" json:"personId,omitempty"`
+ TableId string `protobuf:"bytes,3,opt,name=tableId,proto3" json:"tableId,omitempty"`
+ TableName string `protobuf:"bytes,4,opt,name=tableName,proto3" json:"tableName,omitempty"`
+ CompareScore float32 `protobuf:"fixed32,5,opt,name=compareScore,proto3" json:"compareScore,omitempty"`
+ PersonName string `protobuf:"bytes,6,opt,name=personName,proto3" json:"personName,omitempty"`
+ PersonPicUrl string `protobuf:"bytes,7,opt,name=personPicUrl,proto3" json:"personPicUrl,omitempty"`
+ PhoneNum string `protobuf:"bytes,8,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"`
+ Sex string `protobuf:"bytes,9,opt,name=sex,proto3" json:"sex,omitempty"`
+ Idcard string `protobuf:"bytes,10,opt,name=idcard,proto3" json:"idcard,omitempty"`
+ MonitorLevel string `protobuf:"bytes,11,opt,name=monitorLevel,proto3" json:"monitorLevel,omitempty"`
+ Content string `protobuf:"bytes,12,opt,name=content,proto3" json:"content,omitempty"`
+}
+
+func (m *Baseinfo) Reset() { *m = Baseinfo{} }
+func (m *Baseinfo) String() string { return proto.CompactTextString(m) }
+func (*Baseinfo) ProtoMessage() {}
+func (*Baseinfo) Descriptor() ([]byte, []int) {
+ return fileDescriptor_718db5c20d0f3738, []int{0}
+}
+func (m *Baseinfo) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Baseinfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_Baseinfo.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *Baseinfo) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Baseinfo.Merge(m, src)
+}
+func (m *Baseinfo) XXX_Size() int {
+ return m.Size()
+}
+func (m *Baseinfo) XXX_DiscardUnknown() {
+ xxx_messageInfo_Baseinfo.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Baseinfo proto.InternalMessageInfo
+
+func (m *Baseinfo) GetFaceFeature() string {
+ if m != nil {
+ return m.FaceFeature
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetPersonId() string {
+ if m != nil {
+ return m.PersonId
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetTableId() string {
+ if m != nil {
+ return m.TableId
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetTableName() string {
+ if m != nil {
+ return m.TableName
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetCompareScore() float32 {
+ if m != nil {
+ return m.CompareScore
+ }
+ return 0
+}
+
+func (m *Baseinfo) GetPersonName() string {
+ if m != nil {
+ return m.PersonName
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetPersonPicUrl() string {
+ if m != nil {
+ return m.PersonPicUrl
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetPhoneNum() string {
+ if m != nil {
+ return m.PhoneNum
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetSex() string {
+ if m != nil {
+ return m.Sex
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetIdcard() string {
+ if m != nil {
+ return m.Idcard
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetMonitorLevel() string {
+ if m != nil {
+ return m.MonitorLevel
+ }
+ return ""
+}
+
+func (m *Baseinfo) GetContent() string {
+ if m != nil {
+ return m.Content
+ }
+ return ""
+}
+
+type Binfos struct {
+ Infos []*Baseinfo `protobuf:"bytes,1,rep,name=infos,proto3" json:"infos,omitempty"`
+}
+
+func (m *Binfos) Reset() { *m = Binfos{} }
+func (m *Binfos) String() string { return proto.CompactTextString(m) }
+func (*Binfos) ProtoMessage() {}
+func (*Binfos) Descriptor() ([]byte, []int) {
+ return fileDescriptor_718db5c20d0f3738, []int{1}
+}
+func (m *Binfos) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *Binfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_Binfos.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *Binfos) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Binfos.Merge(m, src)
+}
+func (m *Binfos) XXX_Size() int {
+ return m.Size()
+}
+func (m *Binfos) XXX_DiscardUnknown() {
+ xxx_messageInfo_Binfos.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_Binfos proto.InternalMessageInfo
+
+func (m *Binfos) GetInfos() []*Baseinfo {
+ if m != nil {
+ return m.Infos
+ }
+ return nil
+}
+
+func init() {
+ proto.RegisterType((*Baseinfo)(nil), "protomsg.Baseinfo")
+ proto.RegisterType((*Binfos)(nil), "protomsg.Binfos")
+}
+
+func init() { proto.RegisterFile("es.proto", fileDescriptor_718db5c20d0f3738) }
+
+var fileDescriptor_718db5c20d0f3738 = []byte{
+ // 311 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xc1, 0x6a, 0xf2, 0x40,
+ 0x10, 0xc7, 0x5d, 0xfd, 0x8c, 0x71, 0xf4, 0xf0, 0xb1, 0x87, 0x32, 0x94, 0xb2, 0x04, 0x4f, 0x39,
+ 0x79, 0xb0, 0x6f, 0xe0, 0xa1, 0x20, 0x14, 0x29, 0x96, 0x3e, 0xc0, 0x9a, 0x8c, 0x6d, 0xc0, 0xec,
+ 0xca, 0xee, 0x5a, 0xfa, 0x18, 0x7d, 0xac, 0x1e, 0x3d, 0xf6, 0x58, 0xf4, 0xda, 0x87, 0x28, 0x99,
+ 0xc4, 0x36, 0x9e, 0x76, 0xfe, 0xbf, 0x99, 0x9d, 0x19, 0xfe, 0x03, 0x31, 0xf9, 0xe9, 0xce, 0xd9,
+ 0x60, 0x65, 0xcc, 0x4f, 0xe9, 0x9f, 0x27, 0xdf, 0x5d, 0x88, 0xe7, 0xda, 0x53, 0x61, 0x36, 0x56,
+ 0x26, 0x30, 0xda, 0xe8, 0x8c, 0xee, 0x48, 0x87, 0xbd, 0x23, 0x14, 0x89, 0x48, 0x87, 0xab, 0x36,
+ 0x92, 0xd7, 0x10, 0xef, 0xc8, 0x79, 0x6b, 0x16, 0x39, 0x76, 0x39, 0xfd, 0xab, 0x25, 0xc2, 0x20,
+ 0xe8, 0xf5, 0x96, 0x16, 0x39, 0xf6, 0x38, 0x75, 0x96, 0xf2, 0x06, 0x86, 0x1c, 0x2e, 0x75, 0x49,
+ 0xf8, 0x8f, 0x73, 0x7f, 0x40, 0x4e, 0x60, 0x9c, 0xd9, 0x72, 0xa7, 0x1d, 0x3d, 0x66, 0xd6, 0x11,
+ 0xf6, 0x13, 0x91, 0x76, 0x57, 0x17, 0x4c, 0x2a, 0x80, 0x7a, 0x0e, 0xb7, 0x88, 0xb8, 0x45, 0x8b,
+ 0x54, 0x3d, 0x6a, 0xf5, 0x50, 0x64, 0x4f, 0x6e, 0x8b, 0x03, 0xae, 0xb8, 0x60, 0xbc, 0xfb, 0x8b,
+ 0x35, 0xb4, 0xdc, 0x97, 0x18, 0x37, 0xbb, 0x37, 0x5a, 0xfe, 0x87, 0x9e, 0xa7, 0x37, 0x1c, 0x32,
+ 0xae, 0x42, 0x79, 0x05, 0x51, 0x91, 0x67, 0xda, 0xe5, 0x08, 0x0c, 0x1b, 0x55, 0x4d, 0x2a, 0xad,
+ 0x29, 0x82, 0x75, 0xf7, 0xf4, 0x4a, 0x5b, 0x1c, 0xd5, 0x93, 0xda, 0xac, 0x72, 0x22, 0xb3, 0x26,
+ 0x90, 0x09, 0x38, 0xae, 0x9d, 0x68, 0xe4, 0x64, 0x06, 0xd1, 0xbc, 0xb2, 0xda, 0xcb, 0x14, 0xfa,
+ 0x1c, 0xa0, 0x48, 0x7a, 0xe9, 0x68, 0x26, 0xa7, 0xe7, 0x93, 0x4c, 0xcf, 0xe7, 0x58, 0xd5, 0x05,
+ 0x73, 0xfc, 0x38, 0x2a, 0x71, 0x38, 0x2a, 0xf1, 0x75, 0x54, 0xe2, 0xfd, 0xa4, 0x3a, 0x87, 0x93,
+ 0xea, 0x7c, 0x9e, 0x54, 0x67, 0x1d, 0xf1, 0x9f, 0xdb, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x81,
+ 0xfe, 0xfa, 0x51, 0xd9, 0x01, 0x00, 0x00,
+}
+
+func (m *Baseinfo) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalTo(dAtA)
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Baseinfo) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.FaceFeature) > 0 {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.FaceFeature)))
+ i += copy(dAtA[i:], m.FaceFeature)
+ }
+ if len(m.PersonId) > 0 {
+ dAtA[i] = 0x12
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.PersonId)))
+ i += copy(dAtA[i:], m.PersonId)
+ }
+ if len(m.TableId) > 0 {
+ dAtA[i] = 0x1a
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.TableId)))
+ i += copy(dAtA[i:], m.TableId)
+ }
+ if len(m.TableName) > 0 {
+ dAtA[i] = 0x22
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.TableName)))
+ i += copy(dAtA[i:], m.TableName)
+ }
+ if m.CompareScore != 0 {
+ dAtA[i] = 0x2d
+ i++
+ encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.CompareScore))))
+ i += 4
+ }
+ if len(m.PersonName) > 0 {
+ dAtA[i] = 0x32
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.PersonName)))
+ i += copy(dAtA[i:], m.PersonName)
+ }
+ if len(m.PersonPicUrl) > 0 {
+ dAtA[i] = 0x3a
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.PersonPicUrl)))
+ i += copy(dAtA[i:], m.PersonPicUrl)
+ }
+ if len(m.PhoneNum) > 0 {
+ dAtA[i] = 0x42
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.PhoneNum)))
+ i += copy(dAtA[i:], m.PhoneNum)
+ }
+ if len(m.Sex) > 0 {
+ dAtA[i] = 0x4a
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.Sex)))
+ i += copy(dAtA[i:], m.Sex)
+ }
+ if len(m.Idcard) > 0 {
+ dAtA[i] = 0x52
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.Idcard)))
+ i += copy(dAtA[i:], m.Idcard)
+ }
+ if len(m.MonitorLevel) > 0 {
+ dAtA[i] = 0x5a
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.MonitorLevel)))
+ i += copy(dAtA[i:], m.MonitorLevel)
+ }
+ if len(m.Content) > 0 {
+ dAtA[i] = 0x62
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(len(m.Content)))
+ i += copy(dAtA[i:], m.Content)
+ }
+ return i, nil
+}
+
+func (m *Binfos) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalTo(dAtA)
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *Binfos) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.Infos) > 0 {
+ for _, msg := range m.Infos {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintEs(dAtA, i, uint64(msg.Size()))
+ n, err := msg.MarshalTo(dAtA[i:])
+ if err != nil {
+ return 0, err
+ }
+ i += n
+ }
+ }
+ return i, nil
+}
+
+func encodeVarintEs(dAtA []byte, offset int, v uint64) int {
+ for v >= 1<<7 {
+ dAtA[offset] = uint8(v&0x7f | 0x80)
+ v >>= 7
+ offset++
+ }
+ dAtA[offset] = uint8(v)
+ return offset + 1
+}
+func (m *Baseinfo) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.FaceFeature)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.PersonId)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.TableId)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.TableName)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ if m.CompareScore != 0 {
+ n += 5
+ }
+ l = len(m.PersonName)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.PersonPicUrl)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.PhoneNum)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.Sex)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.Idcard)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.MonitorLevel)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ l = len(m.Content)
+ if l > 0 {
+ n += 1 + l + sovEs(uint64(l))
+ }
+ return n
+}
+
+func (m *Binfos) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ if len(m.Infos) > 0 {
+ for _, e := range m.Infos {
+ l = e.Size()
+ n += 1 + l + sovEs(uint64(l))
+ }
+ }
+ return n
+}
+
+func sovEs(x uint64) (n int) {
+ for {
+ n++
+ x >>= 7
+ if x == 0 {
+ break
+ }
+ }
+ return n
+}
+func sozEs(x uint64) (n int) {
+ return sovEs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (m *Baseinfo) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Baseinfo: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Baseinfo: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field FaceFeature", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.FaceFeature = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PersonId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PersonId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TableId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.TableId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.TableName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ 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 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PersonName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PersonName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PersonPicUrl", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PersonPicUrl = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PhoneNum", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.PhoneNum = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Sex", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Sex = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 10:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Idcard", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Idcard = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 11:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field MonitorLevel", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.MonitorLevel = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 12:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ stringLen |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ intStringLen := int(stringLen)
+ if intStringLen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Content = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipEs(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthEs
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthEs
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Binfos) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: Binfos: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Binfos: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Infos", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEs
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthEs
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthEs
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Infos = append(m.Infos, &Baseinfo{})
+ if err := m.Infos[len(m.Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipEs(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthEs
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthEs
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func 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")
+)
diff --git a/es.proto b/es.proto
new file mode 100644
index 0000000..372fc0f
--- /dev/null
+++ b/es.proto
@@ -0,0 +1,25 @@
+syntax = "proto3";
+
+package protomsg;
+
+message Baseinfo{
+ string faceFeature = 1;
+ string personId = 2;
+ string tableId = 3;
+ string tableName =4;
+ float compareScore= 5;
+ string personName =6;
+ string personPicUrl =7;
+ string phoneNum =8;
+ string sex =9;
+ string idcard = 10;
+ string monitorLevel = 11;
+ string content = 12;
+}
+
+message Binfos{
+ repeated Baseinfo infos = 1;
+}
+
+
+
diff --git a/sdk.pb.go b/sdk.pb.go
index bf112d9..10d85e0 100644
--- a/sdk.pb.go
+++ b/sdk.pb.go
@@ -608,15 +608,75 @@
return nil
}
+type ResultFaceExtCom struct {
+ Feats []byte `protobuf:"bytes,1,opt,name=feats,proto3" json:"feats,omitempty"`
+ Comp []byte `protobuf:"bytes,2,opt,name=comp,proto3" json:"comp,omitempty"`
+ Pos *ResultFaceDetect `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos,omitempty"`
+}
+
+func (m *ResultFaceExtCom) Reset() { *m = ResultFaceExtCom{} }
+func (m *ResultFaceExtCom) String() string { return proto.CompactTextString(m) }
+func (*ResultFaceExtCom) ProtoMessage() {}
+func (*ResultFaceExtCom) Descriptor() ([]byte, []int) {
+ return fileDescriptor_70decb0fb6f436df, []int{8}
+}
+func (m *ResultFaceExtCom) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *ResultFaceExtCom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_ResultFaceExtCom.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *ResultFaceExtCom) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_ResultFaceExtCom.Merge(m, src)
+}
+func (m *ResultFaceExtCom) XXX_Size() int {
+ return m.Size()
+}
+func (m *ResultFaceExtCom) XXX_DiscardUnknown() {
+ xxx_messageInfo_ResultFaceExtCom.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_ResultFaceExtCom proto.InternalMessageInfo
+
+func (m *ResultFaceExtCom) GetFeats() []byte {
+ if m != nil {
+ return m.Feats
+ }
+ return nil
+}
+
+func (m *ResultFaceExtCom) GetComp() []byte {
+ if m != nil {
+ return m.Comp
+ }
+ return nil
+}
+
+func (m *ResultFaceExtCom) GetPos() *ResultFaceDetect {
+ if m != nil {
+ return m.Pos
+ }
+ return nil
+}
+
type ParamFaceFeature struct {
- Feats [][]byte `protobuf:"bytes,1,rep,name=feats,proto3" json:"feats,omitempty"`
+ ExtComp []*ResultFaceExtCom `protobuf:"bytes,2,rep,name=extComp,proto3" json:"extComp,omitempty"`
}
func (m *ParamFaceFeature) Reset() { *m = ParamFaceFeature{} }
func (m *ParamFaceFeature) String() string { return proto.CompactTextString(m) }
func (*ParamFaceFeature) ProtoMessage() {}
func (*ParamFaceFeature) Descriptor() ([]byte, []int) {
- return fileDescriptor_70decb0fb6f436df, []int{8}
+ return fileDescriptor_70decb0fb6f436df, []int{9}
}
func (m *ParamFaceFeature) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
@@ -645,62 +705,9 @@
var xxx_messageInfo_ParamFaceFeature proto.InternalMessageInfo
-func (m *ParamFaceFeature) GetFeats() [][]byte {
+func (m *ParamFaceFeature) GetExtComp() []*ResultFaceExtCom {
if m != nil {
- return m.Feats
- }
- return nil
-}
-
-// sdk face extract
-type ParamFaceCompare struct {
- Feat1 []byte `protobuf:"bytes,1,opt,name=feat1,proto3" json:"feat1,omitempty"`
- Feat2 []byte `protobuf:"bytes,2,opt,name=feat2,proto3" json:"feat2,omitempty"`
-}
-
-func (m *ParamFaceCompare) Reset() { *m = ParamFaceCompare{} }
-func (m *ParamFaceCompare) String() string { return proto.CompactTextString(m) }
-func (*ParamFaceCompare) ProtoMessage() {}
-func (*ParamFaceCompare) Descriptor() ([]byte, []int) {
- return fileDescriptor_70decb0fb6f436df, []int{9}
-}
-func (m *ParamFaceCompare) XXX_Unmarshal(b []byte) error {
- return m.Unmarshal(b)
-}
-func (m *ParamFaceCompare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- if deterministic {
- return xxx_messageInfo_ParamFaceCompare.Marshal(b, m, deterministic)
- } else {
- b = b[:cap(b)]
- n, err := m.MarshalTo(b)
- if err != nil {
- return nil, err
- }
- return b[:n], nil
- }
-}
-func (m *ParamFaceCompare) XXX_Merge(src proto.Message) {
- xxx_messageInfo_ParamFaceCompare.Merge(m, src)
-}
-func (m *ParamFaceCompare) XXX_Size() int {
- return m.Size()
-}
-func (m *ParamFaceCompare) XXX_DiscardUnknown() {
- xxx_messageInfo_ParamFaceCompare.DiscardUnknown(m)
-}
-
-var xxx_messageInfo_ParamFaceCompare proto.InternalMessageInfo
-
-func (m *ParamFaceCompare) GetFeat1() []byte {
- if m != nil {
- return m.Feat1
- }
- return nil
-}
-
-func (m *ParamFaceCompare) GetFeat2() []byte {
- if m != nil {
- return m.Feat2
+ return m.ExtComp
}
return nil
}
@@ -759,56 +766,57 @@
proto.RegisterType((*ObjInfo)(nil), "protomsg.ObjInfo")
proto.RegisterType((*ResultFaceDetect)(nil), "protomsg.ResultFaceDetect")
proto.RegisterType((*ParamFacePos)(nil), "protomsg.ParamFacePos")
+ proto.RegisterType((*ResultFaceExtCom)(nil), "protomsg.ResultFaceExtCom")
proto.RegisterType((*ParamFaceFeature)(nil), "protomsg.ParamFaceFeature")
- proto.RegisterType((*ParamFaceCompare)(nil), "protomsg.ParamFaceCompare")
proto.RegisterType((*ParamYoloObj)(nil), "protomsg.ParamYoloObj")
}
func init() { proto.RegisterFile("sdk.proto", fileDescriptor_70decb0fb6f436df) }
var fileDescriptor_70decb0fb6f436df = []byte{
- // 650 bytes of a gzipped F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1b, 0x61, 0xbc, 0x81, 0x06, 0xcf, 0xad, 0xef,
+ 0x4f, 0x2a, 0x53, 0x34, 0x94, 0x2d, 0x70, 0xd3, 0x22, 0x56, 0x8d, 0xef, 0x85, 0xe6, 0xda, 0xe1,
+ 0x72, 0x53, 0x7f, 0xe5, 0x7d, 0x3b, 0xf7, 0x9d, 0xb3, 0x73, 0xdf, 0xf9, 0x79, 0xee, 0x3b, 0x5f,
+ 0x2f, 0xfc, 0xa5, 0xb3, 0x0b, 0x7f, 0xe9, 0xc7, 0x85, 0xbf, 0x34, 0xee, 0xe8, 0x5f, 0x9e, 0xfe,
+ 0x0e, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x76, 0x09, 0x97, 0x45, 0x06, 0x00, 0x00,
}
func (m *Image) Marshal() (dAtA []byte, err error) {
@@ -1228,6 +1236,46 @@
return i, nil
}
+func (m *ResultFaceExtCom) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalTo(dAtA)
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *ResultFaceExtCom) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.Feats) > 0 {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(len(m.Feats)))
+ i += copy(dAtA[i:], m.Feats)
+ }
+ if len(m.Comp) > 0 {
+ dAtA[i] = 0x12
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(len(m.Comp)))
+ i += copy(dAtA[i:], m.Comp)
+ }
+ if m.Pos != nil {
+ dAtA[i] = 0x1a
+ i++
+ i = encodeVarintSdk(dAtA, i, uint64(m.Pos.Size()))
+ n16, err16 := m.Pos.MarshalTo(dAtA[i:])
+ if err16 != nil {
+ return 0, err16
+ }
+ i += n16
+ }
+ return i, nil
+}
+
func (m *ParamFaceFeature) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -1243,43 +1291,17 @@
_ = i
var l int
_ = l
- if len(m.Feats) > 0 {
- for _, b := range m.Feats {
- dAtA[i] = 0xa
+ if len(m.ExtComp) > 0 {
+ for _, msg := range m.ExtComp {
+ dAtA[i] = 0x12
i++
- i = encodeVarintSdk(dAtA, i, uint64(len(b)))
- i += copy(dAtA[i:], b)
+ i = encodeVarintSdk(dAtA, i, uint64(msg.Size()))
+ n, err := msg.MarshalTo(dAtA[i:])
+ if err != nil {
+ return 0, err
+ }
+ i += n
}
- }
- return i, nil
-}
-
-func (m *ParamFaceCompare) 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 *ParamFaceCompare) MarshalTo(dAtA []byte) (int, error) {
- var i int
- _ = i
- var l int
- _ = l
- if len(m.Feat1) > 0 {
- dAtA[i] = 0xa
- i++
- i = encodeVarintSdk(dAtA, i, uint64(len(m.Feat1)))
- i += copy(dAtA[i:], m.Feat1)
- }
- if len(m.Feat2) > 0 {
- dAtA[i] = 0x12
- i++
- i = encodeVarintSdk(dAtA, i, uint64(len(m.Feat2)))
- i += copy(dAtA[i:], m.Feat2)
}
return i, nil
}
@@ -1528,34 +1550,38 @@
return n
}
+func (m *ResultFaceExtCom) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Feats)
+ if l > 0 {
+ n += 1 + l + sovSdk(uint64(l))
+ }
+ l = len(m.Comp)
+ if l > 0 {
+ n += 1 + l + sovSdk(uint64(l))
+ }
+ if m.Pos != nil {
+ l = m.Pos.Size()
+ n += 1 + l + sovSdk(uint64(l))
+ }
+ return n
+}
+
func (m *ParamFaceFeature) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
- if len(m.Feats) > 0 {
- for _, b := range m.Feats {
- l = len(b)
+ if len(m.ExtComp) > 0 {
+ for _, e := range m.ExtComp {
+ l = e.Size()
n += 1 + l + sovSdk(uint64(l))
}
- }
- return n
-}
-
-func (m *ParamFaceCompare) Size() (n int) {
- if m == nil {
- return 0
- }
- var l int
- _ = l
- l = len(m.Feat1)
- if l > 0 {
- n += 1 + l + sovSdk(uint64(l))
- }
- l = len(m.Feat2)
- if l > 0 {
- n += 1 + l + sovSdk(uint64(l))
}
return n
}
@@ -3027,7 +3053,7 @@
}
return nil
}
-func (m *ParamFaceFeature) Unmarshal(dAtA []byte) error {
+func (m *ResultFaceExtCom) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3050,10 +3076,10 @@
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: ParamFaceFeature: wiretype end group for non-group")
+ return fmt.Errorf("proto: ResultFaceExtCom: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: ParamFaceFeature: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: ResultFaceExtCom: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -3085,8 +3111,80 @@
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Feats = append(m.Feats, make([]byte, postIndex-iNdEx))
- copy(m.Feats[len(m.Feats)-1], dAtA[iNdEx:postIndex])
+ m.Feats = append(m.Feats[:0], dAtA[iNdEx:postIndex]...)
+ if m.Feats == nil {
+ m.Feats = []byte{}
+ }
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Comp", wireType)
+ }
+ var byteLen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ byteLen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if byteLen < 0 {
+ return ErrInvalidLengthSdk
+ }
+ postIndex := iNdEx + byteLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Comp = append(m.Comp[:0], dAtA[iNdEx:postIndex]...)
+ if m.Comp == nil {
+ m.Comp = []byte{}
+ }
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Pos", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSdk
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthSdk
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthSdk
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ if m.Pos == nil {
+ m.Pos = &ResultFaceDetect{}
+ }
+ if err := m.Pos.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
iNdEx = postIndex
default:
iNdEx = preIndex
@@ -3112,7 +3210,7 @@
}
return nil
}
-func (m *ParamFaceCompare) Unmarshal(dAtA []byte) error {
+func (m *ParamFaceFeature) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -3135,51 +3233,17 @@
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: ParamFaceCompare: wiretype end group for non-group")
+ return fmt.Errorf("proto: ParamFaceFeature: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: ParamFaceCompare: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: ParamFaceFeature: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
- case 1:
- if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Feat1", wireType)
- }
- var byteLen int
- for shift := uint(0); ; shift += 7 {
- if shift >= 64 {
- return ErrIntOverflowSdk
- }
- if iNdEx >= l {
- return io.ErrUnexpectedEOF
- }
- b := dAtA[iNdEx]
- iNdEx++
- byteLen |= int(b&0x7F) << shift
- if b < 0x80 {
- break
- }
- }
- if byteLen < 0 {
- return ErrInvalidLengthSdk
- }
- postIndex := iNdEx + byteLen
- if postIndex < 0 {
- return ErrInvalidLengthSdk
- }
- if postIndex > l {
- return io.ErrUnexpectedEOF
- }
- m.Feat1 = append(m.Feat1[:0], dAtA[iNdEx:postIndex]...)
- if m.Feat1 == nil {
- m.Feat1 = []byte{}
- }
- iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Feat2", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ExtComp", wireType)
}
- var byteLen int
+ var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowSdk
@@ -3189,24 +3253,24 @@
}
b := dAtA[iNdEx]
iNdEx++
- byteLen |= int(b&0x7F) << shift
+ msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
- if byteLen < 0 {
+ if msglen < 0 {
return ErrInvalidLengthSdk
}
- postIndex := iNdEx + byteLen
+ postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthSdk
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Feat2 = append(m.Feat2[:0], dAtA[iNdEx:postIndex]...)
- if m.Feat2 == nil {
- m.Feat2 = []byte{}
+ m.ExtComp = append(m.ExtComp, &ResultFaceExtCom{})
+ if err := m.ExtComp[len(m.ExtComp)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
}
iNdEx = postIndex
default:
diff --git a/sdk.proto b/sdk.proto
index 3a8b26d..13aa84b 100644
--- a/sdk.proto
+++ b/sdk.proto
@@ -61,16 +61,17 @@
message ParamFacePos{
repeated ResultFaceDetect faces = 1;
}
-message ParamFaceFeature{
- repeated bytes feats = 1;
+
+message ResultFaceExtCom{
+ bytes feats = 1;
+ bytes comp = 2;
+ ResultFaceDetect pos = 3;
}
-// sdk face extract
-message ParamFaceCompare{
- bytes feat1 = 1;
- bytes feat2 = 2;
+message ParamFaceFeature{
+ repeated ResultFaceExtCom extComp = 2;
}
// sdk yolo detect
message ParamYoloObj{
repeated ObjInfo infos = 1;
-}
\ No newline at end of file
+}
diff --git a/sysset.pb.go b/sysset.pb.go
index 72a5a57..c91b5c2 100644
--- a/sysset.pb.go
+++ b/sysset.pb.go
@@ -1,11 +1,12 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
+// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: sysset.proto
package protomsg
import (
fmt "fmt"
- proto "github.com/golang/protobuf/proto"
+ proto "github.com/gogo/protobuf/proto"
+ io "io"
math "math"
)
@@ -18,28 +19,25 @@
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
+const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type LocalConfig struct {
- ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
- ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
- ServerType int32 `protobuf:"varint,3,opt,name=server_type,json=serverType,proto3" json:"server_type,omitempty"`
- ServerIp string `protobuf:"bytes,4,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"`
- AlarmIp string `protobuf:"bytes,5,opt,name=alarm_ip,json=alarmIp,proto3" json:"alarm_ip,omitempty"`
- AlarmPort int32 `protobuf:"varint,6,opt,name=alarm_port,json=alarmPort,proto3" json:"alarm_port,omitempty"`
- WebPicIp string `protobuf:"bytes,7,opt,name=web_pic_ip,json=webPicIp,proto3" json:"web_pic_ip,omitempty"`
- WebPicPort int32 `protobuf:"varint,8,opt,name=web_pic_port,json=webPicPort,proto3" json:"web_pic_port,omitempty"`
- EsPicIp string `protobuf:"bytes,9,opt,name=es_pic_ip,json=esPicIp,proto3" json:"es_pic_ip,omitempty"`
- EsPicPort int32 `protobuf:"varint,10,opt,name=es_pic_port,json=esPicPort,proto3" json:"es_pic_port,omitempty"`
- CutMaxDuration int32 `protobuf:"varint,11,opt,name=cut_max_duration,json=cutMaxDuration,proto3" json:"cut_max_duration,omitempty"`
- CutMinDuration int32 `protobuf:"varint,12,opt,name=cut_min_duration,json=cutMinDuration,proto3" json:"cut_min_duration,omitempty"`
- Reserved string `protobuf:"bytes,13,opt,name=reserved,proto3" json:"reserved,omitempty"`
- GateWay string `protobuf:"bytes,14,opt,name=gate_way,json=gateWay,proto3" json:"gate_way,omitempty"`
- NetMask string `protobuf:"bytes,15,opt,name=net_mask,json=netMask,proto3" json:"net_mask,omitempty"`
- RealMax int32 `protobuf:"varint,16,opt,name=real_max,json=realMax,proto3" json:"real_max,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
+ ServerName string `protobuf:"bytes,2,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
+ ServerType int32 `protobuf:"varint,3,opt,name=server_type,json=serverType,proto3" json:"server_type,omitempty"`
+ ServerIp string `protobuf:"bytes,4,opt,name=server_ip,json=serverIp,proto3" json:"server_ip,omitempty"`
+ AlarmIp string `protobuf:"bytes,5,opt,name=alarm_ip,json=alarmIp,proto3" json:"alarm_ip,omitempty"`
+ AlarmPort int32 `protobuf:"varint,6,opt,name=alarm_port,json=alarmPort,proto3" json:"alarm_port,omitempty"`
+ WebPicIp string `protobuf:"bytes,7,opt,name=web_pic_ip,json=webPicIp,proto3" json:"web_pic_ip,omitempty"`
+ WebPicPort int32 `protobuf:"varint,8,opt,name=web_pic_port,json=webPicPort,proto3" json:"web_pic_port,omitempty"`
+ EsPicIp string `protobuf:"bytes,9,opt,name=es_pic_ip,json=esPicIp,proto3" json:"es_pic_ip,omitempty"`
+ EsPicPort int32 `protobuf:"varint,10,opt,name=es_pic_port,json=esPicPort,proto3" json:"es_pic_port,omitempty"`
+ CutMaxDuration int32 `protobuf:"varint,11,opt,name=cut_max_duration,json=cutMaxDuration,proto3" json:"cut_max_duration,omitempty"`
+ CutMinDuration int32 `protobuf:"varint,12,opt,name=cut_min_duration,json=cutMinDuration,proto3" json:"cut_min_duration,omitempty"`
+ Reserved string `protobuf:"bytes,13,opt,name=reserved,proto3" json:"reserved,omitempty"`
+ GateWay string `protobuf:"bytes,14,opt,name=gate_way,json=gateWay,proto3" json:"gate_way,omitempty"`
+ NetMask string `protobuf:"bytes,15,opt,name=net_mask,json=netMask,proto3" json:"net_mask,omitempty"`
+ RealMax int32 `protobuf:"varint,16,opt,name=real_max,json=realMax,proto3" json:"real_max,omitempty"`
}
func (m *LocalConfig) Reset() { *m = LocalConfig{} }
@@ -48,18 +46,26 @@
func (*LocalConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_5be590c6b2a0d755, []int{0}
}
-
func (m *LocalConfig) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_LocalConfig.Unmarshal(m, b)
+ return m.Unmarshal(b)
}
func (m *LocalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_LocalConfig.Marshal(b, m, deterministic)
+ if deterministic {
+ return xxx_messageInfo_LocalConfig.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
}
func (m *LocalConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalConfig.Merge(m, src)
}
func (m *LocalConfig) XXX_Size() int {
- return xxx_messageInfo_LocalConfig.Size(m)
+ return m.Size()
}
func (m *LocalConfig) XXX_DiscardUnknown() {
xxx_messageInfo_LocalConfig.DiscardUnknown(m)
@@ -180,13 +186,10 @@
}
type PollConfig struct {
- ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
- PollPeriod int32 `protobuf:"varint,2,opt,name=poll_period,json=pollPeriod,proto3" json:"poll_period,omitempty"`
- Delay int32 `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"`
- Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ ServerId string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
+ PollPeriod int32 `protobuf:"varint,2,opt,name=poll_period,json=pollPeriod,proto3" json:"poll_period,omitempty"`
+ Delay int32 `protobuf:"varint,3,opt,name=delay,proto3" json:"delay,omitempty"`
+ Enable bool `protobuf:"varint,4,opt,name=enable,proto3" json:"enable,omitempty"`
}
func (m *PollConfig) Reset() { *m = PollConfig{} }
@@ -195,18 +198,26 @@
func (*PollConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_5be590c6b2a0d755, []int{1}
}
-
func (m *PollConfig) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_PollConfig.Unmarshal(m, b)
+ return m.Unmarshal(b)
}
func (m *PollConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_PollConfig.Marshal(b, m, deterministic)
+ if deterministic {
+ return xxx_messageInfo_PollConfig.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
}
func (m *PollConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_PollConfig.Merge(m, src)
}
func (m *PollConfig) XXX_Size() int {
- return xxx_messageInfo_PollConfig.Size(m)
+ return m.Size()
}
func (m *PollConfig) XXX_DiscardUnknown() {
xxx_messageInfo_PollConfig.DiscardUnknown(m)
@@ -243,14 +254,11 @@
}
type Cluster struct {
- ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
- ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
- Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
- VirtualIp string `protobuf:"bytes,4,opt,name=virtual_ip,json=virtualIp,proto3" json:"virtual_ip,omitempty"`
- Nodes []*ClusterNode `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
+ ClusterName string `protobuf:"bytes,2,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
+ Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
+ VirtualIp string `protobuf:"bytes,4,opt,name=virtual_ip,json=virtualIp,proto3" json:"virtual_ip,omitempty"`
+ Nodes []*ClusterNode `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
}
func (m *Cluster) Reset() { *m = Cluster{} }
@@ -259,18 +267,26 @@
func (*Cluster) Descriptor() ([]byte, []int) {
return fileDescriptor_5be590c6b2a0d755, []int{2}
}
-
func (m *Cluster) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Cluster.Unmarshal(m, b)
+ return m.Unmarshal(b)
}
func (m *Cluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Cluster.Marshal(b, m, deterministic)
+ if deterministic {
+ return xxx_messageInfo_Cluster.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
}
func (m *Cluster) XXX_Merge(src proto.Message) {
xxx_messageInfo_Cluster.Merge(m, src)
}
func (m *Cluster) XXX_Size() int {
- return xxx_messageInfo_Cluster.Size(m)
+ return m.Size()
}
func (m *Cluster) XXX_DiscardUnknown() {
xxx_messageInfo_Cluster.DiscardUnknown(m)
@@ -314,16 +330,13 @@
}
type ClusterNode struct {
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
- ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
- ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
- ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
- NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
- NodeIp string `protobuf:"bytes,6,opt,name=node_ip,json=nodeIp,proto3" json:"node_ip,omitempty"`
- CreateTime string `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
+ ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
+ ServerId string `protobuf:"bytes,3,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
+ ServerName string `protobuf:"bytes,4,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"`
+ NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
+ NodeIp string `protobuf:"bytes,6,opt,name=node_ip,json=nodeIp,proto3" json:"node_ip,omitempty"`
+ CreateTime string `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
}
func (m *ClusterNode) Reset() { *m = ClusterNode{} }
@@ -332,18 +345,26 @@
func (*ClusterNode) Descriptor() ([]byte, []int) {
return fileDescriptor_5be590c6b2a0d755, []int{3}
}
-
func (m *ClusterNode) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_ClusterNode.Unmarshal(m, b)
+ return m.Unmarshal(b)
}
func (m *ClusterNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_ClusterNode.Marshal(b, m, deterministic)
+ if deterministic {
+ return xxx_messageInfo_ClusterNode.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalTo(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
}
func (m *ClusterNode) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClusterNode.Merge(m, src)
}
func (m *ClusterNode) XXX_Size() int {
- return xxx_messageInfo_ClusterNode.Size(m)
+ return m.Size()
}
func (m *ClusterNode) XXX_DiscardUnknown() {
xxx_messageInfo_ClusterNode.DiscardUnknown(m)
@@ -410,39 +431,1706 @@
func init() { proto.RegisterFile("sysset.proto", fileDescriptor_5be590c6b2a0d755) }
var fileDescriptor_5be590c6b2a0d755 = []byte{
- // 531 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0xcd, 0x8e, 0xda, 0x3e,
- 0x10, 0x17, 0x2c, 0x81, 0x64, 0xc2, 0x9f, 0xff, 0xca, 0xea, 0x87, 0x4b, 0xbf, 0x28, 0x27, 0xa4,
- 0x4a, 0x1c, 0xda, 0x47, 0xd8, 0x5e, 0x22, 0x95, 0x15, 0x42, 0x2b, 0xf5, 0x18, 0x99, 0x78, 0x8a,
- 0xac, 0x4d, 0x62, 0xcb, 0x36, 0x0b, 0xb9, 0xf5, 0x9d, 0xfa, 0x1c, 0x7d, 0xa7, 0xca, 0x76,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x89, 0x5d, 0xf6, 0x6b, 0xa1, 0xed, 0x92, 0x15, 0xdb,
+ 0xc1, 0x4b, 0x1a, 0x64, 0xa2, 0xc8, 0x1b, 0xe8, 0x56, 0x92, 0xa3, 0xa1, 0xdd, 0xe1, 0xfe, 0x38,
+ 0x7d, 0xfb, 0xf8, 0xa4, 0xdd, 0x8f, 0x93, 0xa6, 0xbd, 0x73, 0xc9, 0x71, 0x16, 0x34, 0xa3, 0x1f,
+ 0x11, 0xa4, 0x3b, 0x30, 0x39, 0x84, 0xce, 0xa6, 0xe3, 0x8e, 0xe0, 0x0f, 0x4e, 0xd2, 0x79, 0x78,
+ 0x92, 0x7b, 0x17, 0xbc, 0xff, 0xf7, 0x0d, 0x3b, 0xf8, 0x63, 0xc3, 0x9e, 0x42, 0xdf, 0x75, 0xe1,
+ 0xbc, 0x61, 0x45, 0x7a, 0x2e, 0x9c, 0xf0, 0x2d, 0xa1, 0xfc, 0x7a, 0xb4, 0x84, 0x72, 0x29, 0x73,
+ 0x8d, 0x6e, 0x62, 0xac, 0x28, 0xb1, 0x59, 0x0e, 0x08, 0xd0, 0x85, 0x28, 0xf1, 0x3d, 0xfd, 0x7e,
+ 0x9b, 0x45, 0x37, 0xb7, 0x59, 0xf4, 0xeb, 0x36, 0x8b, 0xbe, 0xde, 0x65, 0x7b, 0x37, 0x77, 0xd9,
+ 0xde, 0xcf, 0xbb, 0x6c, 0x6f, 0xd1, 0xf3, 0xd7, 0xf0, 0xee, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff,
+ 0x77, 0xe6, 0x9a, 0x28, 0x3d, 0x04, 0x00, 0x00,
}
+
+func (m *LocalConfig) 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 *LocalConfig) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.ServerId) > 0 {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId)))
+ i += copy(dAtA[i:], m.ServerId)
+ }
+ if len(m.ServerName) > 0 {
+ dAtA[i] = 0x12
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerName)))
+ i += copy(dAtA[i:], m.ServerName)
+ }
+ if m.ServerType != 0 {
+ dAtA[i] = 0x18
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.ServerType))
+ }
+ if len(m.ServerIp) > 0 {
+ dAtA[i] = 0x22
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerIp)))
+ i += copy(dAtA[i:], m.ServerIp)
+ }
+ if len(m.AlarmIp) > 0 {
+ dAtA[i] = 0x2a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.AlarmIp)))
+ i += copy(dAtA[i:], m.AlarmIp)
+ }
+ if m.AlarmPort != 0 {
+ dAtA[i] = 0x30
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.AlarmPort))
+ }
+ if len(m.WebPicIp) > 0 {
+ dAtA[i] = 0x3a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.WebPicIp)))
+ i += copy(dAtA[i:], m.WebPicIp)
+ }
+ if m.WebPicPort != 0 {
+ dAtA[i] = 0x40
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.WebPicPort))
+ }
+ if len(m.EsPicIp) > 0 {
+ dAtA[i] = 0x4a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.EsPicIp)))
+ i += copy(dAtA[i:], m.EsPicIp)
+ }
+ if m.EsPicPort != 0 {
+ dAtA[i] = 0x50
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.EsPicPort))
+ }
+ if m.CutMaxDuration != 0 {
+ dAtA[i] = 0x58
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.CutMaxDuration))
+ }
+ if m.CutMinDuration != 0 {
+ dAtA[i] = 0x60
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.CutMinDuration))
+ }
+ if len(m.Reserved) > 0 {
+ dAtA[i] = 0x6a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.Reserved)))
+ i += copy(dAtA[i:], m.Reserved)
+ }
+ if len(m.GateWay) > 0 {
+ dAtA[i] = 0x72
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.GateWay)))
+ i += copy(dAtA[i:], m.GateWay)
+ }
+ if len(m.NetMask) > 0 {
+ dAtA[i] = 0x7a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.NetMask)))
+ i += copy(dAtA[i:], m.NetMask)
+ }
+ if m.RealMax != 0 {
+ dAtA[i] = 0x80
+ i++
+ dAtA[i] = 0x1
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.RealMax))
+ }
+ return i, nil
+}
+
+func (m *PollConfig) 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 *PollConfig) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.ServerId) > 0 {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId)))
+ i += copy(dAtA[i:], m.ServerId)
+ }
+ if m.PollPeriod != 0 {
+ dAtA[i] = 0x10
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.PollPeriod))
+ }
+ if m.Delay != 0 {
+ dAtA[i] = 0x18
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(m.Delay))
+ }
+ if m.Enable {
+ dAtA[i] = 0x20
+ i++
+ if m.Enable {
+ dAtA[i] = 1
+ } else {
+ dAtA[i] = 0
+ }
+ i++
+ }
+ return i, nil
+}
+
+func (m *Cluster) 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 *Cluster) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.ClusterId) > 0 {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterId)))
+ i += copy(dAtA[i:], m.ClusterId)
+ }
+ if len(m.ClusterName) > 0 {
+ dAtA[i] = 0x12
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterName)))
+ i += copy(dAtA[i:], m.ClusterName)
+ }
+ if len(m.Password) > 0 {
+ dAtA[i] = 0x1a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.Password)))
+ i += copy(dAtA[i:], m.Password)
+ }
+ if len(m.VirtualIp) > 0 {
+ dAtA[i] = 0x22
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.VirtualIp)))
+ i += copy(dAtA[i:], m.VirtualIp)
+ }
+ if len(m.Nodes) > 0 {
+ for _, msg := range m.Nodes {
+ dAtA[i] = 0x2a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(msg.Size()))
+ n, err := msg.MarshalTo(dAtA[i:])
+ if err != nil {
+ return 0, err
+ }
+ i += n
+ }
+ }
+ return i, nil
+}
+
+func (m *ClusterNode) 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 *ClusterNode) MarshalTo(dAtA []byte) (int, error) {
+ var i int
+ _ = i
+ var l int
+ _ = l
+ if len(m.Id) > 0 {
+ dAtA[i] = 0xa
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.Id)))
+ i += copy(dAtA[i:], m.Id)
+ }
+ if len(m.ClusterId) > 0 {
+ dAtA[i] = 0x12
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterId)))
+ i += copy(dAtA[i:], m.ClusterId)
+ }
+ if len(m.ServerId) > 0 {
+ dAtA[i] = 0x1a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId)))
+ i += copy(dAtA[i:], m.ServerId)
+ }
+ if len(m.ServerName) > 0 {
+ dAtA[i] = 0x22
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerName)))
+ i += copy(dAtA[i:], m.ServerName)
+ }
+ if len(m.NodeId) > 0 {
+ dAtA[i] = 0x2a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.NodeId)))
+ i += copy(dAtA[i:], m.NodeId)
+ }
+ if len(m.NodeIp) > 0 {
+ dAtA[i] = 0x32
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.NodeIp)))
+ i += copy(dAtA[i:], m.NodeIp)
+ }
+ if len(m.CreateTime) > 0 {
+ dAtA[i] = 0x3a
+ i++
+ i = encodeVarintSysset(dAtA, i, uint64(len(m.CreateTime)))
+ i += copy(dAtA[i:], m.CreateTime)
+ }
+ return i, nil
+}
+
+func encodeVarintSysset(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 *LocalConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ServerId)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.ServerName)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ if m.ServerType != 0 {
+ n += 1 + sovSysset(uint64(m.ServerType))
+ }
+ l = len(m.ServerIp)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.AlarmIp)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ if m.AlarmPort != 0 {
+ n += 1 + sovSysset(uint64(m.AlarmPort))
+ }
+ l = len(m.WebPicIp)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ if m.WebPicPort != 0 {
+ n += 1 + sovSysset(uint64(m.WebPicPort))
+ }
+ l = len(m.EsPicIp)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ if m.EsPicPort != 0 {
+ n += 1 + sovSysset(uint64(m.EsPicPort))
+ }
+ if m.CutMaxDuration != 0 {
+ n += 1 + sovSysset(uint64(m.CutMaxDuration))
+ }
+ if m.CutMinDuration != 0 {
+ n += 1 + sovSysset(uint64(m.CutMinDuration))
+ }
+ l = len(m.Reserved)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.GateWay)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.NetMask)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ if m.RealMax != 0 {
+ n += 2 + sovSysset(uint64(m.RealMax))
+ }
+ return n
+}
+
+func (m *PollConfig) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ServerId)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ if m.PollPeriod != 0 {
+ n += 1 + sovSysset(uint64(m.PollPeriod))
+ }
+ if m.Delay != 0 {
+ n += 1 + sovSysset(uint64(m.Delay))
+ }
+ if m.Enable {
+ n += 2
+ }
+ return n
+}
+
+func (m *Cluster) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.ClusterId)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.ClusterName)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.Password)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.VirtualIp)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ if len(m.Nodes) > 0 {
+ for _, e := range m.Nodes {
+ l = e.Size()
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ }
+ return n
+}
+
+func (m *ClusterNode) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = len(m.Id)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.ClusterId)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.ServerId)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.ServerName)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.NodeId)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.NodeIp)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ l = len(m.CreateTime)
+ if l > 0 {
+ n += 1 + l + sovSysset(uint64(l))
+ }
+ return n
+}
+
+func sovSysset(x uint64) (n int) {
+ for {
+ n++
+ x >>= 7
+ if x == 0 {
+ break
+ }
+ }
+ return n
+}
+func sozSysset(x uint64) (n int) {
+ return sovSysset(uint64((x << 1) ^ uint64((int64(x) >> 63))))
+}
+func (m *LocalConfig) 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 ErrIntOverflowSysset
+ }
+ 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: LocalConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: LocalConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerType", wireType)
+ }
+ m.ServerType = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.ServerType |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerIp", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerIp = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AlarmIp", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.AlarmIp = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field AlarmPort", wireType)
+ }
+ m.AlarmPort = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.AlarmPort |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 7:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field WebPicIp", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.WebPicIp = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 8:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field WebPicPort", wireType)
+ }
+ m.WebPicPort = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.WebPicPort |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 9:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EsPicIp", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.EsPicIp = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 10:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field EsPicPort", wireType)
+ }
+ m.EsPicPort = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.EsPicPort |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 11:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CutMaxDuration", wireType)
+ }
+ m.CutMaxDuration = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.CutMaxDuration |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 12:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field CutMinDuration", wireType)
+ }
+ m.CutMinDuration = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.CutMinDuration |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 13:
+ 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 ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Reserved = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 14:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field GateWay", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.GateWay = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 15:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NetMask", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.NetMask = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 16:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field RealMax", wireType)
+ }
+ m.RealMax = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.RealMax |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ default:
+ iNdEx = preIndex
+ skippy, err := skipSysset(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *PollConfig) 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 ErrIntOverflowSysset
+ }
+ 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: PollConfig: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: PollConfig: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field PollPeriod", wireType)
+ }
+ m.PollPeriod = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.PollPeriod |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 3:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Delay", wireType)
+ }
+ m.Delay = 0
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ m.Delay |= int32(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ case 4:
+ if wireType != 0 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Enable", wireType)
+ }
+ var v int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ v |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ m.Enable = bool(v != 0)
+ default:
+ iNdEx = preIndex
+ skippy, err := skipSysset(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *Cluster) 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 ErrIntOverflowSysset
+ }
+ 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: Cluster: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: Cluster: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClusterId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 2:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClusterName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Password = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field VirtualIp", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.VirtualIp = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType)
+ }
+ var msglen int
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ msglen |= int(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ if msglen < 0 {
+ return ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + msglen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.Nodes = append(m.Nodes, &ClusterNode{})
+ if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ return err
+ }
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipSysset(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *ClusterNode) 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 ErrIntOverflowSysset
+ }
+ 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: ClusterNode: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: ClusterNode: 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 ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ 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 ClusterId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ClusterId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 3:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 4:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field ServerName", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.ServerName = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 5:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.NodeId = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 6:
+ if wireType != 2 {
+ return fmt.Errorf("proto: wrong wireType = %d for field NodeIp", wireType)
+ }
+ var stringLen uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.NodeIp = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ case 7:
+ 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 ErrIntOverflowSysset
+ }
+ 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 ErrInvalidLengthSysset
+ }
+ postIndex := iNdEx + intStringLen
+ if postIndex < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if postIndex > l {
+ return io.ErrUnexpectedEOF
+ }
+ m.CreateTime = string(dAtA[iNdEx:postIndex])
+ iNdEx = postIndex
+ default:
+ iNdEx = preIndex
+ skippy, err := skipSysset(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if skippy < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) < 0 {
+ return ErrInvalidLengthSysset
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func skipSysset(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, ErrIntOverflowSysset
+ }
+ 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, ErrIntOverflowSysset
+ }
+ 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, ErrIntOverflowSysset
+ }
+ 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, ErrInvalidLengthSysset
+ }
+ iNdEx += length
+ if iNdEx < 0 {
+ return 0, ErrInvalidLengthSysset
+ }
+ return iNdEx, nil
+ case 3:
+ for {
+ var innerWire uint64
+ var start int = iNdEx
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return 0, ErrIntOverflowSysset
+ }
+ 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 := skipSysset(dAtA[start:])
+ if err != nil {
+ return 0, err
+ }
+ iNdEx = start + next
+ if iNdEx < 0 {
+ return 0, ErrInvalidLengthSysset
+ }
+ }
+ 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 (
+ ErrInvalidLengthSysset = fmt.Errorf("proto: negative length found during unmarshaling")
+ ErrIntOverflowSysset = fmt.Errorf("proto: integer overflow")
+)
--
Gitblit v1.8.0