2016-01-05 09:53:11 +03:00
|
|
|
// Code generated by protoc-gen-gogo.
|
|
|
|
// source: lease.proto
|
|
|
|
// DO NOT EDIT!
|
|
|
|
|
|
|
|
/*
|
|
|
|
Package leasepb is a generated protocol buffer package.
|
|
|
|
|
|
|
|
It is generated from these files:
|
|
|
|
lease.proto
|
|
|
|
|
|
|
|
It has these top-level messages:
|
|
|
|
Lease
|
2016-09-09 02:11:46 +03:00
|
|
|
LeaseInternalRequest
|
|
|
|
LeaseInternalResponse
|
2016-01-05 09:53:11 +03:00
|
|
|
*/
|
|
|
|
package leasepb
|
|
|
|
|
2016-01-27 04:41:39 +03:00
|
|
|
import (
|
|
|
|
"fmt"
|
2016-01-05 09:53:11 +03:00
|
|
|
|
2016-07-18 19:33:32 +03:00
|
|
|
proto "github.com/golang/protobuf/proto"
|
2016-01-05 09:53:11 +03:00
|
|
|
|
2016-04-14 02:23:07 +03:00
|
|
|
math "math"
|
2016-09-09 02:11:46 +03:00
|
|
|
|
|
|
|
io "io"
|
2016-04-14 02:23:07 +03:00
|
|
|
)
|
2016-04-12 17:48:47 +03:00
|
|
|
|
2016-09-09 02:11:46 +03:00
|
|
|
import etcdserverpb "github.com/coreos/etcd/etcdserver/etcdserverpb"
|
2016-01-05 09:53:11 +03:00
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
2016-01-27 04:41:39 +03:00
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
2016-01-05 09:53:11 +03:00
|
|
|
|
2016-04-26 00:08:33 +03:00
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
2016-07-18 19:33:32 +03:00
|
|
|
const _ = proto.ProtoPackageIsVersion1
|
2016-04-26 00:08:33 +03:00
|
|
|
|
2016-01-05 09:53:11 +03:00
|
|
|
type Lease struct {
|
2016-05-03 09:02:31 +03:00
|
|
|
ID int64 `protobuf:"varint,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
|
|
|
|
TTL int64 `protobuf:"varint,2,opt,name=TTL,json=tTL,proto3" json:"TTL,omitempty"`
|
2016-01-05 09:53:11 +03:00
|
|
|
}
|
|
|
|
|
2016-04-26 00:08:33 +03:00
|
|
|
func (m *Lease) Reset() { *m = Lease{} }
|
|
|
|
func (m *Lease) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Lease) ProtoMessage() {}
|
|
|
|
func (*Lease) Descriptor() ([]byte, []int) { return fileDescriptorLease, []int{0} }
|
2016-01-05 09:53:11 +03:00
|
|
|
|
2016-09-09 02:11:46 +03:00
|
|
|
type LeaseInternalRequest struct {
|
|
|
|
LeaseTimeToLiveRequest *etcdserverpb.LeaseTimeToLiveRequest `protobuf:"bytes,1,opt,name=LeaseTimeToLiveRequest,json=leaseTimeToLiveRequest" json:"LeaseTimeToLiveRequest,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LeaseInternalRequest) Reset() { *m = LeaseInternalRequest{} }
|
|
|
|
func (m *LeaseInternalRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LeaseInternalRequest) ProtoMessage() {}
|
|
|
|
func (*LeaseInternalRequest) Descriptor() ([]byte, []int) { return fileDescriptorLease, []int{1} }
|
|
|
|
|
|
|
|
type LeaseInternalResponse struct {
|
|
|
|
LeaseTimeToLiveResponse *etcdserverpb.LeaseTimeToLiveResponse `protobuf:"bytes,1,opt,name=LeaseTimeToLiveResponse,json=leaseTimeToLiveResponse" json:"LeaseTimeToLiveResponse,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LeaseInternalResponse) Reset() { *m = LeaseInternalResponse{} }
|
|
|
|
func (m *LeaseInternalResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LeaseInternalResponse) ProtoMessage() {}
|
|
|
|
func (*LeaseInternalResponse) Descriptor() ([]byte, []int) { return fileDescriptorLease, []int{2} }
|
|
|
|
|
2016-01-27 04:41:39 +03:00
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*Lease)(nil), "leasepb.Lease")
|
2016-09-09 02:11:46 +03:00
|
|
|
proto.RegisterType((*LeaseInternalRequest)(nil), "leasepb.LeaseInternalRequest")
|
|
|
|
proto.RegisterType((*LeaseInternalResponse)(nil), "leasepb.LeaseInternalResponse")
|
2016-01-27 04:41:39 +03:00
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
func (m *Lease) Marshal() (data []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
data = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(data)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return data[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Lease) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.ID != 0 {
|
|
|
|
data[i] = 0x8
|
|
|
|
i++
|
|
|
|
i = encodeVarintLease(data, i, uint64(m.ID))
|
|
|
|
}
|
|
|
|
if m.TTL != 0 {
|
|
|
|
data[i] = 0x10
|
|
|
|
i++
|
|
|
|
i = encodeVarintLease(data, i, uint64(m.TTL))
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2016-09-09 02:11:46 +03:00
|
|
|
func (m *LeaseInternalRequest) Marshal() (data []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
data = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(data)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return data[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LeaseInternalRequest) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.LeaseTimeToLiveRequest != nil {
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintLease(data, i, uint64(m.LeaseTimeToLiveRequest.Size()))
|
|
|
|
n1, err := m.LeaseTimeToLiveRequest.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n1
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LeaseInternalResponse) Marshal() (data []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
data = make([]byte, size)
|
|
|
|
n, err := m.MarshalTo(data)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return data[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LeaseInternalResponse) MarshalTo(data []byte) (int, error) {
|
|
|
|
var i int
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.LeaseTimeToLiveResponse != nil {
|
|
|
|
data[i] = 0xa
|
|
|
|
i++
|
|
|
|
i = encodeVarintLease(data, i, uint64(m.LeaseTimeToLiveResponse.Size()))
|
|
|
|
n2, err := m.LeaseTimeToLiveResponse.MarshalTo(data[i:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i += n2
|
|
|
|
}
|
|
|
|
return i, nil
|
|
|
|
}
|
|
|
|
|
2016-01-05 09:53:11 +03:00
|
|
|
func encodeFixed64Lease(data []byte, offset int, v uint64) int {
|
|
|
|
data[offset] = uint8(v)
|
|
|
|
data[offset+1] = uint8(v >> 8)
|
|
|
|
data[offset+2] = uint8(v >> 16)
|
|
|
|
data[offset+3] = uint8(v >> 24)
|
|
|
|
data[offset+4] = uint8(v >> 32)
|
|
|
|
data[offset+5] = uint8(v >> 40)
|
|
|
|
data[offset+6] = uint8(v >> 48)
|
|
|
|
data[offset+7] = uint8(v >> 56)
|
|
|
|
return offset + 8
|
|
|
|
}
|
|
|
|
func encodeFixed32Lease(data []byte, offset int, v uint32) int {
|
|
|
|
data[offset] = uint8(v)
|
|
|
|
data[offset+1] = uint8(v >> 8)
|
|
|
|
data[offset+2] = uint8(v >> 16)
|
|
|
|
data[offset+3] = uint8(v >> 24)
|
|
|
|
return offset + 4
|
|
|
|
}
|
|
|
|
func encodeVarintLease(data []byte, offset int, v uint64) int {
|
|
|
|
for v >= 1<<7 {
|
|
|
|
data[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
data[offset] = uint8(v)
|
|
|
|
return offset + 1
|
|
|
|
}
|
|
|
|
func (m *Lease) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.ID != 0 {
|
|
|
|
n += 1 + sovLease(uint64(m.ID))
|
|
|
|
}
|
|
|
|
if m.TTL != 0 {
|
|
|
|
n += 1 + sovLease(uint64(m.TTL))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2016-09-09 02:11:46 +03:00
|
|
|
func (m *LeaseInternalRequest) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.LeaseTimeToLiveRequest != nil {
|
|
|
|
l = m.LeaseTimeToLiveRequest.Size()
|
|
|
|
n += 1 + l + sovLease(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LeaseInternalResponse) Size() (n int) {
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.LeaseTimeToLiveResponse != nil {
|
|
|
|
l = m.LeaseTimeToLiveResponse.Size()
|
|
|
|
n += 1 + l + sovLease(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2016-01-05 09:53:11 +03:00
|
|
|
func sovLease(x uint64) (n int) {
|
|
|
|
for {
|
|
|
|
n++
|
|
|
|
x >>= 7
|
|
|
|
if x == 0 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
func sozLease(x uint64) (n int) {
|
|
|
|
return sovLease(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (m *Lease) Unmarshal(data []byte) error {
|
|
|
|
l := len(data)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
2016-01-27 04:41:39 +03:00
|
|
|
preIndex := iNdEx
|
2016-01-05 09:53:11 +03:00
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
2016-01-27 04:41:39 +03:00
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowLease
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
2016-01-27 04:41:39 +03:00
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: Lease: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Lease: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
|
|
|
|
}
|
|
|
|
m.ID = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
2016-01-27 04:41:39 +03:00
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowLease
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.ID |= (int64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
|
|
|
|
}
|
|
|
|
m.TTL = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
2016-01-27 04:41:39 +03:00
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowLease
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.TTL |= (int64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
2016-01-27 04:41:39 +03:00
|
|
|
iNdEx = preIndex
|
2016-01-05 09:53:11 +03:00
|
|
|
skippy, err := skipLease(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthLease
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-27 04:41:39 +03:00
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
return nil
|
|
|
|
}
|
2016-09-09 02:11:46 +03:00
|
|
|
func (m *LeaseInternalRequest) Unmarshal(data []byte) error {
|
|
|
|
l := len(data)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowLease
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: LeaseInternalRequest: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: LeaseInternalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LeaseTimeToLiveRequest", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowLease
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthLease
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.LeaseTimeToLiveRequest == nil {
|
|
|
|
m.LeaseTimeToLiveRequest = &etcdserverpb.LeaseTimeToLiveRequest{}
|
|
|
|
}
|
|
|
|
if err := m.LeaseTimeToLiveRequest.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipLease(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthLease
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *LeaseInternalResponse) Unmarshal(data []byte) error {
|
|
|
|
l := len(data)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
preIndex := iNdEx
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowLease
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: LeaseInternalResponse: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: LeaseInternalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LeaseTimeToLiveResponse", wireType)
|
|
|
|
}
|
|
|
|
var msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowLease
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
msglen |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthLease
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.LeaseTimeToLiveResponse == nil {
|
|
|
|
m.LeaseTimeToLiveResponse = &etcdserverpb.LeaseTimeToLiveResponse{}
|
|
|
|
}
|
|
|
|
if err := m.LeaseTimeToLiveResponse.Unmarshal(data[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipLease(data[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
if skippy < 0 {
|
|
|
|
return ErrInvalidLengthLease
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
func skipLease(data []byte) (n int, err error) {
|
|
|
|
l := len(data)
|
|
|
|
iNdEx := 0
|
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
2016-01-27 04:41:39 +03:00
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowLease
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
switch wireType {
|
|
|
|
case 0:
|
2016-01-27 04:41:39 +03:00
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowLease
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if data[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
return iNdEx, nil
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
2016-01-27 04:41:39 +03:00
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowLease
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
iNdEx += length
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthLease
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 3:
|
|
|
|
for {
|
|
|
|
var innerWire uint64
|
|
|
|
var start int = iNdEx
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
2016-01-27 04:41:39 +03:00
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowLease
|
|
|
|
}
|
2016-01-05 09:53:11 +03:00
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := data[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
innerWire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
innerWireType := int(innerWire & 0x7)
|
|
|
|
if innerWireType == 4 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
next, err := skipLease(data[start:])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
iNdEx = start + next
|
|
|
|
}
|
|
|
|
return iNdEx, nil
|
|
|
|
case 4:
|
|
|
|
return iNdEx, nil
|
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
return iNdEx, nil
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
panic("unreachable")
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrInvalidLengthLease = fmt.Errorf("proto: negative length found during unmarshaling")
|
2016-01-27 04:41:39 +03:00
|
|
|
ErrIntOverflowLease = fmt.Errorf("proto: integer overflow")
|
2016-01-05 09:53:11 +03:00
|
|
|
)
|
2016-04-26 00:08:33 +03:00
|
|
|
|
|
|
|
var fileDescriptorLease = []byte{
|
2016-09-09 02:11:46 +03:00
|
|
|
// 239 bytes of a gzipped FileDescriptorProto
|
2016-04-26 00:08:33 +03:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0xce, 0x49, 0x4d, 0x2c,
|
|
|
|
0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x07, 0x73, 0x0a, 0x92, 0xa4, 0x44, 0xd2,
|
2016-09-09 02:11:46 +03:00
|
|
|
0xf3, 0xd3, 0xf3, 0xc1, 0x62, 0xfa, 0x20, 0x16, 0x44, 0x5a, 0x4a, 0x2d, 0xb5, 0x24, 0x39, 0x45,
|
|
|
|
0x1f, 0x44, 0x14, 0xa7, 0x16, 0x95, 0xa5, 0x16, 0x21, 0x31, 0x0b, 0x92, 0xf4, 0x8b, 0x0a, 0x92,
|
|
|
|
0x21, 0xea, 0x94, 0x34, 0xb9, 0x58, 0x7d, 0x40, 0x06, 0x09, 0xf1, 0x71, 0x31, 0x79, 0xba, 0x48,
|
|
|
|
0x30, 0x2a, 0x30, 0x6a, 0x30, 0x07, 0x31, 0x65, 0xba, 0x08, 0x09, 0x70, 0x31, 0x87, 0x84, 0xf8,
|
|
|
|
0x48, 0x30, 0x81, 0x05, 0x98, 0x4b, 0x42, 0x7c, 0x94, 0x4a, 0xb8, 0x44, 0xc0, 0x4a, 0x3d, 0xf3,
|
|
|
|
0x4a, 0x52, 0x8b, 0xf2, 0x12, 0x73, 0x82, 0x52, 0x0b, 0x4b, 0x53, 0x8b, 0x4b, 0x84, 0x62, 0xb8,
|
|
|
|
0xc4, 0xc0, 0xe2, 0x21, 0x99, 0xb9, 0xa9, 0x21, 0xf9, 0x3e, 0x99, 0x65, 0xa9, 0x50, 0x19, 0xb0,
|
|
|
|
0x69, 0xdc, 0x46, 0x2a, 0x7a, 0xc8, 0x76, 0xeb, 0x61, 0x57, 0x1b, 0x24, 0x96, 0x83, 0x55, 0x5c,
|
|
|
|
0xa9, 0x82, 0x4b, 0x14, 0xcd, 0xd6, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0xa1, 0x78, 0x2e, 0x71,
|
|
|
|
0x0c, 0xa3, 0x20, 0x52, 0x50, 0x7b, 0x55, 0x09, 0xd8, 0x0b, 0x51, 0x1c, 0x24, 0x9e, 0x83, 0x5d,
|
|
|
|
0xc2, 0x49, 0xe2, 0xc4, 0x43, 0x39, 0x86, 0x0b, 0x0f, 0xe5, 0x18, 0x4e, 0x3c, 0x92, 0x63, 0xbc,
|
|
|
|
0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x19, 0x8f, 0xe5, 0x18, 0x92, 0xd8, 0xc0, 0x61,
|
|
|
|
0x67, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0x65, 0xaa, 0x74, 0x2e, 0x91, 0x01, 0x00, 0x00,
|
2016-04-26 00:08:33 +03:00
|
|
|
}
|