blob: ebd627cfcc0d6935b9d6eb5448cec50b7f05085e [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Code generated by protoc-gen-gogo.
18// source: k8s.io/kubernetes/vendor/k8s.io/api/admission/v1beta1/generated.proto
19// DO NOT EDIT!
20
21/*
22 Package v1beta1 is a generated protocol buffer package.
23
24 It is generated from these files:
25 k8s.io/kubernetes/vendor/k8s.io/api/admission/v1beta1/generated.proto
26
27 It has these top-level messages:
28 AdmissionRequest
29 AdmissionResponse
30 AdmissionReview
31*/
32package v1beta1
33
34import proto "github.com/gogo/protobuf/proto"
35import fmt "fmt"
36import math "math"
37
38import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
39
40import k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types"
41
42import strings "strings"
43import reflect "reflect"
44
45import io "io"
46
47// Reference imports to suppress errors if they are not otherwise used.
48var _ = proto.Marshal
49var _ = fmt.Errorf
50var _ = math.Inf
51
52// This is a compile-time assertion to ensure that this generated file
53// is compatible with the proto package it is being compiled against.
54// A compilation error at this line likely means your copy of the
55// proto package needs to be updated.
56const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
57
58func (m *AdmissionRequest) Reset() { *m = AdmissionRequest{} }
59func (*AdmissionRequest) ProtoMessage() {}
60func (*AdmissionRequest) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
61
62func (m *AdmissionResponse) Reset() { *m = AdmissionResponse{} }
63func (*AdmissionResponse) ProtoMessage() {}
64func (*AdmissionResponse) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
65
66func (m *AdmissionReview) Reset() { *m = AdmissionReview{} }
67func (*AdmissionReview) ProtoMessage() {}
68func (*AdmissionReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
69
70func init() {
71 proto.RegisterType((*AdmissionRequest)(nil), "k8s.io.api.admission.v1beta1.AdmissionRequest")
72 proto.RegisterType((*AdmissionResponse)(nil), "k8s.io.api.admission.v1beta1.AdmissionResponse")
73 proto.RegisterType((*AdmissionReview)(nil), "k8s.io.api.admission.v1beta1.AdmissionReview")
74}
75func (m *AdmissionRequest) Marshal() (dAtA []byte, err error) {
76 size := m.Size()
77 dAtA = make([]byte, size)
78 n, err := m.MarshalTo(dAtA)
79 if err != nil {
80 return nil, err
81 }
82 return dAtA[:n], nil
83}
84
85func (m *AdmissionRequest) MarshalTo(dAtA []byte) (int, error) {
86 var i int
87 _ = i
88 var l int
89 _ = l
90 dAtA[i] = 0xa
91 i++
92 i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID)))
93 i += copy(dAtA[i:], m.UID)
94 dAtA[i] = 0x12
95 i++
96 i = encodeVarintGenerated(dAtA, i, uint64(m.Kind.Size()))
97 n1, err := m.Kind.MarshalTo(dAtA[i:])
98 if err != nil {
99 return 0, err
100 }
101 i += n1
102 dAtA[i] = 0x1a
103 i++
104 i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size()))
105 n2, err := m.Resource.MarshalTo(dAtA[i:])
106 if err != nil {
107 return 0, err
108 }
109 i += n2
110 dAtA[i] = 0x22
111 i++
112 i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubResource)))
113 i += copy(dAtA[i:], m.SubResource)
114 dAtA[i] = 0x2a
115 i++
116 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
117 i += copy(dAtA[i:], m.Name)
118 dAtA[i] = 0x32
119 i++
120 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
121 i += copy(dAtA[i:], m.Namespace)
122 dAtA[i] = 0x3a
123 i++
124 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation)))
125 i += copy(dAtA[i:], m.Operation)
126 dAtA[i] = 0x42
127 i++
128 i = encodeVarintGenerated(dAtA, i, uint64(m.UserInfo.Size()))
129 n3, err := m.UserInfo.MarshalTo(dAtA[i:])
130 if err != nil {
131 return 0, err
132 }
133 i += n3
134 dAtA[i] = 0x4a
135 i++
136 i = encodeVarintGenerated(dAtA, i, uint64(m.Object.Size()))
137 n4, err := m.Object.MarshalTo(dAtA[i:])
138 if err != nil {
139 return 0, err
140 }
141 i += n4
142 dAtA[i] = 0x52
143 i++
144 i = encodeVarintGenerated(dAtA, i, uint64(m.OldObject.Size()))
145 n5, err := m.OldObject.MarshalTo(dAtA[i:])
146 if err != nil {
147 return 0, err
148 }
149 i += n5
150 return i, nil
151}
152
153func (m *AdmissionResponse) Marshal() (dAtA []byte, err error) {
154 size := m.Size()
155 dAtA = make([]byte, size)
156 n, err := m.MarshalTo(dAtA)
157 if err != nil {
158 return nil, err
159 }
160 return dAtA[:n], nil
161}
162
163func (m *AdmissionResponse) MarshalTo(dAtA []byte) (int, error) {
164 var i int
165 _ = i
166 var l int
167 _ = l
168 dAtA[i] = 0xa
169 i++
170 i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID)))
171 i += copy(dAtA[i:], m.UID)
172 dAtA[i] = 0x10
173 i++
174 if m.Allowed {
175 dAtA[i] = 1
176 } else {
177 dAtA[i] = 0
178 }
179 i++
180 if m.Result != nil {
181 dAtA[i] = 0x1a
182 i++
183 i = encodeVarintGenerated(dAtA, i, uint64(m.Result.Size()))
184 n6, err := m.Result.MarshalTo(dAtA[i:])
185 if err != nil {
186 return 0, err
187 }
188 i += n6
189 }
190 if m.Patch != nil {
191 dAtA[i] = 0x22
192 i++
193 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Patch)))
194 i += copy(dAtA[i:], m.Patch)
195 }
196 if m.PatchType != nil {
197 dAtA[i] = 0x2a
198 i++
199 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PatchType)))
200 i += copy(dAtA[i:], *m.PatchType)
201 }
202 return i, nil
203}
204
205func (m *AdmissionReview) Marshal() (dAtA []byte, err error) {
206 size := m.Size()
207 dAtA = make([]byte, size)
208 n, err := m.MarshalTo(dAtA)
209 if err != nil {
210 return nil, err
211 }
212 return dAtA[:n], nil
213}
214
215func (m *AdmissionReview) MarshalTo(dAtA []byte) (int, error) {
216 var i int
217 _ = i
218 var l int
219 _ = l
220 if m.Request != nil {
221 dAtA[i] = 0xa
222 i++
223 i = encodeVarintGenerated(dAtA, i, uint64(m.Request.Size()))
224 n7, err := m.Request.MarshalTo(dAtA[i:])
225 if err != nil {
226 return 0, err
227 }
228 i += n7
229 }
230 if m.Response != nil {
231 dAtA[i] = 0x12
232 i++
233 i = encodeVarintGenerated(dAtA, i, uint64(m.Response.Size()))
234 n8, err := m.Response.MarshalTo(dAtA[i:])
235 if err != nil {
236 return 0, err
237 }
238 i += n8
239 }
240 return i, nil
241}
242
243func encodeFixed64Generated(dAtA []byte, offset int, v uint64) int {
244 dAtA[offset] = uint8(v)
245 dAtA[offset+1] = uint8(v >> 8)
246 dAtA[offset+2] = uint8(v >> 16)
247 dAtA[offset+3] = uint8(v >> 24)
248 dAtA[offset+4] = uint8(v >> 32)
249 dAtA[offset+5] = uint8(v >> 40)
250 dAtA[offset+6] = uint8(v >> 48)
251 dAtA[offset+7] = uint8(v >> 56)
252 return offset + 8
253}
254func encodeFixed32Generated(dAtA []byte, offset int, v uint32) int {
255 dAtA[offset] = uint8(v)
256 dAtA[offset+1] = uint8(v >> 8)
257 dAtA[offset+2] = uint8(v >> 16)
258 dAtA[offset+3] = uint8(v >> 24)
259 return offset + 4
260}
261func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
262 for v >= 1<<7 {
263 dAtA[offset] = uint8(v&0x7f | 0x80)
264 v >>= 7
265 offset++
266 }
267 dAtA[offset] = uint8(v)
268 return offset + 1
269}
270func (m *AdmissionRequest) Size() (n int) {
271 var l int
272 _ = l
273 l = len(m.UID)
274 n += 1 + l + sovGenerated(uint64(l))
275 l = m.Kind.Size()
276 n += 1 + l + sovGenerated(uint64(l))
277 l = m.Resource.Size()
278 n += 1 + l + sovGenerated(uint64(l))
279 l = len(m.SubResource)
280 n += 1 + l + sovGenerated(uint64(l))
281 l = len(m.Name)
282 n += 1 + l + sovGenerated(uint64(l))
283 l = len(m.Namespace)
284 n += 1 + l + sovGenerated(uint64(l))
285 l = len(m.Operation)
286 n += 1 + l + sovGenerated(uint64(l))
287 l = m.UserInfo.Size()
288 n += 1 + l + sovGenerated(uint64(l))
289 l = m.Object.Size()
290 n += 1 + l + sovGenerated(uint64(l))
291 l = m.OldObject.Size()
292 n += 1 + l + sovGenerated(uint64(l))
293 return n
294}
295
296func (m *AdmissionResponse) Size() (n int) {
297 var l int
298 _ = l
299 l = len(m.UID)
300 n += 1 + l + sovGenerated(uint64(l))
301 n += 2
302 if m.Result != nil {
303 l = m.Result.Size()
304 n += 1 + l + sovGenerated(uint64(l))
305 }
306 if m.Patch != nil {
307 l = len(m.Patch)
308 n += 1 + l + sovGenerated(uint64(l))
309 }
310 if m.PatchType != nil {
311 l = len(*m.PatchType)
312 n += 1 + l + sovGenerated(uint64(l))
313 }
314 return n
315}
316
317func (m *AdmissionReview) Size() (n int) {
318 var l int
319 _ = l
320 if m.Request != nil {
321 l = m.Request.Size()
322 n += 1 + l + sovGenerated(uint64(l))
323 }
324 if m.Response != nil {
325 l = m.Response.Size()
326 n += 1 + l + sovGenerated(uint64(l))
327 }
328 return n
329}
330
331func sovGenerated(x uint64) (n int) {
332 for {
333 n++
334 x >>= 7
335 if x == 0 {
336 break
337 }
338 }
339 return n
340}
341func sozGenerated(x uint64) (n int) {
342 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
343}
344func (this *AdmissionRequest) String() string {
345 if this == nil {
346 return "nil"
347 }
348 s := strings.Join([]string{`&AdmissionRequest{`,
349 `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
350 `Kind:` + strings.Replace(strings.Replace(this.Kind.String(), "GroupVersionKind", "k8s_io_apimachinery_pkg_apis_meta_v1.GroupVersionKind", 1), `&`, ``, 1) + `,`,
351 `Resource:` + strings.Replace(strings.Replace(this.Resource.String(), "GroupVersionResource", "k8s_io_apimachinery_pkg_apis_meta_v1.GroupVersionResource", 1), `&`, ``, 1) + `,`,
352 `SubResource:` + fmt.Sprintf("%v", this.SubResource) + `,`,
353 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
354 `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
355 `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`,
356 `UserInfo:` + strings.Replace(strings.Replace(this.UserInfo.String(), "UserInfo", "k8s_io_api_authentication_v1.UserInfo", 1), `&`, ``, 1) + `,`,
357 `Object:` + strings.Replace(strings.Replace(this.Object.String(), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`,
358 `OldObject:` + strings.Replace(strings.Replace(this.OldObject.String(), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`,
359 `}`,
360 }, "")
361 return s
362}
363func (this *AdmissionResponse) String() string {
364 if this == nil {
365 return "nil"
366 }
367 s := strings.Join([]string{`&AdmissionResponse{`,
368 `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
369 `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`,
370 `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Status", "k8s_io_apimachinery_pkg_apis_meta_v1.Status", 1) + `,`,
371 `Patch:` + valueToStringGenerated(this.Patch) + `,`,
372 `PatchType:` + valueToStringGenerated(this.PatchType) + `,`,
373 `}`,
374 }, "")
375 return s
376}
377func (this *AdmissionReview) String() string {
378 if this == nil {
379 return "nil"
380 }
381 s := strings.Join([]string{`&AdmissionReview{`,
382 `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "AdmissionRequest", "AdmissionRequest", 1) + `,`,
383 `Response:` + strings.Replace(fmt.Sprintf("%v", this.Response), "AdmissionResponse", "AdmissionResponse", 1) + `,`,
384 `}`,
385 }, "")
386 return s
387}
388func valueToStringGenerated(v interface{}) string {
389 rv := reflect.ValueOf(v)
390 if rv.IsNil() {
391 return "nil"
392 }
393 pv := reflect.Indirect(rv).Interface()
394 return fmt.Sprintf("*%v", pv)
395}
396func (m *AdmissionRequest) Unmarshal(dAtA []byte) error {
397 l := len(dAtA)
398 iNdEx := 0
399 for iNdEx < l {
400 preIndex := iNdEx
401 var wire uint64
402 for shift := uint(0); ; shift += 7 {
403 if shift >= 64 {
404 return ErrIntOverflowGenerated
405 }
406 if iNdEx >= l {
407 return io.ErrUnexpectedEOF
408 }
409 b := dAtA[iNdEx]
410 iNdEx++
411 wire |= (uint64(b) & 0x7F) << shift
412 if b < 0x80 {
413 break
414 }
415 }
416 fieldNum := int32(wire >> 3)
417 wireType := int(wire & 0x7)
418 if wireType == 4 {
419 return fmt.Errorf("proto: AdmissionRequest: wiretype end group for non-group")
420 }
421 if fieldNum <= 0 {
422 return fmt.Errorf("proto: AdmissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
423 }
424 switch fieldNum {
425 case 1:
426 if wireType != 2 {
427 return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
428 }
429 var stringLen uint64
430 for shift := uint(0); ; shift += 7 {
431 if shift >= 64 {
432 return ErrIntOverflowGenerated
433 }
434 if iNdEx >= l {
435 return io.ErrUnexpectedEOF
436 }
437 b := dAtA[iNdEx]
438 iNdEx++
439 stringLen |= (uint64(b) & 0x7F) << shift
440 if b < 0x80 {
441 break
442 }
443 }
444 intStringLen := int(stringLen)
445 if intStringLen < 0 {
446 return ErrInvalidLengthGenerated
447 }
448 postIndex := iNdEx + intStringLen
449 if postIndex > l {
450 return io.ErrUnexpectedEOF
451 }
452 m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex])
453 iNdEx = postIndex
454 case 2:
455 if wireType != 2 {
456 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
457 }
458 var msglen int
459 for shift := uint(0); ; shift += 7 {
460 if shift >= 64 {
461 return ErrIntOverflowGenerated
462 }
463 if iNdEx >= l {
464 return io.ErrUnexpectedEOF
465 }
466 b := dAtA[iNdEx]
467 iNdEx++
468 msglen |= (int(b) & 0x7F) << shift
469 if b < 0x80 {
470 break
471 }
472 }
473 if msglen < 0 {
474 return ErrInvalidLengthGenerated
475 }
476 postIndex := iNdEx + msglen
477 if postIndex > l {
478 return io.ErrUnexpectedEOF
479 }
480 if err := m.Kind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
481 return err
482 }
483 iNdEx = postIndex
484 case 3:
485 if wireType != 2 {
486 return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
487 }
488 var msglen int
489 for shift := uint(0); ; shift += 7 {
490 if shift >= 64 {
491 return ErrIntOverflowGenerated
492 }
493 if iNdEx >= l {
494 return io.ErrUnexpectedEOF
495 }
496 b := dAtA[iNdEx]
497 iNdEx++
498 msglen |= (int(b) & 0x7F) << shift
499 if b < 0x80 {
500 break
501 }
502 }
503 if msglen < 0 {
504 return ErrInvalidLengthGenerated
505 }
506 postIndex := iNdEx + msglen
507 if postIndex > l {
508 return io.ErrUnexpectedEOF
509 }
510 if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
511 return err
512 }
513 iNdEx = postIndex
514 case 4:
515 if wireType != 2 {
516 return fmt.Errorf("proto: wrong wireType = %d for field SubResource", wireType)
517 }
518 var stringLen uint64
519 for shift := uint(0); ; shift += 7 {
520 if shift >= 64 {
521 return ErrIntOverflowGenerated
522 }
523 if iNdEx >= l {
524 return io.ErrUnexpectedEOF
525 }
526 b := dAtA[iNdEx]
527 iNdEx++
528 stringLen |= (uint64(b) & 0x7F) << shift
529 if b < 0x80 {
530 break
531 }
532 }
533 intStringLen := int(stringLen)
534 if intStringLen < 0 {
535 return ErrInvalidLengthGenerated
536 }
537 postIndex := iNdEx + intStringLen
538 if postIndex > l {
539 return io.ErrUnexpectedEOF
540 }
541 m.SubResource = string(dAtA[iNdEx:postIndex])
542 iNdEx = postIndex
543 case 5:
544 if wireType != 2 {
545 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
546 }
547 var stringLen uint64
548 for shift := uint(0); ; shift += 7 {
549 if shift >= 64 {
550 return ErrIntOverflowGenerated
551 }
552 if iNdEx >= l {
553 return io.ErrUnexpectedEOF
554 }
555 b := dAtA[iNdEx]
556 iNdEx++
557 stringLen |= (uint64(b) & 0x7F) << shift
558 if b < 0x80 {
559 break
560 }
561 }
562 intStringLen := int(stringLen)
563 if intStringLen < 0 {
564 return ErrInvalidLengthGenerated
565 }
566 postIndex := iNdEx + intStringLen
567 if postIndex > l {
568 return io.ErrUnexpectedEOF
569 }
570 m.Name = string(dAtA[iNdEx:postIndex])
571 iNdEx = postIndex
572 case 6:
573 if wireType != 2 {
574 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
575 }
576 var stringLen uint64
577 for shift := uint(0); ; shift += 7 {
578 if shift >= 64 {
579 return ErrIntOverflowGenerated
580 }
581 if iNdEx >= l {
582 return io.ErrUnexpectedEOF
583 }
584 b := dAtA[iNdEx]
585 iNdEx++
586 stringLen |= (uint64(b) & 0x7F) << shift
587 if b < 0x80 {
588 break
589 }
590 }
591 intStringLen := int(stringLen)
592 if intStringLen < 0 {
593 return ErrInvalidLengthGenerated
594 }
595 postIndex := iNdEx + intStringLen
596 if postIndex > l {
597 return io.ErrUnexpectedEOF
598 }
599 m.Namespace = string(dAtA[iNdEx:postIndex])
600 iNdEx = postIndex
601 case 7:
602 if wireType != 2 {
603 return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
604 }
605 var stringLen uint64
606 for shift := uint(0); ; shift += 7 {
607 if shift >= 64 {
608 return ErrIntOverflowGenerated
609 }
610 if iNdEx >= l {
611 return io.ErrUnexpectedEOF
612 }
613 b := dAtA[iNdEx]
614 iNdEx++
615 stringLen |= (uint64(b) & 0x7F) << shift
616 if b < 0x80 {
617 break
618 }
619 }
620 intStringLen := int(stringLen)
621 if intStringLen < 0 {
622 return ErrInvalidLengthGenerated
623 }
624 postIndex := iNdEx + intStringLen
625 if postIndex > l {
626 return io.ErrUnexpectedEOF
627 }
628 m.Operation = Operation(dAtA[iNdEx:postIndex])
629 iNdEx = postIndex
630 case 8:
631 if wireType != 2 {
632 return fmt.Errorf("proto: wrong wireType = %d for field UserInfo", wireType)
633 }
634 var msglen int
635 for shift := uint(0); ; shift += 7 {
636 if shift >= 64 {
637 return ErrIntOverflowGenerated
638 }
639 if iNdEx >= l {
640 return io.ErrUnexpectedEOF
641 }
642 b := dAtA[iNdEx]
643 iNdEx++
644 msglen |= (int(b) & 0x7F) << shift
645 if b < 0x80 {
646 break
647 }
648 }
649 if msglen < 0 {
650 return ErrInvalidLengthGenerated
651 }
652 postIndex := iNdEx + msglen
653 if postIndex > l {
654 return io.ErrUnexpectedEOF
655 }
656 if err := m.UserInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
657 return err
658 }
659 iNdEx = postIndex
660 case 9:
661 if wireType != 2 {
662 return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
663 }
664 var msglen int
665 for shift := uint(0); ; shift += 7 {
666 if shift >= 64 {
667 return ErrIntOverflowGenerated
668 }
669 if iNdEx >= l {
670 return io.ErrUnexpectedEOF
671 }
672 b := dAtA[iNdEx]
673 iNdEx++
674 msglen |= (int(b) & 0x7F) << shift
675 if b < 0x80 {
676 break
677 }
678 }
679 if msglen < 0 {
680 return ErrInvalidLengthGenerated
681 }
682 postIndex := iNdEx + msglen
683 if postIndex > l {
684 return io.ErrUnexpectedEOF
685 }
686 if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
687 return err
688 }
689 iNdEx = postIndex
690 case 10:
691 if wireType != 2 {
692 return fmt.Errorf("proto: wrong wireType = %d for field OldObject", wireType)
693 }
694 var msglen int
695 for shift := uint(0); ; shift += 7 {
696 if shift >= 64 {
697 return ErrIntOverflowGenerated
698 }
699 if iNdEx >= l {
700 return io.ErrUnexpectedEOF
701 }
702 b := dAtA[iNdEx]
703 iNdEx++
704 msglen |= (int(b) & 0x7F) << shift
705 if b < 0x80 {
706 break
707 }
708 }
709 if msglen < 0 {
710 return ErrInvalidLengthGenerated
711 }
712 postIndex := iNdEx + msglen
713 if postIndex > l {
714 return io.ErrUnexpectedEOF
715 }
716 if err := m.OldObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
717 return err
718 }
719 iNdEx = postIndex
720 default:
721 iNdEx = preIndex
722 skippy, err := skipGenerated(dAtA[iNdEx:])
723 if err != nil {
724 return err
725 }
726 if skippy < 0 {
727 return ErrInvalidLengthGenerated
728 }
729 if (iNdEx + skippy) > l {
730 return io.ErrUnexpectedEOF
731 }
732 iNdEx += skippy
733 }
734 }
735
736 if iNdEx > l {
737 return io.ErrUnexpectedEOF
738 }
739 return nil
740}
741func (m *AdmissionResponse) Unmarshal(dAtA []byte) error {
742 l := len(dAtA)
743 iNdEx := 0
744 for iNdEx < l {
745 preIndex := iNdEx
746 var wire uint64
747 for shift := uint(0); ; shift += 7 {
748 if shift >= 64 {
749 return ErrIntOverflowGenerated
750 }
751 if iNdEx >= l {
752 return io.ErrUnexpectedEOF
753 }
754 b := dAtA[iNdEx]
755 iNdEx++
756 wire |= (uint64(b) & 0x7F) << shift
757 if b < 0x80 {
758 break
759 }
760 }
761 fieldNum := int32(wire >> 3)
762 wireType := int(wire & 0x7)
763 if wireType == 4 {
764 return fmt.Errorf("proto: AdmissionResponse: wiretype end group for non-group")
765 }
766 if fieldNum <= 0 {
767 return fmt.Errorf("proto: AdmissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
768 }
769 switch fieldNum {
770 case 1:
771 if wireType != 2 {
772 return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
773 }
774 var stringLen uint64
775 for shift := uint(0); ; shift += 7 {
776 if shift >= 64 {
777 return ErrIntOverflowGenerated
778 }
779 if iNdEx >= l {
780 return io.ErrUnexpectedEOF
781 }
782 b := dAtA[iNdEx]
783 iNdEx++
784 stringLen |= (uint64(b) & 0x7F) << shift
785 if b < 0x80 {
786 break
787 }
788 }
789 intStringLen := int(stringLen)
790 if intStringLen < 0 {
791 return ErrInvalidLengthGenerated
792 }
793 postIndex := iNdEx + intStringLen
794 if postIndex > l {
795 return io.ErrUnexpectedEOF
796 }
797 m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex])
798 iNdEx = postIndex
799 case 2:
800 if wireType != 0 {
801 return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType)
802 }
803 var v int
804 for shift := uint(0); ; shift += 7 {
805 if shift >= 64 {
806 return ErrIntOverflowGenerated
807 }
808 if iNdEx >= l {
809 return io.ErrUnexpectedEOF
810 }
811 b := dAtA[iNdEx]
812 iNdEx++
813 v |= (int(b) & 0x7F) << shift
814 if b < 0x80 {
815 break
816 }
817 }
818 m.Allowed = bool(v != 0)
819 case 3:
820 if wireType != 2 {
821 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
822 }
823 var msglen int
824 for shift := uint(0); ; shift += 7 {
825 if shift >= 64 {
826 return ErrIntOverflowGenerated
827 }
828 if iNdEx >= l {
829 return io.ErrUnexpectedEOF
830 }
831 b := dAtA[iNdEx]
832 iNdEx++
833 msglen |= (int(b) & 0x7F) << shift
834 if b < 0x80 {
835 break
836 }
837 }
838 if msglen < 0 {
839 return ErrInvalidLengthGenerated
840 }
841 postIndex := iNdEx + msglen
842 if postIndex > l {
843 return io.ErrUnexpectedEOF
844 }
845 if m.Result == nil {
846 m.Result = &k8s_io_apimachinery_pkg_apis_meta_v1.Status{}
847 }
848 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
849 return err
850 }
851 iNdEx = postIndex
852 case 4:
853 if wireType != 2 {
854 return fmt.Errorf("proto: wrong wireType = %d for field Patch", wireType)
855 }
856 var byteLen int
857 for shift := uint(0); ; shift += 7 {
858 if shift >= 64 {
859 return ErrIntOverflowGenerated
860 }
861 if iNdEx >= l {
862 return io.ErrUnexpectedEOF
863 }
864 b := dAtA[iNdEx]
865 iNdEx++
866 byteLen |= (int(b) & 0x7F) << shift
867 if b < 0x80 {
868 break
869 }
870 }
871 if byteLen < 0 {
872 return ErrInvalidLengthGenerated
873 }
874 postIndex := iNdEx + byteLen
875 if postIndex > l {
876 return io.ErrUnexpectedEOF
877 }
878 m.Patch = append(m.Patch[:0], dAtA[iNdEx:postIndex]...)
879 if m.Patch == nil {
880 m.Patch = []byte{}
881 }
882 iNdEx = postIndex
883 case 5:
884 if wireType != 2 {
885 return fmt.Errorf("proto: wrong wireType = %d for field PatchType", wireType)
886 }
887 var stringLen uint64
888 for shift := uint(0); ; shift += 7 {
889 if shift >= 64 {
890 return ErrIntOverflowGenerated
891 }
892 if iNdEx >= l {
893 return io.ErrUnexpectedEOF
894 }
895 b := dAtA[iNdEx]
896 iNdEx++
897 stringLen |= (uint64(b) & 0x7F) << shift
898 if b < 0x80 {
899 break
900 }
901 }
902 intStringLen := int(stringLen)
903 if intStringLen < 0 {
904 return ErrInvalidLengthGenerated
905 }
906 postIndex := iNdEx + intStringLen
907 if postIndex > l {
908 return io.ErrUnexpectedEOF
909 }
910 s := PatchType(dAtA[iNdEx:postIndex])
911 m.PatchType = &s
912 iNdEx = postIndex
913 default:
914 iNdEx = preIndex
915 skippy, err := skipGenerated(dAtA[iNdEx:])
916 if err != nil {
917 return err
918 }
919 if skippy < 0 {
920 return ErrInvalidLengthGenerated
921 }
922 if (iNdEx + skippy) > l {
923 return io.ErrUnexpectedEOF
924 }
925 iNdEx += skippy
926 }
927 }
928
929 if iNdEx > l {
930 return io.ErrUnexpectedEOF
931 }
932 return nil
933}
934func (m *AdmissionReview) Unmarshal(dAtA []byte) error {
935 l := len(dAtA)
936 iNdEx := 0
937 for iNdEx < l {
938 preIndex := iNdEx
939 var wire uint64
940 for shift := uint(0); ; shift += 7 {
941 if shift >= 64 {
942 return ErrIntOverflowGenerated
943 }
944 if iNdEx >= l {
945 return io.ErrUnexpectedEOF
946 }
947 b := dAtA[iNdEx]
948 iNdEx++
949 wire |= (uint64(b) & 0x7F) << shift
950 if b < 0x80 {
951 break
952 }
953 }
954 fieldNum := int32(wire >> 3)
955 wireType := int(wire & 0x7)
956 if wireType == 4 {
957 return fmt.Errorf("proto: AdmissionReview: wiretype end group for non-group")
958 }
959 if fieldNum <= 0 {
960 return fmt.Errorf("proto: AdmissionReview: illegal tag %d (wire type %d)", fieldNum, wire)
961 }
962 switch fieldNum {
963 case 1:
964 if wireType != 2 {
965 return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType)
966 }
967 var msglen int
968 for shift := uint(0); ; shift += 7 {
969 if shift >= 64 {
970 return ErrIntOverflowGenerated
971 }
972 if iNdEx >= l {
973 return io.ErrUnexpectedEOF
974 }
975 b := dAtA[iNdEx]
976 iNdEx++
977 msglen |= (int(b) & 0x7F) << shift
978 if b < 0x80 {
979 break
980 }
981 }
982 if msglen < 0 {
983 return ErrInvalidLengthGenerated
984 }
985 postIndex := iNdEx + msglen
986 if postIndex > l {
987 return io.ErrUnexpectedEOF
988 }
989 if m.Request == nil {
990 m.Request = &AdmissionRequest{}
991 }
992 if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
993 return err
994 }
995 iNdEx = postIndex
996 case 2:
997 if wireType != 2 {
998 return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType)
999 }
1000 var msglen int
1001 for shift := uint(0); ; shift += 7 {
1002 if shift >= 64 {
1003 return ErrIntOverflowGenerated
1004 }
1005 if iNdEx >= l {
1006 return io.ErrUnexpectedEOF
1007 }
1008 b := dAtA[iNdEx]
1009 iNdEx++
1010 msglen |= (int(b) & 0x7F) << shift
1011 if b < 0x80 {
1012 break
1013 }
1014 }
1015 if msglen < 0 {
1016 return ErrInvalidLengthGenerated
1017 }
1018 postIndex := iNdEx + msglen
1019 if postIndex > l {
1020 return io.ErrUnexpectedEOF
1021 }
1022 if m.Response == nil {
1023 m.Response = &AdmissionResponse{}
1024 }
1025 if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1026 return err
1027 }
1028 iNdEx = postIndex
1029 default:
1030 iNdEx = preIndex
1031 skippy, err := skipGenerated(dAtA[iNdEx:])
1032 if err != nil {
1033 return err
1034 }
1035 if skippy < 0 {
1036 return ErrInvalidLengthGenerated
1037 }
1038 if (iNdEx + skippy) > l {
1039 return io.ErrUnexpectedEOF
1040 }
1041 iNdEx += skippy
1042 }
1043 }
1044
1045 if iNdEx > l {
1046 return io.ErrUnexpectedEOF
1047 }
1048 return nil
1049}
1050func skipGenerated(dAtA []byte) (n int, err error) {
1051 l := len(dAtA)
1052 iNdEx := 0
1053 for iNdEx < l {
1054 var wire uint64
1055 for shift := uint(0); ; shift += 7 {
1056 if shift >= 64 {
1057 return 0, ErrIntOverflowGenerated
1058 }
1059 if iNdEx >= l {
1060 return 0, io.ErrUnexpectedEOF
1061 }
1062 b := dAtA[iNdEx]
1063 iNdEx++
1064 wire |= (uint64(b) & 0x7F) << shift
1065 if b < 0x80 {
1066 break
1067 }
1068 }
1069 wireType := int(wire & 0x7)
1070 switch wireType {
1071 case 0:
1072 for shift := uint(0); ; shift += 7 {
1073 if shift >= 64 {
1074 return 0, ErrIntOverflowGenerated
1075 }
1076 if iNdEx >= l {
1077 return 0, io.ErrUnexpectedEOF
1078 }
1079 iNdEx++
1080 if dAtA[iNdEx-1] < 0x80 {
1081 break
1082 }
1083 }
1084 return iNdEx, nil
1085 case 1:
1086 iNdEx += 8
1087 return iNdEx, nil
1088 case 2:
1089 var length int
1090 for shift := uint(0); ; shift += 7 {
1091 if shift >= 64 {
1092 return 0, ErrIntOverflowGenerated
1093 }
1094 if iNdEx >= l {
1095 return 0, io.ErrUnexpectedEOF
1096 }
1097 b := dAtA[iNdEx]
1098 iNdEx++
1099 length |= (int(b) & 0x7F) << shift
1100 if b < 0x80 {
1101 break
1102 }
1103 }
1104 iNdEx += length
1105 if length < 0 {
1106 return 0, ErrInvalidLengthGenerated
1107 }
1108 return iNdEx, nil
1109 case 3:
1110 for {
1111 var innerWire uint64
1112 var start int = iNdEx
1113 for shift := uint(0); ; shift += 7 {
1114 if shift >= 64 {
1115 return 0, ErrIntOverflowGenerated
1116 }
1117 if iNdEx >= l {
1118 return 0, io.ErrUnexpectedEOF
1119 }
1120 b := dAtA[iNdEx]
1121 iNdEx++
1122 innerWire |= (uint64(b) & 0x7F) << shift
1123 if b < 0x80 {
1124 break
1125 }
1126 }
1127 innerWireType := int(innerWire & 0x7)
1128 if innerWireType == 4 {
1129 break
1130 }
1131 next, err := skipGenerated(dAtA[start:])
1132 if err != nil {
1133 return 0, err
1134 }
1135 iNdEx = start + next
1136 }
1137 return iNdEx, nil
1138 case 4:
1139 return iNdEx, nil
1140 case 5:
1141 iNdEx += 4
1142 return iNdEx, nil
1143 default:
1144 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
1145 }
1146 }
1147 panic("unreachable")
1148}
1149
1150var (
1151 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
1152 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
1153)
1154
1155func init() {
1156 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admission/v1beta1/generated.proto", fileDescriptorGenerated)
1157}
1158
1159var fileDescriptorGenerated = []byte{
1160 // 739 bytes of a gzipped FileDescriptorProto
1161 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x4e, 0xdb, 0x4a,
1162 0x14, 0x8e, 0x21, 0x7f, 0x9e, 0xa0, 0x0b, 0xcc, 0xdd, 0x58, 0xd1, 0x95, 0xc3, 0x65, 0x71, 0xc5,
1163 0x95, 0x60, 0x5c, 0x68, 0x8b, 0x50, 0xd5, 0x0d, 0x16, 0xa8, 0x42, 0x95, 0x00, 0x0d, 0xa4, 0x6a,
1164 0xbb, 0xa8, 0x34, 0x71, 0x86, 0x64, 0x9a, 0xd8, 0xe3, 0x7a, 0xc6, 0xa1, 0xec, 0xfa, 0x08, 0x7d,
1165 0x93, 0x3e, 0x44, 0x37, 0x2c, 0x59, 0xb2, 0x8a, 0x4a, 0xfa, 0x00, 0xdd, 0xb3, 0xaa, 0x3c, 0x1e,
1166 0xc7, 0x29, 0x34, 0x2d, 0xad, 0xba, 0xca, 0x9c, 0x73, 0xbe, 0xef, 0x3b, 0xf1, 0x77, 0xce, 0x0c,
1167 0xd8, 0xed, 0x6d, 0x09, 0xc4, 0xb8, 0xd3, 0x8b, 0x5b, 0x34, 0x0a, 0xa8, 0xa4, 0xc2, 0x19, 0xd0,
1168 0xa0, 0xcd, 0x23, 0x47, 0x17, 0x48, 0xc8, 0x1c, 0xd2, 0xf6, 0x99, 0x10, 0x8c, 0x07, 0xce, 0x60,
1169 0xbd, 0x45, 0x25, 0x59, 0x77, 0x3a, 0x34, 0xa0, 0x11, 0x91, 0xb4, 0x8d, 0xc2, 0x88, 0x4b, 0x0e,
1170 0xff, 0x49, 0xd1, 0x88, 0x84, 0x0c, 0x8d, 0xd1, 0x48, 0xa3, 0xeb, 0x6b, 0x1d, 0x26, 0xbb, 0x71,
1171 0x0b, 0x79, 0xdc, 0x77, 0x3a, 0xbc, 0xc3, 0x1d, 0x45, 0x6a, 0xc5, 0x27, 0x2a, 0x52, 0x81, 0x3a,
1172 0xa5, 0x62, 0xf5, 0xd5, 0xc9, 0xd6, 0xb1, 0xec, 0xd2, 0x40, 0x32, 0x8f, 0xc8, 0xb4, 0xff, 0xcd,
1173 0xd6, 0xf5, 0x07, 0x39, 0xda, 0x27, 0x5e, 0x97, 0x05, 0x34, 0x3a, 0x73, 0xc2, 0x5e, 0x27, 0x49,
1174 0x08, 0xc7, 0xa7, 0x92, 0x7c, 0x8f, 0xe5, 0x4c, 0x63, 0x45, 0x71, 0x20, 0x99, 0x4f, 0x6f, 0x11,
1175 0x36, 0x7f, 0x46, 0x10, 0x5e, 0x97, 0xfa, 0xe4, 0x16, 0xef, 0xfe, 0x34, 0x5e, 0x2c, 0x59, 0xdf,
1176 0x61, 0x81, 0x14, 0x32, 0xba, 0x49, 0x5a, 0xfe, 0x52, 0x02, 0x0b, 0xdb, 0x99, 0x8d, 0x98, 0xbe,
1177 0x89, 0xa9, 0x90, 0xd0, 0x05, 0xb3, 0x31, 0x6b, 0x5b, 0xc6, 0x92, 0xb1, 0x62, 0xba, 0xf7, 0xce,
1178 0x87, 0x8d, 0xc2, 0x68, 0xd8, 0x98, 0x6d, 0xee, 0xed, 0x5c, 0x0f, 0x1b, 0xff, 0x4e, 0xeb, 0x22,
1179 0xcf, 0x42, 0x2a, 0x50, 0x73, 0x6f, 0x07, 0x27, 0x64, 0xf8, 0x1c, 0x14, 0x7b, 0x2c, 0x68, 0x5b,
1180 0x33, 0x4b, 0xc6, 0x4a, 0x6d, 0x63, 0x13, 0xe5, 0x63, 0x1b, 0xd3, 0x50, 0xd8, 0xeb, 0x24, 0x09,
1181 0x81, 0x12, 0xef, 0xd0, 0x60, 0x1d, 0x3d, 0x89, 0x78, 0x1c, 0x3e, 0xa3, 0x51, 0xf2, 0x67, 0x9e,
1182 0xb2, 0xa0, 0xed, 0xce, 0xe9, 0xe6, 0xc5, 0x24, 0xc2, 0x4a, 0x11, 0x76, 0x41, 0x35, 0xa2, 0x82,
1183 0xc7, 0x91, 0x47, 0xad, 0x59, 0xa5, 0xfe, 0xe8, 0xd7, 0xd5, 0xb1, 0x56, 0x70, 0x17, 0x74, 0x87,
1184 0x6a, 0x96, 0xc1, 0x63, 0x75, 0xf8, 0x10, 0xd4, 0x44, 0xdc, 0xca, 0x0a, 0x56, 0x51, 0xf9, 0xf1,
1185 0xb7, 0x26, 0xd4, 0x8e, 0xf2, 0x12, 0x9e, 0xc4, 0xc1, 0x25, 0x50, 0x0c, 0x88, 0x4f, 0xad, 0x92,
1186 0xc2, 0x8f, 0x3f, 0x61, 0x9f, 0xf8, 0x14, 0xab, 0x0a, 0x74, 0x80, 0x99, 0xfc, 0x8a, 0x90, 0x78,
1187 0xd4, 0x2a, 0x2b, 0xd8, 0xa2, 0x86, 0x99, 0xfb, 0x59, 0x01, 0xe7, 0x18, 0xf8, 0x18, 0x98, 0x3c,
1188 0x4c, 0x06, 0xc7, 0x78, 0x60, 0x55, 0x14, 0xc1, 0xce, 0x08, 0x07, 0x59, 0xe1, 0x7a, 0x32, 0xc0,
1189 0x39, 0x01, 0x1e, 0x83, 0x6a, 0x2c, 0x68, 0xb4, 0x17, 0x9c, 0x70, 0xab, 0xaa, 0x1c, 0xfb, 0x0f,
1190 0x4d, 0x5e, 0xa3, 0x6f, 0x36, 0x3f, 0x71, 0xaa, 0xa9, 0xd1, 0xb9, 0x3b, 0x59, 0x06, 0x8f, 0x95,
1191 0x60, 0x13, 0x94, 0x79, 0xeb, 0x35, 0xf5, 0xa4, 0x65, 0x2a, 0xcd, 0xb5, 0xa9, 0x53, 0xd0, 0x8b,
1192 0x8b, 0x30, 0x39, 0xdd, 0x7d, 0x2b, 0x69, 0x90, 0x0c, 0xc0, 0xfd, 0x4b, 0x4b, 0x97, 0x0f, 0x94,
1193 0x08, 0xd6, 0x62, 0xf0, 0x15, 0x30, 0x79, 0xbf, 0x9d, 0x26, 0x2d, 0xf0, 0x3b, 0xca, 0x63, 0x2b,
1194 0x0f, 0x32, 0x1d, 0x9c, 0x4b, 0x2e, 0x7f, 0x98, 0x01, 0x8b, 0x13, 0x1b, 0x2f, 0x42, 0x1e, 0x08,
1195 0xfa, 0x47, 0x56, 0xfe, 0x7f, 0x50, 0x21, 0xfd, 0x3e, 0x3f, 0xa5, 0xe9, 0xd6, 0x57, 0xdd, 0x79,
1196 0xad, 0x53, 0xd9, 0x4e, 0xd3, 0x38, 0xab, 0xc3, 0x43, 0x50, 0x16, 0x92, 0xc8, 0x58, 0xe8, 0x0d,
1197 0x5e, 0xbd, 0xdb, 0x06, 0x1f, 0x29, 0x8e, 0x0b, 0x12, 0xdb, 0x30, 0x15, 0x71, 0x5f, 0x62, 0xad,
1198 0x03, 0x1b, 0xa0, 0x14, 0x12, 0xe9, 0x75, 0xd5, 0x96, 0xce, 0xb9, 0xe6, 0x68, 0xd8, 0x28, 0x1d,
1199 0x26, 0x09, 0x9c, 0xe6, 0xe1, 0x16, 0x30, 0xd5, 0xe1, 0xf8, 0x2c, 0xcc, 0x56, 0xb3, 0x9e, 0x98,
1200 0x74, 0x98, 0x25, 0xaf, 0x27, 0x03, 0x9c, 0x83, 0x97, 0x3f, 0x1a, 0x60, 0x7e, 0xc2, 0xb1, 0x01,
1201 0xa3, 0xa7, 0xb0, 0x09, 0x2a, 0x51, 0xfa, 0x5a, 0x28, 0xcf, 0x6a, 0x1b, 0x08, 0xfd, 0xe8, 0x61,
1202 0x46, 0x37, 0xdf, 0x18, 0xb7, 0x96, 0xf8, 0xa2, 0x03, 0x9c, 0x69, 0xc1, 0x17, 0xea, 0x6e, 0xab,
1203 0x91, 0xe8, 0x97, 0xc3, 0xb9, 0xb3, 0x6e, 0x4a, 0x73, 0xe7, 0xf4, 0x65, 0x56, 0x11, 0x1e, 0xcb,
1204 0xb9, 0x6b, 0xe7, 0x57, 0x76, 0xe1, 0xe2, 0xca, 0x2e, 0x5c, 0x5e, 0xd9, 0x85, 0x77, 0x23, 0xdb,
1205 0x38, 0x1f, 0xd9, 0xc6, 0xc5, 0xc8, 0x36, 0x2e, 0x47, 0xb6, 0xf1, 0x69, 0x64, 0x1b, 0xef, 0x3f,
1206 0xdb, 0x85, 0x97, 0x15, 0x2d, 0xfc, 0x35, 0x00, 0x00, 0xff, 0xff, 0x76, 0x21, 0xd5, 0x35, 0xaf,
1207 0x06, 0x00, 0x00,
1208}