blob: 9c3742e587f8cb6a875d2a49dbf79a45ef74bdb4 [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/admissionregistration/v1beta1/generated.proto
19
20/*
21 Package v1beta1 is a generated protocol buffer package.
22
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto
25
26 It has these top-level messages:
27 MutatingWebhook
28 MutatingWebhookConfiguration
29 MutatingWebhookConfigurationList
30 Rule
31 RuleWithOperations
32 ServiceReference
33 ValidatingWebhook
34 ValidatingWebhookConfiguration
35 ValidatingWebhookConfigurationList
36 WebhookClientConfig
37*/
38package v1beta1
39
Scott Baker4a35a702019-11-26 08:17:33 -080040import (
41 fmt "fmt"
Zack Williamse940c7a2019-08-21 14:25:39 -070042
Scott Baker4a35a702019-11-26 08:17:33 -080043 proto "github.com/gogo/protobuf/proto"
Zack Williamse940c7a2019-08-21 14:25:39 -070044
Scott Baker4a35a702019-11-26 08:17:33 -080045 math "math"
Zack Williamse940c7a2019-08-21 14:25:39 -070046
Scott Baker4a35a702019-11-26 08:17:33 -080047 k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
48
49 strings "strings"
50
51 reflect "reflect"
52
53 io "io"
54)
Zack Williamse940c7a2019-08-21 14:25:39 -070055
56// Reference imports to suppress errors if they are not otherwise used.
57var _ = proto.Marshal
58var _ = fmt.Errorf
59var _ = math.Inf
60
61// This is a compile-time assertion to ensure that this generated file
62// is compatible with the proto package it is being compiled against.
63// A compilation error at this line likely means your copy of the
64// proto package needs to be updated.
65const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
66
67func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} }
68func (*MutatingWebhook) ProtoMessage() {}
69func (*MutatingWebhook) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
70
71func (m *MutatingWebhookConfiguration) Reset() { *m = MutatingWebhookConfiguration{} }
72func (*MutatingWebhookConfiguration) ProtoMessage() {}
73func (*MutatingWebhookConfiguration) Descriptor() ([]byte, []int) {
74 return fileDescriptorGenerated, []int{1}
75}
76
77func (m *MutatingWebhookConfigurationList) Reset() { *m = MutatingWebhookConfigurationList{} }
78func (*MutatingWebhookConfigurationList) ProtoMessage() {}
79func (*MutatingWebhookConfigurationList) Descriptor() ([]byte, []int) {
80 return fileDescriptorGenerated, []int{2}
81}
82
83func (m *Rule) Reset() { *m = Rule{} }
84func (*Rule) ProtoMessage() {}
85func (*Rule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} }
86
87func (m *RuleWithOperations) Reset() { *m = RuleWithOperations{} }
88func (*RuleWithOperations) ProtoMessage() {}
89func (*RuleWithOperations) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} }
90
91func (m *ServiceReference) Reset() { *m = ServiceReference{} }
92func (*ServiceReference) ProtoMessage() {}
93func (*ServiceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} }
94
95func (m *ValidatingWebhook) Reset() { *m = ValidatingWebhook{} }
96func (*ValidatingWebhook) ProtoMessage() {}
97func (*ValidatingWebhook) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} }
98
99func (m *ValidatingWebhookConfiguration) Reset() { *m = ValidatingWebhookConfiguration{} }
100func (*ValidatingWebhookConfiguration) ProtoMessage() {}
101func (*ValidatingWebhookConfiguration) Descriptor() ([]byte, []int) {
102 return fileDescriptorGenerated, []int{7}
103}
104
105func (m *ValidatingWebhookConfigurationList) Reset() { *m = ValidatingWebhookConfigurationList{} }
106func (*ValidatingWebhookConfigurationList) ProtoMessage() {}
107func (*ValidatingWebhookConfigurationList) Descriptor() ([]byte, []int) {
108 return fileDescriptorGenerated, []int{8}
109}
110
111func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} }
112func (*WebhookClientConfig) ProtoMessage() {}
113func (*WebhookClientConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} }
114
115func init() {
116 proto.RegisterType((*MutatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhook")
117 proto.RegisterType((*MutatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration")
118 proto.RegisterType((*MutatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList")
119 proto.RegisterType((*Rule)(nil), "k8s.io.api.admissionregistration.v1beta1.Rule")
120 proto.RegisterType((*RuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1beta1.RuleWithOperations")
121 proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.admissionregistration.v1beta1.ServiceReference")
122 proto.RegisterType((*ValidatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook")
123 proto.RegisterType((*ValidatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration")
124 proto.RegisterType((*ValidatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList")
125 proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig")
126}
127func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) {
128 size := m.Size()
129 dAtA = make([]byte, size)
130 n, err := m.MarshalTo(dAtA)
131 if err != nil {
132 return nil, err
133 }
134 return dAtA[:n], nil
135}
136
137func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) {
138 var i int
139 _ = i
140 var l int
141 _ = l
142 dAtA[i] = 0xa
143 i++
144 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
145 i += copy(dAtA[i:], m.Name)
146 dAtA[i] = 0x12
147 i++
148 i = encodeVarintGenerated(dAtA, i, uint64(m.ClientConfig.Size()))
149 n1, err := m.ClientConfig.MarshalTo(dAtA[i:])
150 if err != nil {
151 return 0, err
152 }
153 i += n1
154 if len(m.Rules) > 0 {
155 for _, msg := range m.Rules {
156 dAtA[i] = 0x1a
157 i++
158 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
159 n, err := msg.MarshalTo(dAtA[i:])
160 if err != nil {
161 return 0, err
162 }
163 i += n
164 }
165 }
166 if m.FailurePolicy != nil {
167 dAtA[i] = 0x22
168 i++
169 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy)))
170 i += copy(dAtA[i:], *m.FailurePolicy)
171 }
172 if m.NamespaceSelector != nil {
173 dAtA[i] = 0x2a
174 i++
175 i = encodeVarintGenerated(dAtA, i, uint64(m.NamespaceSelector.Size()))
176 n2, err := m.NamespaceSelector.MarshalTo(dAtA[i:])
177 if err != nil {
178 return 0, err
179 }
180 i += n2
181 }
182 if m.SideEffects != nil {
183 dAtA[i] = 0x32
184 i++
185 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects)))
186 i += copy(dAtA[i:], *m.SideEffects)
187 }
188 if m.TimeoutSeconds != nil {
189 dAtA[i] = 0x38
190 i++
191 i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds))
192 }
193 if len(m.AdmissionReviewVersions) > 0 {
194 for _, s := range m.AdmissionReviewVersions {
195 dAtA[i] = 0x42
196 i++
197 l = len(s)
198 for l >= 1<<7 {
199 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
200 l >>= 7
201 i++
202 }
203 dAtA[i] = uint8(l)
204 i++
205 i += copy(dAtA[i:], s)
206 }
207 }
208 if m.MatchPolicy != nil {
209 dAtA[i] = 0x4a
210 i++
211 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy)))
212 i += copy(dAtA[i:], *m.MatchPolicy)
213 }
214 if m.ReinvocationPolicy != nil {
215 dAtA[i] = 0x52
216 i++
217 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy)))
218 i += copy(dAtA[i:], *m.ReinvocationPolicy)
219 }
220 if m.ObjectSelector != nil {
221 dAtA[i] = 0x5a
222 i++
223 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectSelector.Size()))
224 n3, err := m.ObjectSelector.MarshalTo(dAtA[i:])
225 if err != nil {
226 return 0, err
227 }
228 i += n3
229 }
230 return i, nil
231}
232
233func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) {
234 size := m.Size()
235 dAtA = make([]byte, size)
236 n, err := m.MarshalTo(dAtA)
237 if err != nil {
238 return nil, err
239 }
240 return dAtA[:n], nil
241}
242
243func (m *MutatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) {
244 var i int
245 _ = i
246 var l int
247 _ = l
248 dAtA[i] = 0xa
249 i++
250 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
251 n4, err := m.ObjectMeta.MarshalTo(dAtA[i:])
252 if err != nil {
253 return 0, err
254 }
255 i += n4
256 if len(m.Webhooks) > 0 {
257 for _, msg := range m.Webhooks {
258 dAtA[i] = 0x12
259 i++
260 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
261 n, err := msg.MarshalTo(dAtA[i:])
262 if err != nil {
263 return 0, err
264 }
265 i += n
266 }
267 }
268 return i, nil
269}
270
271func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) {
272 size := m.Size()
273 dAtA = make([]byte, size)
274 n, err := m.MarshalTo(dAtA)
275 if err != nil {
276 return nil, err
277 }
278 return dAtA[:n], nil
279}
280
281func (m *MutatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) {
282 var i int
283 _ = i
284 var l int
285 _ = l
286 dAtA[i] = 0xa
287 i++
288 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
289 n5, err := m.ListMeta.MarshalTo(dAtA[i:])
290 if err != nil {
291 return 0, err
292 }
293 i += n5
294 if len(m.Items) > 0 {
295 for _, msg := range m.Items {
296 dAtA[i] = 0x12
297 i++
298 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
299 n, err := msg.MarshalTo(dAtA[i:])
300 if err != nil {
301 return 0, err
302 }
303 i += n
304 }
305 }
306 return i, nil
307}
308
309func (m *Rule) Marshal() (dAtA []byte, err error) {
310 size := m.Size()
311 dAtA = make([]byte, size)
312 n, err := m.MarshalTo(dAtA)
313 if err != nil {
314 return nil, err
315 }
316 return dAtA[:n], nil
317}
318
319func (m *Rule) MarshalTo(dAtA []byte) (int, error) {
320 var i int
321 _ = i
322 var l int
323 _ = l
324 if len(m.APIGroups) > 0 {
325 for _, s := range m.APIGroups {
326 dAtA[i] = 0xa
327 i++
328 l = len(s)
329 for l >= 1<<7 {
330 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
331 l >>= 7
332 i++
333 }
334 dAtA[i] = uint8(l)
335 i++
336 i += copy(dAtA[i:], s)
337 }
338 }
339 if len(m.APIVersions) > 0 {
340 for _, s := range m.APIVersions {
341 dAtA[i] = 0x12
342 i++
343 l = len(s)
344 for l >= 1<<7 {
345 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
346 l >>= 7
347 i++
348 }
349 dAtA[i] = uint8(l)
350 i++
351 i += copy(dAtA[i:], s)
352 }
353 }
354 if len(m.Resources) > 0 {
355 for _, s := range m.Resources {
356 dAtA[i] = 0x1a
357 i++
358 l = len(s)
359 for l >= 1<<7 {
360 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
361 l >>= 7
362 i++
363 }
364 dAtA[i] = uint8(l)
365 i++
366 i += copy(dAtA[i:], s)
367 }
368 }
369 if m.Scope != nil {
370 dAtA[i] = 0x22
371 i++
372 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Scope)))
373 i += copy(dAtA[i:], *m.Scope)
374 }
375 return i, nil
376}
377
378func (m *RuleWithOperations) Marshal() (dAtA []byte, err error) {
379 size := m.Size()
380 dAtA = make([]byte, size)
381 n, err := m.MarshalTo(dAtA)
382 if err != nil {
383 return nil, err
384 }
385 return dAtA[:n], nil
386}
387
388func (m *RuleWithOperations) MarshalTo(dAtA []byte) (int, error) {
389 var i int
390 _ = i
391 var l int
392 _ = l
393 if len(m.Operations) > 0 {
394 for _, s := range m.Operations {
395 dAtA[i] = 0xa
396 i++
397 l = len(s)
398 for l >= 1<<7 {
399 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
400 l >>= 7
401 i++
402 }
403 dAtA[i] = uint8(l)
404 i++
405 i += copy(dAtA[i:], s)
406 }
407 }
408 dAtA[i] = 0x12
409 i++
410 i = encodeVarintGenerated(dAtA, i, uint64(m.Rule.Size()))
411 n6, err := m.Rule.MarshalTo(dAtA[i:])
412 if err != nil {
413 return 0, err
414 }
415 i += n6
416 return i, nil
417}
418
419func (m *ServiceReference) Marshal() (dAtA []byte, err error) {
420 size := m.Size()
421 dAtA = make([]byte, size)
422 n, err := m.MarshalTo(dAtA)
423 if err != nil {
424 return nil, err
425 }
426 return dAtA[:n], nil
427}
428
429func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) {
430 var i int
431 _ = i
432 var l int
433 _ = l
434 dAtA[i] = 0xa
435 i++
436 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
437 i += copy(dAtA[i:], m.Namespace)
438 dAtA[i] = 0x12
439 i++
440 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
441 i += copy(dAtA[i:], m.Name)
442 if m.Path != nil {
443 dAtA[i] = 0x1a
444 i++
445 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path)))
446 i += copy(dAtA[i:], *m.Path)
447 }
448 if m.Port != nil {
449 dAtA[i] = 0x20
450 i++
451 i = encodeVarintGenerated(dAtA, i, uint64(*m.Port))
452 }
453 return i, nil
454}
455
456func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) {
457 size := m.Size()
458 dAtA = make([]byte, size)
459 n, err := m.MarshalTo(dAtA)
460 if err != nil {
461 return nil, err
462 }
463 return dAtA[:n], nil
464}
465
466func (m *ValidatingWebhook) MarshalTo(dAtA []byte) (int, error) {
467 var i int
468 _ = i
469 var l int
470 _ = l
471 dAtA[i] = 0xa
472 i++
473 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
474 i += copy(dAtA[i:], m.Name)
475 dAtA[i] = 0x12
476 i++
477 i = encodeVarintGenerated(dAtA, i, uint64(m.ClientConfig.Size()))
478 n7, err := m.ClientConfig.MarshalTo(dAtA[i:])
479 if err != nil {
480 return 0, err
481 }
482 i += n7
483 if len(m.Rules) > 0 {
484 for _, msg := range m.Rules {
485 dAtA[i] = 0x1a
486 i++
487 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
488 n, err := msg.MarshalTo(dAtA[i:])
489 if err != nil {
490 return 0, err
491 }
492 i += n
493 }
494 }
495 if m.FailurePolicy != nil {
496 dAtA[i] = 0x22
497 i++
498 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy)))
499 i += copy(dAtA[i:], *m.FailurePolicy)
500 }
501 if m.NamespaceSelector != nil {
502 dAtA[i] = 0x2a
503 i++
504 i = encodeVarintGenerated(dAtA, i, uint64(m.NamespaceSelector.Size()))
505 n8, err := m.NamespaceSelector.MarshalTo(dAtA[i:])
506 if err != nil {
507 return 0, err
508 }
509 i += n8
510 }
511 if m.SideEffects != nil {
512 dAtA[i] = 0x32
513 i++
514 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects)))
515 i += copy(dAtA[i:], *m.SideEffects)
516 }
517 if m.TimeoutSeconds != nil {
518 dAtA[i] = 0x38
519 i++
520 i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds))
521 }
522 if len(m.AdmissionReviewVersions) > 0 {
523 for _, s := range m.AdmissionReviewVersions {
524 dAtA[i] = 0x42
525 i++
526 l = len(s)
527 for l >= 1<<7 {
528 dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
529 l >>= 7
530 i++
531 }
532 dAtA[i] = uint8(l)
533 i++
534 i += copy(dAtA[i:], s)
535 }
536 }
537 if m.MatchPolicy != nil {
538 dAtA[i] = 0x4a
539 i++
540 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy)))
541 i += copy(dAtA[i:], *m.MatchPolicy)
542 }
543 if m.ObjectSelector != nil {
544 dAtA[i] = 0x52
545 i++
546 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectSelector.Size()))
547 n9, err := m.ObjectSelector.MarshalTo(dAtA[i:])
548 if err != nil {
549 return 0, err
550 }
551 i += n9
552 }
553 return i, nil
554}
555
556func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) {
557 size := m.Size()
558 dAtA = make([]byte, size)
559 n, err := m.MarshalTo(dAtA)
560 if err != nil {
561 return nil, err
562 }
563 return dAtA[:n], nil
564}
565
566func (m *ValidatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) {
567 var i int
568 _ = i
569 var l int
570 _ = l
571 dAtA[i] = 0xa
572 i++
573 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
574 n10, err := m.ObjectMeta.MarshalTo(dAtA[i:])
575 if err != nil {
576 return 0, err
577 }
578 i += n10
579 if len(m.Webhooks) > 0 {
580 for _, msg := range m.Webhooks {
581 dAtA[i] = 0x12
582 i++
583 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
584 n, err := msg.MarshalTo(dAtA[i:])
585 if err != nil {
586 return 0, err
587 }
588 i += n
589 }
590 }
591 return i, nil
592}
593
594func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) {
595 size := m.Size()
596 dAtA = make([]byte, size)
597 n, err := m.MarshalTo(dAtA)
598 if err != nil {
599 return nil, err
600 }
601 return dAtA[:n], nil
602}
603
604func (m *ValidatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) {
605 var i int
606 _ = i
607 var l int
608 _ = l
609 dAtA[i] = 0xa
610 i++
611 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
612 n11, err := m.ListMeta.MarshalTo(dAtA[i:])
613 if err != nil {
614 return 0, err
615 }
616 i += n11
617 if len(m.Items) > 0 {
618 for _, msg := range m.Items {
619 dAtA[i] = 0x12
620 i++
621 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
622 n, err := msg.MarshalTo(dAtA[i:])
623 if err != nil {
624 return 0, err
625 }
626 i += n
627 }
628 }
629 return i, nil
630}
631
632func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) {
633 size := m.Size()
634 dAtA = make([]byte, size)
635 n, err := m.MarshalTo(dAtA)
636 if err != nil {
637 return nil, err
638 }
639 return dAtA[:n], nil
640}
641
642func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) {
643 var i int
644 _ = i
645 var l int
646 _ = l
647 if m.Service != nil {
648 dAtA[i] = 0xa
649 i++
650 i = encodeVarintGenerated(dAtA, i, uint64(m.Service.Size()))
651 n12, err := m.Service.MarshalTo(dAtA[i:])
652 if err != nil {
653 return 0, err
654 }
655 i += n12
656 }
657 if m.CABundle != nil {
658 dAtA[i] = 0x12
659 i++
660 i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle)))
661 i += copy(dAtA[i:], m.CABundle)
662 }
663 if m.URL != nil {
664 dAtA[i] = 0x1a
665 i++
666 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL)))
667 i += copy(dAtA[i:], *m.URL)
668 }
669 return i, nil
670}
671
672func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
673 for v >= 1<<7 {
674 dAtA[offset] = uint8(v&0x7f | 0x80)
675 v >>= 7
676 offset++
677 }
678 dAtA[offset] = uint8(v)
679 return offset + 1
680}
681func (m *MutatingWebhook) Size() (n int) {
682 var l int
683 _ = l
684 l = len(m.Name)
685 n += 1 + l + sovGenerated(uint64(l))
686 l = m.ClientConfig.Size()
687 n += 1 + l + sovGenerated(uint64(l))
688 if len(m.Rules) > 0 {
689 for _, e := range m.Rules {
690 l = e.Size()
691 n += 1 + l + sovGenerated(uint64(l))
692 }
693 }
694 if m.FailurePolicy != nil {
695 l = len(*m.FailurePolicy)
696 n += 1 + l + sovGenerated(uint64(l))
697 }
698 if m.NamespaceSelector != nil {
699 l = m.NamespaceSelector.Size()
700 n += 1 + l + sovGenerated(uint64(l))
701 }
702 if m.SideEffects != nil {
703 l = len(*m.SideEffects)
704 n += 1 + l + sovGenerated(uint64(l))
705 }
706 if m.TimeoutSeconds != nil {
707 n += 1 + sovGenerated(uint64(*m.TimeoutSeconds))
708 }
709 if len(m.AdmissionReviewVersions) > 0 {
710 for _, s := range m.AdmissionReviewVersions {
711 l = len(s)
712 n += 1 + l + sovGenerated(uint64(l))
713 }
714 }
715 if m.MatchPolicy != nil {
716 l = len(*m.MatchPolicy)
717 n += 1 + l + sovGenerated(uint64(l))
718 }
719 if m.ReinvocationPolicy != nil {
720 l = len(*m.ReinvocationPolicy)
721 n += 1 + l + sovGenerated(uint64(l))
722 }
723 if m.ObjectSelector != nil {
724 l = m.ObjectSelector.Size()
725 n += 1 + l + sovGenerated(uint64(l))
726 }
727 return n
728}
729
730func (m *MutatingWebhookConfiguration) Size() (n int) {
731 var l int
732 _ = l
733 l = m.ObjectMeta.Size()
734 n += 1 + l + sovGenerated(uint64(l))
735 if len(m.Webhooks) > 0 {
736 for _, e := range m.Webhooks {
737 l = e.Size()
738 n += 1 + l + sovGenerated(uint64(l))
739 }
740 }
741 return n
742}
743
744func (m *MutatingWebhookConfigurationList) Size() (n int) {
745 var l int
746 _ = l
747 l = m.ListMeta.Size()
748 n += 1 + l + sovGenerated(uint64(l))
749 if len(m.Items) > 0 {
750 for _, e := range m.Items {
751 l = e.Size()
752 n += 1 + l + sovGenerated(uint64(l))
753 }
754 }
755 return n
756}
757
758func (m *Rule) Size() (n int) {
759 var l int
760 _ = l
761 if len(m.APIGroups) > 0 {
762 for _, s := range m.APIGroups {
763 l = len(s)
764 n += 1 + l + sovGenerated(uint64(l))
765 }
766 }
767 if len(m.APIVersions) > 0 {
768 for _, s := range m.APIVersions {
769 l = len(s)
770 n += 1 + l + sovGenerated(uint64(l))
771 }
772 }
773 if len(m.Resources) > 0 {
774 for _, s := range m.Resources {
775 l = len(s)
776 n += 1 + l + sovGenerated(uint64(l))
777 }
778 }
779 if m.Scope != nil {
780 l = len(*m.Scope)
781 n += 1 + l + sovGenerated(uint64(l))
782 }
783 return n
784}
785
786func (m *RuleWithOperations) Size() (n int) {
787 var l int
788 _ = l
789 if len(m.Operations) > 0 {
790 for _, s := range m.Operations {
791 l = len(s)
792 n += 1 + l + sovGenerated(uint64(l))
793 }
794 }
795 l = m.Rule.Size()
796 n += 1 + l + sovGenerated(uint64(l))
797 return n
798}
799
800func (m *ServiceReference) Size() (n int) {
801 var l int
802 _ = l
803 l = len(m.Namespace)
804 n += 1 + l + sovGenerated(uint64(l))
805 l = len(m.Name)
806 n += 1 + l + sovGenerated(uint64(l))
807 if m.Path != nil {
808 l = len(*m.Path)
809 n += 1 + l + sovGenerated(uint64(l))
810 }
811 if m.Port != nil {
812 n += 1 + sovGenerated(uint64(*m.Port))
813 }
814 return n
815}
816
817func (m *ValidatingWebhook) Size() (n int) {
818 var l int
819 _ = l
820 l = len(m.Name)
821 n += 1 + l + sovGenerated(uint64(l))
822 l = m.ClientConfig.Size()
823 n += 1 + l + sovGenerated(uint64(l))
824 if len(m.Rules) > 0 {
825 for _, e := range m.Rules {
826 l = e.Size()
827 n += 1 + l + sovGenerated(uint64(l))
828 }
829 }
830 if m.FailurePolicy != nil {
831 l = len(*m.FailurePolicy)
832 n += 1 + l + sovGenerated(uint64(l))
833 }
834 if m.NamespaceSelector != nil {
835 l = m.NamespaceSelector.Size()
836 n += 1 + l + sovGenerated(uint64(l))
837 }
838 if m.SideEffects != nil {
839 l = len(*m.SideEffects)
840 n += 1 + l + sovGenerated(uint64(l))
841 }
842 if m.TimeoutSeconds != nil {
843 n += 1 + sovGenerated(uint64(*m.TimeoutSeconds))
844 }
845 if len(m.AdmissionReviewVersions) > 0 {
846 for _, s := range m.AdmissionReviewVersions {
847 l = len(s)
848 n += 1 + l + sovGenerated(uint64(l))
849 }
850 }
851 if m.MatchPolicy != nil {
852 l = len(*m.MatchPolicy)
853 n += 1 + l + sovGenerated(uint64(l))
854 }
855 if m.ObjectSelector != nil {
856 l = m.ObjectSelector.Size()
857 n += 1 + l + sovGenerated(uint64(l))
858 }
859 return n
860}
861
862func (m *ValidatingWebhookConfiguration) Size() (n int) {
863 var l int
864 _ = l
865 l = m.ObjectMeta.Size()
866 n += 1 + l + sovGenerated(uint64(l))
867 if len(m.Webhooks) > 0 {
868 for _, e := range m.Webhooks {
869 l = e.Size()
870 n += 1 + l + sovGenerated(uint64(l))
871 }
872 }
873 return n
874}
875
876func (m *ValidatingWebhookConfigurationList) Size() (n int) {
877 var l int
878 _ = l
879 l = m.ListMeta.Size()
880 n += 1 + l + sovGenerated(uint64(l))
881 if len(m.Items) > 0 {
882 for _, e := range m.Items {
883 l = e.Size()
884 n += 1 + l + sovGenerated(uint64(l))
885 }
886 }
887 return n
888}
889
890func (m *WebhookClientConfig) Size() (n int) {
891 var l int
892 _ = l
893 if m.Service != nil {
894 l = m.Service.Size()
895 n += 1 + l + sovGenerated(uint64(l))
896 }
897 if m.CABundle != nil {
898 l = len(m.CABundle)
899 n += 1 + l + sovGenerated(uint64(l))
900 }
901 if m.URL != nil {
902 l = len(*m.URL)
903 n += 1 + l + sovGenerated(uint64(l))
904 }
905 return n
906}
907
908func sovGenerated(x uint64) (n int) {
909 for {
910 n++
911 x >>= 7
912 if x == 0 {
913 break
914 }
915 }
916 return n
917}
918func sozGenerated(x uint64) (n int) {
919 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
920}
921func (this *MutatingWebhook) String() string {
922 if this == nil {
923 return "nil"
924 }
925 s := strings.Join([]string{`&MutatingWebhook{`,
926 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
927 `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`,
928 `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + `,`,
929 `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`,
930 `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
931 `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`,
932 `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`,
933 `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`,
934 `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`,
935 `ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`,
936 `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
937 `}`,
938 }, "")
939 return s
940}
941func (this *MutatingWebhookConfiguration) String() string {
942 if this == nil {
943 return "nil"
944 }
945 s := strings.Join([]string{`&MutatingWebhookConfiguration{`,
946 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
947 `Webhooks:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Webhooks), "MutatingWebhook", "MutatingWebhook", 1), `&`, ``, 1) + `,`,
948 `}`,
949 }, "")
950 return s
951}
952func (this *MutatingWebhookConfigurationList) String() string {
953 if this == nil {
954 return "nil"
955 }
956 s := strings.Join([]string{`&MutatingWebhookConfigurationList{`,
957 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
958 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "MutatingWebhookConfiguration", "MutatingWebhookConfiguration", 1), `&`, ``, 1) + `,`,
959 `}`,
960 }, "")
961 return s
962}
963func (this *Rule) String() string {
964 if this == nil {
965 return "nil"
966 }
967 s := strings.Join([]string{`&Rule{`,
968 `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`,
969 `APIVersions:` + fmt.Sprintf("%v", this.APIVersions) + `,`,
970 `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`,
971 `Scope:` + valueToStringGenerated(this.Scope) + `,`,
972 `}`,
973 }, "")
974 return s
975}
976func (this *RuleWithOperations) String() string {
977 if this == nil {
978 return "nil"
979 }
980 s := strings.Join([]string{`&RuleWithOperations{`,
981 `Operations:` + fmt.Sprintf("%v", this.Operations) + `,`,
982 `Rule:` + strings.Replace(strings.Replace(this.Rule.String(), "Rule", "Rule", 1), `&`, ``, 1) + `,`,
983 `}`,
984 }, "")
985 return s
986}
987func (this *ServiceReference) String() string {
988 if this == nil {
989 return "nil"
990 }
991 s := strings.Join([]string{`&ServiceReference{`,
992 `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
993 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
994 `Path:` + valueToStringGenerated(this.Path) + `,`,
995 `Port:` + valueToStringGenerated(this.Port) + `,`,
996 `}`,
997 }, "")
998 return s
999}
1000func (this *ValidatingWebhook) String() string {
1001 if this == nil {
1002 return "nil"
1003 }
1004 s := strings.Join([]string{`&ValidatingWebhook{`,
1005 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
1006 `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`,
1007 `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + `,`,
1008 `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`,
1009 `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
1010 `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`,
1011 `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`,
1012 `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`,
1013 `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`,
1014 `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`,
1015 `}`,
1016 }, "")
1017 return s
1018}
1019func (this *ValidatingWebhookConfiguration) String() string {
1020 if this == nil {
1021 return "nil"
1022 }
1023 s := strings.Join([]string{`&ValidatingWebhookConfiguration{`,
1024 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
1025 `Webhooks:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Webhooks), "ValidatingWebhook", "ValidatingWebhook", 1), `&`, ``, 1) + `,`,
1026 `}`,
1027 }, "")
1028 return s
1029}
1030func (this *ValidatingWebhookConfigurationList) String() string {
1031 if this == nil {
1032 return "nil"
1033 }
1034 s := strings.Join([]string{`&ValidatingWebhookConfigurationList{`,
1035 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
1036 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ValidatingWebhookConfiguration", "ValidatingWebhookConfiguration", 1), `&`, ``, 1) + `,`,
1037 `}`,
1038 }, "")
1039 return s
1040}
1041func (this *WebhookClientConfig) String() string {
1042 if this == nil {
1043 return "nil"
1044 }
1045 s := strings.Join([]string{`&WebhookClientConfig{`,
1046 `Service:` + strings.Replace(fmt.Sprintf("%v", this.Service), "ServiceReference", "ServiceReference", 1) + `,`,
1047 `CABundle:` + valueToStringGenerated(this.CABundle) + `,`,
1048 `URL:` + valueToStringGenerated(this.URL) + `,`,
1049 `}`,
1050 }, "")
1051 return s
1052}
1053func valueToStringGenerated(v interface{}) string {
1054 rv := reflect.ValueOf(v)
1055 if rv.IsNil() {
1056 return "nil"
1057 }
1058 pv := reflect.Indirect(rv).Interface()
1059 return fmt.Sprintf("*%v", pv)
1060}
1061func (m *MutatingWebhook) Unmarshal(dAtA []byte) error {
1062 l := len(dAtA)
1063 iNdEx := 0
1064 for iNdEx < l {
1065 preIndex := iNdEx
1066 var wire uint64
1067 for shift := uint(0); ; shift += 7 {
1068 if shift >= 64 {
1069 return ErrIntOverflowGenerated
1070 }
1071 if iNdEx >= l {
1072 return io.ErrUnexpectedEOF
1073 }
1074 b := dAtA[iNdEx]
1075 iNdEx++
1076 wire |= (uint64(b) & 0x7F) << shift
1077 if b < 0x80 {
1078 break
1079 }
1080 }
1081 fieldNum := int32(wire >> 3)
1082 wireType := int(wire & 0x7)
1083 if wireType == 4 {
1084 return fmt.Errorf("proto: MutatingWebhook: wiretype end group for non-group")
1085 }
1086 if fieldNum <= 0 {
1087 return fmt.Errorf("proto: MutatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire)
1088 }
1089 switch fieldNum {
1090 case 1:
1091 if wireType != 2 {
1092 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
1093 }
1094 var stringLen uint64
1095 for shift := uint(0); ; shift += 7 {
1096 if shift >= 64 {
1097 return ErrIntOverflowGenerated
1098 }
1099 if iNdEx >= l {
1100 return io.ErrUnexpectedEOF
1101 }
1102 b := dAtA[iNdEx]
1103 iNdEx++
1104 stringLen |= (uint64(b) & 0x7F) << shift
1105 if b < 0x80 {
1106 break
1107 }
1108 }
1109 intStringLen := int(stringLen)
1110 if intStringLen < 0 {
1111 return ErrInvalidLengthGenerated
1112 }
1113 postIndex := iNdEx + intStringLen
1114 if postIndex > l {
1115 return io.ErrUnexpectedEOF
1116 }
1117 m.Name = string(dAtA[iNdEx:postIndex])
1118 iNdEx = postIndex
1119 case 2:
1120 if wireType != 2 {
1121 return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType)
1122 }
1123 var msglen int
1124 for shift := uint(0); ; shift += 7 {
1125 if shift >= 64 {
1126 return ErrIntOverflowGenerated
1127 }
1128 if iNdEx >= l {
1129 return io.ErrUnexpectedEOF
1130 }
1131 b := dAtA[iNdEx]
1132 iNdEx++
1133 msglen |= (int(b) & 0x7F) << shift
1134 if b < 0x80 {
1135 break
1136 }
1137 }
1138 if msglen < 0 {
1139 return ErrInvalidLengthGenerated
1140 }
1141 postIndex := iNdEx + msglen
1142 if postIndex > l {
1143 return io.ErrUnexpectedEOF
1144 }
1145 if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1146 return err
1147 }
1148 iNdEx = postIndex
1149 case 3:
1150 if wireType != 2 {
1151 return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
1152 }
1153 var msglen int
1154 for shift := uint(0); ; shift += 7 {
1155 if shift >= 64 {
1156 return ErrIntOverflowGenerated
1157 }
1158 if iNdEx >= l {
1159 return io.ErrUnexpectedEOF
1160 }
1161 b := dAtA[iNdEx]
1162 iNdEx++
1163 msglen |= (int(b) & 0x7F) << shift
1164 if b < 0x80 {
1165 break
1166 }
1167 }
1168 if msglen < 0 {
1169 return ErrInvalidLengthGenerated
1170 }
1171 postIndex := iNdEx + msglen
1172 if postIndex > l {
1173 return io.ErrUnexpectedEOF
1174 }
1175 m.Rules = append(m.Rules, RuleWithOperations{})
1176 if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1177 return err
1178 }
1179 iNdEx = postIndex
1180 case 4:
1181 if wireType != 2 {
1182 return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType)
1183 }
1184 var stringLen uint64
1185 for shift := uint(0); ; shift += 7 {
1186 if shift >= 64 {
1187 return ErrIntOverflowGenerated
1188 }
1189 if iNdEx >= l {
1190 return io.ErrUnexpectedEOF
1191 }
1192 b := dAtA[iNdEx]
1193 iNdEx++
1194 stringLen |= (uint64(b) & 0x7F) << shift
1195 if b < 0x80 {
1196 break
1197 }
1198 }
1199 intStringLen := int(stringLen)
1200 if intStringLen < 0 {
1201 return ErrInvalidLengthGenerated
1202 }
1203 postIndex := iNdEx + intStringLen
1204 if postIndex > l {
1205 return io.ErrUnexpectedEOF
1206 }
1207 s := FailurePolicyType(dAtA[iNdEx:postIndex])
1208 m.FailurePolicy = &s
1209 iNdEx = postIndex
1210 case 5:
1211 if wireType != 2 {
1212 return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType)
1213 }
1214 var msglen int
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 msglen |= (int(b) & 0x7F) << shift
1225 if b < 0x80 {
1226 break
1227 }
1228 }
1229 if msglen < 0 {
1230 return ErrInvalidLengthGenerated
1231 }
1232 postIndex := iNdEx + msglen
1233 if postIndex > l {
1234 return io.ErrUnexpectedEOF
1235 }
1236 if m.NamespaceSelector == nil {
1237 m.NamespaceSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
1238 }
1239 if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1240 return err
1241 }
1242 iNdEx = postIndex
1243 case 6:
1244 if wireType != 2 {
1245 return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType)
1246 }
1247 var stringLen uint64
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 stringLen |= (uint64(b) & 0x7F) << shift
1258 if b < 0x80 {
1259 break
1260 }
1261 }
1262 intStringLen := int(stringLen)
1263 if intStringLen < 0 {
1264 return ErrInvalidLengthGenerated
1265 }
1266 postIndex := iNdEx + intStringLen
1267 if postIndex > l {
1268 return io.ErrUnexpectedEOF
1269 }
1270 s := SideEffectClass(dAtA[iNdEx:postIndex])
1271 m.SideEffects = &s
1272 iNdEx = postIndex
1273 case 7:
1274 if wireType != 0 {
1275 return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType)
1276 }
1277 var v int32
1278 for shift := uint(0); ; shift += 7 {
1279 if shift >= 64 {
1280 return ErrIntOverflowGenerated
1281 }
1282 if iNdEx >= l {
1283 return io.ErrUnexpectedEOF
1284 }
1285 b := dAtA[iNdEx]
1286 iNdEx++
1287 v |= (int32(b) & 0x7F) << shift
1288 if b < 0x80 {
1289 break
1290 }
1291 }
1292 m.TimeoutSeconds = &v
1293 case 8:
1294 if wireType != 2 {
1295 return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType)
1296 }
1297 var stringLen uint64
1298 for shift := uint(0); ; shift += 7 {
1299 if shift >= 64 {
1300 return ErrIntOverflowGenerated
1301 }
1302 if iNdEx >= l {
1303 return io.ErrUnexpectedEOF
1304 }
1305 b := dAtA[iNdEx]
1306 iNdEx++
1307 stringLen |= (uint64(b) & 0x7F) << shift
1308 if b < 0x80 {
1309 break
1310 }
1311 }
1312 intStringLen := int(stringLen)
1313 if intStringLen < 0 {
1314 return ErrInvalidLengthGenerated
1315 }
1316 postIndex := iNdEx + intStringLen
1317 if postIndex > l {
1318 return io.ErrUnexpectedEOF
1319 }
1320 m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex]))
1321 iNdEx = postIndex
1322 case 9:
1323 if wireType != 2 {
1324 return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType)
1325 }
1326 var stringLen uint64
1327 for shift := uint(0); ; shift += 7 {
1328 if shift >= 64 {
1329 return ErrIntOverflowGenerated
1330 }
1331 if iNdEx >= l {
1332 return io.ErrUnexpectedEOF
1333 }
1334 b := dAtA[iNdEx]
1335 iNdEx++
1336 stringLen |= (uint64(b) & 0x7F) << shift
1337 if b < 0x80 {
1338 break
1339 }
1340 }
1341 intStringLen := int(stringLen)
1342 if intStringLen < 0 {
1343 return ErrInvalidLengthGenerated
1344 }
1345 postIndex := iNdEx + intStringLen
1346 if postIndex > l {
1347 return io.ErrUnexpectedEOF
1348 }
1349 s := MatchPolicyType(dAtA[iNdEx:postIndex])
1350 m.MatchPolicy = &s
1351 iNdEx = postIndex
1352 case 10:
1353 if wireType != 2 {
1354 return fmt.Errorf("proto: wrong wireType = %d for field ReinvocationPolicy", wireType)
1355 }
1356 var stringLen uint64
1357 for shift := uint(0); ; shift += 7 {
1358 if shift >= 64 {
1359 return ErrIntOverflowGenerated
1360 }
1361 if iNdEx >= l {
1362 return io.ErrUnexpectedEOF
1363 }
1364 b := dAtA[iNdEx]
1365 iNdEx++
1366 stringLen |= (uint64(b) & 0x7F) << shift
1367 if b < 0x80 {
1368 break
1369 }
1370 }
1371 intStringLen := int(stringLen)
1372 if intStringLen < 0 {
1373 return ErrInvalidLengthGenerated
1374 }
1375 postIndex := iNdEx + intStringLen
1376 if postIndex > l {
1377 return io.ErrUnexpectedEOF
1378 }
1379 s := ReinvocationPolicyType(dAtA[iNdEx:postIndex])
1380 m.ReinvocationPolicy = &s
1381 iNdEx = postIndex
1382 case 11:
1383 if wireType != 2 {
1384 return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType)
1385 }
1386 var msglen int
1387 for shift := uint(0); ; shift += 7 {
1388 if shift >= 64 {
1389 return ErrIntOverflowGenerated
1390 }
1391 if iNdEx >= l {
1392 return io.ErrUnexpectedEOF
1393 }
1394 b := dAtA[iNdEx]
1395 iNdEx++
1396 msglen |= (int(b) & 0x7F) << shift
1397 if b < 0x80 {
1398 break
1399 }
1400 }
1401 if msglen < 0 {
1402 return ErrInvalidLengthGenerated
1403 }
1404 postIndex := iNdEx + msglen
1405 if postIndex > l {
1406 return io.ErrUnexpectedEOF
1407 }
1408 if m.ObjectSelector == nil {
1409 m.ObjectSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
1410 }
1411 if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1412 return err
1413 }
1414 iNdEx = postIndex
1415 default:
1416 iNdEx = preIndex
1417 skippy, err := skipGenerated(dAtA[iNdEx:])
1418 if err != nil {
1419 return err
1420 }
1421 if skippy < 0 {
1422 return ErrInvalidLengthGenerated
1423 }
1424 if (iNdEx + skippy) > l {
1425 return io.ErrUnexpectedEOF
1426 }
1427 iNdEx += skippy
1428 }
1429 }
1430
1431 if iNdEx > l {
1432 return io.ErrUnexpectedEOF
1433 }
1434 return nil
1435}
1436func (m *MutatingWebhookConfiguration) Unmarshal(dAtA []byte) error {
1437 l := len(dAtA)
1438 iNdEx := 0
1439 for iNdEx < l {
1440 preIndex := iNdEx
1441 var wire uint64
1442 for shift := uint(0); ; shift += 7 {
1443 if shift >= 64 {
1444 return ErrIntOverflowGenerated
1445 }
1446 if iNdEx >= l {
1447 return io.ErrUnexpectedEOF
1448 }
1449 b := dAtA[iNdEx]
1450 iNdEx++
1451 wire |= (uint64(b) & 0x7F) << shift
1452 if b < 0x80 {
1453 break
1454 }
1455 }
1456 fieldNum := int32(wire >> 3)
1457 wireType := int(wire & 0x7)
1458 if wireType == 4 {
1459 return fmt.Errorf("proto: MutatingWebhookConfiguration: wiretype end group for non-group")
1460 }
1461 if fieldNum <= 0 {
1462 return fmt.Errorf("proto: MutatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
1463 }
1464 switch fieldNum {
1465 case 1:
1466 if wireType != 2 {
1467 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
1468 }
1469 var msglen int
1470 for shift := uint(0); ; shift += 7 {
1471 if shift >= 64 {
1472 return ErrIntOverflowGenerated
1473 }
1474 if iNdEx >= l {
1475 return io.ErrUnexpectedEOF
1476 }
1477 b := dAtA[iNdEx]
1478 iNdEx++
1479 msglen |= (int(b) & 0x7F) << shift
1480 if b < 0x80 {
1481 break
1482 }
1483 }
1484 if msglen < 0 {
1485 return ErrInvalidLengthGenerated
1486 }
1487 postIndex := iNdEx + msglen
1488 if postIndex > l {
1489 return io.ErrUnexpectedEOF
1490 }
1491 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1492 return err
1493 }
1494 iNdEx = postIndex
1495 case 2:
1496 if wireType != 2 {
1497 return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType)
1498 }
1499 var msglen int
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 msglen |= (int(b) & 0x7F) << shift
1510 if b < 0x80 {
1511 break
1512 }
1513 }
1514 if msglen < 0 {
1515 return ErrInvalidLengthGenerated
1516 }
1517 postIndex := iNdEx + msglen
1518 if postIndex > l {
1519 return io.ErrUnexpectedEOF
1520 }
1521 m.Webhooks = append(m.Webhooks, MutatingWebhook{})
1522 if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1523 return err
1524 }
1525 iNdEx = postIndex
1526 default:
1527 iNdEx = preIndex
1528 skippy, err := skipGenerated(dAtA[iNdEx:])
1529 if err != nil {
1530 return err
1531 }
1532 if skippy < 0 {
1533 return ErrInvalidLengthGenerated
1534 }
1535 if (iNdEx + skippy) > l {
1536 return io.ErrUnexpectedEOF
1537 }
1538 iNdEx += skippy
1539 }
1540 }
1541
1542 if iNdEx > l {
1543 return io.ErrUnexpectedEOF
1544 }
1545 return nil
1546}
1547func (m *MutatingWebhookConfigurationList) Unmarshal(dAtA []byte) error {
1548 l := len(dAtA)
1549 iNdEx := 0
1550 for iNdEx < l {
1551 preIndex := iNdEx
1552 var wire uint64
1553 for shift := uint(0); ; shift += 7 {
1554 if shift >= 64 {
1555 return ErrIntOverflowGenerated
1556 }
1557 if iNdEx >= l {
1558 return io.ErrUnexpectedEOF
1559 }
1560 b := dAtA[iNdEx]
1561 iNdEx++
1562 wire |= (uint64(b) & 0x7F) << shift
1563 if b < 0x80 {
1564 break
1565 }
1566 }
1567 fieldNum := int32(wire >> 3)
1568 wireType := int(wire & 0x7)
1569 if wireType == 4 {
1570 return fmt.Errorf("proto: MutatingWebhookConfigurationList: wiretype end group for non-group")
1571 }
1572 if fieldNum <= 0 {
1573 return fmt.Errorf("proto: MutatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire)
1574 }
1575 switch fieldNum {
1576 case 1:
1577 if wireType != 2 {
1578 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
1579 }
1580 var msglen int
1581 for shift := uint(0); ; shift += 7 {
1582 if shift >= 64 {
1583 return ErrIntOverflowGenerated
1584 }
1585 if iNdEx >= l {
1586 return io.ErrUnexpectedEOF
1587 }
1588 b := dAtA[iNdEx]
1589 iNdEx++
1590 msglen |= (int(b) & 0x7F) << shift
1591 if b < 0x80 {
1592 break
1593 }
1594 }
1595 if msglen < 0 {
1596 return ErrInvalidLengthGenerated
1597 }
1598 postIndex := iNdEx + msglen
1599 if postIndex > l {
1600 return io.ErrUnexpectedEOF
1601 }
1602 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1603 return err
1604 }
1605 iNdEx = postIndex
1606 case 2:
1607 if wireType != 2 {
1608 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
1609 }
1610 var msglen int
1611 for shift := uint(0); ; shift += 7 {
1612 if shift >= 64 {
1613 return ErrIntOverflowGenerated
1614 }
1615 if iNdEx >= l {
1616 return io.ErrUnexpectedEOF
1617 }
1618 b := dAtA[iNdEx]
1619 iNdEx++
1620 msglen |= (int(b) & 0x7F) << shift
1621 if b < 0x80 {
1622 break
1623 }
1624 }
1625 if msglen < 0 {
1626 return ErrInvalidLengthGenerated
1627 }
1628 postIndex := iNdEx + msglen
1629 if postIndex > l {
1630 return io.ErrUnexpectedEOF
1631 }
1632 m.Items = append(m.Items, MutatingWebhookConfiguration{})
1633 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1634 return err
1635 }
1636 iNdEx = postIndex
1637 default:
1638 iNdEx = preIndex
1639 skippy, err := skipGenerated(dAtA[iNdEx:])
1640 if err != nil {
1641 return err
1642 }
1643 if skippy < 0 {
1644 return ErrInvalidLengthGenerated
1645 }
1646 if (iNdEx + skippy) > l {
1647 return io.ErrUnexpectedEOF
1648 }
1649 iNdEx += skippy
1650 }
1651 }
1652
1653 if iNdEx > l {
1654 return io.ErrUnexpectedEOF
1655 }
1656 return nil
1657}
1658func (m *Rule) Unmarshal(dAtA []byte) error {
1659 l := len(dAtA)
1660 iNdEx := 0
1661 for iNdEx < l {
1662 preIndex := iNdEx
1663 var wire uint64
1664 for shift := uint(0); ; shift += 7 {
1665 if shift >= 64 {
1666 return ErrIntOverflowGenerated
1667 }
1668 if iNdEx >= l {
1669 return io.ErrUnexpectedEOF
1670 }
1671 b := dAtA[iNdEx]
1672 iNdEx++
1673 wire |= (uint64(b) & 0x7F) << shift
1674 if b < 0x80 {
1675 break
1676 }
1677 }
1678 fieldNum := int32(wire >> 3)
1679 wireType := int(wire & 0x7)
1680 if wireType == 4 {
1681 return fmt.Errorf("proto: Rule: wiretype end group for non-group")
1682 }
1683 if fieldNum <= 0 {
1684 return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire)
1685 }
1686 switch fieldNum {
1687 case 1:
1688 if wireType != 2 {
1689 return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType)
1690 }
1691 var stringLen uint64
1692 for shift := uint(0); ; shift += 7 {
1693 if shift >= 64 {
1694 return ErrIntOverflowGenerated
1695 }
1696 if iNdEx >= l {
1697 return io.ErrUnexpectedEOF
1698 }
1699 b := dAtA[iNdEx]
1700 iNdEx++
1701 stringLen |= (uint64(b) & 0x7F) << shift
1702 if b < 0x80 {
1703 break
1704 }
1705 }
1706 intStringLen := int(stringLen)
1707 if intStringLen < 0 {
1708 return ErrInvalidLengthGenerated
1709 }
1710 postIndex := iNdEx + intStringLen
1711 if postIndex > l {
1712 return io.ErrUnexpectedEOF
1713 }
1714 m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex]))
1715 iNdEx = postIndex
1716 case 2:
1717 if wireType != 2 {
1718 return fmt.Errorf("proto: wrong wireType = %d for field APIVersions", wireType)
1719 }
1720 var stringLen uint64
1721 for shift := uint(0); ; shift += 7 {
1722 if shift >= 64 {
1723 return ErrIntOverflowGenerated
1724 }
1725 if iNdEx >= l {
1726 return io.ErrUnexpectedEOF
1727 }
1728 b := dAtA[iNdEx]
1729 iNdEx++
1730 stringLen |= (uint64(b) & 0x7F) << shift
1731 if b < 0x80 {
1732 break
1733 }
1734 }
1735 intStringLen := int(stringLen)
1736 if intStringLen < 0 {
1737 return ErrInvalidLengthGenerated
1738 }
1739 postIndex := iNdEx + intStringLen
1740 if postIndex > l {
1741 return io.ErrUnexpectedEOF
1742 }
1743 m.APIVersions = append(m.APIVersions, string(dAtA[iNdEx:postIndex]))
1744 iNdEx = postIndex
1745 case 3:
1746 if wireType != 2 {
1747 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
1748 }
1749 var stringLen uint64
1750 for shift := uint(0); ; shift += 7 {
1751 if shift >= 64 {
1752 return ErrIntOverflowGenerated
1753 }
1754 if iNdEx >= l {
1755 return io.ErrUnexpectedEOF
1756 }
1757 b := dAtA[iNdEx]
1758 iNdEx++
1759 stringLen |= (uint64(b) & 0x7F) << shift
1760 if b < 0x80 {
1761 break
1762 }
1763 }
1764 intStringLen := int(stringLen)
1765 if intStringLen < 0 {
1766 return ErrInvalidLengthGenerated
1767 }
1768 postIndex := iNdEx + intStringLen
1769 if postIndex > l {
1770 return io.ErrUnexpectedEOF
1771 }
1772 m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex]))
1773 iNdEx = postIndex
1774 case 4:
1775 if wireType != 2 {
1776 return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType)
1777 }
1778 var stringLen uint64
1779 for shift := uint(0); ; shift += 7 {
1780 if shift >= 64 {
1781 return ErrIntOverflowGenerated
1782 }
1783 if iNdEx >= l {
1784 return io.ErrUnexpectedEOF
1785 }
1786 b := dAtA[iNdEx]
1787 iNdEx++
1788 stringLen |= (uint64(b) & 0x7F) << shift
1789 if b < 0x80 {
1790 break
1791 }
1792 }
1793 intStringLen := int(stringLen)
1794 if intStringLen < 0 {
1795 return ErrInvalidLengthGenerated
1796 }
1797 postIndex := iNdEx + intStringLen
1798 if postIndex > l {
1799 return io.ErrUnexpectedEOF
1800 }
1801 s := ScopeType(dAtA[iNdEx:postIndex])
1802 m.Scope = &s
1803 iNdEx = postIndex
1804 default:
1805 iNdEx = preIndex
1806 skippy, err := skipGenerated(dAtA[iNdEx:])
1807 if err != nil {
1808 return err
1809 }
1810 if skippy < 0 {
1811 return ErrInvalidLengthGenerated
1812 }
1813 if (iNdEx + skippy) > l {
1814 return io.ErrUnexpectedEOF
1815 }
1816 iNdEx += skippy
1817 }
1818 }
1819
1820 if iNdEx > l {
1821 return io.ErrUnexpectedEOF
1822 }
1823 return nil
1824}
1825func (m *RuleWithOperations) Unmarshal(dAtA []byte) error {
1826 l := len(dAtA)
1827 iNdEx := 0
1828 for iNdEx < l {
1829 preIndex := iNdEx
1830 var wire uint64
1831 for shift := uint(0); ; shift += 7 {
1832 if shift >= 64 {
1833 return ErrIntOverflowGenerated
1834 }
1835 if iNdEx >= l {
1836 return io.ErrUnexpectedEOF
1837 }
1838 b := dAtA[iNdEx]
1839 iNdEx++
1840 wire |= (uint64(b) & 0x7F) << shift
1841 if b < 0x80 {
1842 break
1843 }
1844 }
1845 fieldNum := int32(wire >> 3)
1846 wireType := int(wire & 0x7)
1847 if wireType == 4 {
1848 return fmt.Errorf("proto: RuleWithOperations: wiretype end group for non-group")
1849 }
1850 if fieldNum <= 0 {
1851 return fmt.Errorf("proto: RuleWithOperations: illegal tag %d (wire type %d)", fieldNum, wire)
1852 }
1853 switch fieldNum {
1854 case 1:
1855 if wireType != 2 {
1856 return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType)
1857 }
1858 var stringLen uint64
1859 for shift := uint(0); ; shift += 7 {
1860 if shift >= 64 {
1861 return ErrIntOverflowGenerated
1862 }
1863 if iNdEx >= l {
1864 return io.ErrUnexpectedEOF
1865 }
1866 b := dAtA[iNdEx]
1867 iNdEx++
1868 stringLen |= (uint64(b) & 0x7F) << shift
1869 if b < 0x80 {
1870 break
1871 }
1872 }
1873 intStringLen := int(stringLen)
1874 if intStringLen < 0 {
1875 return ErrInvalidLengthGenerated
1876 }
1877 postIndex := iNdEx + intStringLen
1878 if postIndex > l {
1879 return io.ErrUnexpectedEOF
1880 }
1881 m.Operations = append(m.Operations, OperationType(dAtA[iNdEx:postIndex]))
1882 iNdEx = postIndex
1883 case 2:
1884 if wireType != 2 {
1885 return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
1886 }
1887 var msglen int
1888 for shift := uint(0); ; shift += 7 {
1889 if shift >= 64 {
1890 return ErrIntOverflowGenerated
1891 }
1892 if iNdEx >= l {
1893 return io.ErrUnexpectedEOF
1894 }
1895 b := dAtA[iNdEx]
1896 iNdEx++
1897 msglen |= (int(b) & 0x7F) << shift
1898 if b < 0x80 {
1899 break
1900 }
1901 }
1902 if msglen < 0 {
1903 return ErrInvalidLengthGenerated
1904 }
1905 postIndex := iNdEx + msglen
1906 if postIndex > l {
1907 return io.ErrUnexpectedEOF
1908 }
1909 if err := m.Rule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1910 return err
1911 }
1912 iNdEx = postIndex
1913 default:
1914 iNdEx = preIndex
1915 skippy, err := skipGenerated(dAtA[iNdEx:])
1916 if err != nil {
1917 return err
1918 }
1919 if skippy < 0 {
1920 return ErrInvalidLengthGenerated
1921 }
1922 if (iNdEx + skippy) > l {
1923 return io.ErrUnexpectedEOF
1924 }
1925 iNdEx += skippy
1926 }
1927 }
1928
1929 if iNdEx > l {
1930 return io.ErrUnexpectedEOF
1931 }
1932 return nil
1933}
1934func (m *ServiceReference) Unmarshal(dAtA []byte) error {
1935 l := len(dAtA)
1936 iNdEx := 0
1937 for iNdEx < l {
1938 preIndex := iNdEx
1939 var wire uint64
1940 for shift := uint(0); ; shift += 7 {
1941 if shift >= 64 {
1942 return ErrIntOverflowGenerated
1943 }
1944 if iNdEx >= l {
1945 return io.ErrUnexpectedEOF
1946 }
1947 b := dAtA[iNdEx]
1948 iNdEx++
1949 wire |= (uint64(b) & 0x7F) << shift
1950 if b < 0x80 {
1951 break
1952 }
1953 }
1954 fieldNum := int32(wire >> 3)
1955 wireType := int(wire & 0x7)
1956 if wireType == 4 {
1957 return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group")
1958 }
1959 if fieldNum <= 0 {
1960 return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire)
1961 }
1962 switch fieldNum {
1963 case 1:
1964 if wireType != 2 {
1965 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
1966 }
1967 var stringLen uint64
1968 for shift := uint(0); ; shift += 7 {
1969 if shift >= 64 {
1970 return ErrIntOverflowGenerated
1971 }
1972 if iNdEx >= l {
1973 return io.ErrUnexpectedEOF
1974 }
1975 b := dAtA[iNdEx]
1976 iNdEx++
1977 stringLen |= (uint64(b) & 0x7F) << shift
1978 if b < 0x80 {
1979 break
1980 }
1981 }
1982 intStringLen := int(stringLen)
1983 if intStringLen < 0 {
1984 return ErrInvalidLengthGenerated
1985 }
1986 postIndex := iNdEx + intStringLen
1987 if postIndex > l {
1988 return io.ErrUnexpectedEOF
1989 }
1990 m.Namespace = string(dAtA[iNdEx:postIndex])
1991 iNdEx = postIndex
1992 case 2:
1993 if wireType != 2 {
1994 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
1995 }
1996 var stringLen uint64
1997 for shift := uint(0); ; shift += 7 {
1998 if shift >= 64 {
1999 return ErrIntOverflowGenerated
2000 }
2001 if iNdEx >= l {
2002 return io.ErrUnexpectedEOF
2003 }
2004 b := dAtA[iNdEx]
2005 iNdEx++
2006 stringLen |= (uint64(b) & 0x7F) << shift
2007 if b < 0x80 {
2008 break
2009 }
2010 }
2011 intStringLen := int(stringLen)
2012 if intStringLen < 0 {
2013 return ErrInvalidLengthGenerated
2014 }
2015 postIndex := iNdEx + intStringLen
2016 if postIndex > l {
2017 return io.ErrUnexpectedEOF
2018 }
2019 m.Name = string(dAtA[iNdEx:postIndex])
2020 iNdEx = postIndex
2021 case 3:
2022 if wireType != 2 {
2023 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
2024 }
2025 var stringLen uint64
2026 for shift := uint(0); ; shift += 7 {
2027 if shift >= 64 {
2028 return ErrIntOverflowGenerated
2029 }
2030 if iNdEx >= l {
2031 return io.ErrUnexpectedEOF
2032 }
2033 b := dAtA[iNdEx]
2034 iNdEx++
2035 stringLen |= (uint64(b) & 0x7F) << shift
2036 if b < 0x80 {
2037 break
2038 }
2039 }
2040 intStringLen := int(stringLen)
2041 if intStringLen < 0 {
2042 return ErrInvalidLengthGenerated
2043 }
2044 postIndex := iNdEx + intStringLen
2045 if postIndex > l {
2046 return io.ErrUnexpectedEOF
2047 }
2048 s := string(dAtA[iNdEx:postIndex])
2049 m.Path = &s
2050 iNdEx = postIndex
2051 case 4:
2052 if wireType != 0 {
2053 return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType)
2054 }
2055 var v int32
2056 for shift := uint(0); ; shift += 7 {
2057 if shift >= 64 {
2058 return ErrIntOverflowGenerated
2059 }
2060 if iNdEx >= l {
2061 return io.ErrUnexpectedEOF
2062 }
2063 b := dAtA[iNdEx]
2064 iNdEx++
2065 v |= (int32(b) & 0x7F) << shift
2066 if b < 0x80 {
2067 break
2068 }
2069 }
2070 m.Port = &v
2071 default:
2072 iNdEx = preIndex
2073 skippy, err := skipGenerated(dAtA[iNdEx:])
2074 if err != nil {
2075 return err
2076 }
2077 if skippy < 0 {
2078 return ErrInvalidLengthGenerated
2079 }
2080 if (iNdEx + skippy) > l {
2081 return io.ErrUnexpectedEOF
2082 }
2083 iNdEx += skippy
2084 }
2085 }
2086
2087 if iNdEx > l {
2088 return io.ErrUnexpectedEOF
2089 }
2090 return nil
2091}
2092func (m *ValidatingWebhook) Unmarshal(dAtA []byte) error {
2093 l := len(dAtA)
2094 iNdEx := 0
2095 for iNdEx < l {
2096 preIndex := iNdEx
2097 var wire uint64
2098 for shift := uint(0); ; shift += 7 {
2099 if shift >= 64 {
2100 return ErrIntOverflowGenerated
2101 }
2102 if iNdEx >= l {
2103 return io.ErrUnexpectedEOF
2104 }
2105 b := dAtA[iNdEx]
2106 iNdEx++
2107 wire |= (uint64(b) & 0x7F) << shift
2108 if b < 0x80 {
2109 break
2110 }
2111 }
2112 fieldNum := int32(wire >> 3)
2113 wireType := int(wire & 0x7)
2114 if wireType == 4 {
2115 return fmt.Errorf("proto: ValidatingWebhook: wiretype end group for non-group")
2116 }
2117 if fieldNum <= 0 {
2118 return fmt.Errorf("proto: ValidatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire)
2119 }
2120 switch fieldNum {
2121 case 1:
2122 if wireType != 2 {
2123 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
2124 }
2125 var stringLen uint64
2126 for shift := uint(0); ; shift += 7 {
2127 if shift >= 64 {
2128 return ErrIntOverflowGenerated
2129 }
2130 if iNdEx >= l {
2131 return io.ErrUnexpectedEOF
2132 }
2133 b := dAtA[iNdEx]
2134 iNdEx++
2135 stringLen |= (uint64(b) & 0x7F) << shift
2136 if b < 0x80 {
2137 break
2138 }
2139 }
2140 intStringLen := int(stringLen)
2141 if intStringLen < 0 {
2142 return ErrInvalidLengthGenerated
2143 }
2144 postIndex := iNdEx + intStringLen
2145 if postIndex > l {
2146 return io.ErrUnexpectedEOF
2147 }
2148 m.Name = string(dAtA[iNdEx:postIndex])
2149 iNdEx = postIndex
2150 case 2:
2151 if wireType != 2 {
2152 return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType)
2153 }
2154 var msglen int
2155 for shift := uint(0); ; shift += 7 {
2156 if shift >= 64 {
2157 return ErrIntOverflowGenerated
2158 }
2159 if iNdEx >= l {
2160 return io.ErrUnexpectedEOF
2161 }
2162 b := dAtA[iNdEx]
2163 iNdEx++
2164 msglen |= (int(b) & 0x7F) << shift
2165 if b < 0x80 {
2166 break
2167 }
2168 }
2169 if msglen < 0 {
2170 return ErrInvalidLengthGenerated
2171 }
2172 postIndex := iNdEx + msglen
2173 if postIndex > l {
2174 return io.ErrUnexpectedEOF
2175 }
2176 if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2177 return err
2178 }
2179 iNdEx = postIndex
2180 case 3:
2181 if wireType != 2 {
2182 return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType)
2183 }
2184 var msglen int
2185 for shift := uint(0); ; shift += 7 {
2186 if shift >= 64 {
2187 return ErrIntOverflowGenerated
2188 }
2189 if iNdEx >= l {
2190 return io.ErrUnexpectedEOF
2191 }
2192 b := dAtA[iNdEx]
2193 iNdEx++
2194 msglen |= (int(b) & 0x7F) << shift
2195 if b < 0x80 {
2196 break
2197 }
2198 }
2199 if msglen < 0 {
2200 return ErrInvalidLengthGenerated
2201 }
2202 postIndex := iNdEx + msglen
2203 if postIndex > l {
2204 return io.ErrUnexpectedEOF
2205 }
2206 m.Rules = append(m.Rules, RuleWithOperations{})
2207 if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2208 return err
2209 }
2210 iNdEx = postIndex
2211 case 4:
2212 if wireType != 2 {
2213 return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType)
2214 }
2215 var stringLen uint64
2216 for shift := uint(0); ; shift += 7 {
2217 if shift >= 64 {
2218 return ErrIntOverflowGenerated
2219 }
2220 if iNdEx >= l {
2221 return io.ErrUnexpectedEOF
2222 }
2223 b := dAtA[iNdEx]
2224 iNdEx++
2225 stringLen |= (uint64(b) & 0x7F) << shift
2226 if b < 0x80 {
2227 break
2228 }
2229 }
2230 intStringLen := int(stringLen)
2231 if intStringLen < 0 {
2232 return ErrInvalidLengthGenerated
2233 }
2234 postIndex := iNdEx + intStringLen
2235 if postIndex > l {
2236 return io.ErrUnexpectedEOF
2237 }
2238 s := FailurePolicyType(dAtA[iNdEx:postIndex])
2239 m.FailurePolicy = &s
2240 iNdEx = postIndex
2241 case 5:
2242 if wireType != 2 {
2243 return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType)
2244 }
2245 var msglen int
2246 for shift := uint(0); ; shift += 7 {
2247 if shift >= 64 {
2248 return ErrIntOverflowGenerated
2249 }
2250 if iNdEx >= l {
2251 return io.ErrUnexpectedEOF
2252 }
2253 b := dAtA[iNdEx]
2254 iNdEx++
2255 msglen |= (int(b) & 0x7F) << shift
2256 if b < 0x80 {
2257 break
2258 }
2259 }
2260 if msglen < 0 {
2261 return ErrInvalidLengthGenerated
2262 }
2263 postIndex := iNdEx + msglen
2264 if postIndex > l {
2265 return io.ErrUnexpectedEOF
2266 }
2267 if m.NamespaceSelector == nil {
2268 m.NamespaceSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
2269 }
2270 if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2271 return err
2272 }
2273 iNdEx = postIndex
2274 case 6:
2275 if wireType != 2 {
2276 return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType)
2277 }
2278 var stringLen uint64
2279 for shift := uint(0); ; shift += 7 {
2280 if shift >= 64 {
2281 return ErrIntOverflowGenerated
2282 }
2283 if iNdEx >= l {
2284 return io.ErrUnexpectedEOF
2285 }
2286 b := dAtA[iNdEx]
2287 iNdEx++
2288 stringLen |= (uint64(b) & 0x7F) << shift
2289 if b < 0x80 {
2290 break
2291 }
2292 }
2293 intStringLen := int(stringLen)
2294 if intStringLen < 0 {
2295 return ErrInvalidLengthGenerated
2296 }
2297 postIndex := iNdEx + intStringLen
2298 if postIndex > l {
2299 return io.ErrUnexpectedEOF
2300 }
2301 s := SideEffectClass(dAtA[iNdEx:postIndex])
2302 m.SideEffects = &s
2303 iNdEx = postIndex
2304 case 7:
2305 if wireType != 0 {
2306 return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType)
2307 }
2308 var v int32
2309 for shift := uint(0); ; shift += 7 {
2310 if shift >= 64 {
2311 return ErrIntOverflowGenerated
2312 }
2313 if iNdEx >= l {
2314 return io.ErrUnexpectedEOF
2315 }
2316 b := dAtA[iNdEx]
2317 iNdEx++
2318 v |= (int32(b) & 0x7F) << shift
2319 if b < 0x80 {
2320 break
2321 }
2322 }
2323 m.TimeoutSeconds = &v
2324 case 8:
2325 if wireType != 2 {
2326 return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType)
2327 }
2328 var stringLen uint64
2329 for shift := uint(0); ; shift += 7 {
2330 if shift >= 64 {
2331 return ErrIntOverflowGenerated
2332 }
2333 if iNdEx >= l {
2334 return io.ErrUnexpectedEOF
2335 }
2336 b := dAtA[iNdEx]
2337 iNdEx++
2338 stringLen |= (uint64(b) & 0x7F) << shift
2339 if b < 0x80 {
2340 break
2341 }
2342 }
2343 intStringLen := int(stringLen)
2344 if intStringLen < 0 {
2345 return ErrInvalidLengthGenerated
2346 }
2347 postIndex := iNdEx + intStringLen
2348 if postIndex > l {
2349 return io.ErrUnexpectedEOF
2350 }
2351 m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex]))
2352 iNdEx = postIndex
2353 case 9:
2354 if wireType != 2 {
2355 return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType)
2356 }
2357 var stringLen uint64
2358 for shift := uint(0); ; shift += 7 {
2359 if shift >= 64 {
2360 return ErrIntOverflowGenerated
2361 }
2362 if iNdEx >= l {
2363 return io.ErrUnexpectedEOF
2364 }
2365 b := dAtA[iNdEx]
2366 iNdEx++
2367 stringLen |= (uint64(b) & 0x7F) << shift
2368 if b < 0x80 {
2369 break
2370 }
2371 }
2372 intStringLen := int(stringLen)
2373 if intStringLen < 0 {
2374 return ErrInvalidLengthGenerated
2375 }
2376 postIndex := iNdEx + intStringLen
2377 if postIndex > l {
2378 return io.ErrUnexpectedEOF
2379 }
2380 s := MatchPolicyType(dAtA[iNdEx:postIndex])
2381 m.MatchPolicy = &s
2382 iNdEx = postIndex
2383 case 10:
2384 if wireType != 2 {
2385 return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType)
2386 }
2387 var msglen int
2388 for shift := uint(0); ; shift += 7 {
2389 if shift >= 64 {
2390 return ErrIntOverflowGenerated
2391 }
2392 if iNdEx >= l {
2393 return io.ErrUnexpectedEOF
2394 }
2395 b := dAtA[iNdEx]
2396 iNdEx++
2397 msglen |= (int(b) & 0x7F) << shift
2398 if b < 0x80 {
2399 break
2400 }
2401 }
2402 if msglen < 0 {
2403 return ErrInvalidLengthGenerated
2404 }
2405 postIndex := iNdEx + msglen
2406 if postIndex > l {
2407 return io.ErrUnexpectedEOF
2408 }
2409 if m.ObjectSelector == nil {
2410 m.ObjectSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{}
2411 }
2412 if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2413 return err
2414 }
2415 iNdEx = postIndex
2416 default:
2417 iNdEx = preIndex
2418 skippy, err := skipGenerated(dAtA[iNdEx:])
2419 if err != nil {
2420 return err
2421 }
2422 if skippy < 0 {
2423 return ErrInvalidLengthGenerated
2424 }
2425 if (iNdEx + skippy) > l {
2426 return io.ErrUnexpectedEOF
2427 }
2428 iNdEx += skippy
2429 }
2430 }
2431
2432 if iNdEx > l {
2433 return io.ErrUnexpectedEOF
2434 }
2435 return nil
2436}
2437func (m *ValidatingWebhookConfiguration) Unmarshal(dAtA []byte) error {
2438 l := len(dAtA)
2439 iNdEx := 0
2440 for iNdEx < l {
2441 preIndex := iNdEx
2442 var wire uint64
2443 for shift := uint(0); ; shift += 7 {
2444 if shift >= 64 {
2445 return ErrIntOverflowGenerated
2446 }
2447 if iNdEx >= l {
2448 return io.ErrUnexpectedEOF
2449 }
2450 b := dAtA[iNdEx]
2451 iNdEx++
2452 wire |= (uint64(b) & 0x7F) << shift
2453 if b < 0x80 {
2454 break
2455 }
2456 }
2457 fieldNum := int32(wire >> 3)
2458 wireType := int(wire & 0x7)
2459 if wireType == 4 {
2460 return fmt.Errorf("proto: ValidatingWebhookConfiguration: wiretype end group for non-group")
2461 }
2462 if fieldNum <= 0 {
2463 return fmt.Errorf("proto: ValidatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
2464 }
2465 switch fieldNum {
2466 case 1:
2467 if wireType != 2 {
2468 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
2469 }
2470 var msglen int
2471 for shift := uint(0); ; shift += 7 {
2472 if shift >= 64 {
2473 return ErrIntOverflowGenerated
2474 }
2475 if iNdEx >= l {
2476 return io.ErrUnexpectedEOF
2477 }
2478 b := dAtA[iNdEx]
2479 iNdEx++
2480 msglen |= (int(b) & 0x7F) << shift
2481 if b < 0x80 {
2482 break
2483 }
2484 }
2485 if msglen < 0 {
2486 return ErrInvalidLengthGenerated
2487 }
2488 postIndex := iNdEx + msglen
2489 if postIndex > l {
2490 return io.ErrUnexpectedEOF
2491 }
2492 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2493 return err
2494 }
2495 iNdEx = postIndex
2496 case 2:
2497 if wireType != 2 {
2498 return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType)
2499 }
2500 var msglen int
2501 for shift := uint(0); ; shift += 7 {
2502 if shift >= 64 {
2503 return ErrIntOverflowGenerated
2504 }
2505 if iNdEx >= l {
2506 return io.ErrUnexpectedEOF
2507 }
2508 b := dAtA[iNdEx]
2509 iNdEx++
2510 msglen |= (int(b) & 0x7F) << shift
2511 if b < 0x80 {
2512 break
2513 }
2514 }
2515 if msglen < 0 {
2516 return ErrInvalidLengthGenerated
2517 }
2518 postIndex := iNdEx + msglen
2519 if postIndex > l {
2520 return io.ErrUnexpectedEOF
2521 }
2522 m.Webhooks = append(m.Webhooks, ValidatingWebhook{})
2523 if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2524 return err
2525 }
2526 iNdEx = postIndex
2527 default:
2528 iNdEx = preIndex
2529 skippy, err := skipGenerated(dAtA[iNdEx:])
2530 if err != nil {
2531 return err
2532 }
2533 if skippy < 0 {
2534 return ErrInvalidLengthGenerated
2535 }
2536 if (iNdEx + skippy) > l {
2537 return io.ErrUnexpectedEOF
2538 }
2539 iNdEx += skippy
2540 }
2541 }
2542
2543 if iNdEx > l {
2544 return io.ErrUnexpectedEOF
2545 }
2546 return nil
2547}
2548func (m *ValidatingWebhookConfigurationList) Unmarshal(dAtA []byte) error {
2549 l := len(dAtA)
2550 iNdEx := 0
2551 for iNdEx < l {
2552 preIndex := iNdEx
2553 var wire uint64
2554 for shift := uint(0); ; shift += 7 {
2555 if shift >= 64 {
2556 return ErrIntOverflowGenerated
2557 }
2558 if iNdEx >= l {
2559 return io.ErrUnexpectedEOF
2560 }
2561 b := dAtA[iNdEx]
2562 iNdEx++
2563 wire |= (uint64(b) & 0x7F) << shift
2564 if b < 0x80 {
2565 break
2566 }
2567 }
2568 fieldNum := int32(wire >> 3)
2569 wireType := int(wire & 0x7)
2570 if wireType == 4 {
2571 return fmt.Errorf("proto: ValidatingWebhookConfigurationList: wiretype end group for non-group")
2572 }
2573 if fieldNum <= 0 {
2574 return fmt.Errorf("proto: ValidatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire)
2575 }
2576 switch fieldNum {
2577 case 1:
2578 if wireType != 2 {
2579 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
2580 }
2581 var msglen int
2582 for shift := uint(0); ; shift += 7 {
2583 if shift >= 64 {
2584 return ErrIntOverflowGenerated
2585 }
2586 if iNdEx >= l {
2587 return io.ErrUnexpectedEOF
2588 }
2589 b := dAtA[iNdEx]
2590 iNdEx++
2591 msglen |= (int(b) & 0x7F) << shift
2592 if b < 0x80 {
2593 break
2594 }
2595 }
2596 if msglen < 0 {
2597 return ErrInvalidLengthGenerated
2598 }
2599 postIndex := iNdEx + msglen
2600 if postIndex > l {
2601 return io.ErrUnexpectedEOF
2602 }
2603 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2604 return err
2605 }
2606 iNdEx = postIndex
2607 case 2:
2608 if wireType != 2 {
2609 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
2610 }
2611 var msglen int
2612 for shift := uint(0); ; shift += 7 {
2613 if shift >= 64 {
2614 return ErrIntOverflowGenerated
2615 }
2616 if iNdEx >= l {
2617 return io.ErrUnexpectedEOF
2618 }
2619 b := dAtA[iNdEx]
2620 iNdEx++
2621 msglen |= (int(b) & 0x7F) << shift
2622 if b < 0x80 {
2623 break
2624 }
2625 }
2626 if msglen < 0 {
2627 return ErrInvalidLengthGenerated
2628 }
2629 postIndex := iNdEx + msglen
2630 if postIndex > l {
2631 return io.ErrUnexpectedEOF
2632 }
2633 m.Items = append(m.Items, ValidatingWebhookConfiguration{})
2634 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2635 return err
2636 }
2637 iNdEx = postIndex
2638 default:
2639 iNdEx = preIndex
2640 skippy, err := skipGenerated(dAtA[iNdEx:])
2641 if err != nil {
2642 return err
2643 }
2644 if skippy < 0 {
2645 return ErrInvalidLengthGenerated
2646 }
2647 if (iNdEx + skippy) > l {
2648 return io.ErrUnexpectedEOF
2649 }
2650 iNdEx += skippy
2651 }
2652 }
2653
2654 if iNdEx > l {
2655 return io.ErrUnexpectedEOF
2656 }
2657 return nil
2658}
2659func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error {
2660 l := len(dAtA)
2661 iNdEx := 0
2662 for iNdEx < l {
2663 preIndex := iNdEx
2664 var wire uint64
2665 for shift := uint(0); ; shift += 7 {
2666 if shift >= 64 {
2667 return ErrIntOverflowGenerated
2668 }
2669 if iNdEx >= l {
2670 return io.ErrUnexpectedEOF
2671 }
2672 b := dAtA[iNdEx]
2673 iNdEx++
2674 wire |= (uint64(b) & 0x7F) << shift
2675 if b < 0x80 {
2676 break
2677 }
2678 }
2679 fieldNum := int32(wire >> 3)
2680 wireType := int(wire & 0x7)
2681 if wireType == 4 {
2682 return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group")
2683 }
2684 if fieldNum <= 0 {
2685 return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire)
2686 }
2687 switch fieldNum {
2688 case 1:
2689 if wireType != 2 {
2690 return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType)
2691 }
2692 var msglen int
2693 for shift := uint(0); ; shift += 7 {
2694 if shift >= 64 {
2695 return ErrIntOverflowGenerated
2696 }
2697 if iNdEx >= l {
2698 return io.ErrUnexpectedEOF
2699 }
2700 b := dAtA[iNdEx]
2701 iNdEx++
2702 msglen |= (int(b) & 0x7F) << shift
2703 if b < 0x80 {
2704 break
2705 }
2706 }
2707 if msglen < 0 {
2708 return ErrInvalidLengthGenerated
2709 }
2710 postIndex := iNdEx + msglen
2711 if postIndex > l {
2712 return io.ErrUnexpectedEOF
2713 }
2714 if m.Service == nil {
2715 m.Service = &ServiceReference{}
2716 }
2717 if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
2718 return err
2719 }
2720 iNdEx = postIndex
2721 case 2:
2722 if wireType != 2 {
2723 return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType)
2724 }
2725 var byteLen int
2726 for shift := uint(0); ; shift += 7 {
2727 if shift >= 64 {
2728 return ErrIntOverflowGenerated
2729 }
2730 if iNdEx >= l {
2731 return io.ErrUnexpectedEOF
2732 }
2733 b := dAtA[iNdEx]
2734 iNdEx++
2735 byteLen |= (int(b) & 0x7F) << shift
2736 if b < 0x80 {
2737 break
2738 }
2739 }
2740 if byteLen < 0 {
2741 return ErrInvalidLengthGenerated
2742 }
2743 postIndex := iNdEx + byteLen
2744 if postIndex > l {
2745 return io.ErrUnexpectedEOF
2746 }
2747 m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...)
2748 if m.CABundle == nil {
2749 m.CABundle = []byte{}
2750 }
2751 iNdEx = postIndex
2752 case 3:
2753 if wireType != 2 {
2754 return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType)
2755 }
2756 var stringLen uint64
2757 for shift := uint(0); ; shift += 7 {
2758 if shift >= 64 {
2759 return ErrIntOverflowGenerated
2760 }
2761 if iNdEx >= l {
2762 return io.ErrUnexpectedEOF
2763 }
2764 b := dAtA[iNdEx]
2765 iNdEx++
2766 stringLen |= (uint64(b) & 0x7F) << shift
2767 if b < 0x80 {
2768 break
2769 }
2770 }
2771 intStringLen := int(stringLen)
2772 if intStringLen < 0 {
2773 return ErrInvalidLengthGenerated
2774 }
2775 postIndex := iNdEx + intStringLen
2776 if postIndex > l {
2777 return io.ErrUnexpectedEOF
2778 }
2779 s := string(dAtA[iNdEx:postIndex])
2780 m.URL = &s
2781 iNdEx = postIndex
2782 default:
2783 iNdEx = preIndex
2784 skippy, err := skipGenerated(dAtA[iNdEx:])
2785 if err != nil {
2786 return err
2787 }
2788 if skippy < 0 {
2789 return ErrInvalidLengthGenerated
2790 }
2791 if (iNdEx + skippy) > l {
2792 return io.ErrUnexpectedEOF
2793 }
2794 iNdEx += skippy
2795 }
2796 }
2797
2798 if iNdEx > l {
2799 return io.ErrUnexpectedEOF
2800 }
2801 return nil
2802}
2803func skipGenerated(dAtA []byte) (n int, err error) {
2804 l := len(dAtA)
2805 iNdEx := 0
2806 for iNdEx < l {
2807 var wire uint64
2808 for shift := uint(0); ; shift += 7 {
2809 if shift >= 64 {
2810 return 0, ErrIntOverflowGenerated
2811 }
2812 if iNdEx >= l {
2813 return 0, io.ErrUnexpectedEOF
2814 }
2815 b := dAtA[iNdEx]
2816 iNdEx++
2817 wire |= (uint64(b) & 0x7F) << shift
2818 if b < 0x80 {
2819 break
2820 }
2821 }
2822 wireType := int(wire & 0x7)
2823 switch wireType {
2824 case 0:
2825 for shift := uint(0); ; shift += 7 {
2826 if shift >= 64 {
2827 return 0, ErrIntOverflowGenerated
2828 }
2829 if iNdEx >= l {
2830 return 0, io.ErrUnexpectedEOF
2831 }
2832 iNdEx++
2833 if dAtA[iNdEx-1] < 0x80 {
2834 break
2835 }
2836 }
2837 return iNdEx, nil
2838 case 1:
2839 iNdEx += 8
2840 return iNdEx, nil
2841 case 2:
2842 var length int
2843 for shift := uint(0); ; shift += 7 {
2844 if shift >= 64 {
2845 return 0, ErrIntOverflowGenerated
2846 }
2847 if iNdEx >= l {
2848 return 0, io.ErrUnexpectedEOF
2849 }
2850 b := dAtA[iNdEx]
2851 iNdEx++
2852 length |= (int(b) & 0x7F) << shift
2853 if b < 0x80 {
2854 break
2855 }
2856 }
2857 iNdEx += length
2858 if length < 0 {
2859 return 0, ErrInvalidLengthGenerated
2860 }
2861 return iNdEx, nil
2862 case 3:
2863 for {
2864 var innerWire uint64
2865 var start int = iNdEx
2866 for shift := uint(0); ; shift += 7 {
2867 if shift >= 64 {
2868 return 0, ErrIntOverflowGenerated
2869 }
2870 if iNdEx >= l {
2871 return 0, io.ErrUnexpectedEOF
2872 }
2873 b := dAtA[iNdEx]
2874 iNdEx++
2875 innerWire |= (uint64(b) & 0x7F) << shift
2876 if b < 0x80 {
2877 break
2878 }
2879 }
2880 innerWireType := int(innerWire & 0x7)
2881 if innerWireType == 4 {
2882 break
2883 }
2884 next, err := skipGenerated(dAtA[start:])
2885 if err != nil {
2886 return 0, err
2887 }
2888 iNdEx = start + next
2889 }
2890 return iNdEx, nil
2891 case 4:
2892 return iNdEx, nil
2893 case 5:
2894 iNdEx += 4
2895 return iNdEx, nil
2896 default:
2897 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
2898 }
2899 }
2900 panic("unreachable")
2901}
2902
2903var (
2904 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
2905 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
2906)
2907
2908func init() {
2909 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto", fileDescriptorGenerated)
2910}
2911
2912var fileDescriptorGenerated = []byte{
2913 // 1113 bytes of a gzipped FileDescriptorProto
2914 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x4d, 0x6f, 0x1b, 0xc5,
2915 0x1b, 0xcf, 0xc6, 0x76, 0x6d, 0x8f, 0x93, 0xa6, 0x99, 0xff, 0x9f, 0xd6, 0x84, 0xca, 0x6b, 0xf9,
2916 0x80, 0x2c, 0x41, 0x77, 0x9b, 0x80, 0x10, 0x14, 0x10, 0xca, 0x06, 0x0a, 0x91, 0x92, 0x36, 0x4c,
2917 0xfa, 0x22, 0xf1, 0x22, 0x75, 0xbc, 0x1e, 0xdb, 0x83, 0xed, 0x9d, 0xd5, 0xce, 0xac, 0x43, 0x6e,
2918 0x7c, 0x04, 0xbe, 0x02, 0x27, 0x3e, 0x05, 0x07, 0x6e, 0xe1, 0xd6, 0x63, 0x2f, 0xac, 0xc8, 0x72,
2919 0xe2, 0xc0, 0x81, 0x6b, 0x4e, 0x68, 0x66, 0xc7, 0xeb, 0x97, 0x4d, 0x8a, 0x29, 0xa2, 0x17, 0x7a,
2920 0xdb, 0xf9, 0x3d, 0xf3, 0xfc, 0x9e, 0x97, 0xd9, 0xe7, 0xf9, 0x81, 0x4f, 0xfb, 0x6f, 0x73, 0x8b,
2921 0x32, 0xbb, 0x1f, 0xb6, 0x48, 0xe0, 0x11, 0x41, 0xb8, 0x3d, 0x22, 0x5e, 0x9b, 0x05, 0xb6, 0x36,
2922 0x60, 0x9f, 0xda, 0xb8, 0x3d, 0xa4, 0x9c, 0x53, 0xe6, 0x05, 0xa4, 0x4b, 0xb9, 0x08, 0xb0, 0xa0,
2923 0xcc, 0xb3, 0x47, 0x9b, 0x2d, 0x22, 0xf0, 0xa6, 0xdd, 0x25, 0x1e, 0x09, 0xb0, 0x20, 0x6d, 0xcb,
2924 0x0f, 0x98, 0x60, 0xb0, 0x99, 0x78, 0x5a, 0xd8, 0xa7, 0xd6, 0xb9, 0x9e, 0x96, 0xf6, 0xdc, 0xb8,
2925 0xd1, 0xa5, 0xa2, 0x17, 0xb6, 0x2c, 0x97, 0x0d, 0xed, 0x2e, 0xeb, 0x32, 0x5b, 0x11, 0xb4, 0xc2,
2926 0x8e, 0x3a, 0xa9, 0x83, 0xfa, 0x4a, 0x88, 0x37, 0xde, 0x9c, 0xa4, 0x34, 0xc4, 0x6e, 0x8f, 0x7a,
2927 0x24, 0x38, 0xb6, 0xfd, 0x7e, 0x57, 0x02, 0xdc, 0x1e, 0x12, 0x81, 0xed, 0x51, 0x26, 0x9d, 0x0d,
2928 0xfb, 0x22, 0xaf, 0x20, 0xf4, 0x04, 0x1d, 0x92, 0x8c, 0xc3, 0x5b, 0x7f, 0xe5, 0xc0, 0xdd, 0x1e,
2929 0x19, 0xe2, 0x79, 0xbf, 0xc6, 0x4f, 0x45, 0xb0, 0xb6, 0x1f, 0x0a, 0x2c, 0xa8, 0xd7, 0x7d, 0x48,
2930 0x5a, 0x3d, 0xc6, 0xfa, 0xb0, 0x0e, 0xf2, 0x1e, 0x1e, 0x92, 0xaa, 0x51, 0x37, 0x9a, 0x65, 0x67,
2931 0xe5, 0x24, 0x32, 0x97, 0xe2, 0xc8, 0xcc, 0xdf, 0xc1, 0x43, 0x82, 0x94, 0x05, 0x1e, 0x81, 0x15,
2932 0x77, 0x40, 0x89, 0x27, 0x76, 0x98, 0xd7, 0xa1, 0xdd, 0xea, 0x72, 0xdd, 0x68, 0x56, 0xb6, 0xde,
2933 0xb7, 0x16, 0x6d, 0xa2, 0xa5, 0x43, 0xed, 0x4c, 0x91, 0x38, 0xff, 0xd7, 0x81, 0x56, 0xa6, 0x51,
2934 0x34, 0x13, 0x08, 0x62, 0x50, 0x08, 0xc2, 0x01, 0xe1, 0xd5, 0x5c, 0x3d, 0xd7, 0xac, 0x6c, 0xbd,
2935 0xb7, 0x78, 0x44, 0x14, 0x0e, 0xc8, 0x43, 0x2a, 0x7a, 0x77, 0x7d, 0x92, 0x58, 0xb8, 0xb3, 0xaa,
2936 0x03, 0x16, 0xa4, 0x8d, 0xa3, 0x84, 0x19, 0xee, 0x81, 0xd5, 0x0e, 0xa6, 0x83, 0x30, 0x20, 0x07,
2937 0x6c, 0x40, 0xdd, 0xe3, 0x6a, 0x5e, 0xb5, 0xe1, 0xd5, 0x38, 0x32, 0x57, 0x6f, 0x4f, 0x1b, 0xce,
2938 0x22, 0x73, 0x7d, 0x06, 0xb8, 0x77, 0xec, 0x13, 0x34, 0xeb, 0x0c, 0xbf, 0x06, 0xeb, 0xb2, 0x63,
2939 0xdc, 0xc7, 0x2e, 0x39, 0x24, 0x03, 0xe2, 0x0a, 0x16, 0x54, 0x0b, 0xaa, 0x5d, 0x6f, 0x4c, 0x25,
2940 0x9f, 0xbe, 0x99, 0xe5, 0xf7, 0xbb, 0x12, 0xe0, 0x96, 0xfc, 0x35, 0xac, 0xd1, 0xa6, 0xb5, 0x87,
2941 0x5b, 0x64, 0x30, 0x76, 0x75, 0x5e, 0x8a, 0x23, 0x73, 0xfd, 0xce, 0x3c, 0x23, 0xca, 0x06, 0x81,
2942 0x1f, 0x82, 0x0a, 0xa7, 0x6d, 0xf2, 0x51, 0xa7, 0x43, 0x5c, 0xc1, 0xab, 0x97, 0x54, 0x15, 0x8d,
2943 0x38, 0x32, 0x2b, 0x87, 0x13, 0xf8, 0x2c, 0x32, 0xd7, 0x26, 0xc7, 0x9d, 0x01, 0xe6, 0x1c, 0x4d,
2944 0xbb, 0xc1, 0x5b, 0xe0, 0xb2, 0xfc, 0x7d, 0x58, 0x28, 0x0e, 0x89, 0xcb, 0xbc, 0x36, 0xaf, 0x16,
2945 0xeb, 0x46, 0xb3, 0xe0, 0xc0, 0x38, 0x32, 0x2f, 0xdf, 0x9b, 0xb1, 0xa0, 0xb9, 0x9b, 0xf0, 0x3e,
2946 0xb8, 0x96, 0xbe, 0x09, 0x22, 0x23, 0x4a, 0x8e, 0x1e, 0x90, 0x40, 0x1e, 0x78, 0xb5, 0x54, 0xcf,
2947 0x35, 0xcb, 0xce, 0x2b, 0x71, 0x64, 0x5e, 0xdb, 0x3e, 0xff, 0x0a, 0xba, 0xc8, 0x57, 0x16, 0x36,
2948 0xc4, 0xc2, 0xed, 0xe9, 0xe7, 0x29, 0x4f, 0x0a, 0xdb, 0x9f, 0xc0, 0xb2, 0xb0, 0xa9, 0xa3, 0x7a,
2949 0x9a, 0x69, 0x37, 0xf8, 0x08, 0xc0, 0x80, 0x50, 0x6f, 0xc4, 0x5c, 0xf5, 0x37, 0x68, 0x32, 0xa0,
2950 0xc8, 0x6e, 0xc6, 0x91, 0x09, 0x51, 0xc6, 0x7a, 0x16, 0x99, 0x57, 0xb3, 0xa8, 0xa2, 0x3e, 0x87,
2951 0x0b, 0x32, 0x70, 0x99, 0xb5, 0xbe, 0x22, 0xae, 0x48, 0xdf, 0xbd, 0xf2, 0xec, 0xef, 0xae, 0xfa,
2952 0x7d, 0x77, 0x86, 0x0e, 0xcd, 0xd1, 0x37, 0x7e, 0x36, 0xc0, 0xf5, 0xb9, 0x59, 0x4e, 0xc6, 0x26,
2953 0x4c, 0xfe, 0x78, 0xf8, 0x08, 0x94, 0x24, 0x7b, 0x1b, 0x0b, 0xac, 0x86, 0xbb, 0xb2, 0x75, 0x73,
2954 0xb1, 0x5c, 0x92, 0xc0, 0xfb, 0x44, 0x60, 0x07, 0xea, 0xa1, 0x01, 0x13, 0x0c, 0xa5, 0xac, 0xf0,
2955 0x73, 0x50, 0xd2, 0x91, 0x79, 0x75, 0x59, 0x8d, 0xe8, 0x3b, 0x8b, 0x8f, 0xe8, 0x5c, 0xee, 0x4e,
2956 0x5e, 0x86, 0x42, 0xa5, 0x23, 0x4d, 0xd8, 0xf8, 0xdd, 0x00, 0xf5, 0xa7, 0xd5, 0xb7, 0x47, 0xb9,
2957 0x80, 0x5f, 0x64, 0x6a, 0xb4, 0x16, 0xec, 0x37, 0xe5, 0x49, 0x85, 0x57, 0x74, 0x85, 0xa5, 0x31,
2958 0x32, 0x55, 0x5f, 0x1f, 0x14, 0xa8, 0x20, 0xc3, 0x71, 0x71, 0xb7, 0x9f, 0xb9, 0xb8, 0x99, 0xc4,
2959 0x27, 0x9b, 0x68, 0x57, 0x92, 0xa3, 0x24, 0x46, 0xe3, 0x47, 0x03, 0xe4, 0xe5, 0x6a, 0x82, 0xaf,
2960 0x81, 0x32, 0xf6, 0xe9, 0xc7, 0x01, 0x0b, 0x7d, 0x5e, 0x35, 0xd4, 0xe8, 0xac, 0xc6, 0x91, 0x59,
2961 0xde, 0x3e, 0xd8, 0x4d, 0x40, 0x34, 0xb1, 0xc3, 0x4d, 0x50, 0xc1, 0x3e, 0x4d, 0x27, 0x6d, 0x59,
2962 0x5d, 0x5f, 0x93, 0xe3, 0xb1, 0x7d, 0xb0, 0x9b, 0x4e, 0xd7, 0xf4, 0x1d, 0xc9, 0x1f, 0x10, 0xce,
2963 0xc2, 0xc0, 0xd5, 0x9b, 0x55, 0xf3, 0xa3, 0x31, 0x88, 0x26, 0x76, 0xf8, 0x3a, 0x28, 0x70, 0x97,
2964 0xf9, 0x44, 0xef, 0xc5, 0xab, 0x32, 0xed, 0x43, 0x09, 0x9c, 0x45, 0x66, 0x59, 0x7d, 0xa8, 0x89,
2965 0x48, 0x2e, 0x35, 0xbe, 0x37, 0x00, 0xcc, 0xae, 0x5e, 0xf8, 0x01, 0x00, 0x2c, 0x3d, 0xe9, 0x92,
2966 0x4c, 0xf5, 0x57, 0xa5, 0xe8, 0x59, 0x64, 0xae, 0xa6, 0x27, 0x45, 0x39, 0xe5, 0x02, 0x0f, 0x40,
2967 0x5e, 0xae, 0x6b, 0xad, 0x3c, 0xd6, 0xdf, 0xd3, 0x81, 0x89, 0xa6, 0xc9, 0x13, 0x52, 0x4c, 0x8d,
2968 0xef, 0x0c, 0x70, 0xe5, 0x90, 0x04, 0x23, 0xea, 0x12, 0x44, 0x3a, 0x24, 0x20, 0x9e, 0x4b, 0xa0,
2969 0x0d, 0xca, 0xe9, 0x66, 0xd5, 0x7a, 0xb8, 0xae, 0x7d, 0xcb, 0xe9, 0x16, 0x46, 0x93, 0x3b, 0xa9,
2970 0x76, 0x2e, 0x5f, 0xa8, 0x9d, 0xd7, 0x41, 0xde, 0xc7, 0xa2, 0x57, 0xcd, 0xa9, 0x1b, 0x25, 0x69,
2971 0x3d, 0xc0, 0xa2, 0x87, 0x14, 0xaa, 0xac, 0x2c, 0x10, 0xaa, 0xb9, 0x05, 0x6d, 0x65, 0x81, 0x40,
2972 0x0a, 0x6d, 0xfc, 0x76, 0x09, 0xac, 0x3f, 0xc0, 0x03, 0xda, 0x7e, 0xa1, 0xd7, 0x2f, 0xf4, 0xfa,
2973 0xbf, 0xa5, 0xd7, 0x59, 0x35, 0x05, 0xff, 0xae, 0x9a, 0x9e, 0x1a, 0xa0, 0x96, 0x99, 0xb5, 0xe7,
2974 0xad, 0xa7, 0x5f, 0x66, 0xf4, 0xf4, 0xdd, 0xc5, 0x47, 0x28, 0x93, 0x7d, 0x46, 0x51, 0xff, 0x30,
2975 0x40, 0xe3, 0xe9, 0x35, 0x3e, 0x07, 0x4d, 0x1d, 0xce, 0x6a, 0xea, 0x27, 0xff, 0xa0, 0xc0, 0x45,
2976 0x54, 0xf5, 0x07, 0x03, 0xfc, 0xef, 0x9c, 0x75, 0x06, 0x31, 0x28, 0xf2, 0x64, 0xfd, 0xeb, 0x1a,
2977 0x6f, 0x2d, 0x9e, 0xc8, 0xbc, 0x6e, 0x38, 0x95, 0x38, 0x32, 0x8b, 0x63, 0x74, 0xcc, 0x0b, 0x9b,
2978 0xa0, 0xe4, 0x62, 0x27, 0xf4, 0xda, 0x5a, 0xb8, 0x56, 0x9c, 0x15, 0xd9, 0x93, 0x9d, 0xed, 0x04,
2979 0x43, 0xa9, 0x15, 0xbe, 0x0c, 0x72, 0x61, 0x30, 0xd0, 0x1a, 0x51, 0x8c, 0x23, 0x33, 0x77, 0x1f,
2980 0xed, 0x21, 0x89, 0x39, 0x37, 0x4e, 0x4e, 0x6b, 0x4b, 0x8f, 0x4f, 0x6b, 0x4b, 0x4f, 0x4e, 0x6b,
2981 0x4b, 0xdf, 0xc4, 0x35, 0xe3, 0x24, 0xae, 0x19, 0x8f, 0xe3, 0x9a, 0xf1, 0x24, 0xae, 0x19, 0xbf,
2982 0xc4, 0x35, 0xe3, 0xdb, 0x5f, 0x6b, 0x4b, 0x9f, 0x15, 0x75, 0x6a, 0x7f, 0x06, 0x00, 0x00, 0xff,
2983 0xff, 0xc3, 0x6f, 0x8b, 0x7e, 0x2c, 0x0f, 0x00, 0x00,
2984}