github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/types/wrappers/wrappers.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: teleport/legacy/types/wrappers/wrappers.proto
     3  
     4  package wrappers
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	io "io"
    11  	math "math"
    12  	math_bits "math/bits"
    13  )
    14  
    15  // Reference imports to suppress errors if they are not otherwise used.
    16  var _ = proto.Marshal
    17  var _ = fmt.Errorf
    18  var _ = math.Inf
    19  
    20  // This is a compile-time assertion to ensure that this generated file
    21  // is compatible with the proto package it is being compiled against.
    22  // A compilation error at this line likely means your copy of the
    23  // proto package needs to be updated.
    24  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    25  
    26  // StringValues is a list of strings.
    27  type StringValues struct {
    28  	Values               []string `protobuf:"bytes,1,rep,name=Values,proto3" json:"Values,omitempty"`
    29  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    30  	XXX_unrecognized     []byte   `json:"-"`
    31  	XXX_sizecache        int32    `json:"-"`
    32  }
    33  
    34  func (m *StringValues) Reset()         { *m = StringValues{} }
    35  func (m *StringValues) String() string { return proto.CompactTextString(m) }
    36  func (*StringValues) ProtoMessage()    {}
    37  func (*StringValues) Descriptor() ([]byte, []int) {
    38  	return fileDescriptor_3c19e1bba76a2eab, []int{0}
    39  }
    40  func (m *StringValues) XXX_Unmarshal(b []byte) error {
    41  	return m.Unmarshal(b)
    42  }
    43  func (m *StringValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    44  	if deterministic {
    45  		return xxx_messageInfo_StringValues.Marshal(b, m, deterministic)
    46  	} else {
    47  		b = b[:cap(b)]
    48  		n, err := m.MarshalToSizedBuffer(b)
    49  		if err != nil {
    50  			return nil, err
    51  		}
    52  		return b[:n], nil
    53  	}
    54  }
    55  func (m *StringValues) XXX_Merge(src proto.Message) {
    56  	xxx_messageInfo_StringValues.Merge(m, src)
    57  }
    58  func (m *StringValues) XXX_Size() int {
    59  	return m.Size()
    60  }
    61  func (m *StringValues) XXX_DiscardUnknown() {
    62  	xxx_messageInfo_StringValues.DiscardUnknown(m)
    63  }
    64  
    65  var xxx_messageInfo_StringValues proto.InternalMessageInfo
    66  
    67  // LabelValues is a list of key value pairs, where key is a string
    68  // and value is a list of string values.
    69  type LabelValues struct {
    70  	// Values contains key value pairs.
    71  	Values               map[string]StringValues `protobuf:"bytes,1,rep,name=Values,proto3" json:"labels" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    72  	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    73  	XXX_unrecognized     []byte                  `json:"-"`
    74  	XXX_sizecache        int32                   `json:"-"`
    75  }
    76  
    77  func (m *LabelValues) Reset()         { *m = LabelValues{} }
    78  func (m *LabelValues) String() string { return proto.CompactTextString(m) }
    79  func (*LabelValues) ProtoMessage()    {}
    80  func (*LabelValues) Descriptor() ([]byte, []int) {
    81  	return fileDescriptor_3c19e1bba76a2eab, []int{1}
    82  }
    83  func (m *LabelValues) XXX_Unmarshal(b []byte) error {
    84  	return m.Unmarshal(b)
    85  }
    86  func (m *LabelValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    87  	if deterministic {
    88  		return xxx_messageInfo_LabelValues.Marshal(b, m, deterministic)
    89  	} else {
    90  		b = b[:cap(b)]
    91  		n, err := m.MarshalToSizedBuffer(b)
    92  		if err != nil {
    93  			return nil, err
    94  		}
    95  		return b[:n], nil
    96  	}
    97  }
    98  func (m *LabelValues) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_LabelValues.Merge(m, src)
   100  }
   101  func (m *LabelValues) XXX_Size() int {
   102  	return m.Size()
   103  }
   104  func (m *LabelValues) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_LabelValues.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_LabelValues proto.InternalMessageInfo
   109  
   110  // CustomType is a json protobuf representation of a Go struct. This is
   111  // useful when defining customtypes for use with the (gogoproto.customtype) extension.
   112  type CustomType struct {
   113  	// Bytes is the marshalled json data of a struct.
   114  	Bytes                []byte   `protobuf:"bytes,1,opt,name=Bytes,proto3" json:"json"`
   115  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   116  	XXX_unrecognized     []byte   `json:"-"`
   117  	XXX_sizecache        int32    `json:"-"`
   118  }
   119  
   120  func (m *CustomType) Reset()         { *m = CustomType{} }
   121  func (m *CustomType) String() string { return proto.CompactTextString(m) }
   122  func (*CustomType) ProtoMessage()    {}
   123  func (*CustomType) Descriptor() ([]byte, []int) {
   124  	return fileDescriptor_3c19e1bba76a2eab, []int{2}
   125  }
   126  func (m *CustomType) XXX_Unmarshal(b []byte) error {
   127  	return m.Unmarshal(b)
   128  }
   129  func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   130  	if deterministic {
   131  		return xxx_messageInfo_CustomType.Marshal(b, m, deterministic)
   132  	} else {
   133  		b = b[:cap(b)]
   134  		n, err := m.MarshalToSizedBuffer(b)
   135  		if err != nil {
   136  			return nil, err
   137  		}
   138  		return b[:n], nil
   139  	}
   140  }
   141  func (m *CustomType) XXX_Merge(src proto.Message) {
   142  	xxx_messageInfo_CustomType.Merge(m, src)
   143  }
   144  func (m *CustomType) XXX_Size() int {
   145  	return m.Size()
   146  }
   147  func (m *CustomType) XXX_DiscardUnknown() {
   148  	xxx_messageInfo_CustomType.DiscardUnknown(m)
   149  }
   150  
   151  var xxx_messageInfo_CustomType proto.InternalMessageInfo
   152  
   153  func init() {
   154  	proto.RegisterType((*StringValues)(nil), "wrappers.StringValues")
   155  	proto.RegisterType((*LabelValues)(nil), "wrappers.LabelValues")
   156  	proto.RegisterMapType((map[string]StringValues)(nil), "wrappers.LabelValues.ValuesEntry")
   157  	proto.RegisterType((*CustomType)(nil), "wrappers.CustomType")
   158  }
   159  
   160  func init() {
   161  	proto.RegisterFile("teleport/legacy/types/wrappers/wrappers.proto", fileDescriptor_3c19e1bba76a2eab)
   162  }
   163  
   164  var fileDescriptor_3c19e1bba76a2eab = []byte{
   165  	// 304 bytes of a gzipped FileDescriptorProto
   166  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x4f, 0x4b, 0xc3, 0x30,
   167  	0x18, 0x87, 0x97, 0xcd, 0x8d, 0x2d, 0x1d, 0x22, 0x45, 0xc6, 0xd8, 0xa1, 0xab, 0x3d, 0x48, 0x0f,
   168  	0xb3, 0x81, 0xe9, 0x41, 0x3c, 0x56, 0x14, 0x04, 0x2f, 0x56, 0xf1, 0xe0, 0x2d, 0x1d, 0x21, 0x56,
   169  	0xb3, 0x26, 0xa4, 0xe9, 0x24, 0x9f, 0xc9, 0x2f, 0xd2, 0xa3, 0x9f, 0xa0, 0x68, 0x8f, 0xfb, 0x14,
   170  	0xd2, 0x76, 0x7f, 0xaa, 0xa7, 0x3c, 0xef, 0x9b, 0x87, 0xf7, 0x7d, 0xf9, 0xc1, 0x33, 0x45, 0x18,
   171  	0x11, 0x5c, 0x2a, 0xc4, 0x08, 0xc5, 0x0b, 0x8d, 0x94, 0x16, 0x24, 0x41, 0x1f, 0x12, 0x0b, 0x41,
   172  	0xe4, 0x1e, 0x3c, 0x21, 0xb9, 0xe2, 0x66, 0x7f, 0x5b, 0x4f, 0x8e, 0x29, 0xa7, 0xbc, 0x6a, 0xa2,
   173  	0x92, 0xea, 0x7f, 0xe7, 0x14, 0x0e, 0x1f, 0x95, 0x8c, 0x62, 0xfa, 0x8c, 0x59, 0x4a, 0x12, 0x73,
   174  	0x04, 0x7b, 0x35, 0x8d, 0x81, 0xdd, 0x71, 0x07, 0xc1, 0xa6, 0x72, 0x3e, 0x01, 0x34, 0xee, 0x71,
   175  	0x48, 0xd8, 0xc6, 0xbb, 0xfb, 0xe3, 0x19, 0xf3, 0x13, 0x6f, 0xb7, 0xb8, 0xa1, 0x79, 0xf5, 0x73,
   176  	0x13, 0x2b, 0xa9, 0xfd, 0xc3, 0x2c, 0x9f, 0xb6, 0xd6, 0xf9, 0xb4, 0xc7, 0x4a, 0x21, 0xd9, 0x8e,
   177  	0x9e, 0x3c, 0x40, 0xa3, 0xa1, 0x99, 0x47, 0xb0, 0xf3, 0x4e, 0xf4, 0x18, 0xd8, 0xc0, 0x1d, 0x04,
   178  	0x25, 0x9a, 0x33, 0xd8, 0x5d, 0x95, 0xc2, 0xb8, 0x6d, 0x03, 0xd7, 0x98, 0x8f, 0xf6, 0xab, 0x9a,
   179  	0xa7, 0x07, 0xb5, 0x74, 0xd5, 0xbe, 0x04, 0xce, 0x0c, 0xc2, 0xeb, 0x34, 0x51, 0x7c, 0xf9, 0xa4,
   180  	0x05, 0x31, 0x2d, 0xd8, 0xf5, 0xb5, 0xaa, 0x4e, 0x05, 0xee, 0xd0, 0xef, 0xaf, 0xf3, 0xe9, 0xc1,
   181  	0x5b, 0xc2, 0xe3, 0xa0, 0x6e, 0xfb, 0xb7, 0xd9, 0x8f, 0xd5, 0xca, 0x0a, 0x0b, 0x7c, 0x15, 0x16,
   182  	0xf8, 0x2e, 0x2c, 0xf0, 0x72, 0x41, 0x23, 0xf5, 0x9a, 0x86, 0xde, 0x82, 0x2f, 0x11, 0x95, 0x78,
   183  	0x15, 0x29, 0xac, 0x22, 0x1e, 0x63, 0x86, 0x76, 0xe9, 0x63, 0x11, 0xfd, 0x8b, 0x3e, 0xec, 0x55,
   184  	0x91, 0x9e, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xe1, 0xab, 0xc5, 0xab, 0xa3, 0x01, 0x00, 0x00,
   185  }
   186  
   187  func (m *StringValues) Marshal() (dAtA []byte, err error) {
   188  	size := m.Size()
   189  	dAtA = make([]byte, size)
   190  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   191  	if err != nil {
   192  		return nil, err
   193  	}
   194  	return dAtA[:n], nil
   195  }
   196  
   197  func (m *StringValues) MarshalTo(dAtA []byte) (int, error) {
   198  	size := m.Size()
   199  	return m.MarshalToSizedBuffer(dAtA[:size])
   200  }
   201  
   202  func (m *StringValues) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   203  	i := len(dAtA)
   204  	_ = i
   205  	var l int
   206  	_ = l
   207  	if m.XXX_unrecognized != nil {
   208  		i -= len(m.XXX_unrecognized)
   209  		copy(dAtA[i:], m.XXX_unrecognized)
   210  	}
   211  	if len(m.Values) > 0 {
   212  		for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- {
   213  			i -= len(m.Values[iNdEx])
   214  			copy(dAtA[i:], m.Values[iNdEx])
   215  			i = encodeVarintWrappers(dAtA, i, uint64(len(m.Values[iNdEx])))
   216  			i--
   217  			dAtA[i] = 0xa
   218  		}
   219  	}
   220  	return len(dAtA) - i, nil
   221  }
   222  
   223  func (m *LabelValues) Marshal() (dAtA []byte, err error) {
   224  	size := m.Size()
   225  	dAtA = make([]byte, size)
   226  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   227  	if err != nil {
   228  		return nil, err
   229  	}
   230  	return dAtA[:n], nil
   231  }
   232  
   233  func (m *LabelValues) MarshalTo(dAtA []byte) (int, error) {
   234  	size := m.Size()
   235  	return m.MarshalToSizedBuffer(dAtA[:size])
   236  }
   237  
   238  func (m *LabelValues) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   239  	i := len(dAtA)
   240  	_ = i
   241  	var l int
   242  	_ = l
   243  	if m.XXX_unrecognized != nil {
   244  		i -= len(m.XXX_unrecognized)
   245  		copy(dAtA[i:], m.XXX_unrecognized)
   246  	}
   247  	if len(m.Values) > 0 {
   248  		for k := range m.Values {
   249  			v := m.Values[k]
   250  			baseI := i
   251  			{
   252  				size, err := (&v).MarshalToSizedBuffer(dAtA[:i])
   253  				if err != nil {
   254  					return 0, err
   255  				}
   256  				i -= size
   257  				i = encodeVarintWrappers(dAtA, i, uint64(size))
   258  			}
   259  			i--
   260  			dAtA[i] = 0x12
   261  			i -= len(k)
   262  			copy(dAtA[i:], k)
   263  			i = encodeVarintWrappers(dAtA, i, uint64(len(k)))
   264  			i--
   265  			dAtA[i] = 0xa
   266  			i = encodeVarintWrappers(dAtA, i, uint64(baseI-i))
   267  			i--
   268  			dAtA[i] = 0xa
   269  		}
   270  	}
   271  	return len(dAtA) - i, nil
   272  }
   273  
   274  func (m *CustomType) Marshal() (dAtA []byte, err error) {
   275  	size := m.Size()
   276  	dAtA = make([]byte, size)
   277  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   278  	if err != nil {
   279  		return nil, err
   280  	}
   281  	return dAtA[:n], nil
   282  }
   283  
   284  func (m *CustomType) MarshalTo(dAtA []byte) (int, error) {
   285  	size := m.Size()
   286  	return m.MarshalToSizedBuffer(dAtA[:size])
   287  }
   288  
   289  func (m *CustomType) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   290  	i := len(dAtA)
   291  	_ = i
   292  	var l int
   293  	_ = l
   294  	if m.XXX_unrecognized != nil {
   295  		i -= len(m.XXX_unrecognized)
   296  		copy(dAtA[i:], m.XXX_unrecognized)
   297  	}
   298  	if len(m.Bytes) > 0 {
   299  		i -= len(m.Bytes)
   300  		copy(dAtA[i:], m.Bytes)
   301  		i = encodeVarintWrappers(dAtA, i, uint64(len(m.Bytes)))
   302  		i--
   303  		dAtA[i] = 0xa
   304  	}
   305  	return len(dAtA) - i, nil
   306  }
   307  
   308  func encodeVarintWrappers(dAtA []byte, offset int, v uint64) int {
   309  	offset -= sovWrappers(v)
   310  	base := offset
   311  	for v >= 1<<7 {
   312  		dAtA[offset] = uint8(v&0x7f | 0x80)
   313  		v >>= 7
   314  		offset++
   315  	}
   316  	dAtA[offset] = uint8(v)
   317  	return base
   318  }
   319  func (m *StringValues) Size() (n int) {
   320  	if m == nil {
   321  		return 0
   322  	}
   323  	var l int
   324  	_ = l
   325  	if len(m.Values) > 0 {
   326  		for _, s := range m.Values {
   327  			l = len(s)
   328  			n += 1 + l + sovWrappers(uint64(l))
   329  		}
   330  	}
   331  	if m.XXX_unrecognized != nil {
   332  		n += len(m.XXX_unrecognized)
   333  	}
   334  	return n
   335  }
   336  
   337  func (m *LabelValues) Size() (n int) {
   338  	if m == nil {
   339  		return 0
   340  	}
   341  	var l int
   342  	_ = l
   343  	if len(m.Values) > 0 {
   344  		for k, v := range m.Values {
   345  			_ = k
   346  			_ = v
   347  			l = v.Size()
   348  			mapEntrySize := 1 + len(k) + sovWrappers(uint64(len(k))) + 1 + l + sovWrappers(uint64(l))
   349  			n += mapEntrySize + 1 + sovWrappers(uint64(mapEntrySize))
   350  		}
   351  	}
   352  	if m.XXX_unrecognized != nil {
   353  		n += len(m.XXX_unrecognized)
   354  	}
   355  	return n
   356  }
   357  
   358  func (m *CustomType) Size() (n int) {
   359  	if m == nil {
   360  		return 0
   361  	}
   362  	var l int
   363  	_ = l
   364  	l = len(m.Bytes)
   365  	if l > 0 {
   366  		n += 1 + l + sovWrappers(uint64(l))
   367  	}
   368  	if m.XXX_unrecognized != nil {
   369  		n += len(m.XXX_unrecognized)
   370  	}
   371  	return n
   372  }
   373  
   374  func sovWrappers(x uint64) (n int) {
   375  	return (math_bits.Len64(x|1) + 6) / 7
   376  }
   377  func sozWrappers(x uint64) (n int) {
   378  	return sovWrappers(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   379  }
   380  func (m *StringValues) Unmarshal(dAtA []byte) error {
   381  	l := len(dAtA)
   382  	iNdEx := 0
   383  	for iNdEx < l {
   384  		preIndex := iNdEx
   385  		var wire uint64
   386  		for shift := uint(0); ; shift += 7 {
   387  			if shift >= 64 {
   388  				return ErrIntOverflowWrappers
   389  			}
   390  			if iNdEx >= l {
   391  				return io.ErrUnexpectedEOF
   392  			}
   393  			b := dAtA[iNdEx]
   394  			iNdEx++
   395  			wire |= uint64(b&0x7F) << shift
   396  			if b < 0x80 {
   397  				break
   398  			}
   399  		}
   400  		fieldNum := int32(wire >> 3)
   401  		wireType := int(wire & 0x7)
   402  		if wireType == 4 {
   403  			return fmt.Errorf("proto: StringValues: wiretype end group for non-group")
   404  		}
   405  		if fieldNum <= 0 {
   406  			return fmt.Errorf("proto: StringValues: illegal tag %d (wire type %d)", fieldNum, wire)
   407  		}
   408  		switch fieldNum {
   409  		case 1:
   410  			if wireType != 2 {
   411  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
   412  			}
   413  			var stringLen uint64
   414  			for shift := uint(0); ; shift += 7 {
   415  				if shift >= 64 {
   416  					return ErrIntOverflowWrappers
   417  				}
   418  				if iNdEx >= l {
   419  					return io.ErrUnexpectedEOF
   420  				}
   421  				b := dAtA[iNdEx]
   422  				iNdEx++
   423  				stringLen |= uint64(b&0x7F) << shift
   424  				if b < 0x80 {
   425  					break
   426  				}
   427  			}
   428  			intStringLen := int(stringLen)
   429  			if intStringLen < 0 {
   430  				return ErrInvalidLengthWrappers
   431  			}
   432  			postIndex := iNdEx + intStringLen
   433  			if postIndex < 0 {
   434  				return ErrInvalidLengthWrappers
   435  			}
   436  			if postIndex > l {
   437  				return io.ErrUnexpectedEOF
   438  			}
   439  			m.Values = append(m.Values, string(dAtA[iNdEx:postIndex]))
   440  			iNdEx = postIndex
   441  		default:
   442  			iNdEx = preIndex
   443  			skippy, err := skipWrappers(dAtA[iNdEx:])
   444  			if err != nil {
   445  				return err
   446  			}
   447  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   448  				return ErrInvalidLengthWrappers
   449  			}
   450  			if (iNdEx + skippy) > l {
   451  				return io.ErrUnexpectedEOF
   452  			}
   453  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   454  			iNdEx += skippy
   455  		}
   456  	}
   457  
   458  	if iNdEx > l {
   459  		return io.ErrUnexpectedEOF
   460  	}
   461  	return nil
   462  }
   463  func (m *LabelValues) Unmarshal(dAtA []byte) error {
   464  	l := len(dAtA)
   465  	iNdEx := 0
   466  	for iNdEx < l {
   467  		preIndex := iNdEx
   468  		var wire uint64
   469  		for shift := uint(0); ; shift += 7 {
   470  			if shift >= 64 {
   471  				return ErrIntOverflowWrappers
   472  			}
   473  			if iNdEx >= l {
   474  				return io.ErrUnexpectedEOF
   475  			}
   476  			b := dAtA[iNdEx]
   477  			iNdEx++
   478  			wire |= uint64(b&0x7F) << shift
   479  			if b < 0x80 {
   480  				break
   481  			}
   482  		}
   483  		fieldNum := int32(wire >> 3)
   484  		wireType := int(wire & 0x7)
   485  		if wireType == 4 {
   486  			return fmt.Errorf("proto: LabelValues: wiretype end group for non-group")
   487  		}
   488  		if fieldNum <= 0 {
   489  			return fmt.Errorf("proto: LabelValues: illegal tag %d (wire type %d)", fieldNum, wire)
   490  		}
   491  		switch fieldNum {
   492  		case 1:
   493  			if wireType != 2 {
   494  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
   495  			}
   496  			var msglen int
   497  			for shift := uint(0); ; shift += 7 {
   498  				if shift >= 64 {
   499  					return ErrIntOverflowWrappers
   500  				}
   501  				if iNdEx >= l {
   502  					return io.ErrUnexpectedEOF
   503  				}
   504  				b := dAtA[iNdEx]
   505  				iNdEx++
   506  				msglen |= int(b&0x7F) << shift
   507  				if b < 0x80 {
   508  					break
   509  				}
   510  			}
   511  			if msglen < 0 {
   512  				return ErrInvalidLengthWrappers
   513  			}
   514  			postIndex := iNdEx + msglen
   515  			if postIndex < 0 {
   516  				return ErrInvalidLengthWrappers
   517  			}
   518  			if postIndex > l {
   519  				return io.ErrUnexpectedEOF
   520  			}
   521  			if m.Values == nil {
   522  				m.Values = make(map[string]StringValues)
   523  			}
   524  			var mapkey string
   525  			mapvalue := &StringValues{}
   526  			for iNdEx < postIndex {
   527  				entryPreIndex := iNdEx
   528  				var wire uint64
   529  				for shift := uint(0); ; shift += 7 {
   530  					if shift >= 64 {
   531  						return ErrIntOverflowWrappers
   532  					}
   533  					if iNdEx >= l {
   534  						return io.ErrUnexpectedEOF
   535  					}
   536  					b := dAtA[iNdEx]
   537  					iNdEx++
   538  					wire |= uint64(b&0x7F) << shift
   539  					if b < 0x80 {
   540  						break
   541  					}
   542  				}
   543  				fieldNum := int32(wire >> 3)
   544  				if fieldNum == 1 {
   545  					var stringLenmapkey uint64
   546  					for shift := uint(0); ; shift += 7 {
   547  						if shift >= 64 {
   548  							return ErrIntOverflowWrappers
   549  						}
   550  						if iNdEx >= l {
   551  							return io.ErrUnexpectedEOF
   552  						}
   553  						b := dAtA[iNdEx]
   554  						iNdEx++
   555  						stringLenmapkey |= uint64(b&0x7F) << shift
   556  						if b < 0x80 {
   557  							break
   558  						}
   559  					}
   560  					intStringLenmapkey := int(stringLenmapkey)
   561  					if intStringLenmapkey < 0 {
   562  						return ErrInvalidLengthWrappers
   563  					}
   564  					postStringIndexmapkey := iNdEx + intStringLenmapkey
   565  					if postStringIndexmapkey < 0 {
   566  						return ErrInvalidLengthWrappers
   567  					}
   568  					if postStringIndexmapkey > l {
   569  						return io.ErrUnexpectedEOF
   570  					}
   571  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
   572  					iNdEx = postStringIndexmapkey
   573  				} else if fieldNum == 2 {
   574  					var mapmsglen int
   575  					for shift := uint(0); ; shift += 7 {
   576  						if shift >= 64 {
   577  							return ErrIntOverflowWrappers
   578  						}
   579  						if iNdEx >= l {
   580  							return io.ErrUnexpectedEOF
   581  						}
   582  						b := dAtA[iNdEx]
   583  						iNdEx++
   584  						mapmsglen |= int(b&0x7F) << shift
   585  						if b < 0x80 {
   586  							break
   587  						}
   588  					}
   589  					if mapmsglen < 0 {
   590  						return ErrInvalidLengthWrappers
   591  					}
   592  					postmsgIndex := iNdEx + mapmsglen
   593  					if postmsgIndex < 0 {
   594  						return ErrInvalidLengthWrappers
   595  					}
   596  					if postmsgIndex > l {
   597  						return io.ErrUnexpectedEOF
   598  					}
   599  					mapvalue = &StringValues{}
   600  					if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
   601  						return err
   602  					}
   603  					iNdEx = postmsgIndex
   604  				} else {
   605  					iNdEx = entryPreIndex
   606  					skippy, err := skipWrappers(dAtA[iNdEx:])
   607  					if err != nil {
   608  						return err
   609  					}
   610  					if (skippy < 0) || (iNdEx+skippy) < 0 {
   611  						return ErrInvalidLengthWrappers
   612  					}
   613  					if (iNdEx + skippy) > postIndex {
   614  						return io.ErrUnexpectedEOF
   615  					}
   616  					iNdEx += skippy
   617  				}
   618  			}
   619  			m.Values[mapkey] = *mapvalue
   620  			iNdEx = postIndex
   621  		default:
   622  			iNdEx = preIndex
   623  			skippy, err := skipWrappers(dAtA[iNdEx:])
   624  			if err != nil {
   625  				return err
   626  			}
   627  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   628  				return ErrInvalidLengthWrappers
   629  			}
   630  			if (iNdEx + skippy) > l {
   631  				return io.ErrUnexpectedEOF
   632  			}
   633  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   634  			iNdEx += skippy
   635  		}
   636  	}
   637  
   638  	if iNdEx > l {
   639  		return io.ErrUnexpectedEOF
   640  	}
   641  	return nil
   642  }
   643  func (m *CustomType) Unmarshal(dAtA []byte) error {
   644  	l := len(dAtA)
   645  	iNdEx := 0
   646  	for iNdEx < l {
   647  		preIndex := iNdEx
   648  		var wire uint64
   649  		for shift := uint(0); ; shift += 7 {
   650  			if shift >= 64 {
   651  				return ErrIntOverflowWrappers
   652  			}
   653  			if iNdEx >= l {
   654  				return io.ErrUnexpectedEOF
   655  			}
   656  			b := dAtA[iNdEx]
   657  			iNdEx++
   658  			wire |= uint64(b&0x7F) << shift
   659  			if b < 0x80 {
   660  				break
   661  			}
   662  		}
   663  		fieldNum := int32(wire >> 3)
   664  		wireType := int(wire & 0x7)
   665  		if wireType == 4 {
   666  			return fmt.Errorf("proto: CustomType: wiretype end group for non-group")
   667  		}
   668  		if fieldNum <= 0 {
   669  			return fmt.Errorf("proto: CustomType: illegal tag %d (wire type %d)", fieldNum, wire)
   670  		}
   671  		switch fieldNum {
   672  		case 1:
   673  			if wireType != 2 {
   674  				return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType)
   675  			}
   676  			var byteLen int
   677  			for shift := uint(0); ; shift += 7 {
   678  				if shift >= 64 {
   679  					return ErrIntOverflowWrappers
   680  				}
   681  				if iNdEx >= l {
   682  					return io.ErrUnexpectedEOF
   683  				}
   684  				b := dAtA[iNdEx]
   685  				iNdEx++
   686  				byteLen |= int(b&0x7F) << shift
   687  				if b < 0x80 {
   688  					break
   689  				}
   690  			}
   691  			if byteLen < 0 {
   692  				return ErrInvalidLengthWrappers
   693  			}
   694  			postIndex := iNdEx + byteLen
   695  			if postIndex < 0 {
   696  				return ErrInvalidLengthWrappers
   697  			}
   698  			if postIndex > l {
   699  				return io.ErrUnexpectedEOF
   700  			}
   701  			m.Bytes = append(m.Bytes[:0], dAtA[iNdEx:postIndex]...)
   702  			if m.Bytes == nil {
   703  				m.Bytes = []byte{}
   704  			}
   705  			iNdEx = postIndex
   706  		default:
   707  			iNdEx = preIndex
   708  			skippy, err := skipWrappers(dAtA[iNdEx:])
   709  			if err != nil {
   710  				return err
   711  			}
   712  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   713  				return ErrInvalidLengthWrappers
   714  			}
   715  			if (iNdEx + skippy) > l {
   716  				return io.ErrUnexpectedEOF
   717  			}
   718  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   719  			iNdEx += skippy
   720  		}
   721  	}
   722  
   723  	if iNdEx > l {
   724  		return io.ErrUnexpectedEOF
   725  	}
   726  	return nil
   727  }
   728  func skipWrappers(dAtA []byte) (n int, err error) {
   729  	l := len(dAtA)
   730  	iNdEx := 0
   731  	depth := 0
   732  	for iNdEx < l {
   733  		var wire uint64
   734  		for shift := uint(0); ; shift += 7 {
   735  			if shift >= 64 {
   736  				return 0, ErrIntOverflowWrappers
   737  			}
   738  			if iNdEx >= l {
   739  				return 0, io.ErrUnexpectedEOF
   740  			}
   741  			b := dAtA[iNdEx]
   742  			iNdEx++
   743  			wire |= (uint64(b) & 0x7F) << shift
   744  			if b < 0x80 {
   745  				break
   746  			}
   747  		}
   748  		wireType := int(wire & 0x7)
   749  		switch wireType {
   750  		case 0:
   751  			for shift := uint(0); ; shift += 7 {
   752  				if shift >= 64 {
   753  					return 0, ErrIntOverflowWrappers
   754  				}
   755  				if iNdEx >= l {
   756  					return 0, io.ErrUnexpectedEOF
   757  				}
   758  				iNdEx++
   759  				if dAtA[iNdEx-1] < 0x80 {
   760  					break
   761  				}
   762  			}
   763  		case 1:
   764  			iNdEx += 8
   765  		case 2:
   766  			var length int
   767  			for shift := uint(0); ; shift += 7 {
   768  				if shift >= 64 {
   769  					return 0, ErrIntOverflowWrappers
   770  				}
   771  				if iNdEx >= l {
   772  					return 0, io.ErrUnexpectedEOF
   773  				}
   774  				b := dAtA[iNdEx]
   775  				iNdEx++
   776  				length |= (int(b) & 0x7F) << shift
   777  				if b < 0x80 {
   778  					break
   779  				}
   780  			}
   781  			if length < 0 {
   782  				return 0, ErrInvalidLengthWrappers
   783  			}
   784  			iNdEx += length
   785  		case 3:
   786  			depth++
   787  		case 4:
   788  			if depth == 0 {
   789  				return 0, ErrUnexpectedEndOfGroupWrappers
   790  			}
   791  			depth--
   792  		case 5:
   793  			iNdEx += 4
   794  		default:
   795  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   796  		}
   797  		if iNdEx < 0 {
   798  			return 0, ErrInvalidLengthWrappers
   799  		}
   800  		if depth == 0 {
   801  			return iNdEx, nil
   802  		}
   803  	}
   804  	return 0, io.ErrUnexpectedEOF
   805  }
   806  
   807  var (
   808  	ErrInvalidLengthWrappers        = fmt.Errorf("proto: negative length found during unmarshaling")
   809  	ErrIntOverflowWrappers          = fmt.Errorf("proto: integer overflow")
   810  	ErrUnexpectedEndOfGroupWrappers = fmt.Errorf("proto: unexpected end of group")
   811  )