blob: 071971817317d20404b5505874415ab711ffd9b7 [file] [log] [blame]
Matteo Scandoloa4285862020-12-01 18:10:10 -08001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations 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
20package runtime
21
22import (
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.
35var _ = proto.Marshal
36var _ = fmt.Errorf
37var _ = 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.
43const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
44
45func (m *RawExtension) Reset() { *m = RawExtension{} }
46func (*RawExtension) ProtoMessage() {}
47func (*RawExtension) Descriptor() ([]byte, []int) {
48 return fileDescriptor_9d3c45d7f546725c, []int{0}
49}
50func (m *RawExtension) XXX_Unmarshal(b []byte) error {
51 return m.Unmarshal(b)
52}
53func (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}
61func (m *RawExtension) XXX_Merge(src proto.Message) {
62 xxx_messageInfo_RawExtension.Merge(m, src)
63}
64func (m *RawExtension) XXX_Size() int {
65 return m.Size()
66}
67func (m *RawExtension) XXX_DiscardUnknown() {
68 xxx_messageInfo_RawExtension.DiscardUnknown(m)
69}
70
71var xxx_messageInfo_RawExtension proto.InternalMessageInfo
72
73func (m *TypeMeta) Reset() { *m = TypeMeta{} }
74func (*TypeMeta) ProtoMessage() {}
75func (*TypeMeta) Descriptor() ([]byte, []int) {
76 return fileDescriptor_9d3c45d7f546725c, []int{1}
77}
78func (m *TypeMeta) XXX_Unmarshal(b []byte) error {
79 return m.Unmarshal(b)
80}
81func (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}
89func (m *TypeMeta) XXX_Merge(src proto.Message) {
90 xxx_messageInfo_TypeMeta.Merge(m, src)
91}
92func (m *TypeMeta) XXX_Size() int {
93 return m.Size()
94}
95func (m *TypeMeta) XXX_DiscardUnknown() {
96 xxx_messageInfo_TypeMeta.DiscardUnknown(m)
97}
98
99var xxx_messageInfo_TypeMeta proto.InternalMessageInfo
100
101func (m *Unknown) Reset() { *m = Unknown{} }
102func (*Unknown) ProtoMessage() {}
103func (*Unknown) Descriptor() ([]byte, []int) {
104 return fileDescriptor_9d3c45d7f546725c, []int{2}
105}
106func (m *Unknown) XXX_Unmarshal(b []byte) error {
107 return m.Unmarshal(b)
108}
109func (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}
117func (m *Unknown) XXX_Merge(src proto.Message) {
118 xxx_messageInfo_Unknown.Merge(m, src)
119}
120func (m *Unknown) XXX_Size() int {
121 return m.Size()
122}
123func (m *Unknown) XXX_DiscardUnknown() {
124 xxx_messageInfo_Unknown.DiscardUnknown(m)
125}
126
127var xxx_messageInfo_Unknown proto.InternalMessageInfo
128
129func 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
135func init() {
136 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/runtime/generated.proto", fileDescriptor_9d3c45d7f546725c)
137}
138
139var fileDescriptor_9d3c45d7f546725c = []byte{
140 // 378 bytes of a gzipped FileDescriptorProto
141 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x8f, 0x4f, 0xab, 0x13, 0x31,
142 0x14, 0xc5, 0x27, 0xaf, 0x85, 0x3e, 0xd3, 0xc2, 0x93, 0xb8, 0x70, 0x74, 0x91, 0x79, 0x74, 0xe5,
143 0x5b, 0xbc, 0x04, 0x1e, 0x08, 0x6e, 0x3b, 0xa5, 0xa0, 0x88, 0x20, 0xc1, 0x3f, 0xe0, 0xca, 0x74,
144 0x26, 0x4e, 0xc3, 0xd0, 0x9b, 0x21, 0xcd, 0x38, 0x76, 0xe7, 0x47, 0xf0, 0x63, 0x75, 0xd9, 0x65,
145 0x57, 0xc5, 0x8e, 0x1f, 0xc2, 0xad, 0x34, 0x4d, 0x6b, 0xd5, 0x85, 0xbb, 0xe4, 0x9e, 0xf3, 0x3b,
146 0xf7, 0x1e, 0xfc, 0xbc, 0x7c, 0xb6, 0x60, 0xda, 0xf0, 0xb2, 0x9e, 0x2a, 0x0b, 0xca, 0xa9, 0x05,
147 0xff, 0xac, 0x20, 0x37, 0x96, 0x07, 0x41, 0x56, 0x7a, 0x2e, 0xb3, 0x99, 0x06, 0x65, 0x97, 0xbc,
148 0x2a, 0x0b, 0x6e, 0x6b, 0x70, 0x7a, 0xae, 0x78, 0xa1, 0x40, 0x59, 0xe9, 0x54, 0xce, 0x2a, 0x6b,
149 0x9c, 0x21, 0xc9, 0x01, 0x60, 0xe7, 0x00, 0xab, 0xca, 0x82, 0x05, 0xe0, 0xf1, 0x6d, 0xa1, 0xdd,
150 0xac, 0x9e, 0xb2, 0xcc, 0xcc, 0x79, 0x61, 0x0a, 0xc3, 0x3d, 0x37, 0xad, 0x3f, 0xf9, 0x9f, 0xff,
151 0xf8, 0xd7, 0x21, 0x6f, 0x78, 0x83, 0x07, 0x42, 0x36, 0x93, 0x2f, 0x4e, 0xc1, 0x42, 0x1b, 0x20,
152 0x8f, 0x70, 0xc7, 0xca, 0x26, 0x46, 0xd7, 0xe8, 0xc9, 0x20, 0xed, 0xb5, 0xdb, 0xa4, 0x23, 0x64,
153 0x23, 0xf6, 0xb3, 0xe1, 0x47, 0x7c, 0xf9, 0x66, 0x59, 0xa9, 0x57, 0xca, 0x49, 0x72, 0x87, 0xb1,
154 0xac, 0xf4, 0x3b, 0x65, 0xf7, 0x90, 0x77, 0xdf, 0x4b, 0xc9, 0x6a, 0x9b, 0x44, 0xed, 0x36, 0xc1,
155 0xa3, 0xd7, 0x2f, 0x82, 0x22, 0xce, 0x5c, 0xe4, 0x1a, 0x77, 0x4b, 0x0d, 0x79, 0x7c, 0xe1, 0xdd,
156 0x83, 0xe0, 0xee, 0xbe, 0xd4, 0x90, 0x0b, 0xaf, 0x0c, 0x7f, 0x22, 0xdc, 0x7b, 0x0b, 0x25, 0x98,
157 0x06, 0xc8, 0x7b, 0x7c, 0xe9, 0xc2, 0x36, 0x9f, 0xdf, 0xbf, 0xbb, 0x61, 0xff, 0xe9, 0xce, 0x8e,
158 0xe7, 0xa5, 0xf7, 0x43, 0xf8, 0xe9, 0x60, 0x71, 0x0a, 0x3b, 0x36, 0xbc, 0xf8, 0xb7, 0x21, 0x19,
159 0xe1, 0xab, 0xcc, 0x80, 0x53, 0xe0, 0x26, 0x90, 0x99, 0x5c, 0x43, 0x11, 0x77, 0xfc, 0xb1, 0x0f,
160 0x43, 0xde, 0xd5, 0xf8, 0x4f, 0x59, 0xfc, 0xed, 0x27, 0x4f, 0x71, 0x3f, 0x8c, 0xf6, 0xab, 0xe3,
161 0xae, 0xc7, 0x1f, 0x04, 0xbc, 0x3f, 0xfe, 0x2d, 0x89, 0x73, 0x5f, 0x7a, 0xbb, 0xda, 0xd1, 0x68,
162 0xbd, 0xa3, 0xd1, 0x66, 0x47, 0xa3, 0xaf, 0x2d, 0x45, 0xab, 0x96, 0xa2, 0x75, 0x4b, 0xd1, 0xa6,
163 0xa5, 0xe8, 0x7b, 0x4b, 0xd1, 0xb7, 0x1f, 0x34, 0xfa, 0xd0, 0x0b, 0x45, 0x7f, 0x05, 0x00, 0x00,
164 0xff, 0xff, 0xe3, 0x33, 0x18, 0x0b, 0x50, 0x02, 0x00, 0x00,
165}
166
167func (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
177func (m *RawExtension) MarshalTo(dAtA []byte) (int, error) {
178 size := m.Size()
179 return m.MarshalToSizedBuffer(dAtA[:size])
180}
181
182func (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
197func (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
207func (m *TypeMeta) MarshalTo(dAtA []byte) (int, error) {
208 size := m.Size()
209 return m.MarshalToSizedBuffer(dAtA[:size])
210}
211
212func (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
230func (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
240func (m *Unknown) MarshalTo(dAtA []byte) (int, error) {
241 size := m.Size()
242 return m.MarshalToSizedBuffer(dAtA[:size])
243}
244
245func (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
280func 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}
291func (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
304func (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
317func (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
336func sovGenerated(x uint64) (n int) {
337 return (math_bits.Len64(x|1) + 6) / 7
338}
339func sozGenerated(x uint64) (n int) {
340 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
341}
342func (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}
352func (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}
363func (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}
376func 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}
384func (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 {
454 return ErrInvalidLengthGenerated
455 }
456 if (iNdEx + skippy) < 0 {
457 return ErrInvalidLengthGenerated
458 }
459 if (iNdEx + skippy) > l {
460 return io.ErrUnexpectedEOF
461 }
462 iNdEx += skippy
463 }
464 }
465
466 if iNdEx > l {
467 return io.ErrUnexpectedEOF
468 }
469 return nil
470}
471func (m *TypeMeta) Unmarshal(dAtA []byte) error {
472 l := len(dAtA)
473 iNdEx := 0
474 for iNdEx < l {
475 preIndex := iNdEx
476 var wire uint64
477 for shift := uint(0); ; shift += 7 {
478 if shift >= 64 {
479 return ErrIntOverflowGenerated
480 }
481 if iNdEx >= l {
482 return io.ErrUnexpectedEOF
483 }
484 b := dAtA[iNdEx]
485 iNdEx++
486 wire |= uint64(b&0x7F) << shift
487 if b < 0x80 {
488 break
489 }
490 }
491 fieldNum := int32(wire >> 3)
492 wireType := int(wire & 0x7)
493 if wireType == 4 {
494 return fmt.Errorf("proto: TypeMeta: wiretype end group for non-group")
495 }
496 if fieldNum <= 0 {
497 return fmt.Errorf("proto: TypeMeta: illegal tag %d (wire type %d)", fieldNum, wire)
498 }
499 switch fieldNum {
500 case 1:
501 if wireType != 2 {
502 return fmt.Errorf("proto: wrong wireType = %d for field APIVersion", wireType)
503 }
504 var stringLen uint64
505 for shift := uint(0); ; shift += 7 {
506 if shift >= 64 {
507 return ErrIntOverflowGenerated
508 }
509 if iNdEx >= l {
510 return io.ErrUnexpectedEOF
511 }
512 b := dAtA[iNdEx]
513 iNdEx++
514 stringLen |= uint64(b&0x7F) << shift
515 if b < 0x80 {
516 break
517 }
518 }
519 intStringLen := int(stringLen)
520 if intStringLen < 0 {
521 return ErrInvalidLengthGenerated
522 }
523 postIndex := iNdEx + intStringLen
524 if postIndex < 0 {
525 return ErrInvalidLengthGenerated
526 }
527 if postIndex > l {
528 return io.ErrUnexpectedEOF
529 }
530 m.APIVersion = string(dAtA[iNdEx:postIndex])
531 iNdEx = postIndex
532 case 2:
533 if wireType != 2 {
534 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
535 }
536 var stringLen uint64
537 for shift := uint(0); ; shift += 7 {
538 if shift >= 64 {
539 return ErrIntOverflowGenerated
540 }
541 if iNdEx >= l {
542 return io.ErrUnexpectedEOF
543 }
544 b := dAtA[iNdEx]
545 iNdEx++
546 stringLen |= uint64(b&0x7F) << shift
547 if b < 0x80 {
548 break
549 }
550 }
551 intStringLen := int(stringLen)
552 if intStringLen < 0 {
553 return ErrInvalidLengthGenerated
554 }
555 postIndex := iNdEx + intStringLen
556 if postIndex < 0 {
557 return ErrInvalidLengthGenerated
558 }
559 if postIndex > l {
560 return io.ErrUnexpectedEOF
561 }
562 m.Kind = string(dAtA[iNdEx:postIndex])
563 iNdEx = postIndex
564 default:
565 iNdEx = preIndex
566 skippy, err := skipGenerated(dAtA[iNdEx:])
567 if err != nil {
568 return err
569 }
570 if skippy < 0 {
571 return ErrInvalidLengthGenerated
572 }
573 if (iNdEx + skippy) < 0 {
574 return ErrInvalidLengthGenerated
575 }
576 if (iNdEx + skippy) > l {
577 return io.ErrUnexpectedEOF
578 }
579 iNdEx += skippy
580 }
581 }
582
583 if iNdEx > l {
584 return io.ErrUnexpectedEOF
585 }
586 return nil
587}
588func (m *Unknown) Unmarshal(dAtA []byte) error {
589 l := len(dAtA)
590 iNdEx := 0
591 for iNdEx < l {
592 preIndex := iNdEx
593 var wire uint64
594 for shift := uint(0); ; shift += 7 {
595 if shift >= 64 {
596 return ErrIntOverflowGenerated
597 }
598 if iNdEx >= l {
599 return io.ErrUnexpectedEOF
600 }
601 b := dAtA[iNdEx]
602 iNdEx++
603 wire |= uint64(b&0x7F) << shift
604 if b < 0x80 {
605 break
606 }
607 }
608 fieldNum := int32(wire >> 3)
609 wireType := int(wire & 0x7)
610 if wireType == 4 {
611 return fmt.Errorf("proto: Unknown: wiretype end group for non-group")
612 }
613 if fieldNum <= 0 {
614 return fmt.Errorf("proto: Unknown: illegal tag %d (wire type %d)", fieldNum, wire)
615 }
616 switch fieldNum {
617 case 1:
618 if wireType != 2 {
619 return fmt.Errorf("proto: wrong wireType = %d for field TypeMeta", wireType)
620 }
621 var msglen int
622 for shift := uint(0); ; shift += 7 {
623 if shift >= 64 {
624 return ErrIntOverflowGenerated
625 }
626 if iNdEx >= l {
627 return io.ErrUnexpectedEOF
628 }
629 b := dAtA[iNdEx]
630 iNdEx++
631 msglen |= int(b&0x7F) << shift
632 if b < 0x80 {
633 break
634 }
635 }
636 if msglen < 0 {
637 return ErrInvalidLengthGenerated
638 }
639 postIndex := iNdEx + msglen
640 if postIndex < 0 {
641 return ErrInvalidLengthGenerated
642 }
643 if postIndex > l {
644 return io.ErrUnexpectedEOF
645 }
646 if err := m.TypeMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
647 return err
648 }
649 iNdEx = postIndex
650 case 2:
651 if wireType != 2 {
652 return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
653 }
654 var byteLen int
655 for shift := uint(0); ; shift += 7 {
656 if shift >= 64 {
657 return ErrIntOverflowGenerated
658 }
659 if iNdEx >= l {
660 return io.ErrUnexpectedEOF
661 }
662 b := dAtA[iNdEx]
663 iNdEx++
664 byteLen |= int(b&0x7F) << shift
665 if b < 0x80 {
666 break
667 }
668 }
669 if byteLen < 0 {
670 return ErrInvalidLengthGenerated
671 }
672 postIndex := iNdEx + byteLen
673 if postIndex < 0 {
674 return ErrInvalidLengthGenerated
675 }
676 if postIndex > l {
677 return io.ErrUnexpectedEOF
678 }
679 m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...)
680 if m.Raw == nil {
681 m.Raw = []byte{}
682 }
683 iNdEx = postIndex
684 case 3:
685 if wireType != 2 {
686 return fmt.Errorf("proto: wrong wireType = %d for field ContentEncoding", wireType)
687 }
688 var stringLen uint64
689 for shift := uint(0); ; shift += 7 {
690 if shift >= 64 {
691 return ErrIntOverflowGenerated
692 }
693 if iNdEx >= l {
694 return io.ErrUnexpectedEOF
695 }
696 b := dAtA[iNdEx]
697 iNdEx++
698 stringLen |= uint64(b&0x7F) << shift
699 if b < 0x80 {
700 break
701 }
702 }
703 intStringLen := int(stringLen)
704 if intStringLen < 0 {
705 return ErrInvalidLengthGenerated
706 }
707 postIndex := iNdEx + intStringLen
708 if postIndex < 0 {
709 return ErrInvalidLengthGenerated
710 }
711 if postIndex > l {
712 return io.ErrUnexpectedEOF
713 }
714 m.ContentEncoding = string(dAtA[iNdEx:postIndex])
715 iNdEx = postIndex
716 case 4:
717 if wireType != 2 {
718 return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType)
719 }
720 var stringLen uint64
721 for shift := uint(0); ; shift += 7 {
722 if shift >= 64 {
723 return ErrIntOverflowGenerated
724 }
725 if iNdEx >= l {
726 return io.ErrUnexpectedEOF
727 }
728 b := dAtA[iNdEx]
729 iNdEx++
730 stringLen |= uint64(b&0x7F) << shift
731 if b < 0x80 {
732 break
733 }
734 }
735 intStringLen := int(stringLen)
736 if intStringLen < 0 {
737 return ErrInvalidLengthGenerated
738 }
739 postIndex := iNdEx + intStringLen
740 if postIndex < 0 {
741 return ErrInvalidLengthGenerated
742 }
743 if postIndex > l {
744 return io.ErrUnexpectedEOF
745 }
746 m.ContentType = string(dAtA[iNdEx:postIndex])
747 iNdEx = postIndex
748 default:
749 iNdEx = preIndex
750 skippy, err := skipGenerated(dAtA[iNdEx:])
751 if err != nil {
752 return err
753 }
754 if skippy < 0 {
755 return ErrInvalidLengthGenerated
756 }
757 if (iNdEx + skippy) < 0 {
758 return ErrInvalidLengthGenerated
759 }
760 if (iNdEx + skippy) > l {
761 return io.ErrUnexpectedEOF
762 }
763 iNdEx += skippy
764 }
765 }
766
767 if iNdEx > l {
768 return io.ErrUnexpectedEOF
769 }
770 return nil
771}
772func skipGenerated(dAtA []byte) (n int, err error) {
773 l := len(dAtA)
774 iNdEx := 0
775 depth := 0
776 for iNdEx < l {
777 var wire uint64
778 for shift := uint(0); ; shift += 7 {
779 if shift >= 64 {
780 return 0, ErrIntOverflowGenerated
781 }
782 if iNdEx >= l {
783 return 0, io.ErrUnexpectedEOF
784 }
785 b := dAtA[iNdEx]
786 iNdEx++
787 wire |= (uint64(b) & 0x7F) << shift
788 if b < 0x80 {
789 break
790 }
791 }
792 wireType := int(wire & 0x7)
793 switch wireType {
794 case 0:
795 for shift := uint(0); ; shift += 7 {
796 if shift >= 64 {
797 return 0, ErrIntOverflowGenerated
798 }
799 if iNdEx >= l {
800 return 0, io.ErrUnexpectedEOF
801 }
802 iNdEx++
803 if dAtA[iNdEx-1] < 0x80 {
804 break
805 }
806 }
807 case 1:
808 iNdEx += 8
809 case 2:
810 var length int
811 for shift := uint(0); ; shift += 7 {
812 if shift >= 64 {
813 return 0, ErrIntOverflowGenerated
814 }
815 if iNdEx >= l {
816 return 0, io.ErrUnexpectedEOF
817 }
818 b := dAtA[iNdEx]
819 iNdEx++
820 length |= (int(b) & 0x7F) << shift
821 if b < 0x80 {
822 break
823 }
824 }
825 if length < 0 {
826 return 0, ErrInvalidLengthGenerated
827 }
828 iNdEx += length
829 case 3:
830 depth++
831 case 4:
832 if depth == 0 {
833 return 0, ErrUnexpectedEndOfGroupGenerated
834 }
835 depth--
836 case 5:
837 iNdEx += 4
838 default:
839 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
840 }
841 if iNdEx < 0 {
842 return 0, ErrInvalidLengthGenerated
843 }
844 if depth == 0 {
845 return iNdEx, nil
846 }
847 }
848 return 0, io.ErrUnexpectedEOF
849}
850
851var (
852 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
853 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
854 ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
855)