2 Copyright The Kubernetes Authors.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 // Code generated by protoc-gen-gogo. DO NOT EDIT.
18 // source: k8s.io/kubernetes/vendor/k8s.io/api/admission/v1beta1/generated.proto
21 Package v1beta1 is a generated protocol buffer package.
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/admission/v1beta1/generated.proto
26 It has these top-level messages:
33 import proto "github.com/gogo/protobuf/proto"
37 import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
39 import k8s_io_apimachinery_pkg_types "k8s.io/apimachinery/pkg/types"
41 import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
43 import strings "strings"
44 import reflect "reflect"
48 // Reference imports to suppress errors if they are not otherwise used.
53 // This is a compile-time assertion to ensure that this generated file
54 // is compatible with the proto package it is being compiled against.
55 // A compilation error at this line likely means your copy of the
56 // proto package needs to be updated.
57 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
59 func (m *AdmissionRequest) Reset() { *m = AdmissionRequest{} }
60 func (*AdmissionRequest) ProtoMessage() {}
61 func (*AdmissionRequest) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
63 func (m *AdmissionResponse) Reset() { *m = AdmissionResponse{} }
64 func (*AdmissionResponse) ProtoMessage() {}
65 func (*AdmissionResponse) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
67 func (m *AdmissionReview) Reset() { *m = AdmissionReview{} }
68 func (*AdmissionReview) ProtoMessage() {}
69 func (*AdmissionReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
72 proto.RegisterType((*AdmissionRequest)(nil), "k8s.io.api.admission.v1beta1.AdmissionRequest")
73 proto.RegisterType((*AdmissionResponse)(nil), "k8s.io.api.admission.v1beta1.AdmissionResponse")
74 proto.RegisterType((*AdmissionReview)(nil), "k8s.io.api.admission.v1beta1.AdmissionReview")
76 func (m *AdmissionRequest) Marshal() (dAtA []byte, err error) {
78 dAtA = make([]byte, size)
79 n, err := m.MarshalTo(dAtA)
86 func (m *AdmissionRequest) MarshalTo(dAtA []byte) (int, error) {
93 i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID)))
94 i += copy(dAtA[i:], m.UID)
97 i = encodeVarintGenerated(dAtA, i, uint64(m.Kind.Size()))
98 n1, err := m.Kind.MarshalTo(dAtA[i:])
105 i = encodeVarintGenerated(dAtA, i, uint64(m.Resource.Size()))
106 n2, err := m.Resource.MarshalTo(dAtA[i:])
113 i = encodeVarintGenerated(dAtA, i, uint64(len(m.SubResource)))
114 i += copy(dAtA[i:], m.SubResource)
117 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name)))
118 i += copy(dAtA[i:], m.Name)
121 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace)))
122 i += copy(dAtA[i:], m.Namespace)
125 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation)))
126 i += copy(dAtA[i:], m.Operation)
129 i = encodeVarintGenerated(dAtA, i, uint64(m.UserInfo.Size()))
130 n3, err := m.UserInfo.MarshalTo(dAtA[i:])
137 i = encodeVarintGenerated(dAtA, i, uint64(m.Object.Size()))
138 n4, err := m.Object.MarshalTo(dAtA[i:])
145 i = encodeVarintGenerated(dAtA, i, uint64(m.OldObject.Size()))
146 n5, err := m.OldObject.MarshalTo(dAtA[i:])
164 func (m *AdmissionResponse) Marshal() (dAtA []byte, err error) {
166 dAtA = make([]byte, size)
167 n, err := m.MarshalTo(dAtA)
174 func (m *AdmissionResponse) MarshalTo(dAtA []byte) (int, error) {
181 i = encodeVarintGenerated(dAtA, i, uint64(len(m.UID)))
182 i += copy(dAtA[i:], m.UID)
194 i = encodeVarintGenerated(dAtA, i, uint64(m.Result.Size()))
195 n6, err := m.Result.MarshalTo(dAtA[i:])
204 i = encodeVarintGenerated(dAtA, i, uint64(len(m.Patch)))
205 i += copy(dAtA[i:], m.Patch)
207 if m.PatchType != nil {
210 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.PatchType)))
211 i += copy(dAtA[i:], *m.PatchType)
213 if len(m.AuditAnnotations) > 0 {
214 keysForAuditAnnotations := make([]string, 0, len(m.AuditAnnotations))
215 for k := range m.AuditAnnotations {
216 keysForAuditAnnotations = append(keysForAuditAnnotations, string(k))
218 github_com_gogo_protobuf_sortkeys.Strings(keysForAuditAnnotations)
219 for _, k := range keysForAuditAnnotations {
222 v := m.AuditAnnotations[string(k)]
223 mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
224 i = encodeVarintGenerated(dAtA, i, uint64(mapSize))
227 i = encodeVarintGenerated(dAtA, i, uint64(len(k)))
228 i += copy(dAtA[i:], k)
231 i = encodeVarintGenerated(dAtA, i, uint64(len(v)))
232 i += copy(dAtA[i:], v)
238 func (m *AdmissionReview) Marshal() (dAtA []byte, err error) {
240 dAtA = make([]byte, size)
241 n, err := m.MarshalTo(dAtA)
248 func (m *AdmissionReview) MarshalTo(dAtA []byte) (int, error) {
253 if m.Request != nil {
256 i = encodeVarintGenerated(dAtA, i, uint64(m.Request.Size()))
257 n7, err := m.Request.MarshalTo(dAtA[i:])
263 if m.Response != nil {
266 i = encodeVarintGenerated(dAtA, i, uint64(m.Response.Size()))
267 n8, err := m.Response.MarshalTo(dAtA[i:])
276 func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
278 dAtA[offset] = uint8(v&0x7f | 0x80)
282 dAtA[offset] = uint8(v)
285 func (m *AdmissionRequest) Size() (n int) {
289 n += 1 + l + sovGenerated(uint64(l))
291 n += 1 + l + sovGenerated(uint64(l))
292 l = m.Resource.Size()
293 n += 1 + l + sovGenerated(uint64(l))
294 l = len(m.SubResource)
295 n += 1 + l + sovGenerated(uint64(l))
297 n += 1 + l + sovGenerated(uint64(l))
299 n += 1 + l + sovGenerated(uint64(l))
301 n += 1 + l + sovGenerated(uint64(l))
302 l = m.UserInfo.Size()
303 n += 1 + l + sovGenerated(uint64(l))
305 n += 1 + l + sovGenerated(uint64(l))
306 l = m.OldObject.Size()
307 n += 1 + l + sovGenerated(uint64(l))
314 func (m *AdmissionResponse) Size() (n int) {
318 n += 1 + l + sovGenerated(uint64(l))
322 n += 1 + l + sovGenerated(uint64(l))
326 n += 1 + l + sovGenerated(uint64(l))
328 if m.PatchType != nil {
329 l = len(*m.PatchType)
330 n += 1 + l + sovGenerated(uint64(l))
332 if len(m.AuditAnnotations) > 0 {
333 for k, v := range m.AuditAnnotations {
336 mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v)))
337 n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
343 func (m *AdmissionReview) Size() (n int) {
346 if m.Request != nil {
348 n += 1 + l + sovGenerated(uint64(l))
350 if m.Response != nil {
351 l = m.Response.Size()
352 n += 1 + l + sovGenerated(uint64(l))
357 func sovGenerated(x uint64) (n int) {
367 func sozGenerated(x uint64) (n int) {
368 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
370 func (this *AdmissionRequest) String() string {
374 s := strings.Join([]string{`&AdmissionRequest{`,
375 `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
376 `Kind:` + strings.Replace(strings.Replace(this.Kind.String(), "GroupVersionKind", "k8s_io_apimachinery_pkg_apis_meta_v1.GroupVersionKind", 1), `&`, ``, 1) + `,`,
377 `Resource:` + strings.Replace(strings.Replace(this.Resource.String(), "GroupVersionResource", "k8s_io_apimachinery_pkg_apis_meta_v1.GroupVersionResource", 1), `&`, ``, 1) + `,`,
378 `SubResource:` + fmt.Sprintf("%v", this.SubResource) + `,`,
379 `Name:` + fmt.Sprintf("%v", this.Name) + `,`,
380 `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`,
381 `Operation:` + fmt.Sprintf("%v", this.Operation) + `,`,
382 `UserInfo:` + strings.Replace(strings.Replace(this.UserInfo.String(), "UserInfo", "k8s_io_api_authentication_v1.UserInfo", 1), `&`, ``, 1) + `,`,
383 `Object:` + strings.Replace(strings.Replace(this.Object.String(), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`,
384 `OldObject:` + strings.Replace(strings.Replace(this.OldObject.String(), "RawExtension", "k8s_io_apimachinery_pkg_runtime.RawExtension", 1), `&`, ``, 1) + `,`,
385 `DryRun:` + valueToStringGenerated(this.DryRun) + `,`,
390 func (this *AdmissionResponse) String() string {
394 keysForAuditAnnotations := make([]string, 0, len(this.AuditAnnotations))
395 for k := range this.AuditAnnotations {
396 keysForAuditAnnotations = append(keysForAuditAnnotations, k)
398 github_com_gogo_protobuf_sortkeys.Strings(keysForAuditAnnotations)
399 mapStringForAuditAnnotations := "map[string]string{"
400 for _, k := range keysForAuditAnnotations {
401 mapStringForAuditAnnotations += fmt.Sprintf("%v: %v,", k, this.AuditAnnotations[k])
403 mapStringForAuditAnnotations += "}"
404 s := strings.Join([]string{`&AdmissionResponse{`,
405 `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
406 `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`,
407 `Result:` + strings.Replace(fmt.Sprintf("%v", this.Result), "Status", "k8s_io_apimachinery_pkg_apis_meta_v1.Status", 1) + `,`,
408 `Patch:` + valueToStringGenerated(this.Patch) + `,`,
409 `PatchType:` + valueToStringGenerated(this.PatchType) + `,`,
410 `AuditAnnotations:` + mapStringForAuditAnnotations + `,`,
415 func (this *AdmissionReview) String() string {
419 s := strings.Join([]string{`&AdmissionReview{`,
420 `Request:` + strings.Replace(fmt.Sprintf("%v", this.Request), "AdmissionRequest", "AdmissionRequest", 1) + `,`,
421 `Response:` + strings.Replace(fmt.Sprintf("%v", this.Response), "AdmissionResponse", "AdmissionResponse", 1) + `,`,
426 func valueToStringGenerated(v interface{}) string {
427 rv := reflect.ValueOf(v)
431 pv := reflect.Indirect(rv).Interface()
432 return fmt.Sprintf("*%v", pv)
434 func (m *AdmissionRequest) Unmarshal(dAtA []byte) error {
440 for shift := uint(0); ; shift += 7 {
442 return ErrIntOverflowGenerated
445 return io.ErrUnexpectedEOF
449 wire |= (uint64(b) & 0x7F) << shift
454 fieldNum := int32(wire >> 3)
455 wireType := int(wire & 0x7)
457 return fmt.Errorf("proto: AdmissionRequest: wiretype end group for non-group")
460 return fmt.Errorf("proto: AdmissionRequest: illegal tag %d (wire type %d)", fieldNum, wire)
465 return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
468 for shift := uint(0); ; shift += 7 {
470 return ErrIntOverflowGenerated
473 return io.ErrUnexpectedEOF
477 stringLen |= (uint64(b) & 0x7F) << shift
482 intStringLen := int(stringLen)
483 if intStringLen < 0 {
484 return ErrInvalidLengthGenerated
486 postIndex := iNdEx + intStringLen
488 return io.ErrUnexpectedEOF
490 m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex])
494 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
497 for shift := uint(0); ; shift += 7 {
499 return ErrIntOverflowGenerated
502 return io.ErrUnexpectedEOF
506 msglen |= (int(b) & 0x7F) << shift
512 return ErrInvalidLengthGenerated
514 postIndex := iNdEx + msglen
516 return io.ErrUnexpectedEOF
518 if err := m.Kind.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
524 return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
527 for shift := uint(0); ; shift += 7 {
529 return ErrIntOverflowGenerated
532 return io.ErrUnexpectedEOF
536 msglen |= (int(b) & 0x7F) << shift
542 return ErrInvalidLengthGenerated
544 postIndex := iNdEx + msglen
546 return io.ErrUnexpectedEOF
548 if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
554 return fmt.Errorf("proto: wrong wireType = %d for field SubResource", wireType)
557 for shift := uint(0); ; shift += 7 {
559 return ErrIntOverflowGenerated
562 return io.ErrUnexpectedEOF
566 stringLen |= (uint64(b) & 0x7F) << shift
571 intStringLen := int(stringLen)
572 if intStringLen < 0 {
573 return ErrInvalidLengthGenerated
575 postIndex := iNdEx + intStringLen
577 return io.ErrUnexpectedEOF
579 m.SubResource = string(dAtA[iNdEx:postIndex])
583 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
586 for shift := uint(0); ; shift += 7 {
588 return ErrIntOverflowGenerated
591 return io.ErrUnexpectedEOF
595 stringLen |= (uint64(b) & 0x7F) << shift
600 intStringLen := int(stringLen)
601 if intStringLen < 0 {
602 return ErrInvalidLengthGenerated
604 postIndex := iNdEx + intStringLen
606 return io.ErrUnexpectedEOF
608 m.Name = string(dAtA[iNdEx:postIndex])
612 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType)
615 for shift := uint(0); ; shift += 7 {
617 return ErrIntOverflowGenerated
620 return io.ErrUnexpectedEOF
624 stringLen |= (uint64(b) & 0x7F) << shift
629 intStringLen := int(stringLen)
630 if intStringLen < 0 {
631 return ErrInvalidLengthGenerated
633 postIndex := iNdEx + intStringLen
635 return io.ErrUnexpectedEOF
637 m.Namespace = string(dAtA[iNdEx:postIndex])
641 return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType)
644 for shift := uint(0); ; shift += 7 {
646 return ErrIntOverflowGenerated
649 return io.ErrUnexpectedEOF
653 stringLen |= (uint64(b) & 0x7F) << shift
658 intStringLen := int(stringLen)
659 if intStringLen < 0 {
660 return ErrInvalidLengthGenerated
662 postIndex := iNdEx + intStringLen
664 return io.ErrUnexpectedEOF
666 m.Operation = Operation(dAtA[iNdEx:postIndex])
670 return fmt.Errorf("proto: wrong wireType = %d for field UserInfo", wireType)
673 for shift := uint(0); ; shift += 7 {
675 return ErrIntOverflowGenerated
678 return io.ErrUnexpectedEOF
682 msglen |= (int(b) & 0x7F) << shift
688 return ErrInvalidLengthGenerated
690 postIndex := iNdEx + msglen
692 return io.ErrUnexpectedEOF
694 if err := m.UserInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
700 return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType)
703 for shift := uint(0); ; shift += 7 {
705 return ErrIntOverflowGenerated
708 return io.ErrUnexpectedEOF
712 msglen |= (int(b) & 0x7F) << shift
718 return ErrInvalidLengthGenerated
720 postIndex := iNdEx + msglen
722 return io.ErrUnexpectedEOF
724 if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
730 return fmt.Errorf("proto: wrong wireType = %d for field OldObject", wireType)
733 for shift := uint(0); ; shift += 7 {
735 return ErrIntOverflowGenerated
738 return io.ErrUnexpectedEOF
742 msglen |= (int(b) & 0x7F) << shift
748 return ErrInvalidLengthGenerated
750 postIndex := iNdEx + msglen
752 return io.ErrUnexpectedEOF
754 if err := m.OldObject.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
760 return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType)
763 for shift := uint(0); ; shift += 7 {
765 return ErrIntOverflowGenerated
768 return io.ErrUnexpectedEOF
772 v |= (int(b) & 0x7F) << shift
781 skippy, err := skipGenerated(dAtA[iNdEx:])
786 return ErrInvalidLengthGenerated
788 if (iNdEx + skippy) > l {
789 return io.ErrUnexpectedEOF
796 return io.ErrUnexpectedEOF
800 func (m *AdmissionResponse) Unmarshal(dAtA []byte) error {
806 for shift := uint(0); ; shift += 7 {
808 return ErrIntOverflowGenerated
811 return io.ErrUnexpectedEOF
815 wire |= (uint64(b) & 0x7F) << shift
820 fieldNum := int32(wire >> 3)
821 wireType := int(wire & 0x7)
823 return fmt.Errorf("proto: AdmissionResponse: wiretype end group for non-group")
826 return fmt.Errorf("proto: AdmissionResponse: illegal tag %d (wire type %d)", fieldNum, wire)
831 return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
834 for shift := uint(0); ; shift += 7 {
836 return ErrIntOverflowGenerated
839 return io.ErrUnexpectedEOF
843 stringLen |= (uint64(b) & 0x7F) << shift
848 intStringLen := int(stringLen)
849 if intStringLen < 0 {
850 return ErrInvalidLengthGenerated
852 postIndex := iNdEx + intStringLen
854 return io.ErrUnexpectedEOF
856 m.UID = k8s_io_apimachinery_pkg_types.UID(dAtA[iNdEx:postIndex])
860 return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType)
863 for shift := uint(0); ; shift += 7 {
865 return ErrIntOverflowGenerated
868 return io.ErrUnexpectedEOF
872 v |= (int(b) & 0x7F) << shift
877 m.Allowed = bool(v != 0)
880 return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType)
883 for shift := uint(0); ; shift += 7 {
885 return ErrIntOverflowGenerated
888 return io.ErrUnexpectedEOF
892 msglen |= (int(b) & 0x7F) << shift
898 return ErrInvalidLengthGenerated
900 postIndex := iNdEx + msglen
902 return io.ErrUnexpectedEOF
905 m.Result = &k8s_io_apimachinery_pkg_apis_meta_v1.Status{}
907 if err := m.Result.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
913 return fmt.Errorf("proto: wrong wireType = %d for field Patch", wireType)
916 for shift := uint(0); ; shift += 7 {
918 return ErrIntOverflowGenerated
921 return io.ErrUnexpectedEOF
925 byteLen |= (int(b) & 0x7F) << shift
931 return ErrInvalidLengthGenerated
933 postIndex := iNdEx + byteLen
935 return io.ErrUnexpectedEOF
937 m.Patch = append(m.Patch[:0], dAtA[iNdEx:postIndex]...)
944 return fmt.Errorf("proto: wrong wireType = %d for field PatchType", wireType)
947 for shift := uint(0); ; shift += 7 {
949 return ErrIntOverflowGenerated
952 return io.ErrUnexpectedEOF
956 stringLen |= (uint64(b) & 0x7F) << shift
961 intStringLen := int(stringLen)
962 if intStringLen < 0 {
963 return ErrInvalidLengthGenerated
965 postIndex := iNdEx + intStringLen
967 return io.ErrUnexpectedEOF
969 s := PatchType(dAtA[iNdEx:postIndex])
974 return fmt.Errorf("proto: wrong wireType = %d for field AuditAnnotations", wireType)
977 for shift := uint(0); ; shift += 7 {
979 return ErrIntOverflowGenerated
982 return io.ErrUnexpectedEOF
986 msglen |= (int(b) & 0x7F) << shift
992 return ErrInvalidLengthGenerated
994 postIndex := iNdEx + msglen
996 return io.ErrUnexpectedEOF
998 if m.AuditAnnotations == nil {
999 m.AuditAnnotations = make(map[string]string)
1003 for iNdEx < postIndex {
1004 entryPreIndex := iNdEx
1006 for shift := uint(0); ; shift += 7 {
1008 return ErrIntOverflowGenerated
1011 return io.ErrUnexpectedEOF
1015 wire |= (uint64(b) & 0x7F) << shift
1020 fieldNum := int32(wire >> 3)
1022 var stringLenmapkey uint64
1023 for shift := uint(0); ; shift += 7 {
1025 return ErrIntOverflowGenerated
1028 return io.ErrUnexpectedEOF
1032 stringLenmapkey |= (uint64(b) & 0x7F) << shift
1037 intStringLenmapkey := int(stringLenmapkey)
1038 if intStringLenmapkey < 0 {
1039 return ErrInvalidLengthGenerated
1041 postStringIndexmapkey := iNdEx + intStringLenmapkey
1042 if postStringIndexmapkey > l {
1043 return io.ErrUnexpectedEOF
1045 mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
1046 iNdEx = postStringIndexmapkey
1047 } else if fieldNum == 2 {
1048 var stringLenmapvalue uint64
1049 for shift := uint(0); ; shift += 7 {
1051 return ErrIntOverflowGenerated
1054 return io.ErrUnexpectedEOF
1058 stringLenmapvalue |= (uint64(b) & 0x7F) << shift
1063 intStringLenmapvalue := int(stringLenmapvalue)
1064 if intStringLenmapvalue < 0 {
1065 return ErrInvalidLengthGenerated
1067 postStringIndexmapvalue := iNdEx + intStringLenmapvalue
1068 if postStringIndexmapvalue > l {
1069 return io.ErrUnexpectedEOF
1071 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
1072 iNdEx = postStringIndexmapvalue
1074 iNdEx = entryPreIndex
1075 skippy, err := skipGenerated(dAtA[iNdEx:])
1080 return ErrInvalidLengthGenerated
1082 if (iNdEx + skippy) > postIndex {
1083 return io.ErrUnexpectedEOF
1088 m.AuditAnnotations[mapkey] = mapvalue
1092 skippy, err := skipGenerated(dAtA[iNdEx:])
1097 return ErrInvalidLengthGenerated
1099 if (iNdEx + skippy) > l {
1100 return io.ErrUnexpectedEOF
1107 return io.ErrUnexpectedEOF
1111 func (m *AdmissionReview) Unmarshal(dAtA []byte) error {
1117 for shift := uint(0); ; shift += 7 {
1119 return ErrIntOverflowGenerated
1122 return io.ErrUnexpectedEOF
1126 wire |= (uint64(b) & 0x7F) << shift
1131 fieldNum := int32(wire >> 3)
1132 wireType := int(wire & 0x7)
1134 return fmt.Errorf("proto: AdmissionReview: wiretype end group for non-group")
1137 return fmt.Errorf("proto: AdmissionReview: illegal tag %d (wire type %d)", fieldNum, wire)
1142 return fmt.Errorf("proto: wrong wireType = %d for field Request", wireType)
1145 for shift := uint(0); ; shift += 7 {
1147 return ErrIntOverflowGenerated
1150 return io.ErrUnexpectedEOF
1154 msglen |= (int(b) & 0x7F) << shift
1160 return ErrInvalidLengthGenerated
1162 postIndex := iNdEx + msglen
1164 return io.ErrUnexpectedEOF
1166 if m.Request == nil {
1167 m.Request = &AdmissionRequest{}
1169 if err := m.Request.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1175 return fmt.Errorf("proto: wrong wireType = %d for field Response", wireType)
1178 for shift := uint(0); ; shift += 7 {
1180 return ErrIntOverflowGenerated
1183 return io.ErrUnexpectedEOF
1187 msglen |= (int(b) & 0x7F) << shift
1193 return ErrInvalidLengthGenerated
1195 postIndex := iNdEx + msglen
1197 return io.ErrUnexpectedEOF
1199 if m.Response == nil {
1200 m.Response = &AdmissionResponse{}
1202 if err := m.Response.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
1208 skippy, err := skipGenerated(dAtA[iNdEx:])
1213 return ErrInvalidLengthGenerated
1215 if (iNdEx + skippy) > l {
1216 return io.ErrUnexpectedEOF
1223 return io.ErrUnexpectedEOF
1227 func skipGenerated(dAtA []byte) (n int, err error) {
1232 for shift := uint(0); ; shift += 7 {
1234 return 0, ErrIntOverflowGenerated
1237 return 0, io.ErrUnexpectedEOF
1241 wire |= (uint64(b) & 0x7F) << shift
1246 wireType := int(wire & 0x7)
1249 for shift := uint(0); ; shift += 7 {
1251 return 0, ErrIntOverflowGenerated
1254 return 0, io.ErrUnexpectedEOF
1257 if dAtA[iNdEx-1] < 0x80 {
1267 for shift := uint(0); ; shift += 7 {
1269 return 0, ErrIntOverflowGenerated
1272 return 0, io.ErrUnexpectedEOF
1276 length |= (int(b) & 0x7F) << shift
1283 return 0, ErrInvalidLengthGenerated
1288 var innerWire uint64
1289 var start int = iNdEx
1290 for shift := uint(0); ; shift += 7 {
1292 return 0, ErrIntOverflowGenerated
1295 return 0, io.ErrUnexpectedEOF
1299 innerWire |= (uint64(b) & 0x7F) << shift
1304 innerWireType := int(innerWire & 0x7)
1305 if innerWireType == 4 {
1308 next, err := skipGenerated(dAtA[start:])
1312 iNdEx = start + next
1321 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
1324 panic("unreachable")
1328 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
1329 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
1333 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admission/v1beta1/generated.proto", fileDescriptorGenerated)
1336 var fileDescriptorGenerated = []byte{
1337 // 821 bytes of a gzipped FileDescriptorProto
1338 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x6f, 0xe3, 0x44,
1339 0x14, 0x8e, 0x37, 0x69, 0x12, 0x4f, 0x2a, 0x36, 0x3b, 0x80, 0x64, 0x45, 0xc8, 0x09, 0x3d, 0xa0,
1340 0x20, 0x6d, 0xc7, 0xb4, 0x82, 0x55, 0xb5, 0xe2, 0x12, 0xd3, 0x08, 0x55, 0x48, 0xdb, 0x6a, 0x76,
1341 0x83, 0x80, 0x03, 0xd2, 0xc4, 0x9e, 0x4d, 0x4c, 0xe2, 0x19, 0xe3, 0x99, 0x49, 0xc9, 0x0d, 0x71,
1342 0xe5, 0x82, 0xc4, 0x9f, 0xc4, 0xa5, 0xc7, 0x3d, 0xee, 0x29, 0xa2, 0xe1, 0xbf, 0xe8, 0x09, 0x79,
1343 0x3c, 0x8e, 0x43, 0xba, 0x85, 0x5d, 0xb4, 0x27, 0xfb, 0xfd, 0xf8, 0xbe, 0x37, 0xf3, 0xbd, 0x37,
1344 0x0f, 0x0c, 0x67, 0x27, 0x02, 0x45, 0xdc, 0x9b, 0xa9, 0x31, 0x4d, 0x19, 0x95, 0x54, 0x78, 0x0b,
1345 0xca, 0x42, 0x9e, 0x7a, 0x26, 0x40, 0x92, 0xc8, 0x23, 0x61, 0x1c, 0x09, 0x11, 0x71, 0xe6, 0x2d,
1346 0x8e, 0xc6, 0x54, 0x92, 0x23, 0x6f, 0x42, 0x19, 0x4d, 0x89, 0xa4, 0x21, 0x4a, 0x52, 0x2e, 0x39,
1347 0xfc, 0x20, 0xcf, 0x46, 0x24, 0x89, 0xd0, 0x26, 0x1b, 0x99, 0xec, 0xce, 0xe1, 0x24, 0x92, 0x53,
1348 0x35, 0x46, 0x01, 0x8f, 0xbd, 0x09, 0x9f, 0x70, 0x4f, 0x83, 0xc6, 0xea, 0xb9, 0xb6, 0xb4, 0xa1,
1349 0xff, 0x72, 0xb2, 0xce, 0xc3, 0xed, 0xd2, 0x4a, 0x4e, 0x29, 0x93, 0x51, 0x40, 0x64, 0x5e, 0x7f,
1350 0xb7, 0x74, 0xe7, 0xd3, 0x32, 0x3b, 0x26, 0xc1, 0x34, 0x62, 0x34, 0x5d, 0x7a, 0xc9, 0x6c, 0x92,
1351 0x39, 0x84, 0x17, 0x53, 0x49, 0x5e, 0x85, 0xf2, 0xee, 0x42, 0xa5, 0x8a, 0xc9, 0x28, 0xa6, 0xb7,
1352 0x00, 0x8f, 0xfe, 0x0b, 0x20, 0x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, 0x98, 0x34, 0xfb, 0x49, 0x11, 0xc0, 0x65, 0x0e,
1364 0xfc, 0x1c, 0xd8, 0x3c, 0xc9, 0x1a, 0x17, 0x71, 0xe6, 0x34, 0x34, 0xc0, 0x2d, 0x00, 0xe7, 0x45,
1365 0xe0, 0x66, 0xdb, 0xc0, 0x25, 0x00, 0x3e, 0x03, 0x4d, 0x25, 0x68, 0x7a, 0xc6, 0x9e, 0x73, 0xa7,
1366 0xa9, 0x15, 0xfb, 0x08, 0x6d, 0xbf, 0x88, 0x7f, 0x0c, 0x71, 0xa6, 0xd4, 0xc8, 0x64, 0x97, 0xea,
1367 0x14, 0x1e, 0xbc, 0x61, 0x82, 0x23, 0x50, 0xe7, 0xe3, 0x1f, 0x68, 0x20, 0x1d, 0x5b, 0x73, 0x1e,
1368 0xde, 0xd9, 0x05, 0x33, 0x83, 0x08, 0x93, 0xcb, 0xe1, 0x4f, 0x92, 0xb2, 0xac, 0x01, 0xfe, 0x3b,
1369 0x86, 0xba, 0x7e, 0xae, 0x49, 0xb0, 0x21, 0x83, 0xdf, 0x03, 0x9b, 0xcf, 0xc3, 0xdc, 0xe9, 0x80,
1370 0xff, 0xc3, 0xbc, 0x91, 0xf2, 0xbc, 0xe0, 0xc1, 0x25, 0x25, 0x3c, 0x00, 0xf5, 0x30, 0x5d, 0x62,
1371 0xc5, 0x9c, 0x56, 0xcf, 0xea, 0x37, 0x7d, 0x90, 0x9d, 0xe1, 0x54, 0x7b, 0xb0, 0x89, 0x1c, 0xfc,
1372 0x52, 0x03, 0x0f, 0xb6, 0x5e, 0x85, 0x48, 0x38, 0x13, 0xf4, 0xad, 0x3c, 0x8b, 0x8f, 0x41, 0x83,
1373 0xcc, 0xe7, 0xfc, 0x92, 0xe6, 0x2f, 0xa3, 0xe9, 0xdf, 0x37, 0x3c, 0x8d, 0x41, 0xee, 0xc6, 0x45,
1374 0x1c, 0x5e, 0x80, 0xba, 0x90, 0x44, 0x2a, 0x61, 0xa6, 0xfc, 0xe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