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