blob: 542d8268aed37fc1b9cdbe9fa7e56fb21d545f00 [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001/*
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.
18// source: k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1alpha1/generated.proto
19// DO NOT EDIT!
20
21/*
22 Package v1alpha1 is a generated protocol buffer package.
23
24 It is generated from these files:
25 k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1alpha1/generated.proto
26
27 It has these top-level messages:
28 Initializer
29 InitializerConfiguration
30 InitializerConfigurationList
31 Rule
32*/
33package v1alpha1
34
35import proto "github.com/gogo/protobuf/proto"
36import fmt "fmt"
37import math "math"
38
39import strings "strings"
40import reflect "reflect"
41
42import io "io"
43
44// Reference imports to suppress errors if they are not otherwise used.
45var _ = proto.Marshal
46var _ = fmt.Errorf
47var _ = math.Inf
48
49// This is a compile-time assertion to ensure that this generated file
50// is compatible with the proto package it is being compiled against.
51// A compilation error at this line likely means your copy of the
52// proto package needs to be updated.
53const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
54
55func (m *Initializer) Reset() { *m = Initializer{} }
56func (*Initializer) ProtoMessage() {}
57func (*Initializer) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
58
59func (m *InitializerConfiguration) Reset() { *m = InitializerConfiguration{} }
60func (*InitializerConfiguration) ProtoMessage() {}
61func (*InitializerConfiguration) Descriptor() ([]byte, []int) {
62 return fileDescriptorGenerated, []int{1}
63}
64
65func (m *InitializerConfigurationList) Reset() { *m = InitializerConfigurationList{} }
66func (*InitializerConfigurationList) ProtoMessage() {}
67func (*InitializerConfigurationList) Descriptor() ([]byte, []int) {
68 return fileDescriptorGenerated, []int{2}
69}
70
71func (m *Rule) Reset() { *m = Rule{} }
72func (*Rule) ProtoMessage() {}
73func (*Rule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
74
75func init() {
76 proto.RegisterType((*Initializer)(nil), "k8s.io.api.admissionregistration.v1alpha1.Initializer")
77 proto.RegisterType((*InitializerConfiguration)(nil), "k8s.io.api.admissionregistration.v1alpha1.InitializerConfiguration")
78 proto.RegisterType((*InitializerConfigurationList)(nil), "k8s.io.api.admissionregistration.v1alpha1.InitializerConfigurationList")
79 proto.RegisterType((*Rule)(nil), "k8s.io.api.admissionregistration.v1alpha1.Rule")
80}
81func (m *Initializer) Marshal() (dAtA []byte, err error) {
82 size := m.Size()
83 dAtA = make([]byte, size)
84 n, err := m.MarshalTo(dAtA)
85 if err != nil {
86 return nil, err
87 }
88 return dAtA[:n], nil
89}
90
91func (m *Initializer) MarshalTo(dAtA []byte) (int, error) {
92 var i int
93 _ = i
94 var l int
95 _ = l
96 dAtA[i] = 0xa
97 i++
98 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
99 i += copy(dAtA[i:], m.Name)
100 if len(m.Rules) > 0 {
101 for _, msg := range m.Rules {
102 dAtA[i] = 0x12
103 i++
104 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
105 n, err := msg.MarshalTo(dAtA[i:])
106 if err != nil {
107 return 0, err
108 }
109 i += n
110 }
111 }
112 return i, nil
113}
114
115func (m *InitializerConfiguration) Marshal() (dAtA []byte, err error) {
116 size := m.Size()
117 dAtA = make([]byte, size)
118 n, err := m.MarshalTo(dAtA)
119 if err != nil {
120 return nil, err
121 }
122 return dAtA[:n], nil
123}
124
125func (m *InitializerConfiguration) MarshalTo(dAtA []byte) (int, error) {
126 var i int
127 _ = i
128 var l int
129 _ = l
130 dAtA[i] = 0xa
131 i++
132 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
133 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
134 if err != nil {
135 return 0, err
136 }
137 i += n1
138 if len(m.Initializers) > 0 {
139 for _, msg := range m.Initializers {
140 dAtA[i] = 0x12
141 i++
142 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
143 n, err := msg.MarshalTo(dAtA[i:])
144 if err != nil {
145 return 0, err
146 }
147 i += n
148 }
149 }
150 return i, nil
151}
152
153func (m *InitializerConfigurationList) Marshal() (dAtA []byte, err error) {
154 size := m.Size()
155 dAtA = make([]byte, size)
156 n, err := m.MarshalTo(dAtA)
157 if err != nil {
158 return nil, err
159 }
160 return dAtA[:n], nil
161}
162
163func (m *InitializerConfigurationList) MarshalTo(dAtA []byte) (int, error) {
164 var i int
165 _ = i
166 var l int
167 _ = l
168 dAtA[i] = 0xa
169 i++
170 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
171 n2, err := m.ListMeta.MarshalTo(dAtA[i:])
172 if err != nil {
173 return 0, err
174 }
175 i += n2
176 if len(m.Items) > 0 {
177 for _, msg := range m.Items {
178 dAtA[i] = 0x12
179 i++
180 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
181 n, err := msg.MarshalTo(dAtA[i:])
182 if err != nil {
183 return 0, err
184 }
185 i += n
186 }
187 }
188 return i, nil
189}
190
191func (m *Rule) Marshal() (dAtA []byte, err error) {
192 size := m.Size()
193 dAtA = make([]byte, size)
194 n, err := m.MarshalTo(dAtA)
195 if err != nil {
196 return nil, err
197 }
198 return dAtA[:n], nil
199}
200
201func (m *Rule) MarshalTo(dAtA []byte) (int, error) {
202 var i int
203 _ = i
204 var l int
205 _ = l
206 if len(m.APIGroups) > 0 {
207 for _, s := range m.APIGroups {
208 dAtA[i] = 0xa
209 i++
210 l = len(s)
211 for l >= 1<<7 {
212 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
213 l >>= 7
214 i++
215 }
216 dAtA[i] = uint8(l)
217 i++
218 i += copy(dAtA[i:], s)
219 }
220 }
221 if len(m.APIVersions) > 0 {
222 for _, s := range m.APIVersions {
223 dAtA[i] = 0x12
224 i++
225 l = len(s)
226 for l >= 1<<7 {
227 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
228 l >>= 7
229 i++
230 }
231 dAtA[i] = uint8(l)
232 i++
233 i += copy(dAtA[i:], s)
234 }
235 }
236 if len(m.Resources) > 0 {
237 for _, s := range m.Resources {
238 dAtA[i] = 0x1a
239 i++
240 l = len(s)
241 for l >= 1<<7 {
242 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
243 l >>= 7
244 i++
245 }
246 dAtA[i] = uint8(l)
247 i++
248 i += copy(dAtA[i:], s)
249 }
250 }
251 return i, nil
252}
253
254func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int {
255 dAtA[offset] = uint8(v)
256 dAtA[offset+1] = uint8(v >> 8)
257 dAtA[offset+2] = uint8(v >> 16)
258 dAtA[offset+3] = uint8(v >> 24)
259 dAtA[offset+4] = uint8(v >> 32)
260 dAtA[offset+5] = uint8(v >> 40)
261 dAtA[offset+6] = uint8(v >> 48)
262 dAtA[offset+7] = uint8(v >> 56)
263 return offset + 8
264}
265func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int {
266 dAtA[offset] = uint8(v)
267 dAtA[offset+1] = uint8(v >> 8)
268 dAtA[offset+2] = uint8(v >> 16)
269 dAtA[offset+3] = uint8(v >> 24)
270 return offset + 4
271}
272func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
273 for v >= 1<<7 {
274 dAtA[offset] = uint8(v&0x7f | 0x80)
275 v >>= 7
276 offset++
277 }
278 dAtA[offset] = uint8(v)
279 return offset + 1
280}
281func (m *Initializer) Size() (n int) {
282 var l int
283 _ = l
284 l = len(m.Name)
285 n += 1 + l + sovGenerated(uint64(l))
286 if len(m.Rules) > 0 {
287 for _, e := range m.Rules {
288 l = e.Size()
289 n += 1 + l + sovGenerated(uint64(l))
290 }
291 }
292 return n
293}
294
295func (m *InitializerConfiguration) Size() (n int) {
296 var l int
297 _ = l
298 l = m.ObjectMeta.Size()
299 n += 1 + l + sovGenerated(uint64(l))
300 if len(m.Initializers) > 0 {
301 for _, e := range m.Initializers {
302 l = e.Size()
303 n += 1 + l + sovGenerated(uint64(l))
304 }
305 }
306 return n
307}
308
309func (m *InitializerConfigurationList) Size() (n int) {
310 var l int
311 _ = l
312 l = m.ListMeta.Size()
313 n += 1 + l + sovGenerated(uint64(l))
314 if len(m.Items) > 0 {
315 for _, e := range m.Items {
316 l = e.Size()
317 n += 1 + l + sovGenerated(uint64(l))
318 }
319 }
320 return n
321}
322
323func (m *Rule) Size() (n int) {
324 var l int
325 _ = l
326 if len(m.APIGroups) > 0 {
327 for _, s := range m.APIGroups {
328 l = len(s)
329 n += 1 + l + sovGenerated(uint64(l))
330 }
331 }
332 if len(m.APIVersions) > 0 {
333 for _, s := range m.APIVersions {
334 l = len(s)
335 n += 1 + l + sovGenerated(uint64(l))
336 }
337 }
338 if len(m.Resources) > 0 {
339 for _, s := range m.Resources {
340 l = len(s)
341 n += 1 + l + sovGenerated(uint64(l))
342 }
343 }
344 return n
345}
346
347func sovGenerated(x uint64) (n int) {
348 for {
349 n++
350 x >>= 7
351 if x == 0 {
352 break
353 }
354 }
355 return n
356}
357func sozGenerated(x uint64) (n int) {
358 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
359}
360func (this *Initializer) String() string {
361 if this == nil {
362 return "nil"
363 }
364 s := strings.Join([]string{`&Initializer{`,
365 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
366 `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "Rule", "Rule", 1), `&`, ``, 1) + `,`,
367 `}`,
368 }, "")
369 return s
370}
371func (this *InitializerConfiguration) String() string {
372 if this == nil {
373 return "nil"
374 }
375 s := strings.Join([]string{`&InitializerConfiguration{`,
376 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
377 `Initializers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Initializers), "Initializer", "Initializer", 1), `&`, ``, 1) + `,`,
378 `}`,
379 }, "")
380 return s
381}
382func (this *InitializerConfigurationList) String() string {
383 if this == nil {
384 return "nil"
385 }
386 s := strings.Join([]string{`&InitializerConfigurationList{`,
387 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
388 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "InitializerConfiguration", "InitializerConfiguration", 1), `&`, ``, 1) + `,`,
389 `}`,
390 }, "")
391 return s
392}
393func (this *Rule) String() string {
394 if this == nil {
395 return "nil"
396 }
397 s := strings.Join([]string{`&Rule{`,
398 `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`,
399 `APIVersions:` + fmt.Sprintf("%v", this.APIVersions) + `,`,
400 `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`,
401 `}`,
402 }, "")
403 return s
404}
405func valueToStringGenerated(v interface{}) string {
406 rv := reflect.ValueOf(v)
407 if rv.IsNil() {
408 return "nil"
409 }
410 pv := reflect.Indirect(rv).Interface()
411 return fmt.Sprintf("*%v", pv)
412}
413func (m *Initializer) Unmarshal(dAtA []byte) error {
414 l := len(dAtA)
415 iNdEx := 0
416 for iNdEx < l {
417 preIndex := iNdEx
418 var wire uint64
419 for shift := uint(0); ; shift += 7 {
420 if shift >= 64 {
421 return ErrIntOverflowGenerated
422 }
423 if iNdEx >= l {
424 return io.ErrUnexpectedEOF
425 }
426 b := dAtA[iNdEx]
427 iNdEx++
428 wire |= (uint64(b) & 0x7F) << shift
429 if b < 0x80 {
430 break
431 }
432 }
433 fieldNum := int32(wire >> 3)
434 wireType := int(wire & 0x7)
435 if wireType == 4 {
436 return fmt.Errorf("proto: Initializer: wiretype end group for non-group")
437 }
438 if fieldNum <= 0 {
439 return fmt.Errorf("proto: Initializer: illegal tag %d (wire type %d)", fieldNum, wire)
440 }
441 switch fieldNum {
442 case 1:
443 if wireType != 2 {
444 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
445 }
446 var stringLen uint64
447 for shift := uint(0); ; shift += 7 {
448 if shift >= 64 {
449 return ErrIntOverflowGenerated
450 }
451 if iNdEx >= l {
452 return io.ErrUnexpectedEOF
453 }
454 b := dAtA[iNdEx]
455 iNdEx++
456 stringLen |= (uint64(b) & 0x7F) << shift
457 if b < 0x80 {
458 break
459 }
460 }
461 intStringLen := int(stringLen)
462 if intStringLen < 0 {
463 return ErrInvalidLengthGenerated
464 }
465 postIndex := iNdEx + intStringLen
466 if postIndex > l {
467 return io.ErrUnexpectedEOF
468 }
469 m.Name = string(dAtA[iNdEx:postIndex])
470 iNdEx = postIndex
471 case 2:
472 if wireType != 2 {
473 return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
474 }
475 var msglen int
476 for shift := uint(0); ; shift += 7 {
477 if shift >= 64 {
478 return ErrIntOverflowGenerated
479 }
480 if iNdEx >= l {
481 return io.ErrUnexpectedEOF
482 }
483 b := dAtA[iNdEx]
484 iNdEx++
485 msglen |= (int(b) & 0x7F) << shift
486 if b < 0x80 {
487 break
488 }
489 }
490 if msglen < 0 {
491 return ErrInvalidLengthGenerated
492 }
493 postIndex := iNdEx + msglen
494 if postIndex > l {
495 return io.ErrUnexpectedEOF
496 }
497 m.Rules = append(m.Rules, Rule{})
498 if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
499 return err
500 }
501 iNdEx = postIndex
502 default:
503 iNdEx = preIndex
504 skippy, err := skipGenerated(dAtA[iNdEx:])
505 if err != nil {
506 return err
507 }
508 if skippy < 0 {
509 return ErrInvalidLengthGenerated
510 }
511 if (iNdEx + skippy) > l {
512 return io.ErrUnexpectedEOF
513 }
514 iNdEx += skippy
515 }
516 }
517
518 if iNdEx > l {
519 return io.ErrUnexpectedEOF
520 }
521 return nil
522}
523func (m *InitializerConfiguration) Unmarshal(dAtA []byte) error {
524 l := len(dAtA)
525 iNdEx := 0
526 for iNdEx < l {
527 preIndex := iNdEx
528 var wire uint64
529 for shift := uint(0); ; shift += 7 {
530 if shift >= 64 {
531 return ErrIntOverflowGenerated
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 wireType := int(wire & 0x7)
545 if wireType == 4 {
546 return fmt.Errorf("proto: InitializerConfiguration: wiretype end group for non-group")
547 }
548 if fieldNum <= 0 {
549 return fmt.Errorf("proto: InitializerConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
550 }
551 switch fieldNum {
552 case 1:
553 if wireType != 2 {
554 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
555 }
556 var msglen int
557 for shift := uint(0); ; shift += 7 {
558 if shift >= 64 {
559 return ErrIntOverflowGenerated
560 }
561 if iNdEx >= l {
562 return io.ErrUnexpectedEOF
563 }
564 b := dAtA[iNdEx]
565 iNdEx++
566 msglen |= (int(b) & 0x7F) << shift
567 if b < 0x80 {
568 break
569 }
570 }
571 if msglen < 0 {
572 return ErrInvalidLengthGenerated
573 }
574 postIndex := iNdEx + msglen
575 if postIndex > l {
576 return io.ErrUnexpectedEOF
577 }
578 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
579 return err
580 }
581 iNdEx = postIndex
582 case 2:
583 if wireType != 2 {
584 return fmt.Errorf("proto: wrong wireType = %d for field Initializers", wireType)
585 }
586 var msglen int
587 for shift := uint(0); ; shift += 7 {
588 if shift >= 64 {
589 return ErrIntOverflowGenerated
590 }
591 if iNdEx >= l {
592 return io.ErrUnexpectedEOF
593 }
594 b := dAtA[iNdEx]
595 iNdEx++
596 msglen |= (int(b) & 0x7F) << shift
597 if b < 0x80 {
598 break
599 }
600 }
601 if msglen < 0 {
602 return ErrInvalidLengthGenerated
603 }
604 postIndex := iNdEx + msglen
605 if postIndex > l {
606 return io.ErrUnexpectedEOF
607 }
608 m.Initializers = append(m.Initializers, Initializer{})
609 if err := m.Initializers[len(m.Initializers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
610 return err
611 }
612 iNdEx = postIndex
613 default:
614 iNdEx = preIndex
615 skippy, err := skipGenerated(dAtA[iNdEx:])
616 if err != nil {
617 return err
618 }
619 if skippy < 0 {
620 return ErrInvalidLengthGenerated
621 }
622 if (iNdEx + skippy) > l {
623 return io.ErrUnexpectedEOF
624 }
625 iNdEx += skippy
626 }
627 }
628
629 if iNdEx > l {
630 return io.ErrUnexpectedEOF
631 }
632 return nil
633}
634func (m *InitializerConfigurationList) Unmarshal(dAtA []byte) error {
635 l := len(dAtA)
636 iNdEx := 0
637 for iNdEx < l {
638 preIndex := iNdEx
639 var wire uint64
640 for shift := uint(0); ; shift += 7 {
641 if shift >= 64 {
642 return ErrIntOverflowGenerated
643 }
644 if iNdEx >= l {
645 return io.ErrUnexpectedEOF
646 }
647 b := dAtA[iNdEx]
648 iNdEx++
649 wire |= (uint64(b) & 0x7F) << shift
650 if b < 0x80 {
651 break
652 }
653 }
654 fieldNum := int32(wire >> 3)
655 wireType := int(wire & 0x7)
656 if wireType == 4 {
657 return fmt.Errorf("proto: InitializerConfigurationList: wiretype end group for non-group")
658 }
659 if fieldNum <= 0 {
660 return fmt.Errorf("proto: InitializerConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire)
661 }
662 switch fieldNum {
663 case 1:
664 if wireType != 2 {
665 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
666 }
667 var msglen int
668 for shift := uint(0); ; shift += 7 {
669 if shift >= 64 {
670 return ErrIntOverflowGenerated
671 }
672 if iNdEx >= l {
673 return io.ErrUnexpectedEOF
674 }
675 b := dAtA[iNdEx]
676 iNdEx++
677 msglen |= (int(b) & 0x7F) << shift
678 if b < 0x80 {
679 break
680 }
681 }
682 if msglen < 0 {
683 return ErrInvalidLengthGenerated
684 }
685 postIndex := iNdEx + msglen
686 if postIndex > l {
687 return io.ErrUnexpectedEOF
688 }
689 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
690 return err
691 }
692 iNdEx = postIndex
693 case 2:
694 if wireType != 2 {
695 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
696 }
697 var msglen int
698 for shift := uint(0); ; shift += 7 {
699 if shift >= 64 {
700 return ErrIntOverflowGenerated
701 }
702 if iNdEx >= l {
703 return io.ErrUnexpectedEOF
704 }
705 b := dAtA[iNdEx]
706 iNdEx++
707 msglen |= (int(b) & 0x7F) << shift
708 if b < 0x80 {
709 break
710 }
711 }
712 if msglen < 0 {
713 return ErrInvalidLengthGenerated
714 }
715 postIndex := iNdEx + msglen
716 if postIndex > l {
717 return io.ErrUnexpectedEOF
718 }
719 m.Items = append(m.Items, InitializerConfiguration{})
720 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
721 return err
722 }
723 iNdEx = postIndex
724 default:
725 iNdEx = preIndex
726 skippy, err := skipGenerated(dAtA[iNdEx:])
727 if err != nil {
728 return err
729 }
730 if skippy < 0 {
731 return ErrInvalidLengthGenerated
732 }
733 if (iNdEx + skippy) > l {
734 return io.ErrUnexpectedEOF
735 }
736 iNdEx += skippy
737 }
738 }
739
740 if iNdEx > l {
741 return io.ErrUnexpectedEOF
742 }
743 return nil
744}
745func (m *Rule) Unmarshal(dAtA []byte) error {
746 l := len(dAtA)
747 iNdEx := 0
748 for iNdEx < l {
749 preIndex := iNdEx
750 var wire uint64
751 for shift := uint(0); ; shift += 7 {
752 if shift >= 64 {
753 return ErrIntOverflowGenerated
754 }
755 if iNdEx >= l {
756 return io.ErrUnexpectedEOF
757 }
758 b := dAtA[iNdEx]
759 iNdEx++
760 wire |= (uint64(b) & 0x7F) << shift
761 if b < 0x80 {
762 break
763 }
764 }
765 fieldNum := int32(wire >> 3)
766 wireType := int(wire & 0x7)
767 if wireType == 4 {
768 return fmt.Errorf("proto: Rule: wiretype end group for non-group")
769 }
770 if fieldNum <= 0 {
771 return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire)
772 }
773 switch fieldNum {
774 case 1:
775 if wireType != 2 {
776 return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType)
777 }
778 var stringLen uint64
779 for shift := uint(0); ; shift += 7 {
780 if shift >= 64 {
781 return ErrIntOverflowGenerated
782 }
783 if iNdEx >= l {
784 return io.ErrUnexpectedEOF
785 }
786 b := dAtA[iNdEx]
787 iNdEx++
788 stringLen |= (uint64(b) & 0x7F) << shift
789 if b < 0x80 {
790 break
791 }
792 }
793 intStringLen := int(stringLen)
794 if intStringLen < 0 {
795 return ErrInvalidLengthGenerated
796 }
797 postIndex := iNdEx + intStringLen
798 if postIndex > l {
799 return io.ErrUnexpectedEOF
800 }
801 m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex]))
802 iNdEx = postIndex
803 case 2:
804 if wireType != 2 {
805 return fmt.Errorf("proto: wrong wireType = %d for field APIVersions", wireType)
806 }
807 var stringLen uint64
808 for shift := uint(0); ; shift += 7 {
809 if shift >= 64 {
810 return ErrIntOverflowGenerated
811 }
812 if iNdEx >= l {
813 return io.ErrUnexpectedEOF
814 }
815 b := dAtA[iNdEx]
816 iNdEx++
817 stringLen |= (uint64(b) & 0x7F) << shift
818 if b < 0x80 {
819 break
820 }
821 }
822 intStringLen := int(stringLen)
823 if intStringLen < 0 {
824 return ErrInvalidLengthGenerated
825 }
826 postIndex := iNdEx + intStringLen
827 if postIndex > l {
828 return io.ErrUnexpectedEOF
829 }
830 m.APIVersions = append(m.APIVersions, string(dAtA[iNdEx:postIndex]))
831 iNdEx = postIndex
832 case 3:
833 if wireType != 2 {
834 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
835 }
836 var stringLen uint64
837 for shift := uint(0); ; shift += 7 {
838 if shift >= 64 {
839 return ErrIntOverflowGenerated
840 }
841 if iNdEx >= l {
842 return io.ErrUnexpectedEOF
843 }
844 b := dAtA[iNdEx]
845 iNdEx++
846 stringLen |= (uint64(b) & 0x7F) << shift
847 if b < 0x80 {
848 break
849 }
850 }
851 intStringLen := int(stringLen)
852 if intStringLen < 0 {
853 return ErrInvalidLengthGenerated
854 }
855 postIndex := iNdEx + intStringLen
856 if postIndex > l {
857 return io.ErrUnexpectedEOF
858 }
859 m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
860 iNdEx = postIndex
861 default:
862 iNdEx = preIndex
863 skippy, err := skipGenerated(dAtA[iNdEx:])
864 if err != nil {
865 return err
866 }
867 if skippy < 0 {
868 return ErrInvalidLengthGenerated
869 }
870 if (iNdEx + skippy) > l {
871 return io.ErrUnexpectedEOF
872 }
873 iNdEx += skippy
874 }
875 }
876
877 if iNdEx > l {
878 return io.ErrUnexpectedEOF
879 }
880 return nil
881}
882func skipGenerated(dAtA []byte) (n int, err error) {
883 l := len(dAtA)
884 iNdEx := 0
885 for iNdEx < l {
886 var wire uint64
887 for shift := uint(0); ; shift += 7 {
888 if shift >= 64 {
889 return 0, ErrIntOverflowGenerated
890 }
891 if iNdEx >= l {
892 return 0, io.ErrUnexpectedEOF
893 }
894 b := dAtA[iNdEx]
895 iNdEx++
896 wire |= (uint64(b) & 0x7F) << shift
897 if b < 0x80 {
898 break
899 }
900 }
901 wireType := int(wire & 0x7)
902 switch wireType {
903 case 0:
904 for shift := uint(0); ; shift += 7 {
905 if shift >= 64 {
906 return 0, ErrIntOverflowGenerated
907 }
908 if iNdEx >= l {
909 return 0, io.ErrUnexpectedEOF
910 }
911 iNdEx++
912 if dAtA[iNdEx-1] < 0x80 {
913 break
914 }
915 }
916 return iNdEx, nil
917 case 1:
918 iNdEx += 8
919 return iNdEx, nil
920 case 2:
921 var length int
922 for shift := uint(0); ; shift += 7 {
923 if shift >= 64 {
924 return 0, ErrIntOverflowGenerated
925 }
926 if iNdEx >= l {
927 return 0, io.ErrUnexpectedEOF
928 }
929 b := dAtA[iNdEx]
930 iNdEx++
931 length |= (int(b) & 0x7F) << shift
932 if b < 0x80 {
933 break
934 }
935 }
936 iNdEx += length
937 if length < 0 {
938 return 0, ErrInvalidLengthGenerated
939 }
940 return iNdEx, nil
941 case 3:
942 for {
943 var innerWire uint64
944 var start int = iNdEx
945 for shift := uint(0); ; shift += 7 {
946 if shift >= 64 {
947 return 0, ErrIntOverflowGenerated
948 }
949 if iNdEx >= l {
950 return 0, io.ErrUnexpectedEOF
951 }
952 b := dAtA[iNdEx]
953 iNdEx++
954 innerWire |= (uint64(b) & 0x7F) << shift
955 if b < 0x80 {
956 break
957 }
958 }
959 innerWireType := int(innerWire & 0x7)
960 if innerWireType == 4 {
961 break
962 }
963 next, err := skipGenerated(dAtA[start:])
964 if err != nil {
965 return 0, err
966 }
967 iNdEx = start + next
968 }
969 return iNdEx, nil
970 case 4:
971 return iNdEx, nil
972 case 5:
973 iNdEx += 4
974 return iNdEx, nil
975 default:
976 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
977 }
978 }
979 panic("unreachable")
980}
981
982var (
983 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
984 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
985)
986
987func init() {
988 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1alpha1/generated.proto", fileDescriptorGenerated)
989}
990
991var fileDescriptorGenerated = []byte{
992 // 545 bytes of a gzipped FileDescriptorProto
993 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x51, 0x4d, 0x8b, 0x13, 0x3f,
994 0x18, 0x6f, 0xfe, 0xdb, 0x42, 0x9b, 0x76, 0xf9, 0xcb, 0xe0, 0xa1, 0x14, 0x99, 0x96, 0x9e, 0x2a,
995 0x62, 0x62, 0x57, 0x59, 0xbc, 0xee, 0xec, 0x41, 0x0a, 0xbe, 0x2c, 0x41, 0x3c, 0x88, 0x07, 0xd3,
996 0xf6, 0xd9, 0x69, 0x6c, 0x27, 0x19, 0x92, 0x4c, 0x41, 0x4f, 0x5e, 0xbc, 0x0b, 0x7e, 0xa9, 0x1e,
997 0xf7, 0xb8, 0xa7, 0x62, 0x47, 0xf0, 0xe8, 0x67, 0x90, 0x99, 0xe9, 0xec, 0xcc, 0x5a, 0x8b, 0xab,
998 0xb7, 0x3c, 0xbf, 0x27, 0xbf, 0xb7, 0x04, 0xb3, 0xf9, 0x63, 0x43, 0x84, 0xa2, 0xf3, 0x68, 0x0c,
999 0x5a, 0x82, 0x05, 0x43, 0x97, 0x20, 0xa7, 0x4a, 0xd3, 0xed, 0x82, 0x87, 0x82, 0xf2, 0x69, 0x20,
1000 0x8c, 0x11, 0x4a, 0x6a, 0xf0, 0x85, 0xb1, 0x9a, 0x5b, 0xa1, 0x24, 0x5d, 0x0e, 0xf9, 0x22, 0x9c,
1001 0xf1, 0x21, 0xf5, 0x41, 0x82, 0xe6, 0x16, 0xa6, 0x24, 0xd4, 0xca, 0x2a, 0xe7, 0x6e, 0x46, 0x25,
1002 0x3c, 0x14, 0xe4, 0xb7, 0x54, 0x92, 0x53, 0x3b, 0xf7, 0x7d, 0x61, 0x67, 0xd1, 0x98, 0x4c, 0x54,
1003 0x40, 0x7d, 0xe5, 0x2b, 0x9a, 0x2a, 0x8c, 0xa3, 0xf3, 0x74, 0x4a, 0x87, 0xf4, 0x94, 0x29, 0x77,
1004 0x1e, 0x15, 0xa1, 0x02, 0x3e, 0x99, 0x09, 0x09, 0xfa, 0x3d, 0x0d, 0xe7, 0x7e, 0x02, 0x18, 0x1a,
1005 0x80, 0xe5, 0x74, 0xb9, 0x93, 0xa7, 0x43, 0xf7, 0xb1, 0x74, 0x24, 0xad, 0x08, 0x60, 0x87, 0x70,
1006 0xfc, 0x27, 0x82, 0x99, 0xcc, 0x20, 0xe0, 0x3b, 0xbc, 0x87, 0xfb, 0x78, 0x91, 0x15, 0x0b, 0x2a,
1007 0xa4, 0x35, 0x56, 0xff, 0x4a, 0xea, 0x7f, 0x42, 0xb8, 0x39, 0x92, 0xc2, 0x0a, 0xbe, 0x10, 0x1f,
1008 0x40, 0x3b, 0x3d, 0x5c, 0x95, 0x3c, 0x80, 0x36, 0xea, 0xa1, 0x41, 0xc3, 0x6b, 0xad, 0xd6, 0xdd,
1009 0x4a, 0xbc, 0xee, 0x56, 0x9f, 0xf3, 0x00, 0x58, 0xba, 0x71, 0x5e, 0xe2, 0x9a, 0x8e, 0x16, 0x60,
1010 0xda, 0xff, 0xf5, 0x0e, 0x06, 0xcd, 0x23, 0x4a, 0x6e, 0xfc, 0xde, 0x84, 0x45, 0x0b, 0xf0, 0x0e,
1011 0xb7, 0x9a, 0xb5, 0x64, 0x32, 0x2c, 0x13, 0xeb, 0xff, 0x40, 0xb8, 0x5d, 0xca, 0x71, 0xaa, 0xe4,
1012 0xb9, 0xf0, 0xa3, 0x4c, 0xc0, 0x79, 0x8b, 0xeb, 0xc9, 0xeb, 0x4e, 0xb9, 0xe5, 0x69, 0xb0, 0xe6,
1013 0xd1, 0x83, 0x92, 0xeb, 0x55, 0x59, 0x12, 0xce, 0xfd, 0x04, 0x30, 0x24, 0xb9, 0x4d, 0x96, 0x43,
1014 0xf2, 0x62, 0xfc, 0x0e, 0x26, 0xf6, 0x19, 0x58, 0xee, 0x39, 0x5b, 0x5b, 0x5c, 0x60, 0xec, 0x4a,
1015 0xd5, 0x09, 0x71, 0x4b, 0x14, 0xee, 0x79, 0xb7, 0xe3, 0xbf, 0xe8, 0x56, 0x0a, 0xef, 0xdd, 0xde,
1016 0x7a, 0xb5, 0x4a, 0xa0, 0x61, 0xd7, 0x1c, 0xfa, 0xdf, 0x11, 0xbe, 0xb3, 0xaf, 0xf0, 0x53, 0x61,
1017 0xac, 0xf3, 0x66, 0xa7, 0x34, 0xb9, 0x59, 0xe9, 0x84, 0x9d, 0x56, 0xbe, 0xb5, 0x8d, 0x51, 0xcf,
1018 0x91, 0x52, 0xe1, 0x19, 0xae, 0x09, 0x0b, 0x41, 0xde, 0xf4, 0xf4, 0xdf, 0x9a, 0x5e, 0x4b, 0x5d,
1019 0xfc, 0xec, 0x28, 0x51, 0x66, 0x99, 0x41, 0xff, 0x0b, 0xc2, 0xd5, 0xe4, 0xab, 0x9d, 0x7b, 0xb8,
1020 0xc1, 0x43, 0xf1, 0x44, 0xab, 0x28, 0x34, 0x6d, 0xd4, 0x3b, 0x18, 0x34, 0xbc, 0xc3, 0x78, 0xdd,
1021 0x6d, 0x9c, 0x9c, 0x8d, 0x32, 0x90, 0x15, 0x7b, 0x67, 0x88, 0x9b, 0x3c, 0x14, 0xaf, 0x40, 0x27,
1022 0x39, 0xb2, 0x94, 0x0d, 0xef, 0xff, 0x78, 0xdd, 0x6d, 0x9e, 0x9c, 0x8d, 0x72, 0x98, 0x95, 0xef,
1023 0x24, 0xfa, 0x1a, 0x8c, 0x8a, 0xf4, 0x04, 0x4c, 0xfb, 0xa0, 0xd0, 0x67, 0x39, 0xc8, 0x8a, 0xbd,
1024 0x47, 0x56, 0x1b, 0xb7, 0x72, 0xb1, 0x71, 0x2b, 0x97, 0x1b, 0xb7, 0xf2, 0x31, 0x76, 0xd1, 0x2a,
1025 0x76, 0xd1, 0x45, 0xec, 0xa2, 0xcb, 0xd8, 0x45, 0x5f, 0x63, 0x17, 0x7d, 0xfe, 0xe6, 0x56, 0x5e,
1026 0xd7, 0xf3, 0xd2, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x1d, 0xfb, 0x23, 0x89, 0xaa, 0x04, 0x00,
1027 0x00,
1028}