github.com/ethersphere/bee/v2@v2.2.0/pkg/hive/pb/hive.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: hive.proto
     3  
     4  package pb
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	io "io"
    10  	math "math"
    11  	math_bits "math/bits"
    12  )
    13  
    14  // Reference imports to suppress errors if they are not otherwise used.
    15  var _ = proto.Marshal
    16  var _ = fmt.Errorf
    17  var _ = math.Inf
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the proto package it is being compiled against.
    21  // A compilation error at this line likely means your copy of the
    22  // proto package needs to be updated.
    23  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    24  
    25  type Peers struct {
    26  	Peers []*BzzAddress `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
    27  }
    28  
    29  func (m *Peers) Reset()         { *m = Peers{} }
    30  func (m *Peers) String() string { return proto.CompactTextString(m) }
    31  func (*Peers) ProtoMessage()    {}
    32  func (*Peers) Descriptor() ([]byte, []int) {
    33  	return fileDescriptor_d635d1ead41ba02c, []int{0}
    34  }
    35  func (m *Peers) XXX_Unmarshal(b []byte) error {
    36  	return m.Unmarshal(b)
    37  }
    38  func (m *Peers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    39  	if deterministic {
    40  		return xxx_messageInfo_Peers.Marshal(b, m, deterministic)
    41  	} else {
    42  		b = b[:cap(b)]
    43  		n, err := m.MarshalToSizedBuffer(b)
    44  		if err != nil {
    45  			return nil, err
    46  		}
    47  		return b[:n], nil
    48  	}
    49  }
    50  func (m *Peers) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_Peers.Merge(m, src)
    52  }
    53  func (m *Peers) XXX_Size() int {
    54  	return m.Size()
    55  }
    56  func (m *Peers) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_Peers.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_Peers proto.InternalMessageInfo
    61  
    62  func (m *Peers) GetPeers() []*BzzAddress {
    63  	if m != nil {
    64  		return m.Peers
    65  	}
    66  	return nil
    67  }
    68  
    69  type BzzAddress struct {
    70  	Underlay  []byte `protobuf:"bytes,1,opt,name=Underlay,proto3" json:"Underlay,omitempty"`
    71  	Signature []byte `protobuf:"bytes,2,opt,name=Signature,proto3" json:"Signature,omitempty"`
    72  	Overlay   []byte `protobuf:"bytes,3,opt,name=Overlay,proto3" json:"Overlay,omitempty"`
    73  	Nonce     []byte `protobuf:"bytes,4,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
    74  }
    75  
    76  func (m *BzzAddress) Reset()         { *m = BzzAddress{} }
    77  func (m *BzzAddress) String() string { return proto.CompactTextString(m) }
    78  func (*BzzAddress) ProtoMessage()    {}
    79  func (*BzzAddress) Descriptor() ([]byte, []int) {
    80  	return fileDescriptor_d635d1ead41ba02c, []int{1}
    81  }
    82  func (m *BzzAddress) XXX_Unmarshal(b []byte) error {
    83  	return m.Unmarshal(b)
    84  }
    85  func (m *BzzAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    86  	if deterministic {
    87  		return xxx_messageInfo_BzzAddress.Marshal(b, m, deterministic)
    88  	} else {
    89  		b = b[:cap(b)]
    90  		n, err := m.MarshalToSizedBuffer(b)
    91  		if err != nil {
    92  			return nil, err
    93  		}
    94  		return b[:n], nil
    95  	}
    96  }
    97  func (m *BzzAddress) XXX_Merge(src proto.Message) {
    98  	xxx_messageInfo_BzzAddress.Merge(m, src)
    99  }
   100  func (m *BzzAddress) XXX_Size() int {
   101  	return m.Size()
   102  }
   103  func (m *BzzAddress) XXX_DiscardUnknown() {
   104  	xxx_messageInfo_BzzAddress.DiscardUnknown(m)
   105  }
   106  
   107  var xxx_messageInfo_BzzAddress proto.InternalMessageInfo
   108  
   109  func (m *BzzAddress) GetUnderlay() []byte {
   110  	if m != nil {
   111  		return m.Underlay
   112  	}
   113  	return nil
   114  }
   115  
   116  func (m *BzzAddress) GetSignature() []byte {
   117  	if m != nil {
   118  		return m.Signature
   119  	}
   120  	return nil
   121  }
   122  
   123  func (m *BzzAddress) GetOverlay() []byte {
   124  	if m != nil {
   125  		return m.Overlay
   126  	}
   127  	return nil
   128  }
   129  
   130  func (m *BzzAddress) GetNonce() []byte {
   131  	if m != nil {
   132  		return m.Nonce
   133  	}
   134  	return nil
   135  }
   136  
   137  func init() {
   138  	proto.RegisterType((*Peers)(nil), "hive.Peers")
   139  	proto.RegisterType((*BzzAddress)(nil), "hive.BzzAddress")
   140  }
   141  
   142  func init() { proto.RegisterFile("hive.proto", fileDescriptor_d635d1ead41ba02c) }
   143  
   144  var fileDescriptor_d635d1ead41ba02c = []byte{
   145  	// 189 bytes of a gzipped FileDescriptorProto
   146  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xca, 0xc8, 0x2c, 0x4b,
   147  	0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x01, 0xb1, 0x95, 0xf4, 0xb9, 0x58, 0x03, 0x52,
   148  	0x53, 0x8b, 0x8a, 0x85, 0xd4, 0xb8, 0x58, 0x0b, 0x40, 0x0c, 0x09, 0x46, 0x05, 0x66, 0x0d, 0x6e,
   149  	0x23, 0x01, 0x3d, 0xb0, 0x52, 0xa7, 0xaa, 0x2a, 0xc7, 0x94, 0x94, 0xa2, 0xd4, 0xe2, 0xe2, 0x20,
   150  	0x88, 0xb4, 0x52, 0x19, 0x17, 0x17, 0x42, 0x50, 0x48, 0x8a, 0x8b, 0x23, 0x34, 0x2f, 0x25, 0xb5,
   151  	0x28, 0x27, 0xb1, 0x52, 0x82, 0x51, 0x81, 0x51, 0x83, 0x27, 0x08, 0xce, 0x17, 0x92, 0xe1, 0xe2,
   152  	0x0c, 0xce, 0x4c, 0xcf, 0x4b, 0x2c, 0x29, 0x2d, 0x4a, 0x95, 0x60, 0x02, 0x4b, 0x22, 0x04, 0x84,
   153  	0x24, 0xb8, 0xd8, 0xfd, 0xcb, 0x20, 0x1a, 0x99, 0xc1, 0x72, 0x30, 0xae, 0x90, 0x08, 0x17, 0xab,
   154  	0x5f, 0x7e, 0x5e, 0x72, 0xaa, 0x04, 0x0b, 0x58, 0x1c, 0xc2, 0x71, 0x92, 0x39, 0xf1, 0x48, 0x8e,
   155  	0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58,
   156  	0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xa6, 0x82, 0xa4, 0x24, 0x36, 0xb0, 0x9f, 0x8c, 0x01,
   157  	0x01, 0x00, 0x00, 0xff, 0xff, 0x40, 0x7e, 0xf9, 0x4f, 0xe1, 0x00, 0x00, 0x00,
   158  }
   159  
   160  func (m *Peers) Marshal() (dAtA []byte, err error) {
   161  	size := m.Size()
   162  	dAtA = make([]byte, size)
   163  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   164  	if err != nil {
   165  		return nil, err
   166  	}
   167  	return dAtA[:n], nil
   168  }
   169  
   170  func (m *Peers) MarshalTo(dAtA []byte) (int, error) {
   171  	size := m.Size()
   172  	return m.MarshalToSizedBuffer(dAtA[:size])
   173  }
   174  
   175  func (m *Peers) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   176  	i := len(dAtA)
   177  	_ = i
   178  	var l int
   179  	_ = l
   180  	if len(m.Peers) > 0 {
   181  		for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- {
   182  			{
   183  				size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   184  				if err != nil {
   185  					return 0, err
   186  				}
   187  				i -= size
   188  				i = encodeVarintHive(dAtA, i, uint64(size))
   189  			}
   190  			i--
   191  			dAtA[i] = 0xa
   192  		}
   193  	}
   194  	return len(dAtA) - i, nil
   195  }
   196  
   197  func (m *BzzAddress) Marshal() (dAtA []byte, err error) {
   198  	size := m.Size()
   199  	dAtA = make([]byte, size)
   200  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   201  	if err != nil {
   202  		return nil, err
   203  	}
   204  	return dAtA[:n], nil
   205  }
   206  
   207  func (m *BzzAddress) MarshalTo(dAtA []byte) (int, error) {
   208  	size := m.Size()
   209  	return m.MarshalToSizedBuffer(dAtA[:size])
   210  }
   211  
   212  func (m *BzzAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   213  	i := len(dAtA)
   214  	_ = i
   215  	var l int
   216  	_ = l
   217  	if len(m.Nonce) > 0 {
   218  		i -= len(m.Nonce)
   219  		copy(dAtA[i:], m.Nonce)
   220  		i = encodeVarintHive(dAtA, i, uint64(len(m.Nonce)))
   221  		i--
   222  		dAtA[i] = 0x22
   223  	}
   224  	if len(m.Overlay) > 0 {
   225  		i -= len(m.Overlay)
   226  		copy(dAtA[i:], m.Overlay)
   227  		i = encodeVarintHive(dAtA, i, uint64(len(m.Overlay)))
   228  		i--
   229  		dAtA[i] = 0x1a
   230  	}
   231  	if len(m.Signature) > 0 {
   232  		i -= len(m.Signature)
   233  		copy(dAtA[i:], m.Signature)
   234  		i = encodeVarintHive(dAtA, i, uint64(len(m.Signature)))
   235  		i--
   236  		dAtA[i] = 0x12
   237  	}
   238  	if len(m.Underlay) > 0 {
   239  		i -= len(m.Underlay)
   240  		copy(dAtA[i:], m.Underlay)
   241  		i = encodeVarintHive(dAtA, i, uint64(len(m.Underlay)))
   242  		i--
   243  		dAtA[i] = 0xa
   244  	}
   245  	return len(dAtA) - i, nil
   246  }
   247  
   248  func encodeVarintHive(dAtA []byte, offset int, v uint64) int {
   249  	offset -= sovHive(v)
   250  	base := offset
   251  	for v >= 1<<7 {
   252  		dAtA[offset] = uint8(v&0x7f | 0x80)
   253  		v >>= 7
   254  		offset++
   255  	}
   256  	dAtA[offset] = uint8(v)
   257  	return base
   258  }
   259  func (m *Peers) Size() (n int) {
   260  	if m == nil {
   261  		return 0
   262  	}
   263  	var l int
   264  	_ = l
   265  	if len(m.Peers) > 0 {
   266  		for _, e := range m.Peers {
   267  			l = e.Size()
   268  			n += 1 + l + sovHive(uint64(l))
   269  		}
   270  	}
   271  	return n
   272  }
   273  
   274  func (m *BzzAddress) Size() (n int) {
   275  	if m == nil {
   276  		return 0
   277  	}
   278  	var l int
   279  	_ = l
   280  	l = len(m.Underlay)
   281  	if l > 0 {
   282  		n += 1 + l + sovHive(uint64(l))
   283  	}
   284  	l = len(m.Signature)
   285  	if l > 0 {
   286  		n += 1 + l + sovHive(uint64(l))
   287  	}
   288  	l = len(m.Overlay)
   289  	if l > 0 {
   290  		n += 1 + l + sovHive(uint64(l))
   291  	}
   292  	l = len(m.Nonce)
   293  	if l > 0 {
   294  		n += 1 + l + sovHive(uint64(l))
   295  	}
   296  	return n
   297  }
   298  
   299  func sovHive(x uint64) (n int) {
   300  	return (math_bits.Len64(x|1) + 6) / 7
   301  }
   302  func sozHive(x uint64) (n int) {
   303  	return sovHive(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   304  }
   305  func (m *Peers) Unmarshal(dAtA []byte) error {
   306  	l := len(dAtA)
   307  	iNdEx := 0
   308  	for iNdEx < l {
   309  		preIndex := iNdEx
   310  		var wire uint64
   311  		for shift := uint(0); ; shift += 7 {
   312  			if shift >= 64 {
   313  				return ErrIntOverflowHive
   314  			}
   315  			if iNdEx >= l {
   316  				return io.ErrUnexpectedEOF
   317  			}
   318  			b := dAtA[iNdEx]
   319  			iNdEx++
   320  			wire |= uint64(b&0x7F) << shift
   321  			if b < 0x80 {
   322  				break
   323  			}
   324  		}
   325  		fieldNum := int32(wire >> 3)
   326  		wireType := int(wire & 0x7)
   327  		if wireType == 4 {
   328  			return fmt.Errorf("proto: Peers: wiretype end group for non-group")
   329  		}
   330  		if fieldNum <= 0 {
   331  			return fmt.Errorf("proto: Peers: illegal tag %d (wire type %d)", fieldNum, wire)
   332  		}
   333  		switch fieldNum {
   334  		case 1:
   335  			if wireType != 2 {
   336  				return fmt.Errorf("proto: wrong wireType = %d for field Peers", wireType)
   337  			}
   338  			var msglen int
   339  			for shift := uint(0); ; shift += 7 {
   340  				if shift >= 64 {
   341  					return ErrIntOverflowHive
   342  				}
   343  				if iNdEx >= l {
   344  					return io.ErrUnexpectedEOF
   345  				}
   346  				b := dAtA[iNdEx]
   347  				iNdEx++
   348  				msglen |= int(b&0x7F) << shift
   349  				if b < 0x80 {
   350  					break
   351  				}
   352  			}
   353  			if msglen < 0 {
   354  				return ErrInvalidLengthHive
   355  			}
   356  			postIndex := iNdEx + msglen
   357  			if postIndex < 0 {
   358  				return ErrInvalidLengthHive
   359  			}
   360  			if postIndex > l {
   361  				return io.ErrUnexpectedEOF
   362  			}
   363  			m.Peers = append(m.Peers, &BzzAddress{})
   364  			if err := m.Peers[len(m.Peers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   365  				return err
   366  			}
   367  			iNdEx = postIndex
   368  		default:
   369  			iNdEx = preIndex
   370  			skippy, err := skipHive(dAtA[iNdEx:])
   371  			if err != nil {
   372  				return err
   373  			}
   374  			if skippy < 0 {
   375  				return ErrInvalidLengthHive
   376  			}
   377  			if (iNdEx + skippy) < 0 {
   378  				return ErrInvalidLengthHive
   379  			}
   380  			if (iNdEx + skippy) > l {
   381  				return io.ErrUnexpectedEOF
   382  			}
   383  			iNdEx += skippy
   384  		}
   385  	}
   386  
   387  	if iNdEx > l {
   388  		return io.ErrUnexpectedEOF
   389  	}
   390  	return nil
   391  }
   392  func (m *BzzAddress) Unmarshal(dAtA []byte) error {
   393  	l := len(dAtA)
   394  	iNdEx := 0
   395  	for iNdEx < l {
   396  		preIndex := iNdEx
   397  		var wire uint64
   398  		for shift := uint(0); ; shift += 7 {
   399  			if shift >= 64 {
   400  				return ErrIntOverflowHive
   401  			}
   402  			if iNdEx >= l {
   403  				return io.ErrUnexpectedEOF
   404  			}
   405  			b := dAtA[iNdEx]
   406  			iNdEx++
   407  			wire |= uint64(b&0x7F) << shift
   408  			if b < 0x80 {
   409  				break
   410  			}
   411  		}
   412  		fieldNum := int32(wire >> 3)
   413  		wireType := int(wire & 0x7)
   414  		if wireType == 4 {
   415  			return fmt.Errorf("proto: BzzAddress: wiretype end group for non-group")
   416  		}
   417  		if fieldNum <= 0 {
   418  			return fmt.Errorf("proto: BzzAddress: illegal tag %d (wire type %d)", fieldNum, wire)
   419  		}
   420  		switch fieldNum {
   421  		case 1:
   422  			if wireType != 2 {
   423  				return fmt.Errorf("proto: wrong wireType = %d for field Underlay", wireType)
   424  			}
   425  			var byteLen int
   426  			for shift := uint(0); ; shift += 7 {
   427  				if shift >= 64 {
   428  					return ErrIntOverflowHive
   429  				}
   430  				if iNdEx >= l {
   431  					return io.ErrUnexpectedEOF
   432  				}
   433  				b := dAtA[iNdEx]
   434  				iNdEx++
   435  				byteLen |= int(b&0x7F) << shift
   436  				if b < 0x80 {
   437  					break
   438  				}
   439  			}
   440  			if byteLen < 0 {
   441  				return ErrInvalidLengthHive
   442  			}
   443  			postIndex := iNdEx + byteLen
   444  			if postIndex < 0 {
   445  				return ErrInvalidLengthHive
   446  			}
   447  			if postIndex > l {
   448  				return io.ErrUnexpectedEOF
   449  			}
   450  			m.Underlay = append(m.Underlay[:0], dAtA[iNdEx:postIndex]...)
   451  			if m.Underlay == nil {
   452  				m.Underlay = []byte{}
   453  			}
   454  			iNdEx = postIndex
   455  		case 2:
   456  			if wireType != 2 {
   457  				return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType)
   458  			}
   459  			var byteLen int
   460  			for shift := uint(0); ; shift += 7 {
   461  				if shift >= 64 {
   462  					return ErrIntOverflowHive
   463  				}
   464  				if iNdEx >= l {
   465  					return io.ErrUnexpectedEOF
   466  				}
   467  				b := dAtA[iNdEx]
   468  				iNdEx++
   469  				byteLen |= int(b&0x7F) << shift
   470  				if b < 0x80 {
   471  					break
   472  				}
   473  			}
   474  			if byteLen < 0 {
   475  				return ErrInvalidLengthHive
   476  			}
   477  			postIndex := iNdEx + byteLen
   478  			if postIndex < 0 {
   479  				return ErrInvalidLengthHive
   480  			}
   481  			if postIndex > l {
   482  				return io.ErrUnexpectedEOF
   483  			}
   484  			m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...)
   485  			if m.Signature == nil {
   486  				m.Signature = []byte{}
   487  			}
   488  			iNdEx = postIndex
   489  		case 3:
   490  			if wireType != 2 {
   491  				return fmt.Errorf("proto: wrong wireType = %d for field Overlay", wireType)
   492  			}
   493  			var byteLen int
   494  			for shift := uint(0); ; shift += 7 {
   495  				if shift >= 64 {
   496  					return ErrIntOverflowHive
   497  				}
   498  				if iNdEx >= l {
   499  					return io.ErrUnexpectedEOF
   500  				}
   501  				b := dAtA[iNdEx]
   502  				iNdEx++
   503  				byteLen |= int(b&0x7F) << shift
   504  				if b < 0x80 {
   505  					break
   506  				}
   507  			}
   508  			if byteLen < 0 {
   509  				return ErrInvalidLengthHive
   510  			}
   511  			postIndex := iNdEx + byteLen
   512  			if postIndex < 0 {
   513  				return ErrInvalidLengthHive
   514  			}
   515  			if postIndex > l {
   516  				return io.ErrUnexpectedEOF
   517  			}
   518  			m.Overlay = append(m.Overlay[:0], dAtA[iNdEx:postIndex]...)
   519  			if m.Overlay == nil {
   520  				m.Overlay = []byte{}
   521  			}
   522  			iNdEx = postIndex
   523  		case 4:
   524  			if wireType != 2 {
   525  				return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType)
   526  			}
   527  			var byteLen int
   528  			for shift := uint(0); ; shift += 7 {
   529  				if shift >= 64 {
   530  					return ErrIntOverflowHive
   531  				}
   532  				if iNdEx >= l {
   533  					return io.ErrUnexpectedEOF
   534  				}
   535  				b := dAtA[iNdEx]
   536  				iNdEx++
   537  				byteLen |= int(b&0x7F) << shift
   538  				if b < 0x80 {
   539  					break
   540  				}
   541  			}
   542  			if byteLen < 0 {
   543  				return ErrInvalidLengthHive
   544  			}
   545  			postIndex := iNdEx + byteLen
   546  			if postIndex < 0 {
   547  				return ErrInvalidLengthHive
   548  			}
   549  			if postIndex > l {
   550  				return io.ErrUnexpectedEOF
   551  			}
   552  			m.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...)
   553  			if m.Nonce == nil {
   554  				m.Nonce = []byte{}
   555  			}
   556  			iNdEx = postIndex
   557  		default:
   558  			iNdEx = preIndex
   559  			skippy, err := skipHive(dAtA[iNdEx:])
   560  			if err != nil {
   561  				return err
   562  			}
   563  			if skippy < 0 {
   564  				return ErrInvalidLengthHive
   565  			}
   566  			if (iNdEx + skippy) < 0 {
   567  				return ErrInvalidLengthHive
   568  			}
   569  			if (iNdEx + skippy) > l {
   570  				return io.ErrUnexpectedEOF
   571  			}
   572  			iNdEx += skippy
   573  		}
   574  	}
   575  
   576  	if iNdEx > l {
   577  		return io.ErrUnexpectedEOF
   578  	}
   579  	return nil
   580  }
   581  func skipHive(dAtA []byte) (n int, err error) {
   582  	l := len(dAtA)
   583  	iNdEx := 0
   584  	depth := 0
   585  	for iNdEx < l {
   586  		var wire uint64
   587  		for shift := uint(0); ; shift += 7 {
   588  			if shift >= 64 {
   589  				return 0, ErrIntOverflowHive
   590  			}
   591  			if iNdEx >= l {
   592  				return 0, io.ErrUnexpectedEOF
   593  			}
   594  			b := dAtA[iNdEx]
   595  			iNdEx++
   596  			wire |= (uint64(b) & 0x7F) << shift
   597  			if b < 0x80 {
   598  				break
   599  			}
   600  		}
   601  		wireType := int(wire & 0x7)
   602  		switch wireType {
   603  		case 0:
   604  			for shift := uint(0); ; shift += 7 {
   605  				if shift >= 64 {
   606  					return 0, ErrIntOverflowHive
   607  				}
   608  				if iNdEx >= l {
   609  					return 0, io.ErrUnexpectedEOF
   610  				}
   611  				iNdEx++
   612  				if dAtA[iNdEx-1] < 0x80 {
   613  					break
   614  				}
   615  			}
   616  		case 1:
   617  			iNdEx += 8
   618  		case 2:
   619  			var length int
   620  			for shift := uint(0); ; shift += 7 {
   621  				if shift >= 64 {
   622  					return 0, ErrIntOverflowHive
   623  				}
   624  				if iNdEx >= l {
   625  					return 0, io.ErrUnexpectedEOF
   626  				}
   627  				b := dAtA[iNdEx]
   628  				iNdEx++
   629  				length |= (int(b) & 0x7F) << shift
   630  				if b < 0x80 {
   631  					break
   632  				}
   633  			}
   634  			if length < 0 {
   635  				return 0, ErrInvalidLengthHive
   636  			}
   637  			iNdEx += length
   638  		case 3:
   639  			depth++
   640  		case 4:
   641  			if depth == 0 {
   642  				return 0, ErrUnexpectedEndOfGroupHive
   643  			}
   644  			depth--
   645  		case 5:
   646  			iNdEx += 4
   647  		default:
   648  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   649  		}
   650  		if iNdEx < 0 {
   651  			return 0, ErrInvalidLengthHive
   652  		}
   653  		if depth == 0 {
   654  			return iNdEx, nil
   655  		}
   656  	}
   657  	return 0, io.ErrUnexpectedEOF
   658  }
   659  
   660  var (
   661  	ErrInvalidLengthHive        = fmt.Errorf("proto: negative length found during unmarshaling")
   662  	ErrIntOverflowHive          = fmt.Errorf("proto: integer overflow")
   663  	ErrUnexpectedEndOfGroupHive = fmt.Errorf("proto: unexpected end of group")
   664  )