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