From f1eee4a8814b4a4f3f8b06d015f90cef5a3adc67 Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期四, 13 二月 2020 19:56:38 +0800
Subject: [PATCH] mk use gogofaster

---
 sysset.pb.go |  568 +++++++++++++++++++++++++++++---------------------------
 1 files changed, 297 insertions(+), 271 deletions(-)

diff --git a/sysset.pb.go b/sysset.pb.go
index f762669..c0a611d 100644
--- a/sysset.pb.go
+++ b/sysset.pb.go
@@ -20,7 +20,7 @@
 // is compatible with the proto package it is being compiled against.
 // A compilation error at this line likely means your copy of the
 // proto package needs to be updated.
-const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
+const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
 
 type LocalConfig struct {
 	ServerId           string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
@@ -57,7 +57,7 @@
 		return xxx_messageInfo_LocalConfig.Marshal(b, m, deterministic)
 	} else {
 		b = b[:cap(b)]
-		n, err := m.MarshalTo(b)
+		n, err := m.MarshalToSizedBuffer(b)
 		if err != nil {
 			return nil, err
 		}
@@ -224,7 +224,7 @@
 		return xxx_messageInfo_PollConfig.Marshal(b, m, deterministic)
 	} else {
 		b = b[:cap(b)]
-		n, err := m.MarshalTo(b)
+		n, err := m.MarshalToSizedBuffer(b)
 		if err != nil {
 			return nil, err
 		}
@@ -300,7 +300,7 @@
 		return xxx_messageInfo_Cluster.Marshal(b, m, deterministic)
 	} else {
 		b = b[:cap(b)]
-		n, err := m.MarshalTo(b)
+		n, err := m.MarshalToSizedBuffer(b)
 		if err != nil {
 			return nil, err
 		}
@@ -378,7 +378,7 @@
 		return xxx_messageInfo_ClusterNode.Marshal(b, m, deterministic)
 	} else {
 		b = b[:cap(b)]
-		n, err := m.MarshalTo(b)
+		n, err := m.MarshalToSizedBuffer(b)
 		if err != nil {
 			return nil, err
 		}
@@ -467,7 +467,7 @@
 		return xxx_messageInfo_ResourceConfig.Marshal(b, m, deterministic)
 	} else {
 		b = b[:cap(b)]
-		n, err := m.MarshalTo(b)
+		n, err := m.MarshalToSizedBuffer(b)
 		if err != nil {
 			return nil, err
 		}
@@ -574,7 +574,7 @@
 func (m *LocalConfig) Marshal() (dAtA []byte, err error) {
 	size := m.Size()
 	dAtA = make([]byte, size)
-	n, err := m.MarshalTo(dAtA)
+	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 	if err != nil {
 		return nil, err
 	}
@@ -582,122 +582,136 @@
 }
 
 func (m *LocalConfig) MarshalTo(dAtA []byte) (int, error) {
-	var i int
+	size := m.Size()
+	return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *LocalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+	i := len(dAtA)
 	_ = 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++
+	if m.AlarmThreshold != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.AlarmThreshold))
+		i--
 		dAtA[i] = 0x1
-		i++
-		i = encodeVarintSysset(dAtA, i, uint64(m.RealMax))
+		i--
+		dAtA[i] = 0x90
 	}
 	if m.AlarmThresholdType != 0 {
-		dAtA[i] = 0x88
-		i++
-		dAtA[i] = 0x1
-		i++
 		i = encodeVarintSysset(dAtA, i, uint64(m.AlarmThresholdType))
-	}
-	if m.AlarmThreshold != 0 {
-		dAtA[i] = 0x90
-		i++
+		i--
 		dAtA[i] = 0x1
-		i++
-		i = encodeVarintSysset(dAtA, i, uint64(m.AlarmThreshold))
+		i--
+		dAtA[i] = 0x88
 	}
-	return i, nil
+	if m.RealMax != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.RealMax))
+		i--
+		dAtA[i] = 0x1
+		i--
+		dAtA[i] = 0x80
+	}
+	if len(m.NetMask) > 0 {
+		i -= len(m.NetMask)
+		copy(dAtA[i:], m.NetMask)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.NetMask)))
+		i--
+		dAtA[i] = 0x7a
+	}
+	if len(m.GateWay) > 0 {
+		i -= len(m.GateWay)
+		copy(dAtA[i:], m.GateWay)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.GateWay)))
+		i--
+		dAtA[i] = 0x72
+	}
+	if len(m.Reserved) > 0 {
+		i -= len(m.Reserved)
+		copy(dAtA[i:], m.Reserved)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.Reserved)))
+		i--
+		dAtA[i] = 0x6a
+	}
+	if m.CutMinDuration != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.CutMinDuration))
+		i--
+		dAtA[i] = 0x60
+	}
+	if m.CutMaxDuration != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.CutMaxDuration))
+		i--
+		dAtA[i] = 0x58
+	}
+	if m.EsPicPort != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.EsPicPort))
+		i--
+		dAtA[i] = 0x50
+	}
+	if len(m.EsPicIp) > 0 {
+		i -= len(m.EsPicIp)
+		copy(dAtA[i:], m.EsPicIp)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.EsPicIp)))
+		i--
+		dAtA[i] = 0x4a
+	}
+	if m.WebPicPort != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.WebPicPort))
+		i--
+		dAtA[i] = 0x40
+	}
+	if len(m.WebPicIp) > 0 {
+		i -= len(m.WebPicIp)
+		copy(dAtA[i:], m.WebPicIp)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.WebPicIp)))
+		i--
+		dAtA[i] = 0x3a
+	}
+	if m.AlarmPort != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.AlarmPort))
+		i--
+		dAtA[i] = 0x30
+	}
+	if len(m.AlarmIp) > 0 {
+		i -= len(m.AlarmIp)
+		copy(dAtA[i:], m.AlarmIp)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.AlarmIp)))
+		i--
+		dAtA[i] = 0x2a
+	}
+	if len(m.ServerIp) > 0 {
+		i -= len(m.ServerIp)
+		copy(dAtA[i:], m.ServerIp)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerIp)))
+		i--
+		dAtA[i] = 0x22
+	}
+	if m.ServerType != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.ServerType))
+		i--
+		dAtA[i] = 0x18
+	}
+	if len(m.ServerName) > 0 {
+		i -= len(m.ServerName)
+		copy(dAtA[i:], m.ServerName)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerName)))
+		i--
+		dAtA[i] = 0x12
+	}
+	if len(m.ServerId) > 0 {
+		i -= len(m.ServerId)
+		copy(dAtA[i:], m.ServerId)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId)))
+		i--
+		dAtA[i] = 0xa
+	}
+	return len(dAtA) - i, nil
 }
 
 func (m *PollConfig) Marshal() (dAtA []byte, err error) {
 	size := m.Size()
 	dAtA = make([]byte, size)
-	n, err := m.MarshalTo(dAtA)
+	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 	if err != nil {
 		return nil, err
 	}
@@ -705,48 +719,54 @@
 }
 
 func (m *PollConfig) MarshalTo(dAtA []byte) (int, error) {
-	var i int
+	size := m.Size()
+	return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *PollConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+	i := len(dAtA)
 	_ = 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.PollChannelCount != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.PollChannelCount))
+		i--
+		dAtA[i] = 0x28
 	}
 	if m.Enable {
-		dAtA[i] = 0x20
-		i++
+		i--
 		if m.Enable {
 			dAtA[i] = 1
 		} else {
 			dAtA[i] = 0
 		}
-		i++
+		i--
+		dAtA[i] = 0x20
 	}
-	if m.PollChannelCount != 0 {
-		dAtA[i] = 0x28
-		i++
-		i = encodeVarintSysset(dAtA, i, uint64(m.PollChannelCount))
+	if m.Delay != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.Delay))
+		i--
+		dAtA[i] = 0x18
 	}
-	return i, nil
+	if m.PollPeriod != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.PollPeriod))
+		i--
+		dAtA[i] = 0x10
+	}
+	if len(m.ServerId) > 0 {
+		i -= len(m.ServerId)
+		copy(dAtA[i:], m.ServerId)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId)))
+		i--
+		dAtA[i] = 0xa
+	}
+	return len(dAtA) - i, nil
 }
 
 func (m *Cluster) Marshal() (dAtA []byte, err error) {
 	size := m.Size()
 	dAtA = make([]byte, size)
-	n, err := m.MarshalTo(dAtA)
+	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 	if err != nil {
 		return nil, err
 	}
@@ -754,53 +774,64 @@
 }
 
 func (m *Cluster) MarshalTo(dAtA []byte) (int, error) {
-	var i int
+	size := m.Size()
+	return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *Cluster) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+	i := len(dAtA)
 	_ = 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
+		for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- {
+			{
+				size, err := m.Nodes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
+				if err != nil {
+					return 0, err
+				}
+				i -= size
+				i = encodeVarintSysset(dAtA, i, uint64(size))
 			}
-			i += n
+			i--
+			dAtA[i] = 0x2a
 		}
 	}
-	return i, nil
+	if len(m.VirtualIp) > 0 {
+		i -= len(m.VirtualIp)
+		copy(dAtA[i:], m.VirtualIp)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.VirtualIp)))
+		i--
+		dAtA[i] = 0x22
+	}
+	if len(m.Password) > 0 {
+		i -= len(m.Password)
+		copy(dAtA[i:], m.Password)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.Password)))
+		i--
+		dAtA[i] = 0x1a
+	}
+	if len(m.ClusterName) > 0 {
+		i -= len(m.ClusterName)
+		copy(dAtA[i:], m.ClusterName)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterName)))
+		i--
+		dAtA[i] = 0x12
+	}
+	if len(m.ClusterId) > 0 {
+		i -= len(m.ClusterId)
+		copy(dAtA[i:], m.ClusterId)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterId)))
+		i--
+		dAtA[i] = 0xa
+	}
+	return len(dAtA) - i, nil
 }
 
 func (m *ClusterNode) Marshal() (dAtA []byte, err error) {
 	size := m.Size()
 	dAtA = make([]byte, size)
-	n, err := m.MarshalTo(dAtA)
+	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 	if err != nil {
 		return nil, err
 	}
@@ -808,59 +839,71 @@
 }
 
 func (m *ClusterNode) MarshalTo(dAtA []byte) (int, error) {
-	var i int
+	size := m.Size()
+	return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ClusterNode) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+	i := len(dAtA)
 	_ = 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.CreateTime) > 0 {
+		i -= len(m.CreateTime)
+		copy(dAtA[i:], m.CreateTime)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.CreateTime)))
+		i--
+		dAtA[i] = 0x3a
 	}
 	if len(m.NodeIp) > 0 {
-		dAtA[i] = 0x32
-		i++
+		i -= len(m.NodeIp)
+		copy(dAtA[i:], m.NodeIp)
 		i = encodeVarintSysset(dAtA, i, uint64(len(m.NodeIp)))
-		i += copy(dAtA[i:], m.NodeIp)
+		i--
+		dAtA[i] = 0x32
 	}
-	if len(m.CreateTime) > 0 {
-		dAtA[i] = 0x3a
-		i++
-		i = encodeVarintSysset(dAtA, i, uint64(len(m.CreateTime)))
-		i += copy(dAtA[i:], m.CreateTime)
+	if len(m.NodeId) > 0 {
+		i -= len(m.NodeId)
+		copy(dAtA[i:], m.NodeId)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.NodeId)))
+		i--
+		dAtA[i] = 0x2a
 	}
-	return i, nil
+	if len(m.ServerName) > 0 {
+		i -= len(m.ServerName)
+		copy(dAtA[i:], m.ServerName)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerName)))
+		i--
+		dAtA[i] = 0x22
+	}
+	if len(m.ServerId) > 0 {
+		i -= len(m.ServerId)
+		copy(dAtA[i:], m.ServerId)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ServerId)))
+		i--
+		dAtA[i] = 0x1a
+	}
+	if len(m.ClusterId) > 0 {
+		i -= len(m.ClusterId)
+		copy(dAtA[i:], m.ClusterId)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ClusterId)))
+		i--
+		dAtA[i] = 0x12
+	}
+	if len(m.Id) > 0 {
+		i -= len(m.Id)
+		copy(dAtA[i:], m.Id)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.Id)))
+		i--
+		dAtA[i] = 0xa
+	}
+	return len(dAtA) - i, nil
 }
 
 func (m *ResourceConfig) Marshal() (dAtA []byte, err error) {
 	size := m.Size()
 	dAtA = make([]byte, size)
-	n, err := m.MarshalTo(dAtA)
+	n, err := m.MarshalToSizedBuffer(dAtA[:size])
 	if err != nil {
 		return nil, err
 	}
@@ -868,43 +911,52 @@
 }
 
 func (m *ResourceConfig) MarshalTo(dAtA []byte) (int, error) {
-	var i int
+	size := m.Size()
+	return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *ResourceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+	i := len(dAtA)
 	_ = i
 	var l int
 	_ = l
-	if m.IpType != 0 {
-		dAtA[i] = 0x8
-		i++
-		i = encodeVarintSysset(dAtA, i, uint64(m.IpType))
-	}
-	if len(m.ServiceIp) > 0 {
-		dAtA[i] = 0x12
-		i++
-		i = encodeVarintSysset(dAtA, i, uint64(len(m.ServiceIp)))
-		i += copy(dAtA[i:], m.ServiceIp)
+	if m.FilePort != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.FilePort))
+		i--
+		dAtA[i] = 0x20
 	}
 	if len(m.Domain) > 0 {
-		dAtA[i] = 0x1a
-		i++
+		i -= len(m.Domain)
+		copy(dAtA[i:], m.Domain)
 		i = encodeVarintSysset(dAtA, i, uint64(len(m.Domain)))
-		i += copy(dAtA[i:], m.Domain)
+		i--
+		dAtA[i] = 0x1a
 	}
-	if m.FilePort != 0 {
-		dAtA[i] = 0x20
-		i++
-		i = encodeVarintSysset(dAtA, i, uint64(m.FilePort))
+	if len(m.ServiceIp) > 0 {
+		i -= len(m.ServiceIp)
+		copy(dAtA[i:], m.ServiceIp)
+		i = encodeVarintSysset(dAtA, i, uint64(len(m.ServiceIp)))
+		i--
+		dAtA[i] = 0x12
 	}
-	return i, nil
+	if m.IpType != 0 {
+		i = encodeVarintSysset(dAtA, i, uint64(m.IpType))
+		i--
+		dAtA[i] = 0x8
+	}
+	return len(dAtA) - i, nil
 }
 
 func encodeVarintSysset(dAtA []byte, offset int, v uint64) int {
+	offset -= sovSysset(v)
+	base := offset
 	for v >= 1<<7 {
 		dAtA[offset] = uint8(v&0x7f | 0x80)
 		v >>= 7
 		offset++
 	}
 	dAtA[offset] = uint8(v)
-	return offset + 1
+	return base
 }
 func (m *LocalConfig) Size() (n int) {
 	if m == nil {
@@ -2424,6 +2476,7 @@
 func skipSysset(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 {
@@ -2455,10 +2508,8 @@
 					break
 				}
 			}
-			return iNdEx, nil
 		case 1:
 			iNdEx += 8
-			return iNdEx, nil
 		case 2:
 			var length int
 			for shift := uint(0); ; shift += 7 {
@@ -2479,55 +2530,30 @@
 				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
+			depth++
 		case 4:
-			return iNdEx, nil
+			if depth == 0 {
+				return 0, ErrUnexpectedEndOfGroupSysset
+			}
+			depth--
 		case 5:
 			iNdEx += 4
-			return iNdEx, nil
 		default:
 			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 		}
+		if iNdEx < 0 {
+			return 0, ErrInvalidLengthSysset
+		}
+		if depth == 0 {
+			return iNdEx, nil
+		}
 	}
-	panic("unreachable")
+	return 0, io.ErrUnexpectedEOF
 }
 
 var (
-	ErrInvalidLengthSysset = fmt.Errorf("proto: negative length found during unmarshaling")
-	ErrIntOverflowSysset   = fmt.Errorf("proto: integer overflow")
+	ErrInvalidLengthSysset        = fmt.Errorf("proto: negative length found during unmarshaling")
+	ErrIntOverflowSysset          = fmt.Errorf("proto: integer overflow")
+	ErrUnexpectedEndOfGroupSysset = fmt.Errorf("proto: unexpected end of group")
 )

--
Gitblit v1.8.0