2018-02-07 15:36:47 +00:00
|
|
|
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
|
|
// source: cluster.proto
|
|
|
|
|
|
|
|
package clusterpb
|
|
|
|
|
2019-02-26 11:18:57 +00:00
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
io "io"
|
|
|
|
math "math"
|
2019-08-22 10:04:38 +00:00
|
|
|
math_bits "math/bits"
|
2018-02-07 15:36:47 +00:00
|
|
|
|
2019-02-26 11:18:57 +00:00
|
|
|
_ "github.com/gogo/protobuf/gogoproto"
|
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
)
|
2018-02-07 15:36:47 +00:00
|
|
|
|
|
|
|
// 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.
|
2020-05-18 13:00:36 +00:00
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
2018-02-07 15:36:47 +00:00
|
|
|
|
2021-08-09 20:58:06 +00:00
|
|
|
type MemberlistMessage_Kind int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
MemberlistMessage_STREAM MemberlistMessage_Kind = 0
|
|
|
|
MemberlistMessage_PACKET MemberlistMessage_Kind = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
var MemberlistMessage_Kind_name = map[int32]string{
|
|
|
|
0: "STREAM",
|
|
|
|
1: "PACKET",
|
|
|
|
}
|
|
|
|
|
|
|
|
var MemberlistMessage_Kind_value = map[string]int32{
|
|
|
|
"STREAM": 0,
|
|
|
|
"PACKET": 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x MemberlistMessage_Kind) String() string {
|
|
|
|
return proto.EnumName(MemberlistMessage_Kind_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (MemberlistMessage_Kind) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_3cfb3b8ec240c376, []int{2, 0}
|
|
|
|
}
|
|
|
|
|
2018-02-07 15:36:47 +00:00
|
|
|
type Part struct {
|
2019-02-26 11:18:57 +00:00
|
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
|
2019-02-26 11:18:57 +00:00
|
|
|
func (m *Part) Reset() { *m = Part{} }
|
|
|
|
func (m *Part) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Part) ProtoMessage() {}
|
|
|
|
func (*Part) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_3cfb3b8ec240c376, []int{0}
|
|
|
|
}
|
|
|
|
func (m *Part) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Part) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_Part.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
2019-08-22 10:04:38 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2019-02-26 11:18:57 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *Part) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Part.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Part) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Part) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Part.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Part proto.InternalMessageInfo
|
2018-02-07 15:36:47 +00:00
|
|
|
|
|
|
|
type FullState struct {
|
2019-02-26 11:18:57 +00:00
|
|
|
Parts []Part `protobuf:"bytes,1,rep,name=parts,proto3" json:"parts"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FullState) Reset() { *m = FullState{} }
|
|
|
|
func (m *FullState) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*FullState) ProtoMessage() {}
|
|
|
|
func (*FullState) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_3cfb3b8ec240c376, []int{1}
|
|
|
|
}
|
|
|
|
func (m *FullState) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *FullState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_FullState.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
2019-08-22 10:04:38 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
2019-02-26 11:18:57 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *FullState) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_FullState.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *FullState) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *FullState) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_FullState.DiscardUnknown(m)
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
|
2019-02-26 11:18:57 +00:00
|
|
|
var xxx_messageInfo_FullState proto.InternalMessageInfo
|
2018-02-07 15:36:47 +00:00
|
|
|
|
2021-08-09 20:58:06 +00:00
|
|
|
type MemberlistMessage struct {
|
|
|
|
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
Kind MemberlistMessage_Kind `protobuf:"varint,2,opt,name=kind,proto3,enum=clusterpb.MemberlistMessage_Kind" json:"kind,omitempty"`
|
|
|
|
FromAddr string `protobuf:"bytes,3,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"`
|
|
|
|
Msg []byte `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MemberlistMessage) Reset() { *m = MemberlistMessage{} }
|
|
|
|
func (m *MemberlistMessage) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MemberlistMessage) ProtoMessage() {}
|
|
|
|
func (*MemberlistMessage) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_3cfb3b8ec240c376, []int{2}
|
|
|
|
}
|
|
|
|
func (m *MemberlistMessage) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *MemberlistMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
if deterministic {
|
|
|
|
return xxx_messageInfo_MemberlistMessage.Marshal(b, m, deterministic)
|
|
|
|
} else {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
func (m *MemberlistMessage) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_MemberlistMessage.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *MemberlistMessage) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *MemberlistMessage) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_MemberlistMessage.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_MemberlistMessage proto.InternalMessageInfo
|
|
|
|
|
2018-02-07 15:36:47 +00:00
|
|
|
func init() {
|
2021-08-09 20:58:06 +00:00
|
|
|
proto.RegisterEnum("clusterpb.MemberlistMessage_Kind", MemberlistMessage_Kind_name, MemberlistMessage_Kind_value)
|
2018-02-07 15:36:47 +00:00
|
|
|
proto.RegisterType((*Part)(nil), "clusterpb.Part")
|
|
|
|
proto.RegisterType((*FullState)(nil), "clusterpb.FullState")
|
2021-08-09 20:58:06 +00:00
|
|
|
proto.RegisterType((*MemberlistMessage)(nil), "clusterpb.MemberlistMessage")
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
2019-02-26 11:18:57 +00:00
|
|
|
|
|
|
|
func init() { proto.RegisterFile("cluster.proto", fileDescriptor_3cfb3b8ec240c376) }
|
|
|
|
|
|
|
|
var fileDescriptor_3cfb3b8ec240c376 = []byte{
|
2021-08-09 20:58:06 +00:00
|
|
|
// 289 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x90, 0xdf, 0x4a, 0xc3, 0x30,
|
|
|
|
0x14, 0xc6, 0x17, 0x17, 0xa7, 0x3d, 0xfe, 0xab, 0xc1, 0x8b, 0xa0, 0x50, 0x67, 0xaf, 0x06, 0x4a,
|
|
|
|
0x85, 0x89, 0xe0, 0xed, 0x26, 0xf3, 0x66, 0x14, 0x46, 0xb7, 0x7b, 0x49, 0x4d, 0x2c, 0x65, 0x6d,
|
|
|
|
0x53, 0x92, 0x4c, 0xf0, 0xb9, 0x7c, 0x89, 0x5e, 0xfa, 0x04, 0xa2, 0x7d, 0x12, 0x49, 0x36, 0x45,
|
|
|
|
0xf0, 0xee, 0x77, 0x0e, 0x5f, 0x7e, 0x1f, 0x27, 0x70, 0xf0, 0x54, 0xac, 0xb4, 0x11, 0x2a, 0xaa,
|
|
|
|
0x95, 0x34, 0x92, 0x78, 0x9b, 0xb1, 0x4e, 0x4f, 0x4f, 0x32, 0x99, 0x49, 0xb7, 0xbd, 0xb6, 0xb4,
|
|
|
|
0x0e, 0x84, 0x57, 0x80, 0x67, 0x4c, 0x19, 0xe2, 0x43, 0x77, 0x29, 0x5e, 0x29, 0xea, 0xa3, 0x81,
|
|
|
|
0x97, 0x58, 0x24, 0x04, 0x30, 0x67, 0x86, 0xd1, 0xad, 0x3e, 0x1a, 0xec, 0x27, 0x8e, 0xc3, 0x3b,
|
|
|
|
0xf0, 0x1e, 0x56, 0x45, 0x31, 0x37, 0xcc, 0x08, 0x72, 0x09, 0xdb, 0x35, 0x53, 0x46, 0x53, 0xd4,
|
|
|
|
0xef, 0x0e, 0xf6, 0x86, 0x47, 0xd1, 0x6f, 0x57, 0x64, 0x95, 0x63, 0xdc, 0x7c, 0x9c, 0x77, 0x92,
|
|
|
|
0x75, 0x26, 0x7c, 0x43, 0x70, 0x1c, 0x8b, 0x32, 0x15, 0xaa, 0xc8, 0xb5, 0x89, 0x85, 0xd6, 0x2c,
|
|
|
|
0x13, 0x84, 0xc2, 0xce, 0x8b, 0x50, 0x3a, 0x97, 0xd5, 0xa6, 0xf9, 0x67, 0x24, 0xb7, 0x80, 0x97,
|
|
|
|
0x79, 0xc5, 0x5d, 0xfb, 0xe1, 0xf0, 0xe2, 0x8f, 0xfb, 0x9f, 0x25, 0x9a, 0xe6, 0x15, 0x4f, 0x5c,
|
|
|
|
0x9c, 0x9c, 0x81, 0xf7, 0xac, 0x64, 0xf9, 0xc8, 0x38, 0x57, 0xb4, 0xeb, 0x94, 0xbb, 0x76, 0x31,
|
|
|
|
0xe2, 0x5c, 0xd9, 0x1b, 0x4b, 0x9d, 0x51, 0xec, 0x0e, 0xb2, 0x18, 0x06, 0x80, 0xed, 0x63, 0x02,
|
|
|
|
0xd0, 0x9b, 0x2f, 0x92, 0xc9, 0x28, 0xf6, 0x3b, 0x96, 0x67, 0xa3, 0xfb, 0xe9, 0x64, 0xe1, 0xa3,
|
|
|
|
0xb1, 0xdf, 0x7c, 0x05, 0x9d, 0xa6, 0x0d, 0xd0, 0x7b, 0x1b, 0xa0, 0xcf, 0x36, 0x40, 0x69, 0xcf,
|
|
|
|
0x7d, 0xdb, 0xcd, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x3f, 0xca, 0x45, 0x68, 0x01, 0x00,
|
|
|
|
0x00,
|
2019-02-26 11:18:57 +00:00
|
|
|
}
|
|
|
|
|
2018-02-07 15:36:47 +00:00
|
|
|
func (m *Part) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2019-08-22 10:04:38 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-02-07 15:36:47 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Part) MarshalTo(dAtA []byte) (int, error) {
|
2019-08-22 10:04:38 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Part) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-02-07 15:36:47 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-08-22 10:04:38 +00:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
if len(m.Data) > 0 {
|
2019-08-22 10:04:38 +00:00
|
|
|
i -= len(m.Data)
|
|
|
|
copy(dAtA[i:], m.Data)
|
2018-02-07 15:36:47 +00:00
|
|
|
i = encodeVarintCluster(dAtA, i, uint64(len(m.Data)))
|
2019-08-22 10:04:38 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
2019-08-22 10:04:38 +00:00
|
|
|
if len(m.Key) > 0 {
|
|
|
|
i -= len(m.Key)
|
|
|
|
copy(dAtA[i:], m.Key)
|
|
|
|
i = encodeVarintCluster(dAtA, i, uint64(len(m.Key)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2019-02-26 11:18:57 +00:00
|
|
|
}
|
2019-08-22 10:04:38 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FullState) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2019-08-22 10:04:38 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2018-02-07 15:36:47 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FullState) MarshalTo(dAtA []byte) (int, error) {
|
2019-08-22 10:04:38 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FullState) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2018-02-07 15:36:47 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-08-22 10:04:38 +00:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
if len(m.Parts) > 0 {
|
2019-08-22 10:04:38 +00:00
|
|
|
for iNdEx := len(m.Parts) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Parts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintCluster(dAtA, i, uint64(size))
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
2019-08-22 10:04:38 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-22 10:04:38 +00:00
|
|
|
return len(dAtA) - i, nil
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
|
2021-08-09 20:58:06 +00:00
|
|
|
func (m *MemberlistMessage) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MemberlistMessage) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MemberlistMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
i -= len(m.XXX_unrecognized)
|
|
|
|
copy(dAtA[i:], m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
if len(m.Msg) > 0 {
|
|
|
|
i -= len(m.Msg)
|
|
|
|
copy(dAtA[i:], m.Msg)
|
|
|
|
i = encodeVarintCluster(dAtA, i, uint64(len(m.Msg)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
}
|
|
|
|
if len(m.FromAddr) > 0 {
|
|
|
|
i -= len(m.FromAddr)
|
|
|
|
copy(dAtA[i:], m.FromAddr)
|
|
|
|
i = encodeVarintCluster(dAtA, i, uint64(len(m.FromAddr)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
}
|
|
|
|
if m.Kind != 0 {
|
|
|
|
i = encodeVarintCluster(dAtA, i, uint64(m.Kind))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
}
|
|
|
|
if len(m.Version) > 0 {
|
|
|
|
i -= len(m.Version)
|
|
|
|
copy(dAtA[i:], m.Version)
|
|
|
|
i = encodeVarintCluster(dAtA, i, uint64(len(m.Version)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2018-02-07 15:36:47 +00:00
|
|
|
func encodeVarintCluster(dAtA []byte, offset int, v uint64) int {
|
2019-08-22 10:04:38 +00:00
|
|
|
offset -= sovCluster(v)
|
|
|
|
base := offset
|
2018-02-07 15:36:47 +00:00
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
2019-08-22 10:04:38 +00:00
|
|
|
return base
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
func (m *Part) Size() (n int) {
|
2019-02-26 11:18:57 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Key)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovCluster(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Data)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovCluster(uint64(l))
|
|
|
|
}
|
2019-02-26 11:18:57 +00:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *FullState) Size() (n int) {
|
2019-02-26 11:18:57 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Parts) > 0 {
|
|
|
|
for _, e := range m.Parts {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovCluster(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2019-02-26 11:18:57 +00:00
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2021-08-09 20:58:06 +00:00
|
|
|
func (m *MemberlistMessage) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Version)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovCluster(uint64(l))
|
|
|
|
}
|
|
|
|
if m.Kind != 0 {
|
|
|
|
n += 1 + sovCluster(uint64(m.Kind))
|
|
|
|
}
|
|
|
|
l = len(m.FromAddr)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovCluster(uint64(l))
|
|
|
|
}
|
|
|
|
l = len(m.Msg)
|
|
|
|
if l > 0 {
|
|
|
|
n += 1 + l + sovCluster(uint64(l))
|
|
|
|
}
|
|
|
|
if m.XXX_unrecognized != nil {
|
|
|
|
n += len(m.XXX_unrecognized)
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2018-02-07 15:36:47 +00:00
|
|
|
func sovCluster(x uint64) (n int) {
|
2019-08-22 10:04:38 +00:00
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
func sozCluster(x uint64) (n int) {
|
|
|
|
return sovCluster(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (m *Part) 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 ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-02-26 11:18:57 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-02-07 15:36:47 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: Part: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Part: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-02-26 11:18:57 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2018-02-07 15:36:47 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2019-02-26 11:18:57 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Key = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
|
|
}
|
|
|
|
var byteLen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-02-26 11:18:57 +00:00
|
|
|
byteLen |= int(b&0x7F) << shift
|
2018-02-07 15:36:47 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if byteLen < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + byteLen
|
2019-02-26 11:18:57 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.Data == nil {
|
|
|
|
m.Data = []byte{}
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipCluster(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-02-09 15:49:07 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-02-26 11:18:57 +00:00
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-02-26 11:18:57 +00:00
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
2018-02-07 15:36:47 +00:00
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *FullState) 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 ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-02-26 11:18:57 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2018-02-07 15:36:47 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: FullState: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: FullState: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Parts", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2019-02-26 11:18:57 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2018-02-07 15:36:47 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2019-02-26 11:18:57 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Parts = append(m.Parts, Part{})
|
|
|
|
if err := m.Parts[len(m.Parts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipCluster(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
2021-08-09 20:58:06 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *MemberlistMessage) 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 ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
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: MemberlistMessage: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: MemberlistMessage: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Version = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
|
|
|
|
}
|
|
|
|
m.Kind = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.Kind |= MemberlistMessage_Kind(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FromAddr", wireType)
|
|
|
|
}
|
|
|
|
var stringLen uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
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 ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.FromAddr = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
|
|
|
|
}
|
|
|
|
var byteLen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
byteLen |= int(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if byteLen < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + byteLen
|
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Msg = append(m.Msg[:0], dAtA[iNdEx:postIndex]...)
|
|
|
|
if m.Msg == nil {
|
|
|
|
m.Msg = []byte{}
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipCluster(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
2018-02-07 15:36:47 +00:00
|
|
|
return err
|
|
|
|
}
|
2021-02-09 15:49:07 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-02-26 11:18:57 +00:00
|
|
|
return ErrInvalidLengthCluster
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2019-02-26 11:18:57 +00:00
|
|
|
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
|
2018-02-07 15:36:47 +00:00
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func skipCluster(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
2020-05-18 13:00:36 +00:00
|
|
|
depth := 0
|
2018-02-07 15:36:47 +00:00
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
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, ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowCluster
|
|
|
|
}
|
|
|
|
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, ErrInvalidLengthCluster
|
|
|
|
}
|
2019-02-26 11:18:57 +00:00
|
|
|
iNdEx += length
|
2018-02-07 15:36:47 +00:00
|
|
|
case 3:
|
2020-05-18 13:00:36 +00:00
|
|
|
depth++
|
2018-02-07 15:36:47 +00:00
|
|
|
case 4:
|
2020-05-18 13:00:36 +00:00
|
|
|
if depth == 0 {
|
|
|
|
return 0, ErrUnexpectedEndOfGroupCluster
|
|
|
|
}
|
|
|
|
depth--
|
2018-02-07 15:36:47 +00:00
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
2020-05-18 13:00:36 +00:00
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthCluster
|
|
|
|
}
|
|
|
|
if depth == 0 {
|
|
|
|
return iNdEx, nil
|
|
|
|
}
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
2020-05-18 13:00:36 +00:00
|
|
|
return 0, io.ErrUnexpectedEOF
|
2018-02-07 15:36:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2020-05-18 13:00:36 +00:00
|
|
|
ErrInvalidLengthCluster = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowCluster = fmt.Errorf("proto: integer overflow")
|
|
|
|
ErrUnexpectedEndOfGroupCluster = fmt.Errorf("proto: unexpected end of group")
|
2018-02-07 15:36:47 +00:00
|
|
|
)
|