blob: 433f0aad1d3efa9a145a571989426ba69475ba38 [file] [log] [blame]
khenaidoo26721882021-08-11 17:42:52 -04001// Code generated by protoc-gen-gogo. DO NOT EDIT.
2// source: lease.proto
3
4package leasepb
5
6import (
7 fmt "fmt"
8 io "io"
9 math "math"
10 math_bits "math/bits"
11
12 etcdserverpb "github.com/coreos/etcd/etcdserver/etcdserverpb"
13 _ "github.com/gogo/protobuf/gogoproto"
14 proto "github.com/golang/protobuf/proto"
15)
16
17// Reference imports to suppress errors if they are not otherwise used.
18var _ = proto.Marshal
19var _ = fmt.Errorf
20var _ = math.Inf
21
22// This is a compile-time assertion to ensure that this generated file
23// is compatible with the proto package it is being compiled against.
24// A compilation error at this line likely means your copy of the
25// proto package needs to be updated.
26const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
27
28type Lease struct {
29 ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
30 TTL int64 `protobuf:"varint,2,opt,name=TTL,proto3" json:"TTL,omitempty"`
31 XXX_NoUnkeyedLiteral struct{} `json:"-"`
32 XXX_unrecognized []byte `json:"-"`
33 XXX_sizecache int32 `json:"-"`
34}
35
36func (m *Lease) Reset() { *m = Lease{} }
37func (m *Lease) String() string { return proto.CompactTextString(m) }
38func (*Lease) ProtoMessage() {}
39func (*Lease) Descriptor() ([]byte, []int) {
40 return fileDescriptor_3dd57e402472b33a, []int{0}
41}
42func (m *Lease) XXX_Unmarshal(b []byte) error {
43 return m.Unmarshal(b)
44}
45func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
46 if deterministic {
47 return xxx_messageInfo_Lease.Marshal(b, m, deterministic)
48 } else {
49 b = b[:cap(b)]
50 n, err := m.MarshalToSizedBuffer(b)
51 if err != nil {
52 return nil, err
53 }
54 return b[:n], nil
55 }
56}
57func (m *Lease) XXX_Merge(src proto.Message) {
58 xxx_messageInfo_Lease.Merge(m, src)
59}
60func (m *Lease) XXX_Size() int {
61 return m.Size()
62}
63func (m *Lease) XXX_DiscardUnknown() {
64 xxx_messageInfo_Lease.DiscardUnknown(m)
65}
66
67var xxx_messageInfo_Lease proto.InternalMessageInfo
68
69type LeaseInternalRequest struct {
70 LeaseTimeToLiveRequest *etcdserverpb.LeaseTimeToLiveRequest `protobuf:"bytes,1,opt,name=LeaseTimeToLiveRequest,proto3" json:"LeaseTimeToLiveRequest,omitempty"`
71 XXX_NoUnkeyedLiteral struct{} `json:"-"`
72 XXX_unrecognized []byte `json:"-"`
73 XXX_sizecache int32 `json:"-"`
74}
75
76func (m *LeaseInternalRequest) Reset() { *m = LeaseInternalRequest{} }
77func (m *LeaseInternalRequest) String() string { return proto.CompactTextString(m) }
78func (*LeaseInternalRequest) ProtoMessage() {}
79func (*LeaseInternalRequest) Descriptor() ([]byte, []int) {
80 return fileDescriptor_3dd57e402472b33a, []int{1}
81}
82func (m *LeaseInternalRequest) XXX_Unmarshal(b []byte) error {
83 return m.Unmarshal(b)
84}
85func (m *LeaseInternalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
86 if deterministic {
87 return xxx_messageInfo_LeaseInternalRequest.Marshal(b, m, deterministic)
88 } else {
89 b = b[:cap(b)]
90 n, err := m.MarshalToSizedBuffer(b)
91 if err != nil {
92 return nil, err
93 }
94 return b[:n], nil
95 }
96}
97func (m *LeaseInternalRequest) XXX_Merge(src proto.Message) {
98 xxx_messageInfo_LeaseInternalRequest.Merge(m, src)
99}
100func (m *LeaseInternalRequest) XXX_Size() int {
101 return m.Size()
102}
103func (m *LeaseInternalRequest) XXX_DiscardUnknown() {
104 xxx_messageInfo_LeaseInternalRequest.DiscardUnknown(m)
105}
106
107var xxx_messageInfo_LeaseInternalRequest proto.InternalMessageInfo
108
109type LeaseInternalResponse struct {
110 LeaseTimeToLiveResponse *etcdserverpb.LeaseTimeToLiveResponse `protobuf:"bytes,1,opt,name=LeaseTimeToLiveResponse,proto3" json:"LeaseTimeToLiveResponse,omitempty"`
111 XXX_NoUnkeyedLiteral struct{} `json:"-"`
112 XXX_unrecognized []byte `json:"-"`
113 XXX_sizecache int32 `json:"-"`
114}
115
116func (m *LeaseInternalResponse) Reset() { *m = LeaseInternalResponse{} }
117func (m *LeaseInternalResponse) String() string { return proto.CompactTextString(m) }
118func (*LeaseInternalResponse) ProtoMessage() {}
119func (*LeaseInternalResponse) Descriptor() ([]byte, []int) {
120 return fileDescriptor_3dd57e402472b33a, []int{2}
121}
122func (m *LeaseInternalResponse) XXX_Unmarshal(b []byte) error {
123 return m.Unmarshal(b)
124}
125func (m *LeaseInternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
126 if deterministic {
127 return xxx_messageInfo_LeaseInternalResponse.Marshal(b, m, deterministic)
128 } else {
129 b = b[:cap(b)]
130 n, err := m.MarshalToSizedBuffer(b)
131 if err != nil {
132 return nil, err
133 }
134 return b[:n], nil
135 }
136}
137func (m *LeaseInternalResponse) XXX_Merge(src proto.Message) {
138 xxx_messageInfo_LeaseInternalResponse.Merge(m, src)
139}
140func (m *LeaseInternalResponse) XXX_Size() int {
141 return m.Size()
142}
143func (m *LeaseInternalResponse) XXX_DiscardUnknown() {
144 xxx_messageInfo_LeaseInternalResponse.DiscardUnknown(m)
145}
146
147var xxx_messageInfo_LeaseInternalResponse proto.InternalMessageInfo
148
149func init() {
150 proto.RegisterType((*Lease)(nil), "leasepb.Lease")
151 proto.RegisterType((*LeaseInternalRequest)(nil), "leasepb.LeaseInternalRequest")
152 proto.RegisterType((*LeaseInternalResponse)(nil), "leasepb.LeaseInternalResponse")
153}
154
155func init() { proto.RegisterFile("lease.proto", fileDescriptor_3dd57e402472b33a) }
156
157var fileDescriptor_3dd57e402472b33a = []byte{
158 // 233 bytes of a gzipped FileDescriptorProto
159 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xce, 0x49, 0x4d, 0x2c,
160 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x07, 0x73, 0x0a, 0x92, 0xa4, 0x44, 0xd2,
161 0xf3, 0xd3, 0xf3, 0xc1, 0x62, 0xfa, 0x20, 0x16, 0x44, 0x5a, 0x4a, 0x2d, 0xb5, 0x24, 0x39, 0x45,
162 0x1f, 0x44, 0x14, 0xa7, 0x16, 0x95, 0xa5, 0x16, 0x21, 0x31, 0x0b, 0x92, 0xf4, 0x8b, 0x0a, 0x92,
163 0x21, 0xea, 0x94, 0x34, 0xb9, 0x58, 0x7d, 0x40, 0x06, 0x09, 0xf1, 0x71, 0x31, 0x79, 0xba, 0x48,
164 0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0x31, 0x79, 0xba, 0x08, 0x09, 0x70, 0x31, 0x87, 0x84, 0xf8,
165 0x48, 0x30, 0x81, 0x05, 0x40, 0x4c, 0xa5, 0x12, 0x2e, 0x11, 0xb0, 0x52, 0xcf, 0xbc, 0x92, 0xd4,
166 0xa2, 0xbc, 0xc4, 0x9c, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12, 0xa1, 0x18, 0x2e, 0x31, 0xb0,
167 0x78, 0x48, 0x66, 0x6e, 0x6a, 0x48, 0xbe, 0x4f, 0x66, 0x59, 0x2a, 0x54, 0x06, 0x6c, 0x1a, 0xb7,
168 0x91, 0x8a, 0x1e, 0xb2, 0xdd, 0x7a, 0xd8, 0xd5, 0x06, 0xe1, 0x30, 0x43, 0xa9, 0x82, 0x4b, 0x14,
169 0xcd, 0xd6, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0xa1, 0x78, 0x2e, 0x71, 0x0c, 0x2d, 0x10, 0x29,
170 0xa8, 0xbd, 0xaa, 0x04, 0xec, 0x85, 0x28, 0x0e, 0xc2, 0x65, 0x8a, 0x93, 0xc4, 0x89, 0x87, 0x72,
171 0x0c, 0x17, 0x1e, 0xca, 0x31, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47,
172 0x72, 0x8c, 0x33, 0x1e, 0xcb, 0x31, 0x24, 0xb1, 0x81, 0xc3, 0xce, 0x18, 0x10, 0x00, 0x00, 0xff,
173 0xff, 0x9f, 0xf2, 0x42, 0xe0, 0x91, 0x01, 0x00, 0x00,
174}
175
176func (m *Lease) Marshal() (dAtA []byte, err error) {
177 size := m.Size()
178 dAtA = make([]byte, size)
179 n, err := m.MarshalToSizedBuffer(dAtA[:size])
180 if err != nil {
181 return nil, err
182 }
183 return dAtA[:n], nil
184}
185
186func (m *Lease) MarshalTo(dAtA []byte) (int, error) {
187 size := m.Size()
188 return m.MarshalToSizedBuffer(dAtA[:size])
189}
190
191func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error) {
192 i := len(dAtA)
193 _ = i
194 var l int
195 _ = l
196 if m.XXX_unrecognized != nil {
197 i -= len(m.XXX_unrecognized)
198 copy(dAtA[i:], m.XXX_unrecognized)
199 }
200 if m.TTL != 0 {
201 i = encodeVarintLease(dAtA, i, uint64(m.TTL))
202 i--
203 dAtA[i] = 0x10
204 }
205 if m.ID != 0 {
206 i = encodeVarintLease(dAtA, i, uint64(m.ID))
207 i--
208 dAtA[i] = 0x8
209 }
210 return len(dAtA) - i, nil
211}
212
213func (m *LeaseInternalRequest) Marshal() (dAtA []byte, err error) {
214 size := m.Size()
215 dAtA = make([]byte, size)
216 n, err := m.MarshalToSizedBuffer(dAtA[:size])
217 if err != nil {
218 return nil, err
219 }
220 return dAtA[:n], nil
221}
222
223func (m *LeaseInternalRequest) MarshalTo(dAtA []byte) (int, error) {
224 size := m.Size()
225 return m.MarshalToSizedBuffer(dAtA[:size])
226}
227
228func (m *LeaseInternalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
229 i := len(dAtA)
230 _ = i
231 var l int
232 _ = l
233 if m.XXX_unrecognized != nil {
234 i -= len(m.XXX_unrecognized)
235 copy(dAtA[i:], m.XXX_unrecognized)
236 }
237 if m.LeaseTimeToLiveRequest != nil {
238 {
239 size, err := m.LeaseTimeToLiveRequest.MarshalToSizedBuffer(dAtA[:i])
240 if err != nil {
241 return 0, err
242 }
243 i -= size
244 i = encodeVarintLease(dAtA, i, uint64(size))
245 }
246 i--
247 dAtA[i] = 0xa
248 }
249 return len(dAtA) - i, nil
250}
251
252func (m *LeaseInternalResponse) Marshal() (dAtA []byte, err error) {
253 size := m.Size()
254 dAtA = make([]byte, size)
255 n, err := m.MarshalToSizedBuffer(dAtA[:size])
256 if err != nil {
257 return nil, err
258 }
259 return dAtA[:n], nil
260}
261
262func (m *LeaseInternalResponse) MarshalTo(dAtA []byte) (int, error) {
263 size := m.Size()
264 return m.MarshalToSizedBuffer(dAtA[:size])
265}
266
267func (m *LeaseInternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
268 i := len(dAtA)
269 _ = i
270 var l int
271 _ = l
272 if m.XXX_unrecognized != nil {
273 i -= len(m.XXX_unrecognized)
274 copy(dAtA[i:], m.XXX_unrecognized)
275 }
276 if m.LeaseTimeToLiveResponse != nil {
277 {
278 size, err := m.LeaseTimeToLiveResponse.MarshalToSizedBuffer(dAtA[:i])
279 if err != nil {
280 return 0, err
281 }
282 i -= size
283 i = encodeVarintLease(dAtA, i, uint64(size))
284 }
285 i--
286 dAtA[i] = 0xa
287 }
288 return len(dAtA) - i, nil
289}
290
291func encodeVarintLease(dAtA []byte, offset int, v uint64) int {
292 offset -= sovLease(v)
293 base := offset
294 for v >= 1<<7 {
295 dAtA[offset] = uint8(v&0x7f | 0x80)
296 v >>= 7
297 offset++
298 }
299 dAtA[offset] = uint8(v)
300 return base
301}
302func (m *Lease) Size() (n int) {
303 if m == nil {
304 return 0
305 }
306 var l int
307 _ = l
308 if m.ID != 0 {
309 n += 1 + sovLease(uint64(m.ID))
310 }
311 if m.TTL != 0 {
312 n += 1 + sovLease(uint64(m.TTL))
313 }
314 if m.XXX_unrecognized != nil {
315 n += len(m.XXX_unrecognized)
316 }
317 return n
318}
319
320func (m *LeaseInternalRequest) Size() (n int) {
321 if m == nil {
322 return 0
323 }
324 var l int
325 _ = l
326 if m.LeaseTimeToLiveRequest != nil {
327 l = m.LeaseTimeToLiveRequest.Size()
328 n += 1 + l + sovLease(uint64(l))
329 }
330 if m.XXX_unrecognized != nil {
331 n += len(m.XXX_unrecognized)
332 }
333 return n
334}
335
336func (m *LeaseInternalResponse) Size() (n int) {
337 if m == nil {
338 return 0
339 }
340 var l int
341 _ = l
342 if m.LeaseTimeToLiveResponse != nil {
343 l = m.LeaseTimeToLiveResponse.Size()
344 n += 1 + l + sovLease(uint64(l))
345 }
346 if m.XXX_unrecognized != nil {
347 n += len(m.XXX_unrecognized)
348 }
349 return n
350}
351
352func sovLease(x uint64) (n int) {
353 return (math_bits.Len64(x|1) + 6) / 7
354}
355func sozLease(x uint64) (n int) {
356 return sovLease(uint64((x << 1) ^ uint64((int64(x) >> 63))))
357}
358func (m *Lease) Unmarshal(dAtA []byte) error {
359 l := len(dAtA)
360 iNdEx := 0
361 for iNdEx < l {
362 preIndex := iNdEx
363 var wire uint64
364 for shift := uint(0); ; shift += 7 {
365 if shift >= 64 {
366 return ErrIntOverflowLease
367 }
368 if iNdEx >= l {
369 return io.ErrUnexpectedEOF
370 }
371 b := dAtA[iNdEx]
372 iNdEx++
373 wire |= uint64(b&0x7F) << shift
374 if b < 0x80 {
375 break
376 }
377 }
378 fieldNum := int32(wire >> 3)
379 wireType := int(wire & 0x7)
380 if wireType == 4 {
381 return fmt.Errorf("proto: Lease: wiretype end group for non-group")
382 }
383 if fieldNum <= 0 {
384 return fmt.Errorf("proto: Lease: illegal tag %d (wire type %d)", fieldNum, wire)
385 }
386 switch fieldNum {
387 case 1:
388 if wireType != 0 {
389 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
390 }
391 m.ID = 0
392 for shift := uint(0); ; shift += 7 {
393 if shift >= 64 {
394 return ErrIntOverflowLease
395 }
396 if iNdEx >= l {
397 return io.ErrUnexpectedEOF
398 }
399 b := dAtA[iNdEx]
400 iNdEx++
401 m.ID |= int64(b&0x7F) << shift
402 if b < 0x80 {
403 break
404 }
405 }
406 case 2:
407 if wireType != 0 {
408 return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
409 }
410 m.TTL = 0
411 for shift := uint(0); ; shift += 7 {
412 if shift >= 64 {
413 return ErrIntOverflowLease
414 }
415 if iNdEx >= l {
416 return io.ErrUnexpectedEOF
417 }
418 b := dAtA[iNdEx]
419 iNdEx++
420 m.TTL |= int64(b&0x7F) << shift
421 if b < 0x80 {
422 break
423 }
424 }
425 default:
426 iNdEx = preIndex
427 skippy, err := skipLease(dAtA[iNdEx:])
428 if err != nil {
429 return err
430 }
431 if skippy < 0 {
432 return ErrInvalidLengthLease
433 }
434 if (iNdEx + skippy) < 0 {
435 return ErrInvalidLengthLease
436 }
437 if (iNdEx + skippy) > l {
438 return io.ErrUnexpectedEOF
439 }
440 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
441 iNdEx += skippy
442 }
443 }
444
445 if iNdEx > l {
446 return io.ErrUnexpectedEOF
447 }
448 return nil
449}
450func (m *LeaseInternalRequest) Unmarshal(dAtA []byte) error {
451 l := len(dAtA)
452 iNdEx := 0
453 for iNdEx < l {
454 preIndex := iNdEx
455 var wire uint64
456 for shift := uint(0); ; shift += 7 {
457 if shift >= 64 {
458 return ErrIntOverflowLease
459 }
460 if iNdEx >= l {
461 return io.ErrUnexpectedEOF
462 }
463 b := dAtA[iNdEx]
464 iNdEx++
465 wire |= uint64(b&0x7F) << shift
466 if b < 0x80 {
467 break
468 }
469 }
470 fieldNum := int32(wire >> 3)
471 wireType := int(wire & 0x7)
472 if wireType == 4 {
473 return fmt.Errorf("proto: LeaseInternalRequest: wiretype end group for non-group")
474 }
475 if fieldNum <= 0 {
476 return fmt.Errorf("proto: LeaseInternalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
477 }
478 switch fieldNum {
479 case 1:
480 if wireType != 2 {
481 return fmt.Errorf("proto: wrong wireType = %d for field LeaseTimeToLiveRequest", wireType)
482 }
483 var msglen int
484 for shift := uint(0); ; shift += 7 {
485 if shift >= 64 {
486 return ErrIntOverflowLease
487 }
488 if iNdEx >= l {
489 return io.ErrUnexpectedEOF
490 }
491 b := dAtA[iNdEx]
492 iNdEx++
493 msglen |= int(b&0x7F) << shift
494 if b < 0x80 {
495 break
496 }
497 }
498 if msglen < 0 {
499 return ErrInvalidLengthLease
500 }
501 postIndex := iNdEx + msglen
502 if postIndex < 0 {
503 return ErrInvalidLengthLease
504 }
505 if postIndex > l {
506 return io.ErrUnexpectedEOF
507 }
508 if m.LeaseTimeToLiveRequest == nil {
509 m.LeaseTimeToLiveRequest = &etcdserverpb.LeaseTimeToLiveRequest{}
510 }
511 if err := m.LeaseTimeToLiveRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
512 return err
513 }
514 iNdEx = postIndex
515 default:
516 iNdEx = preIndex
517 skippy, err := skipLease(dAtA[iNdEx:])
518 if err != nil {
519 return err
520 }
521 if skippy < 0 {
522 return ErrInvalidLengthLease
523 }
524 if (iNdEx + skippy) < 0 {
525 return ErrInvalidLengthLease
526 }
527 if (iNdEx + skippy) > l {
528 return io.ErrUnexpectedEOF
529 }
530 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
531 iNdEx += skippy
532 }
533 }
534
535 if iNdEx > l {
536 return io.ErrUnexpectedEOF
537 }
538 return nil
539}
540func (m *LeaseInternalResponse) Unmarshal(dAtA []byte) error {
541 l := len(dAtA)
542 iNdEx := 0
543 for iNdEx < l {
544 preIndex := iNdEx
545 var wire uint64
546 for shift := uint(0); ; shift += 7 {
547 if shift >= 64 {
548 return ErrIntOverflowLease
549 }
550 if iNdEx >= l {
551 return io.ErrUnexpectedEOF
552 }
553 b := dAtA[iNdEx]
554 iNdEx++
555 wire |= uint64(b&0x7F) << shift
556 if b < 0x80 {
557 break
558 }
559 }
560 fieldNum := int32(wire >> 3)
561 wireType := int(wire & 0x7)
562 if wireType == 4 {
563 return fmt.Errorf("proto: LeaseInternalResponse: wiretype end group for non-group")
564 }
565 if fieldNum <= 0 {
566 return fmt.Errorf("proto: LeaseInternalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
567 }
568 switch fieldNum {
569 case 1:
570 if wireType != 2 {
571 return fmt.Errorf("proto: wrong wireType = %d for field LeaseTimeToLiveResponse", wireType)
572 }
573 var msglen int
574 for shift := uint(0); ; shift += 7 {
575 if shift >= 64 {
576 return ErrIntOverflowLease
577 }
578 if iNdEx >= l {
579 return io.ErrUnexpectedEOF
580 }
581 b := dAtA[iNdEx]
582 iNdEx++
583 msglen |= int(b&0x7F) << shift
584 if b < 0x80 {
585 break
586 }
587 }
588 if msglen < 0 {
589 return ErrInvalidLengthLease
590 }
591 postIndex := iNdEx + msglen
592 if postIndex < 0 {
593 return ErrInvalidLengthLease
594 }
595 if postIndex > l {
596 return io.ErrUnexpectedEOF
597 }
598 if m.LeaseTimeToLiveResponse == nil {
599 m.LeaseTimeToLiveResponse = &etcdserverpb.LeaseTimeToLiveResponse{}
600 }
601 if err := m.LeaseTimeToLiveResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
602 return err
603 }
604 iNdEx = postIndex
605 default:
606 iNdEx = preIndex
607 skippy, err := skipLease(dAtA[iNdEx:])
608 if err != nil {
609 return err
610 }
611 if skippy < 0 {
612 return ErrInvalidLengthLease
613 }
614 if (iNdEx + skippy) < 0 {
615 return ErrInvalidLengthLease
616 }
617 if (iNdEx + skippy) > l {
618 return io.ErrUnexpectedEOF
619 }
620 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
621 iNdEx += skippy
622 }
623 }
624
625 if iNdEx > l {
626 return io.ErrUnexpectedEOF
627 }
628 return nil
629}
630func skipLease(dAtA []byte) (n int, err error) {
631 l := len(dAtA)
632 iNdEx := 0
633 for iNdEx < l {
634 var wire uint64
635 for shift := uint(0); ; shift += 7 {
636 if shift >= 64 {
637 return 0, ErrIntOverflowLease
638 }
639 if iNdEx >= l {
640 return 0, io.ErrUnexpectedEOF
641 }
642 b := dAtA[iNdEx]
643 iNdEx++
644 wire |= (uint64(b) & 0x7F) << shift
645 if b < 0x80 {
646 break
647 }
648 }
649 wireType := int(wire & 0x7)
650 switch wireType {
651 case 0:
652 for shift := uint(0); ; shift += 7 {
653 if shift >= 64 {
654 return 0, ErrIntOverflowLease
655 }
656 if iNdEx >= l {
657 return 0, io.ErrUnexpectedEOF
658 }
659 iNdEx++
660 if dAtA[iNdEx-1] < 0x80 {
661 break
662 }
663 }
664 return iNdEx, nil
665 case 1:
666 iNdEx += 8
667 return iNdEx, nil
668 case 2:
669 var length int
670 for shift := uint(0); ; shift += 7 {
671 if shift >= 64 {
672 return 0, ErrIntOverflowLease
673 }
674 if iNdEx >= l {
675 return 0, io.ErrUnexpectedEOF
676 }
677 b := dAtA[iNdEx]
678 iNdEx++
679 length |= (int(b) & 0x7F) << shift
680 if b < 0x80 {
681 break
682 }
683 }
684 if length < 0 {
685 return 0, ErrInvalidLengthLease
686 }
687 iNdEx += length
688 if iNdEx < 0 {
689 return 0, ErrInvalidLengthLease
690 }
691 return iNdEx, nil
692 case 3:
693 for {
694 var innerWire uint64
695 var start int = iNdEx
696 for shift := uint(0); ; shift += 7 {
697 if shift >= 64 {
698 return 0, ErrIntOverflowLease
699 }
700 if iNdEx >= l {
701 return 0, io.ErrUnexpectedEOF
702 }
703 b := dAtA[iNdEx]
704 iNdEx++
705 innerWire |= (uint64(b) & 0x7F) << shift
706 if b < 0x80 {
707 break
708 }
709 }
710 innerWireType := int(innerWire & 0x7)
711 if innerWireType == 4 {
712 break
713 }
714 next, err := skipLease(dAtA[start:])
715 if err != nil {
716 return 0, err
717 }
718 iNdEx = start + next
719 if iNdEx < 0 {
720 return 0, ErrInvalidLengthLease
721 }
722 }
723 return iNdEx, nil
724 case 4:
725 return iNdEx, nil
726 case 5:
727 iNdEx += 4
728 return iNdEx, nil
729 default:
730 return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
731 }
732 }
733 panic("unreachable")
734}
735
736var (
737 ErrInvalidLengthLease = fmt.Errorf("proto: negative length found during unmarshaling")
738 ErrIntOverflowLease = fmt.Errorf("proto: integer overflow")
739)