github.com/spotmaxtech/k8s-apimachinery-v0260@v0.0.1/pkg/runtime/generated.pb.go (about)

     1  /*
     2  Copyright The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // Code generated by protoc-gen-gogo. DO NOT EDIT.
    18  // source: k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/generated.proto
    19  
    20  package runtime
    21  
    22  import (
    23  	fmt "fmt"
    24  
    25  	io "io"
    26  	math "math"
    27  	math_bits "math/bits"
    28  	reflect "reflect"
    29  	strings "strings"
    30  
    31  	proto "github.com/gogo/protobuf/proto"
    32  )
    33  
    34  // Reference imports to suppress errors if they are not otherwise used.
    35  var _ = proto.Marshal
    36  var _ = fmt.Errorf
    37  var _ = math.Inf
    38  
    39  // This is a compile-time assertion to ensure that this generated file
    40  // is compatible with the proto package it is being compiled against.
    41  // A compilation error at this line likely means your copy of the
    42  // proto package needs to be updated.
    43  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    44  
    45  func (m *RawExtension) Reset()      { *m = RawExtension{} }
    46  func (*RawExtension) ProtoMessage() {}
    47  func (*RawExtension) Descriptor() ([]byte, []int) {
    48  	return fileDescriptor_9d3c45d7f546725c, []int{0}
    49  }
    50  func (m *RawExtension) XXX_Unmarshal(b []byte) error {
    51  	return m.Unmarshal(b)
    52  }
    53  func (m *RawExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    54  	b = b[:cap(b)]
    55  	n, err := m.MarshalToSizedBuffer(b)
    56  	if err != nil {
    57  		return nil, err
    58  	}
    59  	return b[:n], nil
    60  }
    61  func (m *RawExtension) XXX_Merge(src proto.Message) {
    62  	xxx_messageInfo_RawExtension.Merge(m, src)
    63  }
    64  func (m *RawExtension) XXX_Size() int {
    65  	return m.Size()
    66  }
    67  func (m *RawExtension) XXX_DiscardUnknown() {
    68  	xxx_messageInfo_RawExtension.DiscardUnknown(m)
    69  }
    70  
    71  var xxx_messageInfo_RawExtension proto.InternalMessageInfo
    72  
    73  func (m *TypeMeta) Reset()      { *m = TypeMeta{} }
    74  func (*TypeMeta) ProtoMessage() {}
    75  func (*TypeMeta) Descriptor() ([]byte, []int) {
    76  	return fileDescriptor_9d3c45d7f546725c, []int{1}
    77  }
    78  func (m *TypeMeta) XXX_Unmarshal(b []byte) error {
    79  	return m.Unmarshal(b)
    80  }
    81  func (m *TypeMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    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  func (m *TypeMeta) XXX_Merge(src proto.Message) {
    90  	xxx_messageInfo_TypeMeta.Merge(m, src)
    91  }
    92  func (m *TypeMeta) XXX_Size() int {
    93  	return m.Size()
    94  }
    95  func (m *TypeMeta) XXX_DiscardUnknown() {
    96  	xxx_messageInfo_TypeMeta.DiscardUnknown(m)
    97  }
    98  
    99  var xxx_messageInfo_TypeMeta proto.InternalMessageInfo
   100  
   101  func (m *Unknown) Reset()      { *m = Unknown{} }
   102  func (*Unknown) ProtoMessage() {}
   103  func (*Unknown) Descriptor() ([]byte, []int) {
   104  	return fileDescriptor_9d3c45d7f546725c, []int{2}
   105  }
   106  func (m *Unknown) XXX_Unmarshal(b []byte) error {
   107  	return m.Unmarshal(b)
   108  }
   109  func (m *Unknown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   110  	b = b[:cap(b)]
   111  	n, err := m.MarshalToSizedBuffer(b)
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return b[:n], nil
   116  }
   117  func (m *Unknown) XXX_Merge(src proto.Message) {
   118  	xxx_messageInfo_Unknown.Merge(m, src)
   119  }
   120  func (m *Unknown) XXX_Size() int {
   121  	return m.Size()
   122  }
   123  func (m *Unknown) XXX_DiscardUnknown() {
   124  	xxx_messageInfo_Unknown.DiscardUnknown(m)
   125  }
   126  
   127  var xxx_messageInfo_Unknown proto.InternalMessageInfo
   128  
   129  func init() {
   130  	proto.RegisterType((*RawExtension)(nil), "k8s.io.apimachinery.pkg.runtime.RawExtension")
   131  	proto.RegisterType((*TypeMeta)(nil), "k8s.io.apimachinery.pkg.runtime.TypeMeta")
   132  	proto.RegisterType((*Unknown)(nil), "k8s.io.apimachinery.pkg.runtime.Unknown")
   133  }
   134  
   135  func init() {
   136  	proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/generated.proto", fileDescriptor_9d3c45d7f546725c)
   137  }
   138  
   139  var fileDescriptor_9d3c45d7f546725c = []byte{
   140  	// 380 bytes of a gzipped FileDescriptorProto
   141  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xcf, 0xaa, 0x13, 0x31,
   142  	0x14, 0xc6, 0x27, 0xb7, 0x85, 0x7b, 0x4d, 0x0b, 0x57, 0xe2, 0xc2, 0xd1, 0x45, 0xe6, 0xd2, 0x95,
   143  	0x77, 0x61, 0x02, 0x17, 0x04, 0xb7, 0x9d, 0x52, 0x50, 0x44, 0x90, 0xe0, 0x1f, 0x70, 0x65, 0x3a,
   144  	0x13, 0xa7, 0x61, 0xe8, 0xc9, 0x90, 0x66, 0x1c, 0xbb, 0xf3, 0x11, 0x7c, 0xac, 0x2e, 0xbb, 0xec,
   145  	0xaa, 0xd8, 0xf1, 0x21, 0xdc, 0x4a, 0xd3, 0xb4, 0x56, 0x5d, 0x74, 0x97, 0x73, 0xbe, 0xef, 0xf7,
   146  	0x9d, 0x73, 0x20, 0xf8, 0x45, 0xf9, 0x7c, 0xce, 0xb4, 0xe1, 0x65, 0x3d, 0x51, 0x16, 0x94, 0x53,
   147  	0x73, 0xfe, 0x45, 0x41, 0x6e, 0x2c, 0x0f, 0x82, 0xac, 0xf4, 0x4c, 0x66, 0x53, 0x0d, 0xca, 0x2e,
   148  	0x78, 0x55, 0x16, 0xdc, 0xd6, 0xe0, 0xf4, 0x4c, 0xf1, 0x42, 0x81, 0xb2, 0xd2, 0xa9, 0x9c, 0x55,
   149  	0xd6, 0x38, 0x43, 0x92, 0x3d, 0xc0, 0x4e, 0x01, 0x56, 0x95, 0x05, 0x0b, 0xc0, 0xe3, 0xa7, 0x85,
   150  	0x76, 0xd3, 0x7a, 0xc2, 0x32, 0x33, 0xe3, 0x85, 0x29, 0x0c, 0xf7, 0xdc, 0xa4, 0xfe, 0xec, 0x2b,
   151  	0x5f, 0xf8, 0xd7, 0x3e, 0x6f, 0x70, 0x8b, 0xfb, 0x42, 0x36, 0xe3, 0xaf, 0x4e, 0xc1, 0x5c, 0x1b,
   152  	0x20, 0x8f, 0x70, 0xc7, 0xca, 0x26, 0x46, 0x37, 0xe8, 0x49, 0x3f, 0xbd, 0x6c, 0x37, 0x49, 0x47,
   153  	0xc8, 0x46, 0xec, 0x7a, 0x83, 0x4f, 0xf8, 0xea, 0xed, 0xa2, 0x52, 0xaf, 0x95, 0x93, 0xe4, 0x0e,
   154  	0x63, 0x59, 0xe9, 0xf7, 0xca, 0xee, 0x20, 0xef, 0xbe, 0x97, 0x92, 0xe5, 0x26, 0x89, 0xda, 0x4d,
   155  	0x82, 0x87, 0x6f, 0x5e, 0x06, 0x45, 0x9c, 0xb8, 0xc8, 0x0d, 0xee, 0x96, 0x1a, 0xf2, 0xf8, 0xc2,
   156  	0xbb, 0xfb, 0xc1, 0xdd, 0x7d, 0xa5, 0x21, 0x17, 0x5e, 0x19, 0xfc, 0x42, 0xf8, 0xf2, 0x1d, 0x94,
   157  	0x60, 0x1a, 0x20, 0x1f, 0xf0, 0x95, 0x0b, 0xd3, 0x7c, 0x7e, 0xef, 0xee, 0x96, 0x9d, 0xb9, 0x9d,
   158  	0x1d, 0xd6, 0x4b, 0xef, 0x87, 0xf0, 0xe3, 0xc2, 0xe2, 0x18, 0x76, 0xb8, 0xf0, 0xe2, 0xff, 0x0b,
   159  	0xc9, 0x10, 0x5f, 0x67, 0x06, 0x9c, 0x02, 0x37, 0x86, 0xcc, 0xe4, 0x1a, 0x8a, 0xb8, 0xe3, 0x97,
   160  	0x7d, 0x18, 0xf2, 0xae, 0x47, 0x7f, 0xcb, 0xe2, 0x5f, 0x3f, 0x79, 0x86, 0x7b, 0xa1, 0xb5, 0x1b,
   161  	0x1d, 0x77, 0x3d, 0xfe, 0x20, 0xe0, 0xbd, 0xd1, 0x1f, 0x49, 0x9c, 0xfa, 0xd2, 0xf1, 0x72, 0x4b,
   162  	0xa3, 0xd5, 0x96, 0x46, 0xeb, 0x2d, 0x8d, 0xbe, 0xb5, 0x14, 0x2d, 0x5b, 0x8a, 0x56, 0x2d, 0x45,
   163  	0xeb, 0x96, 0xa2, 0x1f, 0x2d, 0x45, 0xdf, 0x7f, 0xd2, 0xe8, 0x63, 0x72, 0xe6, 0xb7, 0xfc, 0x0e,
   164  	0x00, 0x00, 0xff, 0xff, 0x1f, 0x32, 0xd5, 0x68, 0x68, 0x02, 0x00, 0x00,
   165  }
   166  
   167  func (m *RawExtension) Marshal() (dAtA []byte, err error) {
   168  	size := m.Size()
   169  	dAtA = make([]byte, size)
   170  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   171  	if err != nil {
   172  		return nil, err
   173  	}
   174  	return dAtA[:n], nil
   175  }
   176  
   177  func (m *RawExtension) MarshalTo(dAtA []byte) (int, error) {
   178  	size := m.Size()
   179  	return m.MarshalToSizedBuffer(dAtA[:size])
   180  }
   181  
   182  func (m *RawExtension) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   183  	i := len(dAtA)
   184  	_ = i
   185  	var l int
   186  	_ = l
   187  	if m.Raw != nil {
   188  		i -= len(m.Raw)
   189  		copy(dAtA[i:], m.Raw)
   190  		i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw)))
   191  		i--
   192  		dAtA[i] = 0xa
   193  	}
   194  	return len(dAtA) - i, nil
   195  }
   196  
   197  func (m *TypeMeta) 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 *TypeMeta) MarshalTo(dAtA []byte) (int, error) {
   208  	size := m.Size()
   209  	return m.MarshalToSizedBuffer(dAtA[:size])
   210  }
   211  
   212  func (m *TypeMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   213  	i := len(dAtA)
   214  	_ = i
   215  	var l int
   216  	_ = l
   217  	i -= len(m.Kind)
   218  	copy(dAtA[i:], m.Kind)
   219  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.Kind)))
   220  	i--
   221  	dAtA[i] = 0x12
   222  	i -= len(m.APIVersion)
   223  	copy(dAtA[i:], m.APIVersion)
   224  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.APIVersion)))
   225  	i--
   226  	dAtA[i] = 0xa
   227  	return len(dAtA) - i, nil
   228  }
   229  
   230  func (m *Unknown) Marshal() (dAtA []byte, err error) {
   231  	size := m.Size()
   232  	dAtA = make([]byte, size)
   233  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   234  	if err != nil {
   235  		return nil, err
   236  	}
   237  	return dAtA[:n], nil
   238  }
   239  
   240  func (m *Unknown) MarshalTo(dAtA []byte) (int, error) {
   241  	size := m.Size()
   242  	return m.MarshalToSizedBuffer(dAtA[:size])
   243  }
   244  
   245  func (m *Unknown) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   246  	i := len(dAtA)
   247  	_ = i
   248  	var l int
   249  	_ = l
   250  	i -= len(m.ContentType)
   251  	copy(dAtA[i:], m.ContentType)
   252  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentType)))
   253  	i--
   254  	dAtA[i] = 0x22
   255  	i -= len(m.ContentEncoding)
   256  	copy(dAtA[i:], m.ContentEncoding)
   257  	i = encodeVarintGenerated(dAtA, i, uint64(len(m.ContentEncoding)))
   258  	i--
   259  	dAtA[i] = 0x1a
   260  	if m.Raw != nil {
   261  		i -= len(m.Raw)
   262  		copy(dAtA[i:], m.Raw)
   263  		i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw)))
   264  		i--
   265  		dAtA[i] = 0x12
   266  	}
   267  	{
   268  		size, err := m.TypeMeta.MarshalToSizedBuffer(dAtA[:i])
   269  		if err != nil {
   270  			return 0, err
   271  		}
   272  		i -= size
   273  		i = encodeVarintGenerated(dAtA, i, uint64(size))
   274  	}
   275  	i--
   276  	dAtA[i] = 0xa
   277  	return len(dAtA) - i, nil
   278  }
   279  
   280  func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
   281  	offset -= sovGenerated(v)
   282  	base := offset
   283  	for v >= 1<<7 {
   284  		dAtA[offset] = uint8(v&0x7f | 0x80)
   285  		v >>= 7
   286  		offset++
   287  	}
   288  	dAtA[offset] = uint8(v)
   289  	return base
   290  }
   291  func (m *RawExtension) Size() (n int) {
   292  	if m == nil {
   293  		return 0
   294  	}
   295  	var l int
   296  	_ = l
   297  	if m.Raw != nil {
   298  		l = len(m.Raw)
   299  		n += 1 + l + sovGenerated(uint64(l))
   300  	}
   301  	return n
   302  }
   303  
   304  func (m *TypeMeta) Size() (n int) {
   305  	if m == nil {
   306  		return 0
   307  	}
   308  	var l int
   309  	_ = l
   310  	l = len(m.APIVersion)
   311  	n += 1 + l + sovGenerated(uint64(l))
   312  	l = len(m.Kind)
   313  	n += 1 + l + sovGenerated(uint64(l))
   314  	return n
   315  }
   316  
   317  func (m *Unknown) Size() (n int) {
   318  	if m == nil {
   319  		return 0
   320  	}
   321  	var l int
   322  	_ = l
   323  	l = m.TypeMeta.Size()
   324  	n += 1 + l + sovGenerated(uint64(l))
   325  	if m.Raw != nil {
   326  		l = len(m.Raw)
   327  		n += 1 + l + sovGenerated(uint64(l))
   328  	}
   329  	l = len(m.ContentEncoding)
   330  	n += 1 + l + sovGenerated(uint64(l))
   331  	l = len(m.ContentType)
   332  	n += 1 + l + sovGenerated(uint64(l))
   333  	return n
   334  }
   335  
   336  func sovGenerated(x uint64) (n int) {
   337  	return (math_bits.Len64(x|1) + 6) / 7
   338  }
   339  func sozGenerated(x uint64) (n int) {
   340  	return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   341  }
   342  func (this *RawExtension) String() string {
   343  	if this == nil {
   344  		return "nil"
   345  	}
   346  	s := strings.Join([]string{`&RawExtension{`,
   347  		`Raw:` + valueToStringGenerated(this.Raw) + `,`,
   348  		`}`,
   349  	}, "")
   350  	return s
   351  }
   352  func (this *TypeMeta) String() string {
   353  	if this == nil {
   354  		return "nil"
   355  	}
   356  	s := strings.Join([]string{`&TypeMeta{`,
   357  		`APIVersion:` + fmt.Sprintf("%v", this.APIVersion) + `,`,
   358  		`Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
   359  		`}`,
   360  	}, "")
   361  	return s
   362  }
   363  func (this *Unknown) String() string {
   364  	if this == nil {
   365  		return "nil"
   366  	}
   367  	s := strings.Join([]string{`&Unknown{`,
   368  		`TypeMeta:` + strings.Replace(strings.Replace(this.TypeMeta.String(), "TypeMeta", "TypeMeta", 1), `&`, ``, 1) + `,`,
   369  		`Raw:` + valueToStringGenerated(this.Raw) + `,`,
   370  		`ContentEncoding:` + fmt.Sprintf("%v", this.ContentEncoding) + `,`,
   371  		`ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`,
   372  		`}`,
   373  	}, "")
   374  	return s
   375  }
   376  func valueToStringGenerated(v interface{}) string {
   377  	rv := reflect.ValueOf(v)
   378  	if rv.IsNil() {
   379  		return "nil"
   380  	}
   381  	pv := reflect.Indirect(rv).Interface()
   382  	return fmt.Sprintf("*%v", pv)
   383  }
   384  func (m *RawExtension) Unmarshal(dAtA []byte) error {
   385  	l := len(dAtA)
   386  	iNdEx := 0
   387  	for iNdEx < l {
   388  		preIndex := iNdEx
   389  		var wire uint64
   390  		for shift := uint(0); ; shift += 7 {
   391  			if shift >= 64 {
   392  				return ErrIntOverflowGenerated
   393  			}
   394  			if iNdEx >= l {
   395  				return io.ErrUnexpectedEOF
   396  			}
   397  			b := dAtA[iNdEx]
   398  			iNdEx++
   399  			wire |= uint64(b&0x7F) << shift
   400  			if b < 0x80 {
   401  				break
   402  			}
   403  		}
   404  		fieldNum := int32(wire >> 3)
   405  		wireType := int(wire & 0x7)
   406  		if wireType == 4 {
   407  			return fmt.Errorf("proto: RawExtension: wiretype end group for non-group")
   408  		}
   409  		if fieldNum <= 0 {
   410  			return fmt.Errorf("proto: RawExtension: illegal tag %d (wire type %d)", fieldNum, wire)
   411  		}
   412  		switch fieldNum {
   413  		case 1:
   414  			if wireType != 2 {
   415  				return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
   416  			}
   417  			var byteLen int
   418  			for shift := uint(0); ; shift += 7 {
   419  				if shift >= 64 {
   420  					return ErrIntOverflowGenerated
   421  				}
   422  				if iNdEx >= l {
   423  					return io.ErrUnexpectedEOF
   424  				}
   425  				b := dAtA[iNdEx]
   426  				iNdEx++
   427  				byteLen |= int(b&0x7F) << shift
   428  				if b < 0x80 {
   429  					break
   430  				}
   431  			}
   432  			if byteLen < 0 {
   433  				return ErrInvalidLengthGenerated
   434  			}
   435  			postIndex := iNdEx + byteLen
   436  			if postIndex < 0 {
   437  				return ErrInvalidLengthGenerated
   438  			}
   439  			if postIndex > l {
   440  				return io.ErrUnexpectedEOF
   441  			}
   442  			m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...)
   443  			if m.Raw == nil {
   444  				m.Raw = []byte{}
   445  			}
   446  			iNdEx = postIndex
   447  		default:
   448  			iNdEx = preIndex
   449  			skippy, err := skipGenerated(dAtA[iNdEx:])
   450  			if err != nil {
   451  				return err
   452  			}
   453  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   454  				return ErrInvalidLengthGenerated
   455  			}
   456  			if (iNdEx + skippy) > l {
   457  				return io.ErrUnexpectedEOF
   458  			}
   459  			iNdEx += skippy
   460  		}
   461  	}
   462  
   463  	if iNdEx > l {
   464  		return io.ErrUnexpectedEOF
   465  	}
   466  	return nil
   467  }
   468  func (m *TypeMeta) Unmarshal(dAtA []byte) error {
   469  	l := len(dAtA)
   470  	iNdEx := 0
   471  	for iNdEx < l {
   472  		preIndex := iNdEx
   473  		var wire uint64
   474  		for shift := uint(0); ; shift += 7 {
   475  			if shift >= 64 {
   476  				return ErrIntOverflowGenerated
   477  			}
   478  			if iNdEx >= l {
   479  				return io.ErrUnexpectedEOF
   480  			}
   481  			b := dAtA[iNdEx]
   482  			iNdEx++
   483  			wire |= uint64(b&0x7F) << shift
   484  			if b < 0x80 {
   485  				break
   486  			}
   487  		}
   488  		fieldNum := int32(wire >> 3)
   489  		wireType := int(wire & 0x7)
   490  		if wireType == 4 {
   491  			return fmt.Errorf("proto: TypeMeta: wiretype end group for non-group")
   492  		}
   493  		if fieldNum <= 0 {
   494  			return fmt.Errorf("proto: TypeMeta: illegal tag %d (wire type %d)", fieldNum, wire)
   495  		}
   496  		switch fieldNum {
   497  		case 1:
   498  			if wireType != 2 {
   499  				return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType)
   500  			}
   501  			var stringLen uint64
   502  			for shift := uint(0); ; shift += 7 {
   503  				if shift >= 64 {
   504  					return ErrIntOverflowGenerated
   505  				}
   506  				if iNdEx >= l {
   507  					return io.ErrUnexpectedEOF
   508  				}
   509  				b := dAtA[iNdEx]
   510  				iNdEx++
   511  				stringLen |= uint64(b&0x7F) << shift
   512  				if b < 0x80 {
   513  					break
   514  				}
   515  			}
   516  			intStringLen := int(stringLen)
   517  			if intStringLen < 0 {
   518  				return ErrInvalidLengthGenerated
   519  			}
   520  			postIndex := iNdEx + intStringLen
   521  			if postIndex < 0 {
   522  				return ErrInvalidLengthGenerated
   523  			}
   524  			if postIndex > l {
   525  				return io.ErrUnexpectedEOF
   526  			}
   527  			m.APIVersion = string(dAtA[iNdEx:postIndex])
   528  			iNdEx = postIndex
   529  		case 2:
   530  			if wireType != 2 {
   531  				return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
   532  			}
   533  			var stringLen uint64
   534  			for shift := uint(0); ; shift += 7 {
   535  				if shift >= 64 {
   536  					return ErrIntOverflowGenerated
   537  				}
   538  				if iNdEx >= l {
   539  					return io.ErrUnexpectedEOF
   540  				}
   541  				b := dAtA[iNdEx]
   542  				iNdEx++
   543  				stringLen |= uint64(b&0x7F) << shift
   544  				if b < 0x80 {
   545  					break
   546  				}
   547  			}
   548  			intStringLen := int(stringLen)
   549  			if intStringLen < 0 {
   550  				return ErrInvalidLengthGenerated
   551  			}
   552  			postIndex := iNdEx + intStringLen
   553  			if postIndex < 0 {
   554  				return ErrInvalidLengthGenerated
   555  			}
   556  			if postIndex > l {
   557  				return io.ErrUnexpectedEOF
   558  			}
   559  			m.Kind = string(dAtA[iNdEx:postIndex])
   560  			iNdEx = postIndex
   561  		default:
   562  			iNdEx = preIndex
   563  			skippy, err := skipGenerated(dAtA[iNdEx:])
   564  			if err != nil {
   565  				return err
   566  			}
   567  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   568  				return ErrInvalidLengthGenerated
   569  			}
   570  			if (iNdEx + skippy) > l {
   571  				return io.ErrUnexpectedEOF
   572  			}
   573  			iNdEx += skippy
   574  		}
   575  	}
   576  
   577  	if iNdEx > l {
   578  		return io.ErrUnexpectedEOF
   579  	}
   580  	return nil
   581  }
   582  func (m *Unknown) Unmarshal(dAtA []byte) error {
   583  	l := len(dAtA)
   584  	iNdEx := 0
   585  	for iNdEx < l {
   586  		preIndex := iNdEx
   587  		var wire uint64
   588  		for shift := uint(0); ; shift += 7 {
   589  			if shift >= 64 {
   590  				return ErrIntOverflowGenerated
   591  			}
   592  			if iNdEx >= l {
   593  				return io.ErrUnexpectedEOF
   594  			}
   595  			b := dAtA[iNdEx]
   596  			iNdEx++
   597  			wire |= uint64(b&0x7F) << shift
   598  			if b < 0x80 {
   599  				break
   600  			}
   601  		}
   602  		fieldNum := int32(wire >> 3)
   603  		wireType := int(wire & 0x7)
   604  		if wireType == 4 {
   605  			return fmt.Errorf("proto: Unknown: wiretype end group for non-group")
   606  		}
   607  		if fieldNum <= 0 {
   608  			return fmt.Errorf("proto: Unknown: illegal tag %d (wire type %d)", fieldNum, wire)
   609  		}
   610  		switch fieldNum {
   611  		case 1:
   612  			if wireType != 2 {
   613  				return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", wireType)
   614  			}
   615  			var msglen int
   616  			for shift := uint(0); ; shift += 7 {
   617  				if shift >= 64 {
   618  					return ErrIntOverflowGenerated
   619  				}
   620  				if iNdEx >= l {
   621  					return io.ErrUnexpectedEOF
   622  				}
   623  				b := dAtA[iNdEx]
   624  				iNdEx++
   625  				msglen |= int(b&0x7F) << shift
   626  				if b < 0x80 {
   627  					break
   628  				}
   629  			}
   630  			if msglen < 0 {
   631  				return ErrInvalidLengthGenerated
   632  			}
   633  			postIndex := iNdEx + msglen
   634  			if postIndex < 0 {
   635  				return ErrInvalidLengthGenerated
   636  			}
   637  			if postIndex > l {
   638  				return io.ErrUnexpectedEOF
   639  			}
   640  			if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   641  				return err
   642  			}
   643  			iNdEx = postIndex
   644  		case 2:
   645  			if wireType != 2 {
   646  				return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
   647  			}
   648  			var byteLen int
   649  			for shift := uint(0); ; shift += 7 {
   650  				if shift >= 64 {
   651  					return ErrIntOverflowGenerated
   652  				}
   653  				if iNdEx >= l {
   654  					return io.ErrUnexpectedEOF
   655  				}
   656  				b := dAtA[iNdEx]
   657  				iNdEx++
   658  				byteLen |= int(b&0x7F) << shift
   659  				if b < 0x80 {
   660  					break
   661  				}
   662  			}
   663  			if byteLen < 0 {
   664  				return ErrInvalidLengthGenerated
   665  			}
   666  			postIndex := iNdEx + byteLen
   667  			if postIndex < 0 {
   668  				return ErrInvalidLengthGenerated
   669  			}
   670  			if postIndex > l {
   671  				return io.ErrUnexpectedEOF
   672  			}
   673  			m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...)
   674  			if m.Raw == nil {
   675  				m.Raw = []byte{}
   676  			}
   677  			iNdEx = postIndex
   678  		case 3:
   679  			if wireType != 2 {
   680  				return fmt.Errorf("proto: wrong wireType = %d for field ContentEncoding", wireType)
   681  			}
   682  			var stringLen uint64
   683  			for shift := uint(0); ; shift += 7 {
   684  				if shift >= 64 {
   685  					return ErrIntOverflowGenerated
   686  				}
   687  				if iNdEx >= l {
   688  					return io.ErrUnexpectedEOF
   689  				}
   690  				b := dAtA[iNdEx]
   691  				iNdEx++
   692  				stringLen |= uint64(b&0x7F) << shift
   693  				if b < 0x80 {
   694  					break
   695  				}
   696  			}
   697  			intStringLen := int(stringLen)
   698  			if intStringLen < 0 {
   699  				return ErrInvalidLengthGenerated
   700  			}
   701  			postIndex := iNdEx + intStringLen
   702  			if postIndex < 0 {
   703  				return ErrInvalidLengthGenerated
   704  			}
   705  			if postIndex > l {
   706  				return io.ErrUnexpectedEOF
   707  			}
   708  			m.ContentEncoding = string(dAtA[iNdEx:postIndex])
   709  			iNdEx = postIndex
   710  		case 4:
   711  			if wireType != 2 {
   712  				return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType)
   713  			}
   714  			var stringLen uint64
   715  			for shift := uint(0); ; shift += 7 {
   716  				if shift >= 64 {
   717  					return ErrIntOverflowGenerated
   718  				}
   719  				if iNdEx >= l {
   720  					return io.ErrUnexpectedEOF
   721  				}
   722  				b := dAtA[iNdEx]
   723  				iNdEx++
   724  				stringLen |= uint64(b&0x7F) << shift
   725  				if b < 0x80 {
   726  					break
   727  				}
   728  			}
   729  			intStringLen := int(stringLen)
   730  			if intStringLen < 0 {
   731  				return ErrInvalidLengthGenerated
   732  			}
   733  			postIndex := iNdEx + intStringLen
   734  			if postIndex < 0 {
   735  				return ErrInvalidLengthGenerated
   736  			}
   737  			if postIndex > l {
   738  				return io.ErrUnexpectedEOF
   739  			}
   740  			m.ContentType = string(dAtA[iNdEx:postIndex])
   741  			iNdEx = postIndex
   742  		default:
   743  			iNdEx = preIndex
   744  			skippy, err := skipGenerated(dAtA[iNdEx:])
   745  			if err != nil {
   746  				return err
   747  			}
   748  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   749  				return ErrInvalidLengthGenerated
   750  			}
   751  			if (iNdEx + skippy) > l {
   752  				return io.ErrUnexpectedEOF
   753  			}
   754  			iNdEx += skippy
   755  		}
   756  	}
   757  
   758  	if iNdEx > l {
   759  		return io.ErrUnexpectedEOF
   760  	}
   761  	return nil
   762  }
   763  func skipGenerated(dAtA []byte) (n int, err error) {
   764  	l := len(dAtA)
   765  	iNdEx := 0
   766  	depth := 0
   767  	for iNdEx < l {
   768  		var wire uint64
   769  		for shift := uint(0); ; shift += 7 {
   770  			if shift >= 64 {
   771  				return 0, ErrIntOverflowGenerated
   772  			}
   773  			if iNdEx >= l {
   774  				return 0, io.ErrUnexpectedEOF
   775  			}
   776  			b := dAtA[iNdEx]
   777  			iNdEx++
   778  			wire |= (uint64(b) & 0x7F) << shift
   779  			if b < 0x80 {
   780  				break
   781  			}
   782  		}
   783  		wireType := int(wire & 0x7)
   784  		switch wireType {
   785  		case 0:
   786  			for shift := uint(0); ; shift += 7 {
   787  				if shift >= 64 {
   788  					return 0, ErrIntOverflowGenerated
   789  				}
   790  				if iNdEx >= l {
   791  					return 0, io.ErrUnexpectedEOF
   792  				}
   793  				iNdEx++
   794  				if dAtA[iNdEx-1] < 0x80 {
   795  					break
   796  				}
   797  			}
   798  		case 1:
   799  			iNdEx += 8
   800  		case 2:
   801  			var length int
   802  			for shift := uint(0); ; shift += 7 {
   803  				if shift >= 64 {
   804  					return 0, ErrIntOverflowGenerated
   805  				}
   806  				if iNdEx >= l {
   807  					return 0, io.ErrUnexpectedEOF
   808  				}
   809  				b := dAtA[iNdEx]
   810  				iNdEx++
   811  				length |= (int(b) & 0x7F) << shift
   812  				if b < 0x80 {
   813  					break
   814  				}
   815  			}
   816  			if length < 0 {
   817  				return 0, ErrInvalidLengthGenerated
   818  			}
   819  			iNdEx += length
   820  		case 3:
   821  			depth++
   822  		case 4:
   823  			if depth == 0 {
   824  				return 0, ErrUnexpectedEndOfGroupGenerated
   825  			}
   826  			depth--
   827  		case 5:
   828  			iNdEx += 4
   829  		default:
   830  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   831  		}
   832  		if iNdEx < 0 {
   833  			return 0, ErrInvalidLengthGenerated
   834  		}
   835  		if depth == 0 {
   836  			return iNdEx, nil
   837  		}
   838  	}
   839  	return 0, io.ErrUnexpectedEOF
   840  }
   841  
   842  var (
   843  	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
   844  	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
   845  	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
   846  )