blob: f540a0328255f88a57226d44e3ebaff3f751e78e [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
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/api/auditregistration/v1alpha1/generated.proto
19
20/*
21 Package v1alpha1 is a generated protocol buffer package.
22
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/auditregistration/v1alpha1/generated.proto
25
26 It has these top-level messages:
27 AuditSink
28 AuditSinkList
29 AuditSinkSpec
30 Policy
31 ServiceReference
32 Webhook
33 WebhookClientConfig
34 WebhookThrottleConfig
35*/
36package v1alpha1
37
38import proto "github.com/gogo/protobuf/proto"
39import fmt "fmt"
40import math "math"
41
42import strings "strings"
43import reflect "reflect"
44
45import io "io"
46
47// Reference imports to suppress errors if they are not otherwise used.
48var _ = proto.Marshal
49var _ = fmt.Errorf
50var _ = math.Inf
51
52// This is a compile-time assertion to ensure that this generated file
53// is compatible with the proto package it is being compiled against.
54// A compilation error at this line likely means your copy of the
55// proto package needs to be updated.
56const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
57
58func (m *AuditSink) Reset() { *m = AuditSink{} }
59func (*AuditSink) ProtoMessage() {}
60func (*AuditSink) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
61
62func (m *AuditSinkList) Reset() { *m = AuditSinkList{} }
63func (*AuditSinkList) ProtoMessage() {}
64func (*AuditSinkList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
65
66func (m *AuditSinkSpec) Reset() { *m = AuditSinkSpec{} }
67func (*AuditSinkSpec) ProtoMessage() {}
68func (*AuditSinkSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
69
70func (m *Policy) Reset() { *m = Policy{} }
71func (*Policy) ProtoMessage() {}
72func (*Policy) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
73
74func (m *ServiceReference) Reset() { *m = ServiceReference{} }
75func (*ServiceReference) ProtoMessage() {}
76func (*ServiceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
77
78func (m *Webhook) Reset() { *m = Webhook{} }
79func (*Webhook) ProtoMessage() {}
80func (*Webhook) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
81
82func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} }
83func (*WebhookClientConfig) ProtoMessage() {}
84func (*WebhookClientConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
85
86func (m *WebhookThrottleConfig) Reset() { *m = WebhookThrottleConfig{} }
87func (*WebhookThrottleConfig) ProtoMessage() {}
88func (*WebhookThrottleConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} }
89
90func init() {
91 proto.RegisterType((*AuditSink)(nil), "k8s.io.api.auditregistration.v1alpha1.AuditSink")
92 proto.RegisterType((*AuditSinkList)(nil), "k8s.io.api.auditregistration.v1alpha1.AuditSinkList")
93 proto.RegisterType((*AuditSinkSpec)(nil), "k8s.io.api.auditregistration.v1alpha1.AuditSinkSpec")
94 proto.RegisterType((*Policy)(nil), "k8s.io.api.auditregistration.v1alpha1.Policy")
95 proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.auditregistration.v1alpha1.ServiceReference")
96 proto.RegisterType((*Webhook)(nil), "k8s.io.api.auditregistration.v1alpha1.Webhook")
97 proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.auditregistration.v1alpha1.WebhookClientConfig")
98 proto.RegisterType((*WebhookThrottleConfig)(nil), "k8s.io.api.auditregistration.v1alpha1.WebhookThrottleConfig")
99}
100func (m *AuditSink) Marshal() (dAtA []byte, err error) {
101 size := m.Size()
102 dAtA = make([]byte, size)
103 n, err := m.MarshalTo(dAtA)
104 if err != nil {
105 return nil, err
106 }
107 return dAtA[:n], nil
108}
109
110func (m *AuditSink) MarshalTo(dAtA []byte) (int, error) {
111 var i int
112 _ = i
113 var l int
114 _ = l
115 dAtA[i] = 0xa
116 i++
117 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
118 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
119 if err != nil {
120 return 0, err
121 }
122 i += n1
123 dAtA[i] = 0x12
124 i++
125 i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
126 n2, err := m.Spec.MarshalTo(dAtA[i:])
127 if err != nil {
128 return 0, err
129 }
130 i += n2
131 return i, nil
132}
133
134func (m *AuditSinkList) Marshal() (dAtA []byte, err error) {
135 size := m.Size()
136 dAtA = make([]byte, size)
137 n, err := m.MarshalTo(dAtA)
138 if err != nil {
139 return nil, err
140 }
141 return dAtA[:n], nil
142}
143
144func (m *AuditSinkList) MarshalTo(dAtA []byte) (int, error) {
145 var i int
146 _ = i
147 var l int
148 _ = l
149 dAtA[i] = 0xa
150 i++
151 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
152 n3, err := m.ListMeta.MarshalTo(dAtA[i:])
153 if err != nil {
154 return 0, err
155 }
156 i += n3
157 if len(m.Items) > 0 {
158 for _, msg := range m.Items {
159 dAtA[i] = 0x12
160 i++
161 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
162 n, err := msg.MarshalTo(dAtA[i:])
163 if err != nil {
164 return 0, err
165 }
166 i += n
167 }
168 }
169 return i, nil
170}
171
172func (m *AuditSinkSpec) Marshal() (dAtA []byte, err error) {
173 size := m.Size()
174 dAtA = make([]byte, size)
175 n, err := m.MarshalTo(dAtA)
176 if err != nil {
177 return nil, err
178 }
179 return dAtA[:n], nil
180}
181
182func (m *AuditSinkSpec) MarshalTo(dAtA []byte) (int, error) {
183 var i int
184 _ = i
185 var l int
186 _ = l
187 dAtA[i] = 0xa
188 i++
189 i = encodeVarintGenerated(dAtA, i, uint64(m.Policy.Size()))
190 n4, err := m.Policy.MarshalTo(dAtA[i:])
191 if err != nil {
192 return 0, err
193 }
194 i += n4
195 dAtA[i] = 0x12
196 i++
197 i = encodeVarintGenerated(dAtA, i, uint64(m.Webhook.Size()))
198 n5, err := m.Webhook.MarshalTo(dAtA[i:])
199 if err != nil {
200 return 0, err
201 }
202 i += n5
203 return i, nil
204}
205
206func (m *Policy) Marshal() (dAtA []byte, err error) {
207 size := m.Size()
208 dAtA = make([]byte, size)
209 n, err := m.MarshalTo(dAtA)
210 if err != nil {
211 return nil, err
212 }
213 return dAtA[:n], nil
214}
215
216func (m *Policy) MarshalTo(dAtA []byte) (int, error) {
217 var i int
218 _ = i
219 var l int
220 _ = l
221 dAtA[i] = 0xa
222 i++
223 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Level)))
224 i += copy(dAtA[i:], m.Level)
225 if len(m.Stages) > 0 {
226 for _, s := range m.Stages {
227 dAtA[i] = 0x12
228 i++
229 l = len(s)
230 for l >= 1<<7 {
231 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
232 l >>= 7
233 i++
234 }
235 dAtA[i] = uint8(l)
236 i++
237 i += copy(dAtA[i:], s)
238 }
239 }
240 return i, nil
241}
242
243func (m *ServiceReference) Marshal() (dAtA []byte, err error) {
244 size := m.Size()
245 dAtA = make([]byte, size)
246 n, err := m.MarshalTo(dAtA)
247 if err != nil {
248 return nil, err
249 }
250 return dAtA[:n], nil
251}
252
253func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) {
254 var i int
255 _ = i
256 var l int
257 _ = l
258 dAtA[i] = 0xa
259 i++
260 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
261 i += copy(dAtA[i:], m.Namespace)
262 dAtA[i] = 0x12
263 i++
264 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
265 i += copy(dAtA[i:], m.Name)
266 if m.Path != nil {
267 dAtA[i] = 0x1a
268 i++
269 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path)))
270 i += copy(dAtA[i:], *m.Path)
271 }
272 if m.Port != nil {
273 dAtA[i] = 0x20
274 i++
275 i = encodeVarintGenerated(dAtA, i, uint64(*m.Port))
276 }
277 return i, nil
278}
279
280func (m *Webhook) Marshal() (dAtA []byte, err error) {
281 size := m.Size()
282 dAtA = make([]byte, size)
283 n, err := m.MarshalTo(dAtA)
284 if err != nil {
285 return nil, err
286 }
287 return dAtA[:n], nil
288}
289
290func (m *Webhook) MarshalTo(dAtA []byte) (int, error) {
291 var i int
292 _ = i
293 var l int
294 _ = l
295 if m.Throttle != nil {
296 dAtA[i] = 0xa
297 i++
298 i = encodeVarintGenerated(dAtA, i, uint64(m.Throttle.Size()))
299 n6, err := m.Throttle.MarshalTo(dAtA[i:])
300 if err != nil {
301 return 0, err
302 }
303 i += n6
304 }
305 dAtA[i] = 0x12
306 i++
307 i = encodeVarintGenerated(dAtA, i, uint64(m.ClientConfig.Size()))
308 n7, err := m.ClientConfig.MarshalTo(dAtA[i:])
309 if err != nil {
310 return 0, err
311 }
312 i += n7
313 return i, nil
314}
315
316func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) {
317 size := m.Size()
318 dAtA = make([]byte, size)
319 n, err := m.MarshalTo(dAtA)
320 if err != nil {
321 return nil, err
322 }
323 return dAtA[:n], nil
324}
325
326func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) {
327 var i int
328 _ = i
329 var l int
330 _ = l
331 if m.URL != nil {
332 dAtA[i] = 0xa
333 i++
334 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL)))
335 i += copy(dAtA[i:], *m.URL)
336 }
337 if m.Service != nil {
338 dAtA[i] = 0x12
339 i++
340 i = encodeVarintGenerated(dAtA, i, uint64(m.Service.Size()))
341 n8, err := m.Service.MarshalTo(dAtA[i:])
342 if err != nil {
343 return 0, err
344 }
345 i += n8
346 }
347 if m.CABundle != nil {
348 dAtA[i] = 0x1a
349 i++
350 i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle)))
351 i += copy(dAtA[i:], m.CABundle)
352 }
353 return i, nil
354}
355
356func (m *WebhookThrottleConfig) Marshal() (dAtA []byte, err error) {
357 size := m.Size()
358 dAtA = make([]byte, size)
359 n, err := m.MarshalTo(dAtA)
360 if err != nil {
361 return nil, err
362 }
363 return dAtA[:n], nil
364}
365
366func (m *WebhookThrottleConfig) MarshalTo(dAtA []byte) (int, error) {
367 var i int
368 _ = i
369 var l int
370 _ = l
371 if m.QPS != nil {
372 dAtA[i] = 0x8
373 i++
374 i = encodeVarintGenerated(dAtA, i, uint64(*m.QPS))
375 }
376 if m.Burst != nil {
377 dAtA[i] = 0x10
378 i++
379 i = encodeVarintGenerated(dAtA, i, uint64(*m.Burst))
380 }
381 return i, nil
382}
383
384func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
385 for v >= 1<<7 {
386 dAtA[offset] = uint8(v&0x7f | 0x80)
387 v >>= 7
388 offset++
389 }
390 dAtA[offset] = uint8(v)
391 return offset + 1
392}
393func (m *AuditSink) Size() (n int) {
394 var l int
395 _ = l
396 l = m.ObjectMeta.Size()
397 n += 1 + l + sovGenerated(uint64(l))
398 l = m.Spec.Size()
399 n += 1 + l + sovGenerated(uint64(l))
400 return n
401}
402
403func (m *AuditSinkList) Size() (n int) {
404 var l int
405 _ = l
406 l = m.ListMeta.Size()
407 n += 1 + l + sovGenerated(uint64(l))
408 if len(m.Items) > 0 {
409 for _, e := range m.Items {
410 l = e.Size()
411 n += 1 + l + sovGenerated(uint64(l))
412 }
413 }
414 return n
415}
416
417func (m *AuditSinkSpec) Size() (n int) {
418 var l int
419 _ = l
420 l = m.Policy.Size()
421 n += 1 + l + sovGenerated(uint64(l))
422 l = m.Webhook.Size()
423 n += 1 + l + sovGenerated(uint64(l))
424 return n
425}
426
427func (m *Policy) Size() (n int) {
428 var l int
429 _ = l
430 l = len(m.Level)
431 n += 1 + l + sovGenerated(uint64(l))
432 if len(m.Stages) > 0 {
433 for _, s := range m.Stages {
434 l = len(s)
435 n += 1 + l + sovGenerated(uint64(l))
436 }
437 }
438 return n
439}
440
441func (m *ServiceReference) Size() (n int) {
442 var l int
443 _ = l
444 l = len(m.Namespace)
445 n += 1 + l + sovGenerated(uint64(l))
446 l = len(m.Name)
447 n += 1 + l + sovGenerated(uint64(l))
448 if m.Path != nil {
449 l = len(*m.Path)
450 n += 1 + l + sovGenerated(uint64(l))
451 }
452 if m.Port != nil {
453 n += 1 + sovGenerated(uint64(*m.Port))
454 }
455 return n
456}
457
458func (m *Webhook) Size() (n int) {
459 var l int
460 _ = l
461 if m.Throttle != nil {
462 l = m.Throttle.Size()
463 n += 1 + l + sovGenerated(uint64(l))
464 }
465 l = m.ClientConfig.Size()
466 n += 1 + l + sovGenerated(uint64(l))
467 return n
468}
469
470func (m *WebhookClientConfig) Size() (n int) {
471 var l int
472 _ = l
473 if m.URL != nil {
474 l = len(*m.URL)
475 n += 1 + l + sovGenerated(uint64(l))
476 }
477 if m.Service != nil {
478 l = m.Service.Size()
479 n += 1 + l + sovGenerated(uint64(l))
480 }
481 if m.CABundle != nil {
482 l = len(m.CABundle)
483 n += 1 + l + sovGenerated(uint64(l))
484 }
485 return n
486}
487
488func (m *WebhookThrottleConfig) Size() (n int) {
489 var l int
490 _ = l
491 if m.QPS != nil {
492 n += 1 + sovGenerated(uint64(*m.QPS))
493 }
494 if m.Burst != nil {
495 n += 1 + sovGenerated(uint64(*m.Burst))
496 }
497 return n
498}
499
500func sovGenerated(x uint64) (n int) {
501 for {
502 n++
503 x >>= 7
504 if x == 0 {
505 break
506 }
507 }
508 return n
509}
510func sozGenerated(x uint64) (n int) {
511 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
512}
513func (this *AuditSink) String() string {
514 if this == nil {
515 return "nil"
516 }
517 s := strings.Join([]string{`&AuditSink{`,
518 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
519 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "AuditSinkSpec", "AuditSinkSpec", 1), `&`, ``, 1) + `,`,
520 `}`,
521 }, "")
522 return s
523}
524func (this *AuditSinkList) String() string {
525 if this == nil {
526 return "nil"
527 }
528 s := strings.Join([]string{`&AuditSinkList{`,
529 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
530 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "AuditSink", "AuditSink", 1), `&`, ``, 1) + `,`,
531 `}`,
532 }, "")
533 return s
534}
535func (this *AuditSinkSpec) String() string {
536 if this == nil {
537 return "nil"
538 }
539 s := strings.Join([]string{`&AuditSinkSpec{`,
540 `Policy:` + strings.Replace(strings.Replace(this.Policy.String(), "Policy", "Policy", 1), `&`, ``, 1) + `,`,
541 `Webhook:` + strings.Replace(strings.Replace(this.Webhook.String(), "Webhook", "Webhook", 1), `&`, ``, 1) + `,`,
542 `}`,
543 }, "")
544 return s
545}
546func (this *Policy) String() string {
547 if this == nil {
548 return "nil"
549 }
550 s := strings.Join([]string{`&Policy{`,
551 `Level:` + fmt.Sprintf("%v", this.Level) + `,`,
552 `Stages:` + fmt.Sprintf("%v", this.Stages) + `,`,
553 `}`,
554 }, "")
555 return s
556}
557func (this *ServiceReference) String() string {
558 if this == nil {
559 return "nil"
560 }
561 s := strings.Join([]string{`&ServiceReference{`,
562 `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
563 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
564 `Path:` + valueToStringGenerated(this.Path) + `,`,
565 `Port:` + valueToStringGenerated(this.Port) + `,`,
566 `}`,
567 }, "")
568 return s
569}
570func (this *Webhook) String() string {
571 if this == nil {
572 return "nil"
573 }
574 s := strings.Join([]string{`&Webhook{`,
575 `Throttle:` + strings.Replace(fmt.Sprintf("%v", this.Throttle), "WebhookThrottleConfig", "WebhookThrottleConfig", 1) + `,`,
576 `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`,
577 `}`,
578 }, "")
579 return s
580}
581func (this *WebhookClientConfig) String() string {
582 if this == nil {
583 return "nil"
584 }
585 s := strings.Join([]string{`&WebhookClientConfig{`,
586 `URL:` + valueToStringGenerated(this.URL) + `,`,
587 `Service:` + strings.Replace(fmt.Sprintf("%v", this.Service), "ServiceReference", "ServiceReference", 1) + `,`,
588 `CABundle:` + valueToStringGenerated(this.CABundle) + `,`,
589 `}`,
590 }, "")
591 return s
592}
593func (this *WebhookThrottleConfig) String() string {
594 if this == nil {
595 return "nil"
596 }
597 s := strings.Join([]string{`&WebhookThrottleConfig{`,
598 `QPS:` + valueToStringGenerated(this.QPS) + `,`,
599 `Burst:` + valueToStringGenerated(this.Burst) + `,`,
600 `}`,
601 }, "")
602 return s
603}
604func valueToStringGenerated(v interface{}) string {
605 rv := reflect.ValueOf(v)
606 if rv.IsNil() {
607 return "nil"
608 }
609 pv := reflect.Indirect(rv).Interface()
610 return fmt.Sprintf("*%v", pv)
611}
612func (m *AuditSink) Unmarshal(dAtA []byte) error {
613 l := len(dAtA)
614 iNdEx := 0
615 for iNdEx < l {
616 preIndex := iNdEx
617 var wire uint64
618 for shift := uint(0); ; shift += 7 {
619 if shift >= 64 {
620 return ErrIntOverflowGenerated
621 }
622 if iNdEx >= l {
623 return io.ErrUnexpectedEOF
624 }
625 b := dAtA[iNdEx]
626 iNdEx++
627 wire |= (uint64(b) & 0x7F) << shift
628 if b < 0x80 {
629 break
630 }
631 }
632 fieldNum := int32(wire >> 3)
633 wireType := int(wire & 0x7)
634 if wireType == 4 {
635 return fmt.Errorf("proto: AuditSink: wiretype end group for non-group")
636 }
637 if fieldNum <= 0 {
638 return fmt.Errorf("proto: AuditSink: illegal tag %d (wire type %d)", fieldNum, wire)
639 }
640 switch fieldNum {
641 case 1:
642 if wireType != 2 {
643 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
644 }
645 var msglen int
646 for shift := uint(0); ; shift += 7 {
647 if shift >= 64 {
648 return ErrIntOverflowGenerated
649 }
650 if iNdEx >= l {
651 return io.ErrUnexpectedEOF
652 }
653 b := dAtA[iNdEx]
654 iNdEx++
655 msglen |= (int(b) & 0x7F) << shift
656 if b < 0x80 {
657 break
658 }
659 }
660 if msglen < 0 {
661 return ErrInvalidLengthGenerated
662 }
663 postIndex := iNdEx + msglen
664 if postIndex > l {
665 return io.ErrUnexpectedEOF
666 }
667 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
668 return err
669 }
670 iNdEx = postIndex
671 case 2:
672 if wireType != 2 {
673 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
674 }
675 var msglen int
676 for shift := uint(0); ; shift += 7 {
677 if shift >= 64 {
678 return ErrIntOverflowGenerated
679 }
680 if iNdEx >= l {
681 return io.ErrUnexpectedEOF
682 }
683 b := dAtA[iNdEx]
684 iNdEx++
685 msglen |= (int(b) & 0x7F) << shift
686 if b < 0x80 {
687 break
688 }
689 }
690 if msglen < 0 {
691 return ErrInvalidLengthGenerated
692 }
693 postIndex := iNdEx + msglen
694 if postIndex > l {
695 return io.ErrUnexpectedEOF
696 }
697 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
698 return err
699 }
700 iNdEx = postIndex
701 default:
702 iNdEx = preIndex
703 skippy, err := skipGenerated(dAtA[iNdEx:])
704 if err != nil {
705 return err
706 }
707 if skippy < 0 {
708 return ErrInvalidLengthGenerated
709 }
710 if (iNdEx + skippy) > l {
711 return io.ErrUnexpectedEOF
712 }
713 iNdEx += skippy
714 }
715 }
716
717 if iNdEx > l {
718 return io.ErrUnexpectedEOF
719 }
720 return nil
721}
722func (m *AuditSinkList) Unmarshal(dAtA []byte) error {
723 l := len(dAtA)
724 iNdEx := 0
725 for iNdEx < l {
726 preIndex := iNdEx
727 var wire uint64
728 for shift := uint(0); ; shift += 7 {
729 if shift >= 64 {
730 return ErrIntOverflowGenerated
731 }
732 if iNdEx >= l {
733 return io.ErrUnexpectedEOF
734 }
735 b := dAtA[iNdEx]
736 iNdEx++
737 wire |= (uint64(b) & 0x7F) << shift
738 if b < 0x80 {
739 break
740 }
741 }
742 fieldNum := int32(wire >> 3)
743 wireType := int(wire & 0x7)
744 if wireType == 4 {
745 return fmt.Errorf("proto: AuditSinkList: wiretype end group for non-group")
746 }
747 if fieldNum <= 0 {
748 return fmt.Errorf("proto: AuditSinkList: illegal tag %d (wire type %d)", fieldNum, wire)
749 }
750 switch fieldNum {
751 case 1:
752 if wireType != 2 {
753 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
754 }
755 var msglen int
756 for shift := uint(0); ; shift += 7 {
757 if shift >= 64 {
758 return ErrIntOverflowGenerated
759 }
760 if iNdEx >= l {
761 return io.ErrUnexpectedEOF
762 }
763 b := dAtA[iNdEx]
764 iNdEx++
765 msglen |= (int(b) & 0x7F) << shift
766 if b < 0x80 {
767 break
768 }
769 }
770 if msglen < 0 {
771 return ErrInvalidLengthGenerated
772 }
773 postIndex := iNdEx + msglen
774 if postIndex > l {
775 return io.ErrUnexpectedEOF
776 }
777 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
778 return err
779 }
780 iNdEx = postIndex
781 case 2:
782 if wireType != 2 {
783 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
784 }
785 var msglen int
786 for shift := uint(0); ; shift += 7 {
787 if shift >= 64 {
788 return ErrIntOverflowGenerated
789 }
790 if iNdEx >= l {
791 return io.ErrUnexpectedEOF
792 }
793 b := dAtA[iNdEx]
794 iNdEx++
795 msglen |= (int(b) & 0x7F) << shift
796 if b < 0x80 {
797 break
798 }
799 }
800 if msglen < 0 {
801 return ErrInvalidLengthGenerated
802 }
803 postIndex := iNdEx + msglen
804 if postIndex > l {
805 return io.ErrUnexpectedEOF
806 }
807 m.Items = append(m.Items, AuditSink{})
808 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
809 return err
810 }
811 iNdEx = postIndex
812 default:
813 iNdEx = preIndex
814 skippy, err := skipGenerated(dAtA[iNdEx:])
815 if err != nil {
816 return err
817 }
818 if skippy < 0 {
819 return ErrInvalidLengthGenerated
820 }
821 if (iNdEx + skippy) > l {
822 return io.ErrUnexpectedEOF
823 }
824 iNdEx += skippy
825 }
826 }
827
828 if iNdEx > l {
829 return io.ErrUnexpectedEOF
830 }
831 return nil
832}
833func (m *AuditSinkSpec) Unmarshal(dAtA []byte) error {
834 l := len(dAtA)
835 iNdEx := 0
836 for iNdEx < l {
837 preIndex := iNdEx
838 var wire uint64
839 for shift := uint(0); ; shift += 7 {
840 if shift >= 64 {
841 return ErrIntOverflowGenerated
842 }
843 if iNdEx >= l {
844 return io.ErrUnexpectedEOF
845 }
846 b := dAtA[iNdEx]
847 iNdEx++
848 wire |= (uint64(b) & 0x7F) << shift
849 if b < 0x80 {
850 break
851 }
852 }
853 fieldNum := int32(wire >> 3)
854 wireType := int(wire & 0x7)
855 if wireType == 4 {
856 return fmt.Errorf("proto: AuditSinkSpec: wiretype end group for non-group")
857 }
858 if fieldNum <= 0 {
859 return fmt.Errorf("proto: AuditSinkSpec: illegal tag %d (wire type %d)", fieldNum, wire)
860 }
861 switch fieldNum {
862 case 1:
863 if wireType != 2 {
864 return fmt.Errorf("proto: wrong wireType = %d for field Policy", wireType)
865 }
866 var msglen int
867 for shift := uint(0); ; shift += 7 {
868 if shift >= 64 {
869 return ErrIntOverflowGenerated
870 }
871 if iNdEx >= l {
872 return io.ErrUnexpectedEOF
873 }
874 b := dAtA[iNdEx]
875 iNdEx++
876 msglen |= (int(b) & 0x7F) << shift
877 if b < 0x80 {
878 break
879 }
880 }
881 if msglen < 0 {
882 return ErrInvalidLengthGenerated
883 }
884 postIndex := iNdEx + msglen
885 if postIndex > l {
886 return io.ErrUnexpectedEOF
887 }
888 if err := m.Policy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
889 return err
890 }
891 iNdEx = postIndex
892 case 2:
893 if wireType != 2 {
894 return fmt.Errorf("proto: wrong wireType = %d for field Webhook", wireType)
895 }
896 var msglen int
897 for shift := uint(0); ; shift += 7 {
898 if shift >= 64 {
899 return ErrIntOverflowGenerated
900 }
901 if iNdEx >= l {
902 return io.ErrUnexpectedEOF
903 }
904 b := dAtA[iNdEx]
905 iNdEx++
906 msglen |= (int(b) & 0x7F) << shift
907 if b < 0x80 {
908 break
909 }
910 }
911 if msglen < 0 {
912 return ErrInvalidLengthGenerated
913 }
914 postIndex := iNdEx + msglen
915 if postIndex > l {
916 return io.ErrUnexpectedEOF
917 }
918 if err := m.Webhook.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
919 return err
920 }
921 iNdEx = postIndex
922 default:
923 iNdEx = preIndex
924 skippy, err := skipGenerated(dAtA[iNdEx:])
925 if err != nil {
926 return err
927 }
928 if skippy < 0 {
929 return ErrInvalidLengthGenerated
930 }
931 if (iNdEx + skippy) > l {
932 return io.ErrUnexpectedEOF
933 }
934 iNdEx += skippy
935 }
936 }
937
938 if iNdEx > l {
939 return io.ErrUnexpectedEOF
940 }
941 return nil
942}
943func (m *Policy) Unmarshal(dAtA []byte) error {
944 l := len(dAtA)
945 iNdEx := 0
946 for iNdEx < l {
947 preIndex := iNdEx
948 var wire uint64
949 for shift := uint(0); ; shift += 7 {
950 if shift >= 64 {
951 return ErrIntOverflowGenerated
952 }
953 if iNdEx >= l {
954 return io.ErrUnexpectedEOF
955 }
956 b := dAtA[iNdEx]
957 iNdEx++
958 wire |= (uint64(b) & 0x7F) << shift
959 if b < 0x80 {
960 break
961 }
962 }
963 fieldNum := int32(wire >> 3)
964 wireType := int(wire & 0x7)
965 if wireType == 4 {
966 return fmt.Errorf("proto: Policy: wiretype end group for non-group")
967 }
968 if fieldNum <= 0 {
969 return fmt.Errorf("proto: Policy: illegal tag %d (wire type %d)", fieldNum, wire)
970 }
971 switch fieldNum {
972 case 1:
973 if wireType != 2 {
974 return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
975 }
976 var stringLen uint64
977 for shift := uint(0); ; shift += 7 {
978 if shift >= 64 {
979 return ErrIntOverflowGenerated
980 }
981 if iNdEx >= l {
982 return io.ErrUnexpectedEOF
983 }
984 b := dAtA[iNdEx]
985 iNdEx++
986 stringLen |= (uint64(b) & 0x7F) << shift
987 if b < 0x80 {
988 break
989 }
990 }
991 intStringLen := int(stringLen)
992 if intStringLen < 0 {
993 return ErrInvalidLengthGenerated
994 }
995 postIndex := iNdEx + intStringLen
996 if postIndex > l {
997 return io.ErrUnexpectedEOF
998 }
999 m.Level = Level(dAtA[iNdEx:postIndex])
1000 iNdEx = postIndex
1001 case 2:
1002 if wireType != 2 {
1003 return fmt.Errorf("proto: wrong wireType = %d for field Stages", wireType)
1004 }
1005 var stringLen uint64
1006 for shift := uint(0); ; shift += 7 {
1007 if shift >= 64 {
1008 return ErrIntOverflowGenerated
1009 }
1010 if iNdEx >= l {
1011 return io.ErrUnexpectedEOF
1012 }
1013 b := dAtA[iNdEx]
1014 iNdEx++
1015 stringLen |= (uint64(b) & 0x7F) << shift
1016 if b < 0x80 {
1017 break
1018 }
1019 }
1020 intStringLen := int(stringLen)
1021 if intStringLen < 0 {
1022 return ErrInvalidLengthGenerated
1023 }
1024 postIndex := iNdEx + intStringLen
1025 if postIndex > l {
1026 return io.ErrUnexpectedEOF
1027 }
1028 m.Stages = append(m.Stages, Stage(dAtA[iNdEx:postIndex]))
1029 iNdEx = postIndex
1030 default:
1031 iNdEx = preIndex
1032 skippy, err := skipGenerated(dAtA[iNdEx:])
1033 if err != nil {
1034 return err
1035 }
1036 if skippy < 0 {
1037 return ErrInvalidLengthGenerated
1038 }
1039 if (iNdEx + skippy) > l {
1040 return io.ErrUnexpectedEOF
1041 }
1042 iNdEx += skippy
1043 }
1044 }
1045
1046 if iNdEx > l {
1047 return io.ErrUnexpectedEOF
1048 }
1049 return nil
1050}
1051func (m *ServiceReference) Unmarshal(dAtA []byte) error {
1052 l := len(dAtA)
1053 iNdEx := 0
1054 for iNdEx < l {
1055 preIndex := iNdEx
1056 var wire uint64
1057 for shift := uint(0); ; shift += 7 {
1058 if shift >= 64 {
1059 return ErrIntOverflowGenerated
1060 }
1061 if iNdEx >= l {
1062 return io.ErrUnexpectedEOF
1063 }
1064 b := dAtA[iNdEx]
1065 iNdEx++
1066 wire |= (uint64(b) & 0x7F) << shift
1067 if b < 0x80 {
1068 break
1069 }
1070 }
1071 fieldNum := int32(wire >> 3)
1072 wireType := int(wire & 0x7)
1073 if wireType == 4 {
1074 return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group")
1075 }
1076 if fieldNum <= 0 {
1077 return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire)
1078 }
1079 switch fieldNum {
1080 case 1:
1081 if wireType != 2 {
1082 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
1083 }
1084 var stringLen uint64
1085 for shift := uint(0); ; shift += 7 {
1086 if shift >= 64 {
1087 return ErrIntOverflowGenerated
1088 }
1089 if iNdEx >= l {
1090 return io.ErrUnexpectedEOF
1091 }
1092 b := dAtA[iNdEx]
1093 iNdEx++
1094 stringLen |= (uint64(b) & 0x7F) << shift
1095 if b < 0x80 {
1096 break
1097 }
1098 }
1099 intStringLen := int(stringLen)
1100 if intStringLen < 0 {
1101 return ErrInvalidLengthGenerated
1102 }
1103 postIndex := iNdEx + intStringLen
1104 if postIndex > l {
1105 return io.ErrUnexpectedEOF
1106 }
1107 m.Namespace = string(dAtA[iNdEx:postIndex])
1108 iNdEx = postIndex
1109 case 2:
1110 if wireType != 2 {
1111 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
1112 }
1113 var stringLen uint64
1114 for shift := uint(0); ; shift += 7 {
1115 if shift >= 64 {
1116 return ErrIntOverflowGenerated
1117 }
1118 if iNdEx >= l {
1119 return io.ErrUnexpectedEOF
1120 }
1121 b := dAtA[iNdEx]
1122 iNdEx++
1123 stringLen |= (uint64(b) & 0x7F) << shift
1124 if b < 0x80 {
1125 break
1126 }
1127 }
1128 intStringLen := int(stringLen)
1129 if intStringLen < 0 {
1130 return ErrInvalidLengthGenerated
1131 }
1132 postIndex := iNdEx + intStringLen
1133 if postIndex > l {
1134 return io.ErrUnexpectedEOF
1135 }
1136 m.Name = string(dAtA[iNdEx:postIndex])
1137 iNdEx = postIndex
1138 case 3:
1139 if wireType != 2 {
1140 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
1141 }
1142 var stringLen uint64
1143 for shift := uint(0); ; shift += 7 {
1144 if shift >= 64 {
1145 return ErrIntOverflowGenerated
1146 }
1147 if iNdEx >= l {
1148 return io.ErrUnexpectedEOF
1149 }
1150 b := dAtA[iNdEx]
1151 iNdEx++
1152 stringLen |= (uint64(b) & 0x7F) << shift
1153 if b < 0x80 {
1154 break
1155 }
1156 }
1157 intStringLen := int(stringLen)
1158 if intStringLen < 0 {
1159 return ErrInvalidLengthGenerated
1160 }
1161 postIndex := iNdEx + intStringLen
1162 if postIndex > l {
1163 return io.ErrUnexpectedEOF
1164 }
1165 s := string(dAtA[iNdEx:postIndex])
1166 m.Path = &s
1167 iNdEx = postIndex
1168 case 4:
1169 if wireType != 0 {
1170 return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
1171 }
1172 var v int32
1173 for shift := uint(0); ; shift += 7 {
1174 if shift >= 64 {
1175 return ErrIntOverflowGenerated
1176 }
1177 if iNdEx >= l {
1178 return io.ErrUnexpectedEOF
1179 }
1180 b := dAtA[iNdEx]
1181 iNdEx++
1182 v |= (int32(b) & 0x7F) << shift
1183 if b < 0x80 {
1184 break
1185 }
1186 }
1187 m.Port = &v
1188 default:
1189 iNdEx = preIndex
1190 skippy, err := skipGenerated(dAtA[iNdEx:])
1191 if err != nil {
1192 return err
1193 }
1194 if skippy < 0 {
1195 return ErrInvalidLengthGenerated
1196 }
1197 if (iNdEx + skippy) > l {
1198 return io.ErrUnexpectedEOF
1199 }
1200 iNdEx += skippy
1201 }
1202 }
1203
1204 if iNdEx > l {
1205 return io.ErrUnexpectedEOF
1206 }
1207 return nil
1208}
1209func (m *Webhook) Unmarshal(dAtA []byte) error {
1210 l := len(dAtA)
1211 iNdEx := 0
1212 for iNdEx < l {
1213 preIndex := iNdEx
1214 var wire uint64
1215 for shift := uint(0); ; shift += 7 {
1216 if shift >= 64 {
1217 return ErrIntOverflowGenerated
1218 }
1219 if iNdEx >= l {
1220 return io.ErrUnexpectedEOF
1221 }
1222 b := dAtA[iNdEx]
1223 iNdEx++
1224 wire |= (uint64(b) & 0x7F) << shift
1225 if b < 0x80 {
1226 break
1227 }
1228 }
1229 fieldNum := int32(wire >> 3)
1230 wireType := int(wire & 0x7)
1231 if wireType == 4 {
1232 return fmt.Errorf("proto: Webhook: wiretype end group for non-group")
1233 }
1234 if fieldNum <= 0 {
1235 return fmt.Errorf("proto: Webhook: illegal tag %d (wire type %d)", fieldNum, wire)
1236 }
1237 switch fieldNum {
1238 case 1:
1239 if wireType != 2 {
1240 return fmt.Errorf("proto: wrong wireType = %d for field Throttle", wireType)
1241 }
1242 var msglen int
1243 for shift := uint(0); ; shift += 7 {
1244 if shift >= 64 {
1245 return ErrIntOverflowGenerated
1246 }
1247 if iNdEx >= l {
1248 return io.ErrUnexpectedEOF
1249 }
1250 b := dAtA[iNdEx]
1251 iNdEx++
1252 msglen |= (int(b) & 0x7F) << shift
1253 if b < 0x80 {
1254 break
1255 }
1256 }
1257 if msglen < 0 {
1258 return ErrInvalidLengthGenerated
1259 }
1260 postIndex := iNdEx + msglen
1261 if postIndex > l {
1262 return io.ErrUnexpectedEOF
1263 }
1264 if m.Throttle == nil {
1265 m.Throttle = &WebhookThrottleConfig{}
1266 }
1267 if err := m.Throttle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1268 return err
1269 }
1270 iNdEx = postIndex
1271 case 2:
1272 if wireType != 2 {
1273 return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType)
1274 }
1275 var msglen int
1276 for shift := uint(0); ; shift += 7 {
1277 if shift >= 64 {
1278 return ErrIntOverflowGenerated
1279 }
1280 if iNdEx >= l {
1281 return io.ErrUnexpectedEOF
1282 }
1283 b := dAtA[iNdEx]
1284 iNdEx++
1285 msglen |= (int(b) & 0x7F) << shift
1286 if b < 0x80 {
1287 break
1288 }
1289 }
1290 if msglen < 0 {
1291 return ErrInvalidLengthGenerated
1292 }
1293 postIndex := iNdEx + msglen
1294 if postIndex > l {
1295 return io.ErrUnexpectedEOF
1296 }
1297 if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1298 return err
1299 }
1300 iNdEx = postIndex
1301 default:
1302 iNdEx = preIndex
1303 skippy, err := skipGenerated(dAtA[iNdEx:])
1304 if err != nil {
1305 return err
1306 }
1307 if skippy < 0 {
1308 return ErrInvalidLengthGenerated
1309 }
1310 if (iNdEx + skippy) > l {
1311 return io.ErrUnexpectedEOF
1312 }
1313 iNdEx += skippy
1314 }
1315 }
1316
1317 if iNdEx > l {
1318 return io.ErrUnexpectedEOF
1319 }
1320 return nil
1321}
1322func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error {
1323 l := len(dAtA)
1324 iNdEx := 0
1325 for iNdEx < l {
1326 preIndex := iNdEx
1327 var wire uint64
1328 for shift := uint(0); ; shift += 7 {
1329 if shift >= 64 {
1330 return ErrIntOverflowGenerated
1331 }
1332 if iNdEx >= l {
1333 return io.ErrUnexpectedEOF
1334 }
1335 b := dAtA[iNdEx]
1336 iNdEx++
1337 wire |= (uint64(b) & 0x7F) << shift
1338 if b < 0x80 {
1339 break
1340 }
1341 }
1342 fieldNum := int32(wire >> 3)
1343 wireType := int(wire & 0x7)
1344 if wireType == 4 {
1345 return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group")
1346 }
1347 if fieldNum <= 0 {
1348 return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire)
1349 }
1350 switch fieldNum {
1351 case 1:
1352 if wireType != 2 {
1353 return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
1354 }
1355 var stringLen uint64
1356 for shift := uint(0); ; shift += 7 {
1357 if shift >= 64 {
1358 return ErrIntOverflowGenerated
1359 }
1360 if iNdEx >= l {
1361 return io.ErrUnexpectedEOF
1362 }
1363 b := dAtA[iNdEx]
1364 iNdEx++
1365 stringLen |= (uint64(b) & 0x7F) << shift
1366 if b < 0x80 {
1367 break
1368 }
1369 }
1370 intStringLen := int(stringLen)
1371 if intStringLen < 0 {
1372 return ErrInvalidLengthGenerated
1373 }
1374 postIndex := iNdEx + intStringLen
1375 if postIndex > l {
1376 return io.ErrUnexpectedEOF
1377 }
1378 s := string(dAtA[iNdEx:postIndex])
1379 m.URL = &s
1380 iNdEx = postIndex
1381 case 2:
1382 if wireType != 2 {
1383 return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
1384 }
1385 var msglen int
1386 for shift := uint(0); ; shift += 7 {
1387 if shift >= 64 {
1388 return ErrIntOverflowGenerated
1389 }
1390 if iNdEx >= l {
1391 return io.ErrUnexpectedEOF
1392 }
1393 b := dAtA[iNdEx]
1394 iNdEx++
1395 msglen |= (int(b) & 0x7F) << shift
1396 if b < 0x80 {
1397 break
1398 }
1399 }
1400 if msglen < 0 {
1401 return ErrInvalidLengthGenerated
1402 }
1403 postIndex := iNdEx + msglen
1404 if postIndex > l {
1405 return io.ErrUnexpectedEOF
1406 }
1407 if m.Service == nil {
1408 m.Service = &ServiceReference{}
1409 }
1410 if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1411 return err
1412 }
1413 iNdEx = postIndex
1414 case 3:
1415 if wireType != 2 {
1416 return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType)
1417 }
1418 var byteLen int
1419 for shift := uint(0); ; shift += 7 {
1420 if shift >= 64 {
1421 return ErrIntOverflowGenerated
1422 }
1423 if iNdEx >= l {
1424 return io.ErrUnexpectedEOF
1425 }
1426 b := dAtA[iNdEx]
1427 iNdEx++
1428 byteLen |= (int(b) & 0x7F) << shift
1429 if b < 0x80 {
1430 break
1431 }
1432 }
1433 if byteLen < 0 {
1434 return ErrInvalidLengthGenerated
1435 }
1436 postIndex := iNdEx + byteLen
1437 if postIndex > l {
1438 return io.ErrUnexpectedEOF
1439 }
1440 m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...)
1441 if m.CABundle == nil {
1442 m.CABundle = []byte{}
1443 }
1444 iNdEx = postIndex
1445 default:
1446 iNdEx = preIndex
1447 skippy, err := skipGenerated(dAtA[iNdEx:])
1448 if err != nil {
1449 return err
1450 }
1451 if skippy < 0 {
1452 return ErrInvalidLengthGenerated
1453 }
1454 if (iNdEx + skippy) > l {
1455 return io.ErrUnexpectedEOF
1456 }
1457 iNdEx += skippy
1458 }
1459 }
1460
1461 if iNdEx > l {
1462 return io.ErrUnexpectedEOF
1463 }
1464 return nil
1465}
1466func (m *WebhookThrottleConfig) Unmarshal(dAtA []byte) error {
1467 l := len(dAtA)
1468 iNdEx := 0
1469 for iNdEx < l {
1470 preIndex := iNdEx
1471 var wire uint64
1472 for shift := uint(0); ; shift += 7 {
1473 if shift >= 64 {
1474 return ErrIntOverflowGenerated
1475 }
1476 if iNdEx >= l {
1477 return io.ErrUnexpectedEOF
1478 }
1479 b := dAtA[iNdEx]
1480 iNdEx++
1481 wire |= (uint64(b) & 0x7F) << shift
1482 if b < 0x80 {
1483 break
1484 }
1485 }
1486 fieldNum := int32(wire >> 3)
1487 wireType := int(wire & 0x7)
1488 if wireType == 4 {
1489 return fmt.Errorf("proto: WebhookThrottleConfig: wiretype end group for non-group")
1490 }
1491 if fieldNum <= 0 {
1492 return fmt.Errorf("proto: WebhookThrottleConfig: illegal tag %d (wire type %d)", fieldNum, wire)
1493 }
1494 switch fieldNum {
1495 case 1:
1496 if wireType != 0 {
1497 return fmt.Errorf("proto: wrong wireType = %d for field QPS", wireType)
1498 }
1499 var v int64
1500 for shift := uint(0); ; shift += 7 {
1501 if shift >= 64 {
1502 return ErrIntOverflowGenerated
1503 }
1504 if iNdEx >= l {
1505 return io.ErrUnexpectedEOF
1506 }
1507 b := dAtA[iNdEx]
1508 iNdEx++
1509 v |= (int64(b) & 0x7F) << shift
1510 if b < 0x80 {
1511 break
1512 }
1513 }
1514 m.QPS = &v
1515 case 2:
1516 if wireType != 0 {
1517 return fmt.Errorf("proto: wrong wireType = %d for field Burst", wireType)
1518 }
1519 var v int64
1520 for shift := uint(0); ; shift += 7 {
1521 if shift >= 64 {
1522 return ErrIntOverflowGenerated
1523 }
1524 if iNdEx >= l {
1525 return io.ErrUnexpectedEOF
1526 }
1527 b := dAtA[iNdEx]
1528 iNdEx++
1529 v |= (int64(b) & 0x7F) << shift
1530 if b < 0x80 {
1531 break
1532 }
1533 }
1534 m.Burst = &v
1535 default:
1536 iNdEx = preIndex
1537 skippy, err := skipGenerated(dAtA[iNdEx:])
1538 if err != nil {
1539 return err
1540 }
1541 if skippy < 0 {
1542 return ErrInvalidLengthGenerated
1543 }
1544 if (iNdEx + skippy) > l {
1545 return io.ErrUnexpectedEOF
1546 }
1547 iNdEx += skippy
1548 }
1549 }
1550
1551 if iNdEx > l {
1552 return io.ErrUnexpectedEOF
1553 }
1554 return nil
1555}
1556func skipGenerated(dAtA []byte) (n int, err error) {
1557 l := len(dAtA)
1558 iNdEx := 0
1559 for iNdEx < l {
1560 var wire uint64
1561 for shift := uint(0); ; shift += 7 {
1562 if shift >= 64 {
1563 return 0, ErrIntOverflowGenerated
1564 }
1565 if iNdEx >= l {
1566 return 0, io.ErrUnexpectedEOF
1567 }
1568 b := dAtA[iNdEx]
1569 iNdEx++
1570 wire |= (uint64(b) & 0x7F) << shift
1571 if b < 0x80 {
1572 break
1573 }
1574 }
1575 wireType := int(wire & 0x7)
1576 switch wireType {
1577 case 0:
1578 for shift := uint(0); ; shift += 7 {
1579 if shift >= 64 {
1580 return 0, ErrIntOverflowGenerated
1581 }
1582 if iNdEx >= l {
1583 return 0, io.ErrUnexpectedEOF
1584 }
1585 iNdEx++
1586 if dAtA[iNdEx-1] < 0x80 {
1587 break
1588 }
1589 }
1590 return iNdEx, nil
1591 case 1:
1592 iNdEx += 8
1593 return iNdEx, nil
1594 case 2:
1595 var length int
1596 for shift := uint(0); ; shift += 7 {
1597 if shift >= 64 {
1598 return 0, ErrIntOverflowGenerated
1599 }
1600 if iNdEx >= l {
1601 return 0, io.ErrUnexpectedEOF
1602 }
1603 b := dAtA[iNdEx]
1604 iNdEx++
1605 length |= (int(b) & 0x7F) << shift
1606 if b < 0x80 {
1607 break
1608 }
1609 }
1610 iNdEx += length
1611 if length < 0 {
1612 return 0, ErrInvalidLengthGenerated
1613 }
1614 return iNdEx, nil
1615 case 3:
1616 for {
1617 var innerWire uint64
1618 var start int = iNdEx
1619 for shift := uint(0); ; shift += 7 {
1620 if shift >= 64 {
1621 return 0, ErrIntOverflowGenerated
1622 }
1623 if iNdEx >= l {
1624 return 0, io.ErrUnexpectedEOF
1625 }
1626 b := dAtA[iNdEx]
1627 iNdEx++
1628 innerWire |= (uint64(b) & 0x7F) << shift
1629 if b < 0x80 {
1630 break
1631 }
1632 }
1633 innerWireType := int(innerWire & 0x7)
1634 if innerWireType == 4 {
1635 break
1636 }
1637 next, err := skipGenerated(dAtA[start:])
1638 if err != nil {
1639 return 0, err
1640 }
1641 iNdEx = start + next
1642 }
1643 return iNdEx, nil
1644 case 4:
1645 return iNdEx, nil
1646 case 5:
1647 iNdEx += 4
1648 return iNdEx, nil
1649 default:
1650 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
1651 }
1652 }
1653 panic("unreachable")
1654}
1655
1656var (
1657 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
1658 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
1659)
1660
1661func init() {
1662 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/auditregistration/v1alpha1/generated.proto", fileDescriptorGenerated)
1663}
1664
1665var fileDescriptorGenerated = []byte{
1666 // 765 bytes of a gzipped FileDescriptorProto
1667 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x41, 0x6f, 0x13, 0x47,
1668 0x14, 0xf6, 0xc6, 0x76, 0x6c, 0x4f, 0x9c, 0x36, 0x9d, 0xb4, 0x95, 0x1b, 0x55, 0x6b, 0x6b, 0xa5,
1669 0x4a, 0x91, 0xda, 0xcc, 0x36, 0x55, 0xd4, 0x56, 0x88, 0x4b, 0x36, 0x27, 0xa4, 0x10, 0xc2, 0x98,
1670 0x80, 0x40, 0x08, 0x31, 0x5e, 0x3f, 0xef, 0x0e, 0xb6, 0x77, 0x97, 0xdd, 0x59, 0xa3, 0xdc, 0xf8,
1671 0x09, 0xfc, 0x05, 0xfe, 0x06, 0x37, 0x24, 0x90, 0x72, 0xcc, 0x31, 0xa7, 0x88, 0x98, 0x03, 0xff,
1672 0x81, 0x13, 0x9a, 0xd9, 0x59, 0xdb, 0xc4, 0x41, 0x38, 0xb7, 0x79, 0xdf, 0x7b, 0xdf, 0xf7, 0xbe,
1673 0xf7, 0xde, 0xa0, 0x83, 0xfe, 0xff, 0x09, 0xe1, 0xa1, 0xdd, 0x4f, 0x3b, 0x10, 0x07, 0x20, 0x20,
1674 0xb1, 0x47, 0x10, 0x74, 0xc3, 0xd8, 0xd6, 0x09, 0x16, 0x71, 0x9b, 0xa5, 0x5d, 0x2e, 0x62, 0xf0,
1675 0x78, 0x22, 0x62, 0x26, 0x78, 0x18, 0xd8, 0xa3, 0x6d, 0x36, 0x88, 0x7c, 0xb6, 0x6d, 0x7b, 0x10,
1676 0x40, 0xcc, 0x04, 0x74, 0x49, 0x14, 0x87, 0x22, 0xc4, 0x7f, 0x64, 0x34, 0xc2, 0x22, 0x4e, 0xe6,
1677 0x68, 0x24, 0xa7, 0x6d, 0x6c, 0x79, 0x5c, 0xf8, 0x69, 0x87, 0xb8, 0xe1, 0xd0, 0xf6, 0x42, 0x2f,
1678 0xb4, 0x15, 0xbb, 0x93, 0xf6, 0x54, 0xa4, 0x02, 0xf5, 0xca, 0x54, 0x37, 0x76, 0xa6, 0x66, 0x86,
1679 0xcc, 0xf5, 0x79, 0x00, 0xf1, 0xb1, 0x1d, 0xf5, 0x3d, 0x09, 0x24, 0xf6, 0x10, 0x04, 0xb3, 0x47,
1680 0x73, 0x5e, 0x36, 0xec, 0x6f, 0xb1, 0xe2, 0x34, 0x10, 0x7c, 0x08, 0x73, 0x84, 0x7f, 0xbf, 0x47,
1681 0x48, 0x5c, 0x1f, 0x86, 0xec, 0x32, 0xcf, 0x7a, 0x6f, 0xa0, 0xda, 0xae, 0x1c, 0xb6, 0xcd, 0x83,
1682 0x3e, 0x7e, 0x8a, 0xaa, 0xd2, 0x51, 0x97, 0x09, 0xd6, 0x30, 0x5a, 0xc6, 0xe6, 0xca, 0x3f, 0x7f,
1683 0x93, 0xe9, 0x56, 0x26, 0xc2, 0x24, 0xea, 0x7b, 0x12, 0x48, 0x88, 0xac, 0x26, 0xa3, 0x6d, 0x72,
1684 0xa7, 0xf3, 0x0c, 0x5c, 0x71, 0x1b, 0x04, 0x73, 0xf0, 0xc9, 0x79, 0xb3, 0x30, 0x3e, 0x6f, 0xa2,
1685 0x29, 0x46, 0x27, 0xaa, 0xf8, 0x3e, 0x2a, 0x25, 0x11, 0xb8, 0x8d, 0x25, 0xa5, 0xbe, 0x43, 0x16,
1686 0xda, 0x39, 0x99, 0x38, 0x6c, 0x47, 0xe0, 0x3a, 0x75, 0xdd, 0xa1, 0x24, 0x23, 0xaa, 0xf4, 0xac,
1687 0x77, 0x06, 0x5a, 0x9d, 0x54, 0xed, 0xf3, 0x44, 0xe0, 0xc7, 0x73, 0xb3, 0x90, 0xc5, 0x66, 0x91,
1688 0x6c, 0x35, 0xc9, 0x9a, 0xee, 0x53, 0xcd, 0x91, 0x99, 0x39, 0x8e, 0x50, 0x99, 0x0b, 0x18, 0x26,
1689 0x8d, 0xa5, 0x56, 0xf1, 0xd2, 0x9a, 0x16, 0x1a, 0xc4, 0x59, 0xd5, 0xe2, 0xe5, 0x5b, 0x52, 0x86,
1690 0x66, 0x6a, 0xd6, 0xdb, 0xd9, 0x31, 0xe4, 0x78, 0xf8, 0x08, 0x2d, 0x47, 0xe1, 0x80, 0xbb, 0xc7,
1691 0x7a, 0x88, 0xad, 0x05, 0x3b, 0x1d, 0x2a, 0x92, 0xf3, 0x83, 0x6e, 0xb3, 0x9c, 0xc5, 0x54, 0x8b,
1692 0xe1, 0x87, 0xa8, 0xf2, 0x02, 0x3a, 0x7e, 0x18, 0xf6, 0xf5, 0x29, 0xc8, 0x82, 0xba, 0x0f, 0x32,
1693 0x96, 0xf3, 0xa3, 0x16, 0xae, 0x68, 0x80, 0xe6, 0x7a, 0x96, 0x8b, 0x74, 0x33, 0xfc, 0x17, 0x2a,
1694 0x0f, 0x60, 0x04, 0x03, 0x65, 0xbd, 0xe6, 0xfc, 0x9a, 0x8f, 0xbc, 0x2f, 0xc1, 0xcf, 0xf9, 0x83,
1695 0x66, 0x45, 0xf8, 0x4f, 0xb4, 0x9c, 0x08, 0xe6, 0x41, 0xb6, 0xd3, 0x9a, 0xb3, 0x2e, 0x6d, 0xb7,
1696 0x15, 0x22, 0x6b, 0xd5, 0x8b, 0xea, 0x12, 0xeb, 0xb5, 0x81, 0xd6, 0xda, 0x10, 0x8f, 0xb8, 0x0b,
1697 0x14, 0x7a, 0x10, 0x43, 0xe0, 0x02, 0xb6, 0x51, 0x2d, 0x60, 0x43, 0x48, 0x22, 0xe6, 0x82, 0xee,
1698 0xf9, 0x93, 0xee, 0x59, 0x3b, 0xc8, 0x13, 0x74, 0x5a, 0x83, 0x5b, 0xa8, 0x24, 0x03, 0xb5, 0x82,
1699 0xda, 0xf4, 0x5f, 0xc9, 0x5a, 0xaa, 0x32, 0xf8, 0x77, 0x54, 0x8a, 0x98, 0xf0, 0x1b, 0x45, 0x55,
1700 0x51, 0x95, 0xd9, 0x43, 0x26, 0x7c, 0xaa, 0x50, 0x95, 0x0d, 0x63, 0xd1, 0x28, 0xb5, 0x8c, 0xcd,
1701 0xb2, 0xce, 0x86, 0xb1, 0xa0, 0x0a, 0xb5, 0x3e, 0x19, 0x28, 0xdf, 0x0e, 0xee, 0xa1, 0xaa, 0xf0,
1702 0xe3, 0x50, 0x88, 0x01, 0xe8, 0x43, 0xde, 0xbc, 0xde, 0xc2, 0xef, 0x69, 0xf6, 0x5e, 0x18, 0xf4,
1703 0xb8, 0xe7, 0xd4, 0xe5, 0xbf, 0xcc, 0x31, 0x3a, 0xd1, 0xc6, 0x02, 0xd5, 0xdd, 0x01, 0x87, 0x40,
1704 0x64, 0x75, 0xfa, 0xb8, 0x37, 0xae, 0xd7, 0x6b, 0x6f, 0x46, 0xc1, 0xf9, 0x59, 0x6f, 0xa5, 0x3e,
1705 0x8b, 0xd2, 0xaf, 0xba, 0x58, 0x6f, 0x0c, 0xb4, 0x7e, 0x05, 0x17, 0xff, 0x86, 0x8a, 0x69, 0x9c,
1706 0x9f, 0xbf, 0x32, 0x3e, 0x6f, 0x16, 0x8f, 0xe8, 0x3e, 0x95, 0x18, 0x7e, 0x82, 0x2a, 0x49, 0x76,
1707 0x3f, 0xed, 0xf1, 0xbf, 0x05, 0x3d, 0x5e, 0xbe, 0xba, 0xb3, 0x22, 0x7f, 0x61, 0x8e, 0xe6, 0xa2,
1708 0x78, 0x13, 0x55, 0x5d, 0xe6, 0xa4, 0x41, 0x77, 0x00, 0xea, 0x78, 0xf5, 0x6c, 0x65, 0x7b, 0xbb,
1709 0x19, 0x46, 0x27, 0x59, 0xab, 0x8d, 0x7e, 0xb9, 0x72, 0xc7, 0xd2, 0xfd, 0xf3, 0x28, 0x51, 0xee,
1710 0x8b, 0x99, 0xfb, 0xbb, 0x87, 0x6d, 0x2a, 0x31, 0xdc, 0x44, 0xe5, 0x4e, 0x1a, 0x27, 0x42, 0x79,
1711 0x2f, 0x3a, 0x35, 0xf9, 0xab, 0x1d, 0x09, 0xd0, 0x0c, 0x77, 0xc8, 0xc9, 0x85, 0x59, 0x38, 0xbd,
1712 0x30, 0x0b, 0x67, 0x17, 0x66, 0xe1, 0xe5, 0xd8, 0x34, 0x4e, 0xc6, 0xa6, 0x71, 0x3a, 0x36, 0x8d,
1713 0xb3, 0xb1, 0x69, 0x7c, 0x18, 0x9b, 0xc6, 0xab, 0x8f, 0x66, 0xe1, 0x51, 0x35, 0x9f, 0xea, 0x4b,
1714 0x00, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x6c, 0xff, 0x86, 0xcd, 0x06, 0x00, 0x00,
1715}