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