blob: 1a87eaff7fe2527c090293cde6175dd7791ab642 [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/coordination/v1/generated.proto
19
20/*
21 Package v1 is a generated protocol buffer package.
22
23 It is generated from these files:
24 k8s.io/kubernetes/vendor/k8s.io/api/coordination/v1/generated.proto
25
26 It has these top-level messages:
27 Lease
28 LeaseList
29 LeaseSpec
30*/
31package v1
32
Scott Baker4a35a702019-11-26 08:17:33 -080033import (
34 fmt "fmt"
Zack Williamse940c7a2019-08-21 14:25:39 -070035
Scott Baker4a35a702019-11-26 08:17:33 -080036 proto "github.com/gogo/protobuf/proto"
Zack Williamse940c7a2019-08-21 14:25:39 -070037
Scott Baker4a35a702019-11-26 08:17:33 -080038 math "math"
Zack Williamse940c7a2019-08-21 14:25:39 -070039
Scott Baker4a35a702019-11-26 08:17:33 -080040 k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
41
42 strings "strings"
43
44 reflect "reflect"
45
46 io "io"
47)
Zack Williamse940c7a2019-08-21 14:25:39 -070048
49// Reference imports to suppress errors if they are not otherwise used.
50var _ = proto.Marshal
51var _ = fmt.Errorf
52var _ = math.Inf
53
54// This is a compile-time assertion to ensure that this generated file
55// is compatible with the proto package it is being compiled against.
56// A compilation error at this line likely means your copy of the
57// proto package needs to be updated.
58const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
59
60func (m *Lease) Reset() { *m = Lease{} }
61func (*Lease) ProtoMessage() {}
62func (*Lease) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} }
63
64func (m *LeaseList) Reset() { *m = LeaseList{} }
65func (*LeaseList) ProtoMessage() {}
66func (*LeaseList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} }
67
68func (m *LeaseSpec) Reset() { *m = LeaseSpec{} }
69func (*LeaseSpec) ProtoMessage() {}
70func (*LeaseSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} }
71
72func init() {
73 proto.RegisterType((*Lease)(nil), "k8s.io.api.coordination.v1.Lease")
74 proto.RegisterType((*LeaseList)(nil), "k8s.io.api.coordination.v1.LeaseList")
75 proto.RegisterType((*LeaseSpec)(nil), "k8s.io.api.coordination.v1.LeaseSpec")
76}
77func (m *Lease) Marshal() (dAtA []byte, err error) {
78 size := m.Size()
79 dAtA = make([]byte, size)
80 n, err := m.MarshalTo(dAtA)
81 if err != nil {
82 return nil, err
83 }
84 return dAtA[:n], nil
85}
86
87func (m *Lease) MarshalTo(dAtA []byte) (int, error) {
88 var i int
89 _ = i
90 var l int
91 _ = l
92 dAtA[i] = 0xa
93 i++
94 i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size()))
95 n1, err := m.ObjectMeta.MarshalTo(dAtA[i:])
96 if err != nil {
97 return 0, err
98 }
99 i += n1
100 dAtA[i] = 0x12
101 i++
102 i = encodeVarintGenerated(dAtA, i, uint64(m.Spec.Size()))
103 n2, err := m.Spec.MarshalTo(dAtA[i:])
104 if err != nil {
105 return 0, err
106 }
107 i += n2
108 return i, nil
109}
110
111func (m *LeaseList) Marshal() (dAtA []byte, err error) {
112 size := m.Size()
113 dAtA = make([]byte, size)
114 n, err := m.MarshalTo(dAtA)
115 if err != nil {
116 return nil, err
117 }
118 return dAtA[:n], nil
119}
120
121func (m *LeaseList) MarshalTo(dAtA []byte) (int, error) {
122 var i int
123 _ = i
124 var l int
125 _ = l
126 dAtA[i] = 0xa
127 i++
128 i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size()))
129 n3, err := m.ListMeta.MarshalTo(dAtA[i:])
130 if err != nil {
131 return 0, err
132 }
133 i += n3
134 if len(m.Items) > 0 {
135 for _, msg := range m.Items {
136 dAtA[i] = 0x12
137 i++
138 i = encodeVarintGenerated(dAtA, i, uint64(msg.Size()))
139 n, err := msg.MarshalTo(dAtA[i:])
140 if err != nil {
141 return 0, err
142 }
143 i += n
144 }
145 }
146 return i, nil
147}
148
149func (m *LeaseSpec) Marshal() (dAtA []byte, err error) {
150 size := m.Size()
151 dAtA = make([]byte, size)
152 n, err := m.MarshalTo(dAtA)
153 if err != nil {
154 return nil, err
155 }
156 return dAtA[:n], nil
157}
158
159func (m *LeaseSpec) MarshalTo(dAtA []byte) (int, error) {
160 var i int
161 _ = i
162 var l int
163 _ = l
164 if m.HolderIdentity != nil {
165 dAtA[i] = 0xa
166 i++
167 i = encodeVarintGenerated(dAtA, i, uint64(len(*m.HolderIdentity)))
168 i += copy(dAtA[i:], *m.HolderIdentity)
169 }
170 if m.LeaseDurationSeconds != nil {
171 dAtA[i] = 0x10
172 i++
173 i = encodeVarintGenerated(dAtA, i, uint64(*m.LeaseDurationSeconds))
174 }
175 if m.AcquireTime != nil {
176 dAtA[i] = 0x1a
177 i++
178 i = encodeVarintGenerated(dAtA, i, uint64(m.AcquireTime.Size()))
179 n4, err := m.AcquireTime.MarshalTo(dAtA[i:])
180 if err != nil {
181 return 0, err
182 }
183 i += n4
184 }
185 if m.RenewTime != nil {
186 dAtA[i] = 0x22
187 i++
188 i = encodeVarintGenerated(dAtA, i, uint64(m.RenewTime.Size()))
189 n5, err := m.RenewTime.MarshalTo(dAtA[i:])
190 if err != nil {
191 return 0, err
192 }
193 i += n5
194 }
195 if m.LeaseTransitions != nil {
196 dAtA[i] = 0x28
197 i++
198 i = encodeVarintGenerated(dAtA, i, uint64(*m.LeaseTransitions))
199 }
200 return i, nil
201}
202
203func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
204 for v >= 1<<7 {
205 dAtA[offset] = uint8(v&0x7f | 0x80)
206 v >>= 7
207 offset++
208 }
209 dAtA[offset] = uint8(v)
210 return offset + 1
211}
212func (m *Lease) Size() (n int) {
213 var l int
214 _ = l
215 l = m.ObjectMeta.Size()
216 n += 1 + l + sovGenerated(uint64(l))
217 l = m.Spec.Size()
218 n += 1 + l + sovGenerated(uint64(l))
219 return n
220}
221
222func (m *LeaseList) Size() (n int) {
223 var l int
224 _ = l
225 l = m.ListMeta.Size()
226 n += 1 + l + sovGenerated(uint64(l))
227 if len(m.Items) > 0 {
228 for _, e := range m.Items {
229 l = e.Size()
230 n += 1 + l + sovGenerated(uint64(l))
231 }
232 }
233 return n
234}
235
236func (m *LeaseSpec) Size() (n int) {
237 var l int
238 _ = l
239 if m.HolderIdentity != nil {
240 l = len(*m.HolderIdentity)
241 n += 1 + l + sovGenerated(uint64(l))
242 }
243 if m.LeaseDurationSeconds != nil {
244 n += 1 + sovGenerated(uint64(*m.LeaseDurationSeconds))
245 }
246 if m.AcquireTime != nil {
247 l = m.AcquireTime.Size()
248 n += 1 + l + sovGenerated(uint64(l))
249 }
250 if m.RenewTime != nil {
251 l = m.RenewTime.Size()
252 n += 1 + l + sovGenerated(uint64(l))
253 }
254 if m.LeaseTransitions != nil {
255 n += 1 + sovGenerated(uint64(*m.LeaseTransitions))
256 }
257 return n
258}
259
260func sovGenerated(x uint64) (n int) {
261 for {
262 n++
263 x >>= 7
264 if x == 0 {
265 break
266 }
267 }
268 return n
269}
270func sozGenerated(x uint64) (n int) {
271 return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
272}
273func (this *Lease) String() string {
274 if this == nil {
275 return "nil"
276 }
277 s := strings.Join([]string{`&Lease{`,
278 `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
279 `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "LeaseSpec", "LeaseSpec", 1), `&`, ``, 1) + `,`,
280 `}`,
281 }, "")
282 return s
283}
284func (this *LeaseList) String() string {
285 if this == nil {
286 return "nil"
287 }
288 s := strings.Join([]string{`&LeaseList{`,
289 `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`,
290 `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "Lease", "Lease", 1), `&`, ``, 1) + `,`,
291 `}`,
292 }, "")
293 return s
294}
295func (this *LeaseSpec) String() string {
296 if this == nil {
297 return "nil"
298 }
299 s := strings.Join([]string{`&LeaseSpec{`,
300 `HolderIdentity:` + valueToStringGenerated(this.HolderIdentity) + `,`,
301 `LeaseDurationSeconds:` + valueToStringGenerated(this.LeaseDurationSeconds) + `,`,
302 `AcquireTime:` + strings.Replace(fmt.Sprintf("%v", this.AcquireTime), "MicroTime", "k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime", 1) + `,`,
303 `RenewTime:` + strings.Replace(fmt.Sprintf("%v", this.RenewTime), "MicroTime", "k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime", 1) + `,`,
304 `LeaseTransitions:` + valueToStringGenerated(this.LeaseTransitions) + `,`,
305 `}`,
306 }, "")
307 return s
308}
309func valueToStringGenerated(v interface{}) string {
310 rv := reflect.ValueOf(v)
311 if rv.IsNil() {
312 return "nil"
313 }
314 pv := reflect.Indirect(rv).Interface()
315 return fmt.Sprintf("*%v", pv)
316}
317func (m *Lease) Unmarshal(dAtA []byte) error {
318 l := len(dAtA)
319 iNdEx := 0
320 for iNdEx < l {
321 preIndex := iNdEx
322 var wire uint64
323 for shift := uint(0); ; shift += 7 {
324 if shift >= 64 {
325 return ErrIntOverflowGenerated
326 }
327 if iNdEx >= l {
328 return io.ErrUnexpectedEOF
329 }
330 b := dAtA[iNdEx]
331 iNdEx++
332 wire |= (uint64(b) & 0x7F) << shift
333 if b < 0x80 {
334 break
335 }
336 }
337 fieldNum := int32(wire >> 3)
338 wireType := int(wire & 0x7)
339 if wireType == 4 {
340 return fmt.Errorf("proto: Lease: wiretype end group for non-group")
341 }
342 if fieldNum <= 0 {
343 return fmt.Errorf("proto: Lease: illegal tag %d (wire type %d)", fieldNum, wire)
344 }
345 switch fieldNum {
346 case 1:
347 if wireType != 2 {
348 return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType)
349 }
350 var msglen int
351 for shift := uint(0); ; shift += 7 {
352 if shift >= 64 {
353 return ErrIntOverflowGenerated
354 }
355 if iNdEx >= l {
356 return io.ErrUnexpectedEOF
357 }
358 b := dAtA[iNdEx]
359 iNdEx++
360 msglen |= (int(b) & 0x7F) << shift
361 if b < 0x80 {
362 break
363 }
364 }
365 if msglen < 0 {
366 return ErrInvalidLengthGenerated
367 }
368 postIndex := iNdEx + msglen
369 if postIndex > l {
370 return io.ErrUnexpectedEOF
371 }
372 if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
373 return err
374 }
375 iNdEx = postIndex
376 case 2:
377 if wireType != 2 {
378 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType)
379 }
380 var msglen int
381 for shift := uint(0); ; shift += 7 {
382 if shift >= 64 {
383 return ErrIntOverflowGenerated
384 }
385 if iNdEx >= l {
386 return io.ErrUnexpectedEOF
387 }
388 b := dAtA[iNdEx]
389 iNdEx++
390 msglen |= (int(b) & 0x7F) << shift
391 if b < 0x80 {
392 break
393 }
394 }
395 if msglen < 0 {
396 return ErrInvalidLengthGenerated
397 }
398 postIndex := iNdEx + msglen
399 if postIndex > l {
400 return io.ErrUnexpectedEOF
401 }
402 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
403 return err
404 }
405 iNdEx = postIndex
406 default:
407 iNdEx = preIndex
408 skippy, err := skipGenerated(dAtA[iNdEx:])
409 if err != nil {
410 return err
411 }
412 if skippy < 0 {
413 return ErrInvalidLengthGenerated
414 }
415 if (iNdEx + skippy) > l {
416 return io.ErrUnexpectedEOF
417 }
418 iNdEx += skippy
419 }
420 }
421
422 if iNdEx > l {
423 return io.ErrUnexpectedEOF
424 }
425 return nil
426}
427func (m *LeaseList) Unmarshal(dAtA []byte) error {
428 l := len(dAtA)
429 iNdEx := 0
430 for iNdEx < l {
431 preIndex := iNdEx
432 var wire uint64
433 for shift := uint(0); ; shift += 7 {
434 if shift >= 64 {
435 return ErrIntOverflowGenerated
436 }
437 if iNdEx >= l {
438 return io.ErrUnexpectedEOF
439 }
440 b := dAtA[iNdEx]
441 iNdEx++
442 wire |= (uint64(b) & 0x7F) << shift
443 if b < 0x80 {
444 break
445 }
446 }
447 fieldNum := int32(wire >> 3)
448 wireType := int(wire & 0x7)
449 if wireType == 4 {
450 return fmt.Errorf("proto: LeaseList: wiretype end group for non-group")
451 }
452 if fieldNum <= 0 {
453 return fmt.Errorf("proto: LeaseList: illegal tag %d (wire type %d)", fieldNum, wire)
454 }
455 switch fieldNum {
456 case 1:
457 if wireType != 2 {
458 return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType)
459 }
460 var msglen int
461 for shift := uint(0); ; shift += 7 {
462 if shift >= 64 {
463 return ErrIntOverflowGenerated
464 }
465 if iNdEx >= l {
466 return io.ErrUnexpectedEOF
467 }
468 b := dAtA[iNdEx]
469 iNdEx++
470 msglen |= (int(b) & 0x7F) << shift
471 if b < 0x80 {
472 break
473 }
474 }
475 if msglen < 0 {
476 return ErrInvalidLengthGenerated
477 }
478 postIndex := iNdEx + msglen
479 if postIndex > l {
480 return io.ErrUnexpectedEOF
481 }
482 if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
483 return err
484 }
485 iNdEx = postIndex
486 case 2:
487 if wireType != 2 {
488 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
489 }
490 var msglen int
491 for shift := uint(0); ; shift += 7 {
492 if shift >= 64 {
493 return ErrIntOverflowGenerated
494 }
495 if iNdEx >= l {
496 return io.ErrUnexpectedEOF
497 }
498 b := dAtA[iNdEx]
499 iNdEx++
500 msglen |= (int(b) & 0x7F) << shift
501 if b < 0x80 {
502 break
503 }
504 }
505 if msglen < 0 {
506 return ErrInvalidLengthGenerated
507 }
508 postIndex := iNdEx + msglen
509 if postIndex > l {
510 return io.ErrUnexpectedEOF
511 }
512 m.Items = append(m.Items, Lease{})
513 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
514 return err
515 }
516 iNdEx = postIndex
517 default:
518 iNdEx = preIndex
519 skippy, err := skipGenerated(dAtA[iNdEx:])
520 if err != nil {
521 return err
522 }
523 if skippy < 0 {
524 return ErrInvalidLengthGenerated
525 }
526 if (iNdEx + skippy) > l {
527 return io.ErrUnexpectedEOF
528 }
529 iNdEx += skippy
530 }
531 }
532
533 if iNdEx > l {
534 return io.ErrUnexpectedEOF
535 }
536 return nil
537}
538func (m *LeaseSpec) Unmarshal(dAtA []byte) error {
539 l := len(dAtA)
540 iNdEx := 0
541 for iNdEx < l {
542 preIndex := iNdEx
543 var wire uint64
544 for shift := uint(0); ; shift += 7 {
545 if shift >= 64 {
546 return ErrIntOverflowGenerated
547 }
548 if iNdEx >= l {
549 return io.ErrUnexpectedEOF
550 }
551 b := dAtA[iNdEx]
552 iNdEx++
553 wire |= (uint64(b) & 0x7F) << shift
554 if b < 0x80 {
555 break
556 }
557 }
558 fieldNum := int32(wire >> 3)
559 wireType := int(wire & 0x7)
560 if wireType == 4 {
561 return fmt.Errorf("proto: LeaseSpec: wiretype end group for non-group")
562 }
563 if fieldNum <= 0 {
564 return fmt.Errorf("proto: LeaseSpec: illegal tag %d (wire type %d)", fieldNum, wire)
565 }
566 switch fieldNum {
567 case 1:
568 if wireType != 2 {
569 return fmt.Errorf("proto: wrong wireType = %d for field HolderIdentity", wireType)
570 }
571 var stringLen uint64
572 for shift := uint(0); ; shift += 7 {
573 if shift >= 64 {
574 return ErrIntOverflowGenerated
575 }
576 if iNdEx >= l {
577 return io.ErrUnexpectedEOF
578 }
579 b := dAtA[iNdEx]
580 iNdEx++
581 stringLen |= (uint64(b) & 0x7F) << shift
582 if b < 0x80 {
583 break
584 }
585 }
586 intStringLen := int(stringLen)
587 if intStringLen < 0 {
588 return ErrInvalidLengthGenerated
589 }
590 postIndex := iNdEx + intStringLen
591 if postIndex > l {
592 return io.ErrUnexpectedEOF
593 }
594 s := string(dAtA[iNdEx:postIndex])
595 m.HolderIdentity = &s
596 iNdEx = postIndex
597 case 2:
598 if wireType != 0 {
599 return fmt.Errorf("proto: wrong wireType = %d for field LeaseDurationSeconds", wireType)
600 }
601 var v int32
602 for shift := uint(0); ; shift += 7 {
603 if shift >= 64 {
604 return ErrIntOverflowGenerated
605 }
606 if iNdEx >= l {
607 return io.ErrUnexpectedEOF
608 }
609 b := dAtA[iNdEx]
610 iNdEx++
611 v |= (int32(b) & 0x7F) << shift
612 if b < 0x80 {
613 break
614 }
615 }
616 m.LeaseDurationSeconds = &v
617 case 3:
618 if wireType != 2 {
619 return fmt.Errorf("proto: wrong wireType = %d for field AcquireTime", wireType)
620 }
621 var msglen int
622 for shift := uint(0); ; shift += 7 {
623 if shift >= 64 {
624 return ErrIntOverflowGenerated
625 }
626 if iNdEx >= l {
627 return io.ErrUnexpectedEOF
628 }
629 b := dAtA[iNdEx]
630 iNdEx++
631 msglen |= (int(b) & 0x7F) << shift
632 if b < 0x80 {
633 break
634 }
635 }
636 if msglen < 0 {
637 return ErrInvalidLengthGenerated
638 }
639 postIndex := iNdEx + msglen
640 if postIndex > l {
641 return io.ErrUnexpectedEOF
642 }
643 if m.AcquireTime == nil {
644 m.AcquireTime = &k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime{}
645 }
646 if err := m.AcquireTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
647 return err
648 }
649 iNdEx = postIndex
650 case 4:
651 if wireType != 2 {
652 return fmt.Errorf("proto: wrong wireType = %d for field RenewTime", wireType)
653 }
654 var msglen int
655 for shift := uint(0); ; shift += 7 {
656 if shift >= 64 {
657 return ErrIntOverflowGenerated
658 }
659 if iNdEx >= l {
660 return io.ErrUnexpectedEOF
661 }
662 b := dAtA[iNdEx]
663 iNdEx++
664 msglen |= (int(b) & 0x7F) << shift
665 if b < 0x80 {
666 break
667 }
668 }
669 if msglen < 0 {
670 return ErrInvalidLengthGenerated
671 }
672 postIndex := iNdEx + msglen
673 if postIndex > l {
674 return io.ErrUnexpectedEOF
675 }
676 if m.RenewTime == nil {
677 m.RenewTime = &k8s_io_apimachinery_pkg_apis_meta_v1.MicroTime{}
678 }
679 if err := m.RenewTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
680 return err
681 }
682 iNdEx = postIndex
683 case 5:
684 if wireType != 0 {
685 return fmt.Errorf("proto: wrong wireType = %d for field LeaseTransitions", wireType)
686 }
687 var v int32
688 for shift := uint(0); ; shift += 7 {
689 if shift >= 64 {
690 return ErrIntOverflowGenerated
691 }
692 if iNdEx >= l {
693 return io.ErrUnexpectedEOF
694 }
695 b := dAtA[iNdEx]
696 iNdEx++
697 v |= (int32(b) & 0x7F) << shift
698 if b < 0x80 {
699 break
700 }
701 }
702 m.LeaseTransitions = &v
703 default:
704 iNdEx = preIndex
705 skippy, err := skipGenerated(dAtA[iNdEx:])
706 if err != nil {
707 return err
708 }
709 if skippy < 0 {
710 return ErrInvalidLengthGenerated
711 }
712 if (iNdEx + skippy) > l {
713 return io.ErrUnexpectedEOF
714 }
715 iNdEx += skippy
716 }
717 }
718
719 if iNdEx > l {
720 return io.ErrUnexpectedEOF
721 }
722 return nil
723}
724func skipGenerated(dAtA []byte) (n int, err error) {
725 l := len(dAtA)
726 iNdEx := 0
727 for iNdEx < l {
728 var wire uint64
729 for shift := uint(0); ; shift += 7 {
730 if shift >= 64 {
731 return 0, ErrIntOverflowGenerated
732 }
733 if iNdEx >= l {
734 return 0, io.ErrUnexpectedEOF
735 }
736 b := dAtA[iNdEx]
737 iNdEx++
738 wire |= (uint64(b) & 0x7F) << shift
739 if b < 0x80 {
740 break
741 }
742 }
743 wireType := int(wire & 0x7)
744 switch wireType {
745 case 0:
746 for shift := uint(0); ; shift += 7 {
747 if shift >= 64 {
748 return 0, ErrIntOverflowGenerated
749 }
750 if iNdEx >= l {
751 return 0, io.ErrUnexpectedEOF
752 }
753 iNdEx++
754 if dAtA[iNdEx-1] < 0x80 {
755 break
756 }
757 }
758 return iNdEx, nil
759 case 1:
760 iNdEx += 8
761 return iNdEx, nil
762 case 2:
763 var length int
764 for shift := uint(0); ; shift += 7 {
765 if shift >= 64 {
766 return 0, ErrIntOverflowGenerated
767 }
768 if iNdEx >= l {
769 return 0, io.ErrUnexpectedEOF
770 }
771 b := dAtA[iNdEx]
772 iNdEx++
773 length |= (int(b) & 0x7F) << shift
774 if b < 0x80 {
775 break
776 }
777 }
778 iNdEx += length
779 if length < 0 {
780 return 0, ErrInvalidLengthGenerated
781 }
782 return iNdEx, nil
783 case 3:
784 for {
785 var innerWire uint64
786 var start int = iNdEx
787 for shift := uint(0); ; shift += 7 {
788 if shift >= 64 {
789 return 0, ErrIntOverflowGenerated
790 }
791 if iNdEx >= l {
792 return 0, io.ErrUnexpectedEOF
793 }
794 b := dAtA[iNdEx]
795 iNdEx++
796 innerWire |= (uint64(b) & 0x7F) << shift
797 if b < 0x80 {
798 break
799 }
800 }
801 innerWireType := int(innerWire & 0x7)
802 if innerWireType == 4 {
803 break
804 }
805 next, err := skipGenerated(dAtA[start:])
806 if err != nil {
807 return 0, err
808 }
809 iNdEx = start + next
810 }
811 return iNdEx, nil
812 case 4:
813 return iNdEx, nil
814 case 5:
815 iNdEx += 4
816 return iNdEx, nil
817 default:
818 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
819 }
820 }
821 panic("unreachable")
822}
823
824var (
825 ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
826 ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
827)
828
829func init() {
830 proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/coordination/v1/generated.proto", fileDescriptorGenerated)
831}
832
833var fileDescriptorGenerated = []byte{
834 // 535 bytes of a gzipped FileDescriptorProto
835 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x90, 0xc1, 0x6e, 0xd3, 0x40,
836 0x10, 0x86, 0xe3, 0x36, 0x91, 0x9a, 0x0d, 0x2d, 0x91, 0x95, 0x83, 0x95, 0x83, 0x5d, 0x22, 0x21,
837 0xe5, 0xc2, 0x2e, 0xa9, 0x10, 0x42, 0x9c, 0xc0, 0x20, 0xa0, 0x52, 0x2a, 0x24, 0xb7, 0x27, 0xd4,
838 0x03, 0x1b, 0x7b, 0x70, 0x96, 0xd4, 0x5e, 0xb3, 0xbb, 0x0e, 0xea, 0x8d, 0x47, 0xe0, 0xca, 0x63,
839 0xc0, 0x53, 0xe4, 0xd8, 0x63, 0x4f, 0x16, 0x31, 0x2f, 0x82, 0x76, 0x93, 0x36, 0x21, 0x49, 0xd5,
840 0x8a, 0xdb, 0xee, 0xcc, 0xfc, 0xdf, 0xfc, 0xf3, 0xa3, 0x57, 0xa3, 0x67, 0x12, 0x33, 0x4e, 0x46,
841 0xf9, 0x00, 0x44, 0x0a, 0x0a, 0x24, 0x19, 0x43, 0x1a, 0x71, 0x41, 0xe6, 0x0d, 0x9a, 0x31, 0x12,
842 0x72, 0x2e, 0x22, 0x96, 0x52, 0xc5, 0x78, 0x4a, 0xc6, 0x3d, 0x12, 0x43, 0x0a, 0x82, 0x2a, 0x88,
843 0x70, 0x26, 0xb8, 0xe2, 0x76, 0x7b, 0x36, 0x8b, 0x69, 0xc6, 0xf0, 0xf2, 0x2c, 0x1e, 0xf7, 0xda,
844 0x8f, 0x62, 0xa6, 0x86, 0xf9, 0x00, 0x87, 0x3c, 0x21, 0x31, 0x8f, 0x39, 0x31, 0x92, 0x41, 0xfe,
845 0xc9, 0xfc, 0xcc, 0xc7, 0xbc, 0x66, 0xa8, 0xf6, 0x93, 0xc5, 0xda, 0x84, 0x86, 0x43, 0x96, 0x82,
846 0x38, 0x27, 0xd9, 0x28, 0xd6, 0x05, 0x49, 0x12, 0x50, 0x74, 0x83, 0x81, 0x36, 0xb9, 0x49, 0x25,
847 0xf2, 0x54, 0xb1, 0x04, 0xd6, 0x04, 0x4f, 0x6f, 0x13, 0xc8, 0x70, 0x08, 0x09, 0x5d, 0xd5, 0x75,
848 0x7e, 0x59, 0xa8, 0xd6, 0x07, 0x2a, 0xc1, 0xfe, 0x88, 0x76, 0xb4, 0x9b, 0x88, 0x2a, 0xea, 0x58,
849 0xfb, 0x56, 0xb7, 0x71, 0xf0, 0x18, 0x2f, 0x62, 0xb8, 0x86, 0xe2, 0x6c, 0x14, 0xeb, 0x82, 0xc4,
850 0x7a, 0x1a, 0x8f, 0x7b, 0xf8, 0xfd, 0xe0, 0x33, 0x84, 0xea, 0x08, 0x14, 0xf5, 0xed, 0x49, 0xe1,
851 0x55, 0xca, 0xc2, 0x43, 0x8b, 0x5a, 0x70, 0x4d, 0xb5, 0xdf, 0xa2, 0xaa, 0xcc, 0x20, 0x74, 0xb6,
852 0x0c, 0xfd, 0x21, 0xbe, 0x39, 0x64, 0x6c, 0x2c, 0x1d, 0x67, 0x10, 0xfa, 0xf7, 0xe6, 0xc8, 0xaa,
853 0xfe, 0x05, 0x06, 0xd0, 0xf9, 0x69, 0xa1, 0xba, 0x99, 0xe8, 0x33, 0xa9, 0xec, 0xd3, 0x35, 0xe3,
854 0xf8, 0x6e, 0xc6, 0xb5, 0xda, 0xd8, 0x6e, 0xce, 0x77, 0xec, 0x5c, 0x55, 0x96, 0x4c, 0xbf, 0x41,
855 0x35, 0xa6, 0x20, 0x91, 0xce, 0xd6, 0xfe, 0x76, 0xb7, 0x71, 0xf0, 0xe0, 0x56, 0xd7, 0xfe, 0xee,
856 0x9c, 0x56, 0x3b, 0xd4, 0xba, 0x60, 0x26, 0xef, 0xfc, 0xd8, 0x9e, 0x7b, 0xd6, 0x77, 0xd8, 0xcf,
857 0xd1, 0xde, 0x90, 0x9f, 0x45, 0x20, 0x0e, 0x23, 0x48, 0x15, 0x53, 0xe7, 0xc6, 0x79, 0xdd, 0xb7,
858 0xcb, 0xc2, 0xdb, 0x7b, 0xf7, 0x4f, 0x27, 0x58, 0x99, 0xb4, 0xfb, 0xa8, 0x75, 0xa6, 0x41, 0xaf,
859 0x73, 0x61, 0x36, 0x1f, 0x43, 0xc8, 0xd3, 0x48, 0x9a, 0x58, 0x6b, 0xbe, 0x53, 0x16, 0x5e, 0xab,
860 0xbf, 0xa1, 0x1f, 0x6c, 0x54, 0xd9, 0x03, 0xd4, 0xa0, 0xe1, 0x97, 0x9c, 0x09, 0x38, 0x61, 0x09,
861 0x38, 0xdb, 0x26, 0x40, 0x72, 0xb7, 0x00, 0x8f, 0x58, 0x28, 0xb8, 0x96, 0xf9, 0xf7, 0xcb, 0xc2,
862 0x6b, 0xbc, 0x5c, 0x70, 0x82, 0x65, 0xa8, 0x7d, 0x8a, 0xea, 0x02, 0x52, 0xf8, 0x6a, 0x36, 0x54,
863 0xff, 0x6f, 0xc3, 0x6e, 0x59, 0x78, 0xf5, 0xe0, 0x8a, 0x12, 0x2c, 0x80, 0xf6, 0x0b, 0xd4, 0x34,
864 0x97, 0x9d, 0x08, 0x9a, 0x4a, 0xa6, 0x6f, 0x93, 0x4e, 0xcd, 0x64, 0xd1, 0x2a, 0x0b, 0xaf, 0xd9,
865 0x5f, 0xe9, 0x05, 0x6b, 0xd3, 0x7e, 0x77, 0x32, 0x75, 0x2b, 0x17, 0x53, 0xb7, 0x72, 0x39, 0x75,
866 0x2b, 0xdf, 0x4a, 0xd7, 0x9a, 0x94, 0xae, 0x75, 0x51, 0xba, 0xd6, 0x65, 0xe9, 0x5a, 0xbf, 0x4b,
867 0xd7, 0xfa, 0xfe, 0xc7, 0xad, 0x7c, 0xd8, 0x1a, 0xf7, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, 0x41,
868 0x5e, 0x94, 0x96, 0x5e, 0x04, 0x00, 0x00,
869}