github.com/thanos-io/thanos@v0.32.5/pkg/store/labelpb/types.pb.go (about)

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