github.com/containerd/containerd@v22.0.0-20200918172823-438c87b8e050+incompatible/api/services/leases/v1/leases.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/containerd/containerd/api/services/leases/v1/leases.proto
     3  
     4  package leases
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
    11  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    12  	types "github.com/gogo/protobuf/types"
    13  	grpc "google.golang.org/grpc"
    14  	codes "google.golang.org/grpc/codes"
    15  	status "google.golang.org/grpc/status"
    16  	io "io"
    17  	math "math"
    18  	math_bits "math/bits"
    19  	reflect "reflect"
    20  	strings "strings"
    21  	time "time"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  var _ = time.Kitchen
    29  
    30  // This is a compile-time assertion to ensure that this generated file
    31  // is compatible with the proto package it is being compiled against.
    32  // A compilation error at this line likely means your copy of the
    33  // proto package needs to be updated.
    34  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    35  
    36  // Lease is an object which retains resources while it exists.
    37  type Lease struct {
    38  	ID                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    39  	CreatedAt            time.Time         `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"`
    40  	Labels               map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    41  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    42  	XXX_unrecognized     []byte            `json:"-"`
    43  	XXX_sizecache        int32             `json:"-"`
    44  }
    45  
    46  func (m *Lease) Reset()      { *m = Lease{} }
    47  func (*Lease) ProtoMessage() {}
    48  func (*Lease) Descriptor() ([]byte, []int) {
    49  	return fileDescriptor_fefd70dfe8d93cbf, []int{0}
    50  }
    51  func (m *Lease) XXX_Unmarshal(b []byte) error {
    52  	return m.Unmarshal(b)
    53  }
    54  func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    55  	if deterministic {
    56  		return xxx_messageInfo_Lease.Marshal(b, m, deterministic)
    57  	} else {
    58  		b = b[:cap(b)]
    59  		n, err := m.MarshalToSizedBuffer(b)
    60  		if err != nil {
    61  			return nil, err
    62  		}
    63  		return b[:n], nil
    64  	}
    65  }
    66  func (m *Lease) XXX_Merge(src proto.Message) {
    67  	xxx_messageInfo_Lease.Merge(m, src)
    68  }
    69  func (m *Lease) XXX_Size() int {
    70  	return m.Size()
    71  }
    72  func (m *Lease) XXX_DiscardUnknown() {
    73  	xxx_messageInfo_Lease.DiscardUnknown(m)
    74  }
    75  
    76  var xxx_messageInfo_Lease proto.InternalMessageInfo
    77  
    78  type CreateRequest struct {
    79  	// ID is used to identity the lease, when the id is not set the service
    80  	// generates a random identifier for the lease.
    81  	ID                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    82  	Labels               map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    83  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    84  	XXX_unrecognized     []byte            `json:"-"`
    85  	XXX_sizecache        int32             `json:"-"`
    86  }
    87  
    88  func (m *CreateRequest) Reset()      { *m = CreateRequest{} }
    89  func (*CreateRequest) ProtoMessage() {}
    90  func (*CreateRequest) Descriptor() ([]byte, []int) {
    91  	return fileDescriptor_fefd70dfe8d93cbf, []int{1}
    92  }
    93  func (m *CreateRequest) XXX_Unmarshal(b []byte) error {
    94  	return m.Unmarshal(b)
    95  }
    96  func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    97  	if deterministic {
    98  		return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic)
    99  	} else {
   100  		b = b[:cap(b)]
   101  		n, err := m.MarshalToSizedBuffer(b)
   102  		if err != nil {
   103  			return nil, err
   104  		}
   105  		return b[:n], nil
   106  	}
   107  }
   108  func (m *CreateRequest) XXX_Merge(src proto.Message) {
   109  	xxx_messageInfo_CreateRequest.Merge(m, src)
   110  }
   111  func (m *CreateRequest) XXX_Size() int {
   112  	return m.Size()
   113  }
   114  func (m *CreateRequest) XXX_DiscardUnknown() {
   115  	xxx_messageInfo_CreateRequest.DiscardUnknown(m)
   116  }
   117  
   118  var xxx_messageInfo_CreateRequest proto.InternalMessageInfo
   119  
   120  type CreateResponse struct {
   121  	Lease                *Lease   `protobuf:"bytes,1,opt,name=lease,proto3" json:"lease,omitempty"`
   122  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   123  	XXX_unrecognized     []byte   `json:"-"`
   124  	XXX_sizecache        int32    `json:"-"`
   125  }
   126  
   127  func (m *CreateResponse) Reset()      { *m = CreateResponse{} }
   128  func (*CreateResponse) ProtoMessage() {}
   129  func (*CreateResponse) Descriptor() ([]byte, []int) {
   130  	return fileDescriptor_fefd70dfe8d93cbf, []int{2}
   131  }
   132  func (m *CreateResponse) XXX_Unmarshal(b []byte) error {
   133  	return m.Unmarshal(b)
   134  }
   135  func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   136  	if deterministic {
   137  		return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic)
   138  	} else {
   139  		b = b[:cap(b)]
   140  		n, err := m.MarshalToSizedBuffer(b)
   141  		if err != nil {
   142  			return nil, err
   143  		}
   144  		return b[:n], nil
   145  	}
   146  }
   147  func (m *CreateResponse) XXX_Merge(src proto.Message) {
   148  	xxx_messageInfo_CreateResponse.Merge(m, src)
   149  }
   150  func (m *CreateResponse) XXX_Size() int {
   151  	return m.Size()
   152  }
   153  func (m *CreateResponse) XXX_DiscardUnknown() {
   154  	xxx_messageInfo_CreateResponse.DiscardUnknown(m)
   155  }
   156  
   157  var xxx_messageInfo_CreateResponse proto.InternalMessageInfo
   158  
   159  type DeleteRequest struct {
   160  	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   161  	// Sync indicates that the delete and cleanup should be done
   162  	// synchronously before returning to the caller
   163  	//
   164  	// Default is false
   165  	Sync                 bool     `protobuf:"varint,2,opt,name=sync,proto3" json:"sync,omitempty"`
   166  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   167  	XXX_unrecognized     []byte   `json:"-"`
   168  	XXX_sizecache        int32    `json:"-"`
   169  }
   170  
   171  func (m *DeleteRequest) Reset()      { *m = DeleteRequest{} }
   172  func (*DeleteRequest) ProtoMessage() {}
   173  func (*DeleteRequest) Descriptor() ([]byte, []int) {
   174  	return fileDescriptor_fefd70dfe8d93cbf, []int{3}
   175  }
   176  func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
   177  	return m.Unmarshal(b)
   178  }
   179  func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   180  	if deterministic {
   181  		return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
   182  	} else {
   183  		b = b[:cap(b)]
   184  		n, err := m.MarshalToSizedBuffer(b)
   185  		if err != nil {
   186  			return nil, err
   187  		}
   188  		return b[:n], nil
   189  	}
   190  }
   191  func (m *DeleteRequest) XXX_Merge(src proto.Message) {
   192  	xxx_messageInfo_DeleteRequest.Merge(m, src)
   193  }
   194  func (m *DeleteRequest) XXX_Size() int {
   195  	return m.Size()
   196  }
   197  func (m *DeleteRequest) XXX_DiscardUnknown() {
   198  	xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
   199  }
   200  
   201  var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
   202  
   203  type ListRequest struct {
   204  	Filters              []string `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"`
   205  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   206  	XXX_unrecognized     []byte   `json:"-"`
   207  	XXX_sizecache        int32    `json:"-"`
   208  }
   209  
   210  func (m *ListRequest) Reset()      { *m = ListRequest{} }
   211  func (*ListRequest) ProtoMessage() {}
   212  func (*ListRequest) Descriptor() ([]byte, []int) {
   213  	return fileDescriptor_fefd70dfe8d93cbf, []int{4}
   214  }
   215  func (m *ListRequest) XXX_Unmarshal(b []byte) error {
   216  	return m.Unmarshal(b)
   217  }
   218  func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   219  	if deterministic {
   220  		return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic)
   221  	} else {
   222  		b = b[:cap(b)]
   223  		n, err := m.MarshalToSizedBuffer(b)
   224  		if err != nil {
   225  			return nil, err
   226  		}
   227  		return b[:n], nil
   228  	}
   229  }
   230  func (m *ListRequest) XXX_Merge(src proto.Message) {
   231  	xxx_messageInfo_ListRequest.Merge(m, src)
   232  }
   233  func (m *ListRequest) XXX_Size() int {
   234  	return m.Size()
   235  }
   236  func (m *ListRequest) XXX_DiscardUnknown() {
   237  	xxx_messageInfo_ListRequest.DiscardUnknown(m)
   238  }
   239  
   240  var xxx_messageInfo_ListRequest proto.InternalMessageInfo
   241  
   242  type ListResponse struct {
   243  	Leases               []*Lease `protobuf:"bytes,1,rep,name=leases,proto3" json:"leases,omitempty"`
   244  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   245  	XXX_unrecognized     []byte   `json:"-"`
   246  	XXX_sizecache        int32    `json:"-"`
   247  }
   248  
   249  func (m *ListResponse) Reset()      { *m = ListResponse{} }
   250  func (*ListResponse) ProtoMessage() {}
   251  func (*ListResponse) Descriptor() ([]byte, []int) {
   252  	return fileDescriptor_fefd70dfe8d93cbf, []int{5}
   253  }
   254  func (m *ListResponse) XXX_Unmarshal(b []byte) error {
   255  	return m.Unmarshal(b)
   256  }
   257  func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   258  	if deterministic {
   259  		return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
   260  	} else {
   261  		b = b[:cap(b)]
   262  		n, err := m.MarshalToSizedBuffer(b)
   263  		if err != nil {
   264  			return nil, err
   265  		}
   266  		return b[:n], nil
   267  	}
   268  }
   269  func (m *ListResponse) XXX_Merge(src proto.Message) {
   270  	xxx_messageInfo_ListResponse.Merge(m, src)
   271  }
   272  func (m *ListResponse) XXX_Size() int {
   273  	return m.Size()
   274  }
   275  func (m *ListResponse) XXX_DiscardUnknown() {
   276  	xxx_messageInfo_ListResponse.DiscardUnknown(m)
   277  }
   278  
   279  var xxx_messageInfo_ListResponse proto.InternalMessageInfo
   280  
   281  type Resource struct {
   282  	ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   283  	// For snapshotter resource, there are many snapshotter types here, like
   284  	// overlayfs, devmapper etc. The type will be formatted with type,
   285  	// like "snapshotter/overlayfs".
   286  	Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
   287  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   288  	XXX_unrecognized     []byte   `json:"-"`
   289  	XXX_sizecache        int32    `json:"-"`
   290  }
   291  
   292  func (m *Resource) Reset()      { *m = Resource{} }
   293  func (*Resource) ProtoMessage() {}
   294  func (*Resource) Descriptor() ([]byte, []int) {
   295  	return fileDescriptor_fefd70dfe8d93cbf, []int{6}
   296  }
   297  func (m *Resource) XXX_Unmarshal(b []byte) error {
   298  	return m.Unmarshal(b)
   299  }
   300  func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   301  	if deterministic {
   302  		return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
   303  	} else {
   304  		b = b[:cap(b)]
   305  		n, err := m.MarshalToSizedBuffer(b)
   306  		if err != nil {
   307  			return nil, err
   308  		}
   309  		return b[:n], nil
   310  	}
   311  }
   312  func (m *Resource) XXX_Merge(src proto.Message) {
   313  	xxx_messageInfo_Resource.Merge(m, src)
   314  }
   315  func (m *Resource) XXX_Size() int {
   316  	return m.Size()
   317  }
   318  func (m *Resource) XXX_DiscardUnknown() {
   319  	xxx_messageInfo_Resource.DiscardUnknown(m)
   320  }
   321  
   322  var xxx_messageInfo_Resource proto.InternalMessageInfo
   323  
   324  type AddResourceRequest struct {
   325  	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   326  	Resource             Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource"`
   327  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   328  	XXX_unrecognized     []byte   `json:"-"`
   329  	XXX_sizecache        int32    `json:"-"`
   330  }
   331  
   332  func (m *AddResourceRequest) Reset()      { *m = AddResourceRequest{} }
   333  func (*AddResourceRequest) ProtoMessage() {}
   334  func (*AddResourceRequest) Descriptor() ([]byte, []int) {
   335  	return fileDescriptor_fefd70dfe8d93cbf, []int{7}
   336  }
   337  func (m *AddResourceRequest) XXX_Unmarshal(b []byte) error {
   338  	return m.Unmarshal(b)
   339  }
   340  func (m *AddResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   341  	if deterministic {
   342  		return xxx_messageInfo_AddResourceRequest.Marshal(b, m, deterministic)
   343  	} else {
   344  		b = b[:cap(b)]
   345  		n, err := m.MarshalToSizedBuffer(b)
   346  		if err != nil {
   347  			return nil, err
   348  		}
   349  		return b[:n], nil
   350  	}
   351  }
   352  func (m *AddResourceRequest) XXX_Merge(src proto.Message) {
   353  	xxx_messageInfo_AddResourceRequest.Merge(m, src)
   354  }
   355  func (m *AddResourceRequest) XXX_Size() int {
   356  	return m.Size()
   357  }
   358  func (m *AddResourceRequest) XXX_DiscardUnknown() {
   359  	xxx_messageInfo_AddResourceRequest.DiscardUnknown(m)
   360  }
   361  
   362  var xxx_messageInfo_AddResourceRequest proto.InternalMessageInfo
   363  
   364  type DeleteResourceRequest struct {
   365  	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   366  	Resource             Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource"`
   367  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   368  	XXX_unrecognized     []byte   `json:"-"`
   369  	XXX_sizecache        int32    `json:"-"`
   370  }
   371  
   372  func (m *DeleteResourceRequest) Reset()      { *m = DeleteResourceRequest{} }
   373  func (*DeleteResourceRequest) ProtoMessage() {}
   374  func (*DeleteResourceRequest) Descriptor() ([]byte, []int) {
   375  	return fileDescriptor_fefd70dfe8d93cbf, []int{8}
   376  }
   377  func (m *DeleteResourceRequest) XXX_Unmarshal(b []byte) error {
   378  	return m.Unmarshal(b)
   379  }
   380  func (m *DeleteResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   381  	if deterministic {
   382  		return xxx_messageInfo_DeleteResourceRequest.Marshal(b, m, deterministic)
   383  	} else {
   384  		b = b[:cap(b)]
   385  		n, err := m.MarshalToSizedBuffer(b)
   386  		if err != nil {
   387  			return nil, err
   388  		}
   389  		return b[:n], nil
   390  	}
   391  }
   392  func (m *DeleteResourceRequest) XXX_Merge(src proto.Message) {
   393  	xxx_messageInfo_DeleteResourceRequest.Merge(m, src)
   394  }
   395  func (m *DeleteResourceRequest) XXX_Size() int {
   396  	return m.Size()
   397  }
   398  func (m *DeleteResourceRequest) XXX_DiscardUnknown() {
   399  	xxx_messageInfo_DeleteResourceRequest.DiscardUnknown(m)
   400  }
   401  
   402  var xxx_messageInfo_DeleteResourceRequest proto.InternalMessageInfo
   403  
   404  type ListResourcesRequest struct {
   405  	ID                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
   406  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   407  	XXX_unrecognized     []byte   `json:"-"`
   408  	XXX_sizecache        int32    `json:"-"`
   409  }
   410  
   411  func (m *ListResourcesRequest) Reset()      { *m = ListResourcesRequest{} }
   412  func (*ListResourcesRequest) ProtoMessage() {}
   413  func (*ListResourcesRequest) Descriptor() ([]byte, []int) {
   414  	return fileDescriptor_fefd70dfe8d93cbf, []int{9}
   415  }
   416  func (m *ListResourcesRequest) XXX_Unmarshal(b []byte) error {
   417  	return m.Unmarshal(b)
   418  }
   419  func (m *ListResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   420  	if deterministic {
   421  		return xxx_messageInfo_ListResourcesRequest.Marshal(b, m, deterministic)
   422  	} else {
   423  		b = b[:cap(b)]
   424  		n, err := m.MarshalToSizedBuffer(b)
   425  		if err != nil {
   426  			return nil, err
   427  		}
   428  		return b[:n], nil
   429  	}
   430  }
   431  func (m *ListResourcesRequest) XXX_Merge(src proto.Message) {
   432  	xxx_messageInfo_ListResourcesRequest.Merge(m, src)
   433  }
   434  func (m *ListResourcesRequest) XXX_Size() int {
   435  	return m.Size()
   436  }
   437  func (m *ListResourcesRequest) XXX_DiscardUnknown() {
   438  	xxx_messageInfo_ListResourcesRequest.DiscardUnknown(m)
   439  }
   440  
   441  var xxx_messageInfo_ListResourcesRequest proto.InternalMessageInfo
   442  
   443  type ListResourcesResponse struct {
   444  	Resources            []Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources"`
   445  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   446  	XXX_unrecognized     []byte     `json:"-"`
   447  	XXX_sizecache        int32      `json:"-"`
   448  }
   449  
   450  func (m *ListResourcesResponse) Reset()      { *m = ListResourcesResponse{} }
   451  func (*ListResourcesResponse) ProtoMessage() {}
   452  func (*ListResourcesResponse) Descriptor() ([]byte, []int) {
   453  	return fileDescriptor_fefd70dfe8d93cbf, []int{10}
   454  }
   455  func (m *ListResourcesResponse) XXX_Unmarshal(b []byte) error {
   456  	return m.Unmarshal(b)
   457  }
   458  func (m *ListResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   459  	if deterministic {
   460  		return xxx_messageInfo_ListResourcesResponse.Marshal(b, m, deterministic)
   461  	} else {
   462  		b = b[:cap(b)]
   463  		n, err := m.MarshalToSizedBuffer(b)
   464  		if err != nil {
   465  			return nil, err
   466  		}
   467  		return b[:n], nil
   468  	}
   469  }
   470  func (m *ListResourcesResponse) XXX_Merge(src proto.Message) {
   471  	xxx_messageInfo_ListResourcesResponse.Merge(m, src)
   472  }
   473  func (m *ListResourcesResponse) XXX_Size() int {
   474  	return m.Size()
   475  }
   476  func (m *ListResourcesResponse) XXX_DiscardUnknown() {
   477  	xxx_messageInfo_ListResourcesResponse.DiscardUnknown(m)
   478  }
   479  
   480  var xxx_messageInfo_ListResourcesResponse proto.InternalMessageInfo
   481  
   482  func init() {
   483  	proto.RegisterType((*Lease)(nil), "containerd.services.leases.v1.Lease")
   484  	proto.RegisterMapType((map[string]string)(nil), "containerd.services.leases.v1.Lease.LabelsEntry")
   485  	proto.RegisterType((*CreateRequest)(nil), "containerd.services.leases.v1.CreateRequest")
   486  	proto.RegisterMapType((map[string]string)(nil), "containerd.services.leases.v1.CreateRequest.LabelsEntry")
   487  	proto.RegisterType((*CreateResponse)(nil), "containerd.services.leases.v1.CreateResponse")
   488  	proto.RegisterType((*DeleteRequest)(nil), "containerd.services.leases.v1.DeleteRequest")
   489  	proto.RegisterType((*ListRequest)(nil), "containerd.services.leases.v1.ListRequest")
   490  	proto.RegisterType((*ListResponse)(nil), "containerd.services.leases.v1.ListResponse")
   491  	proto.RegisterType((*Resource)(nil), "containerd.services.leases.v1.Resource")
   492  	proto.RegisterType((*AddResourceRequest)(nil), "containerd.services.leases.v1.AddResourceRequest")
   493  	proto.RegisterType((*DeleteResourceRequest)(nil), "containerd.services.leases.v1.DeleteResourceRequest")
   494  	proto.RegisterType((*ListResourcesRequest)(nil), "containerd.services.leases.v1.ListResourcesRequest")
   495  	proto.RegisterType((*ListResourcesResponse)(nil), "containerd.services.leases.v1.ListResourcesResponse")
   496  }
   497  
   498  func init() {
   499  	proto.RegisterFile("github.com/containerd/containerd/api/services/leases/v1/leases.proto", fileDescriptor_fefd70dfe8d93cbf)
   500  }
   501  
   502  var fileDescriptor_fefd70dfe8d93cbf = []byte{
   503  	// 644 bytes of a gzipped FileDescriptorProto
   504  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0xcd, 0x6e, 0xd3, 0x40,
   505  	0x10, 0xce, 0x26, 0xa9, 0x49, 0x26, 0xb4, 0x42, 0xab, 0xb6, 0x8a, 0x8c, 0x48, 0x22, 0x0b, 0xa9,
   506  	0x11, 0x3f, 0x36, 0x4d, 0x2b, 0x54, 0x5a, 0x84, 0xd4, 0xb4, 0x95, 0xa8, 0x88, 0x10, 0xb2, 0x38,
   507  	0x54, 0x1c, 0xa8, 0x1c, 0x7b, 0x1b, 0x2c, 0x9c, 0xd8, 0x78, 0x37, 0x41, 0xe9, 0x89, 0x47, 0xe0,
   508  	0x61, 0x78, 0x88, 0x1e, 0x39, 0x21, 0x4e, 0x85, 0xe6, 0xc6, 0x5b, 0x20, 0xef, 0x0f, 0x6d, 0x5a,
   509  	0xb5, 0x76, 0x11, 0xe2, 0x36, 0x1b, 0x7f, 0xdf, 0xcc, 0x37, 0x33, 0xdf, 0x6e, 0x60, 0xbb, 0xe7,
   510  	0xb3, 0x77, 0xc3, 0xae, 0xe9, 0x86, 0x7d, 0xcb, 0x0d, 0x07, 0xcc, 0xf1, 0x07, 0x24, 0xf6, 0xce,
   511  	0x86, 0x4e, 0xe4, 0x5b, 0x94, 0xc4, 0x23, 0xdf, 0x25, 0xd4, 0x0a, 0x88, 0x43, 0x09, 0xb5, 0x46,
   512  	0xcb, 0x32, 0x32, 0xa3, 0x38, 0x64, 0x21, 0xbe, 0x73, 0x8a, 0x37, 0x15, 0xd6, 0x94, 0x88, 0xd1,
   513  	0xb2, 0x3e, 0xdf, 0x0b, 0x7b, 0x21, 0x47, 0x5a, 0x49, 0x24, 0x48, 0xfa, 0xed, 0x5e, 0x18, 0xf6,
   514  	0x02, 0x62, 0xf1, 0x53, 0x77, 0x78, 0x60, 0x91, 0x7e, 0xc4, 0xc6, 0xf2, 0x63, 0xfd, 0xfc, 0x47,
   515  	0xe6, 0xf7, 0x09, 0x65, 0x4e, 0x3f, 0x12, 0x00, 0xe3, 0x17, 0x82, 0x99, 0x4e, 0x52, 0x01, 0x2f,
   516  	0x42, 0xde, 0xf7, 0xaa, 0xa8, 0x81, 0x9a, 0xe5, 0xb6, 0x36, 0x39, 0xae, 0xe7, 0x77, 0xb7, 0xed,
   517  	0xbc, 0xef, 0xe1, 0x2d, 0x00, 0x37, 0x26, 0x0e, 0x23, 0xde, 0xbe, 0xc3, 0xaa, 0xf9, 0x06, 0x6a,
   518  	0x56, 0x5a, 0xba, 0x29, 0xf2, 0x9a, 0x2a, 0xaf, 0xf9, 0x5a, 0xe5, 0x6d, 0x97, 0x8e, 0x8e, 0xeb,
   519  	0xb9, 0xcf, 0x3f, 0xea, 0xc8, 0x2e, 0x4b, 0xde, 0x26, 0xc3, 0xcf, 0x41, 0x0b, 0x9c, 0x2e, 0x09,
   520  	0x68, 0xb5, 0xd0, 0x28, 0x34, 0x2b, 0xad, 0x47, 0xe6, 0x95, 0xad, 0x9a, 0x5c, 0x92, 0xd9, 0xe1,
   521  	0x94, 0x9d, 0x01, 0x8b, 0xc7, 0xb6, 0xe4, 0xeb, 0x4f, 0xa0, 0x72, 0xe6, 0x67, 0x7c, 0x0b, 0x0a,
   522  	0xef, 0xc9, 0x58, 0xc8, 0xb6, 0x93, 0x10, 0xcf, 0xc3, 0xcc, 0xc8, 0x09, 0x86, 0x84, 0x4b, 0x2d,
   523  	0xdb, 0xe2, 0xb0, 0x9e, 0x5f, 0x43, 0xc6, 0x17, 0x04, 0xb3, 0x5b, 0x5c, 0x92, 0x4d, 0x3e, 0x0c,
   524  	0x09, 0x65, 0x97, 0xf6, 0xfc, 0xea, 0x9c, 0xdc, 0xb5, 0x14, 0xb9, 0x53, 0x59, 0xff, 0xb5, 0xec,
   525  	0x0e, 0xcc, 0xa9, 0xfc, 0x34, 0x0a, 0x07, 0x94, 0xe0, 0x75, 0x98, 0xe1, 0xb5, 0x39, 0xbf, 0xd2,
   526  	0xba, 0x9b, 0x65, 0x98, 0xb6, 0xa0, 0x18, 0x1b, 0x30, 0xbb, 0x4d, 0x02, 0x92, 0x3e, 0x03, 0x0c,
   527  	0x45, 0x3a, 0x1e, 0xb8, 0x5c, 0x4f, 0xc9, 0xe6, 0xb1, 0xb1, 0x04, 0x95, 0x8e, 0x4f, 0x99, 0xa2,
   528  	0x56, 0xe1, 0xc6, 0x81, 0x1f, 0x30, 0x12, 0xd3, 0x2a, 0x6a, 0x14, 0x9a, 0x65, 0x5b, 0x1d, 0x8d,
   529  	0x0e, 0xdc, 0x14, 0x40, 0xa9, 0xf8, 0x29, 0x68, 0x42, 0x0f, 0x07, 0x66, 0x95, 0x2c, 0x39, 0xc6,
   530  	0x63, 0x28, 0xd9, 0x84, 0x86, 0xc3, 0xd8, 0x25, 0x57, 0xc9, 0x65, 0xe3, 0x48, 0x8d, 0x8f, 0xc7,
   531  	0xc6, 0x47, 0xc0, 0x9b, 0x9e, 0xa7, 0xa8, 0x69, 0x0d, 0xef, 0x42, 0x29, 0x96, 0x50, 0x69, 0xf3,
   532  	0xa5, 0x14, 0x95, 0x2a, 0x73, 0xbb, 0x98, 0x78, 0xde, 0xfe, 0x43, 0x37, 0x0e, 0x61, 0x41, 0x0d,
   533  	0xf9, 0xbf, 0xd7, 0x36, 0x61, 0x5e, 0x8e, 0x9e, 0x9f, 0x69, 0x4a, 0x69, 0xc3, 0x83, 0x85, 0x73,
   534  	0x78, 0xb9, 0xb3, 0x17, 0x50, 0x56, 0x49, 0xd5, 0xda, 0xae, 0x29, 0xea, 0x94, 0xdf, 0xfa, 0x56,
   535  	0x04, 0x8d, 0x2f, 0x95, 0x62, 0x02, 0x9a, 0xf0, 0x33, 0x7e, 0x70, 0x9d, 0x6b, 0xa5, 0x3f, 0xcc,
   536  	0x88, 0x96, 0xf2, 0x5f, 0x82, 0x26, 0x76, 0x90, 0x5a, 0x66, 0xea, 0x3e, 0xe8, 0x8b, 0x17, 0xde,
   537  	0xb6, 0x9d, 0xe4, 0x41, 0xc5, 0xfb, 0x50, 0x4c, 0xe6, 0x84, 0xef, 0xa5, 0x59, 0xf7, 0xf4, 0x82,
   538  	0xe8, 0xf7, 0x33, 0x61, 0xa5, 0xe0, 0x3d, 0xa8, 0x9c, 0x71, 0x2b, 0x5e, 0x4e, 0xe1, 0x5e, 0x74,
   539  	0xf6, 0xa5, 0xd2, 0xdf, 0xc2, 0xdc, 0xb4, 0x1d, 0xf1, 0x6a, 0xc6, 0x91, 0x64, 0xcb, 0x7f, 0x08,
   540  	0xb3, 0x53, 0x16, 0xc2, 0x2b, 0xd9, 0xfa, 0x9e, 0x32, 0xa8, 0xbe, 0x7a, 0x3d, 0x92, 0x98, 0x5a,
   541  	0x7b, 0xef, 0xe8, 0xa4, 0x96, 0xfb, 0x7e, 0x52, 0xcb, 0x7d, 0x9a, 0xd4, 0xd0, 0xd1, 0xa4, 0x86,
   542  	0xbe, 0x4e, 0x6a, 0xe8, 0xe7, 0xa4, 0x86, 0xde, 0x3c, 0xfb, 0xcb, 0xff, 0xe4, 0x0d, 0x11, 0xed,
   543  	0xe5, 0xba, 0x1a, 0xef, 0x73, 0xe5, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0d, 0xfe, 0x39, 0x67,
   544  	0xde, 0x07, 0x00, 0x00,
   545  }
   546  
   547  // Reference imports to suppress errors if they are not otherwise used.
   548  var _ context.Context
   549  var _ grpc.ClientConn
   550  
   551  // This is a compile-time assertion to ensure that this generated file
   552  // is compatible with the grpc package it is being compiled against.
   553  const _ = grpc.SupportPackageIsVersion4
   554  
   555  // LeasesClient is the client API for Leases service.
   556  //
   557  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   558  type LeasesClient interface {
   559  	// Create creates a new lease for managing changes to metadata. A lease
   560  	// can be used to protect objects from being removed.
   561  	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
   562  	// Delete deletes the lease and makes any unreferenced objects created
   563  	// during the lease eligible for garbage collection if not referenced
   564  	// or retained by other resources during the lease.
   565  	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*types.Empty, error)
   566  	// List lists all active leases, returning the full list of
   567  	// leases and optionally including the referenced resources.
   568  	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
   569  	// AddResource references the resource by the provided lease.
   570  	AddResource(ctx context.Context, in *AddResourceRequest, opts ...grpc.CallOption) (*types.Empty, error)
   571  	// DeleteResource dereferences the resource by the provided lease.
   572  	DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*types.Empty, error)
   573  	// ListResources lists all the resources referenced by the lease.
   574  	ListResources(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error)
   575  }
   576  
   577  type leasesClient struct {
   578  	cc *grpc.ClientConn
   579  }
   580  
   581  func NewLeasesClient(cc *grpc.ClientConn) LeasesClient {
   582  	return &leasesClient{cc}
   583  }
   584  
   585  func (c *leasesClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {
   586  	out := new(CreateResponse)
   587  	err := c.cc.Invoke(ctx, "/containerd.services.leases.v1.Leases/Create", in, out, opts...)
   588  	if err != nil {
   589  		return nil, err
   590  	}
   591  	return out, nil
   592  }
   593  
   594  func (c *leasesClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*types.Empty, error) {
   595  	out := new(types.Empty)
   596  	err := c.cc.Invoke(ctx, "/containerd.services.leases.v1.Leases/Delete", in, out, opts...)
   597  	if err != nil {
   598  		return nil, err
   599  	}
   600  	return out, nil
   601  }
   602  
   603  func (c *leasesClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
   604  	out := new(ListResponse)
   605  	err := c.cc.Invoke(ctx, "/containerd.services.leases.v1.Leases/List", in, out, opts...)
   606  	if err != nil {
   607  		return nil, err
   608  	}
   609  	return out, nil
   610  }
   611  
   612  func (c *leasesClient) AddResource(ctx context.Context, in *AddResourceRequest, opts ...grpc.CallOption) (*types.Empty, error) {
   613  	out := new(types.Empty)
   614  	err := c.cc.Invoke(ctx, "/containerd.services.leases.v1.Leases/AddResource", in, out, opts...)
   615  	if err != nil {
   616  		return nil, err
   617  	}
   618  	return out, nil
   619  }
   620  
   621  func (c *leasesClient) DeleteResource(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*types.Empty, error) {
   622  	out := new(types.Empty)
   623  	err := c.cc.Invoke(ctx, "/containerd.services.leases.v1.Leases/DeleteResource", in, out, opts...)
   624  	if err != nil {
   625  		return nil, err
   626  	}
   627  	return out, nil
   628  }
   629  
   630  func (c *leasesClient) ListResources(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error) {
   631  	out := new(ListResourcesResponse)
   632  	err := c.cc.Invoke(ctx, "/containerd.services.leases.v1.Leases/ListResources", in, out, opts...)
   633  	if err != nil {
   634  		return nil, err
   635  	}
   636  	return out, nil
   637  }
   638  
   639  // LeasesServer is the server API for Leases service.
   640  type LeasesServer interface {
   641  	// Create creates a new lease for managing changes to metadata. A lease
   642  	// can be used to protect objects from being removed.
   643  	Create(context.Context, *CreateRequest) (*CreateResponse, error)
   644  	// Delete deletes the lease and makes any unreferenced objects created
   645  	// during the lease eligible for garbage collection if not referenced
   646  	// or retained by other resources during the lease.
   647  	Delete(context.Context, *DeleteRequest) (*types.Empty, error)
   648  	// List lists all active leases, returning the full list of
   649  	// leases and optionally including the referenced resources.
   650  	List(context.Context, *ListRequest) (*ListResponse, error)
   651  	// AddResource references the resource by the provided lease.
   652  	AddResource(context.Context, *AddResourceRequest) (*types.Empty, error)
   653  	// DeleteResource dereferences the resource by the provided lease.
   654  	DeleteResource(context.Context, *DeleteResourceRequest) (*types.Empty, error)
   655  	// ListResources lists all the resources referenced by the lease.
   656  	ListResources(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error)
   657  }
   658  
   659  // UnimplementedLeasesServer can be embedded to have forward compatible implementations.
   660  type UnimplementedLeasesServer struct {
   661  }
   662  
   663  func (*UnimplementedLeasesServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) {
   664  	return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
   665  }
   666  func (*UnimplementedLeasesServer) Delete(ctx context.Context, req *DeleteRequest) (*types.Empty, error) {
   667  	return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
   668  }
   669  func (*UnimplementedLeasesServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error) {
   670  	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
   671  }
   672  func (*UnimplementedLeasesServer) AddResource(ctx context.Context, req *AddResourceRequest) (*types.Empty, error) {
   673  	return nil, status.Errorf(codes.Unimplemented, "method AddResource not implemented")
   674  }
   675  func (*UnimplementedLeasesServer) DeleteResource(ctx context.Context, req *DeleteResourceRequest) (*types.Empty, error) {
   676  	return nil, status.Errorf(codes.Unimplemented, "method DeleteResource not implemented")
   677  }
   678  func (*UnimplementedLeasesServer) ListResources(ctx context.Context, req *ListResourcesRequest) (*ListResourcesResponse, error) {
   679  	return nil, status.Errorf(codes.Unimplemented, "method ListResources not implemented")
   680  }
   681  
   682  func RegisterLeasesServer(s *grpc.Server, srv LeasesServer) {
   683  	s.RegisterService(&_Leases_serviceDesc, srv)
   684  }
   685  
   686  func _Leases_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   687  	in := new(CreateRequest)
   688  	if err := dec(in); err != nil {
   689  		return nil, err
   690  	}
   691  	if interceptor == nil {
   692  		return srv.(LeasesServer).Create(ctx, in)
   693  	}
   694  	info := &grpc.UnaryServerInfo{
   695  		Server:     srv,
   696  		FullMethod: "/containerd.services.leases.v1.Leases/Create",
   697  	}
   698  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   699  		return srv.(LeasesServer).Create(ctx, req.(*CreateRequest))
   700  	}
   701  	return interceptor(ctx, in, info, handler)
   702  }
   703  
   704  func _Leases_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   705  	in := new(DeleteRequest)
   706  	if err := dec(in); err != nil {
   707  		return nil, err
   708  	}
   709  	if interceptor == nil {
   710  		return srv.(LeasesServer).Delete(ctx, in)
   711  	}
   712  	info := &grpc.UnaryServerInfo{
   713  		Server:     srv,
   714  		FullMethod: "/containerd.services.leases.v1.Leases/Delete",
   715  	}
   716  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   717  		return srv.(LeasesServer).Delete(ctx, req.(*DeleteRequest))
   718  	}
   719  	return interceptor(ctx, in, info, handler)
   720  }
   721  
   722  func _Leases_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   723  	in := new(ListRequest)
   724  	if err := dec(in); err != nil {
   725  		return nil, err
   726  	}
   727  	if interceptor == nil {
   728  		return srv.(LeasesServer).List(ctx, in)
   729  	}
   730  	info := &grpc.UnaryServerInfo{
   731  		Server:     srv,
   732  		FullMethod: "/containerd.services.leases.v1.Leases/List",
   733  	}
   734  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   735  		return srv.(LeasesServer).List(ctx, req.(*ListRequest))
   736  	}
   737  	return interceptor(ctx, in, info, handler)
   738  }
   739  
   740  func _Leases_AddResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   741  	in := new(AddResourceRequest)
   742  	if err := dec(in); err != nil {
   743  		return nil, err
   744  	}
   745  	if interceptor == nil {
   746  		return srv.(LeasesServer).AddResource(ctx, in)
   747  	}
   748  	info := &grpc.UnaryServerInfo{
   749  		Server:     srv,
   750  		FullMethod: "/containerd.services.leases.v1.Leases/AddResource",
   751  	}
   752  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   753  		return srv.(LeasesServer).AddResource(ctx, req.(*AddResourceRequest))
   754  	}
   755  	return interceptor(ctx, in, info, handler)
   756  }
   757  
   758  func _Leases_DeleteResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   759  	in := new(DeleteResourceRequest)
   760  	if err := dec(in); err != nil {
   761  		return nil, err
   762  	}
   763  	if interceptor == nil {
   764  		return srv.(LeasesServer).DeleteResource(ctx, in)
   765  	}
   766  	info := &grpc.UnaryServerInfo{
   767  		Server:     srv,
   768  		FullMethod: "/containerd.services.leases.v1.Leases/DeleteResource",
   769  	}
   770  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   771  		return srv.(LeasesServer).DeleteResource(ctx, req.(*DeleteResourceRequest))
   772  	}
   773  	return interceptor(ctx, in, info, handler)
   774  }
   775  
   776  func _Leases_ListResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   777  	in := new(ListResourcesRequest)
   778  	if err := dec(in); err != nil {
   779  		return nil, err
   780  	}
   781  	if interceptor == nil {
   782  		return srv.(LeasesServer).ListResources(ctx, in)
   783  	}
   784  	info := &grpc.UnaryServerInfo{
   785  		Server:     srv,
   786  		FullMethod: "/containerd.services.leases.v1.Leases/ListResources",
   787  	}
   788  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   789  		return srv.(LeasesServer).ListResources(ctx, req.(*ListResourcesRequest))
   790  	}
   791  	return interceptor(ctx, in, info, handler)
   792  }
   793  
   794  var _Leases_serviceDesc = grpc.ServiceDesc{
   795  	ServiceName: "containerd.services.leases.v1.Leases",
   796  	HandlerType: (*LeasesServer)(nil),
   797  	Methods: []grpc.MethodDesc{
   798  		{
   799  			MethodName: "Create",
   800  			Handler:    _Leases_Create_Handler,
   801  		},
   802  		{
   803  			MethodName: "Delete",
   804  			Handler:    _Leases_Delete_Handler,
   805  		},
   806  		{
   807  			MethodName: "List",
   808  			Handler:    _Leases_List_Handler,
   809  		},
   810  		{
   811  			MethodName: "AddResource",
   812  			Handler:    _Leases_AddResource_Handler,
   813  		},
   814  		{
   815  			MethodName: "DeleteResource",
   816  			Handler:    _Leases_DeleteResource_Handler,
   817  		},
   818  		{
   819  			MethodName: "ListResources",
   820  			Handler:    _Leases_ListResources_Handler,
   821  		},
   822  	},
   823  	Streams:  []grpc.StreamDesc{},
   824  	Metadata: "github.com/containerd/containerd/api/services/leases/v1/leases.proto",
   825  }
   826  
   827  func (m *Lease) Marshal() (dAtA []byte, err error) {
   828  	size := m.Size()
   829  	dAtA = make([]byte, size)
   830  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   831  	if err != nil {
   832  		return nil, err
   833  	}
   834  	return dAtA[:n], nil
   835  }
   836  
   837  func (m *Lease) MarshalTo(dAtA []byte) (int, error) {
   838  	size := m.Size()
   839  	return m.MarshalToSizedBuffer(dAtA[:size])
   840  }
   841  
   842  func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   843  	i := len(dAtA)
   844  	_ = i
   845  	var l int
   846  	_ = l
   847  	if m.XXX_unrecognized != nil {
   848  		i -= len(m.XXX_unrecognized)
   849  		copy(dAtA[i:], m.XXX_unrecognized)
   850  	}
   851  	if len(m.Labels) > 0 {
   852  		for k := range m.Labels {
   853  			v := m.Labels[k]
   854  			baseI := i
   855  			i -= len(v)
   856  			copy(dAtA[i:], v)
   857  			i = encodeVarintLeases(dAtA, i, uint64(len(v)))
   858  			i--
   859  			dAtA[i] = 0x12
   860  			i -= len(k)
   861  			copy(dAtA[i:], k)
   862  			i = encodeVarintLeases(dAtA, i, uint64(len(k)))
   863  			i--
   864  			dAtA[i] = 0xa
   865  			i = encodeVarintLeases(dAtA, i, uint64(baseI-i))
   866  			i--
   867  			dAtA[i] = 0x1a
   868  		}
   869  	}
   870  	n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt):])
   871  	if err1 != nil {
   872  		return 0, err1
   873  	}
   874  	i -= n1
   875  	i = encodeVarintLeases(dAtA, i, uint64(n1))
   876  	i--
   877  	dAtA[i] = 0x12
   878  	if len(m.ID) > 0 {
   879  		i -= len(m.ID)
   880  		copy(dAtA[i:], m.ID)
   881  		i = encodeVarintLeases(dAtA, i, uint64(len(m.ID)))
   882  		i--
   883  		dAtA[i] = 0xa
   884  	}
   885  	return len(dAtA) - i, nil
   886  }
   887  
   888  func (m *CreateRequest) Marshal() (dAtA []byte, err error) {
   889  	size := m.Size()
   890  	dAtA = make([]byte, size)
   891  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   892  	if err != nil {
   893  		return nil, err
   894  	}
   895  	return dAtA[:n], nil
   896  }
   897  
   898  func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) {
   899  	size := m.Size()
   900  	return m.MarshalToSizedBuffer(dAtA[:size])
   901  }
   902  
   903  func (m *CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   904  	i := len(dAtA)
   905  	_ = i
   906  	var l int
   907  	_ = l
   908  	if m.XXX_unrecognized != nil {
   909  		i -= len(m.XXX_unrecognized)
   910  		copy(dAtA[i:], m.XXX_unrecognized)
   911  	}
   912  	if len(m.Labels) > 0 {
   913  		for k := range m.Labels {
   914  			v := m.Labels[k]
   915  			baseI := i
   916  			i -= len(v)
   917  			copy(dAtA[i:], v)
   918  			i = encodeVarintLeases(dAtA, i, uint64(len(v)))
   919  			i--
   920  			dAtA[i] = 0x12
   921  			i -= len(k)
   922  			copy(dAtA[i:], k)
   923  			i = encodeVarintLeases(dAtA, i, uint64(len(k)))
   924  			i--
   925  			dAtA[i] = 0xa
   926  			i = encodeVarintLeases(dAtA, i, uint64(baseI-i))
   927  			i--
   928  			dAtA[i] = 0x1a
   929  		}
   930  	}
   931  	if len(m.ID) > 0 {
   932  		i -= len(m.ID)
   933  		copy(dAtA[i:], m.ID)
   934  		i = encodeVarintLeases(dAtA, i, uint64(len(m.ID)))
   935  		i--
   936  		dAtA[i] = 0xa
   937  	}
   938  	return len(dAtA) - i, nil
   939  }
   940  
   941  func (m *CreateResponse) Marshal() (dAtA []byte, err error) {
   942  	size := m.Size()
   943  	dAtA = make([]byte, size)
   944  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   945  	if err != nil {
   946  		return nil, err
   947  	}
   948  	return dAtA[:n], nil
   949  }
   950  
   951  func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) {
   952  	size := m.Size()
   953  	return m.MarshalToSizedBuffer(dAtA[:size])
   954  }
   955  
   956  func (m *CreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   957  	i := len(dAtA)
   958  	_ = i
   959  	var l int
   960  	_ = l
   961  	if m.XXX_unrecognized != nil {
   962  		i -= len(m.XXX_unrecognized)
   963  		copy(dAtA[i:], m.XXX_unrecognized)
   964  	}
   965  	if m.Lease != nil {
   966  		{
   967  			size, err := m.Lease.MarshalToSizedBuffer(dAtA[:i])
   968  			if err != nil {
   969  				return 0, err
   970  			}
   971  			i -= size
   972  			i = encodeVarintLeases(dAtA, i, uint64(size))
   973  		}
   974  		i--
   975  		dAtA[i] = 0xa
   976  	}
   977  	return len(dAtA) - i, nil
   978  }
   979  
   980  func (m *DeleteRequest) Marshal() (dAtA []byte, err error) {
   981  	size := m.Size()
   982  	dAtA = make([]byte, size)
   983  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   984  	if err != nil {
   985  		return nil, err
   986  	}
   987  	return dAtA[:n], nil
   988  }
   989  
   990  func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) {
   991  	size := m.Size()
   992  	return m.MarshalToSizedBuffer(dAtA[:size])
   993  }
   994  
   995  func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   996  	i := len(dAtA)
   997  	_ = i
   998  	var l int
   999  	_ = l
  1000  	if m.XXX_unrecognized != nil {
  1001  		i -= len(m.XXX_unrecognized)
  1002  		copy(dAtA[i:], m.XXX_unrecognized)
  1003  	}
  1004  	if m.Sync {
  1005  		i--
  1006  		if m.Sync {
  1007  			dAtA[i] = 1
  1008  		} else {
  1009  			dAtA[i] = 0
  1010  		}
  1011  		i--
  1012  		dAtA[i] = 0x10
  1013  	}
  1014  	if len(m.ID) > 0 {
  1015  		i -= len(m.ID)
  1016  		copy(dAtA[i:], m.ID)
  1017  		i = encodeVarintLeases(dAtA, i, uint64(len(m.ID)))
  1018  		i--
  1019  		dAtA[i] = 0xa
  1020  	}
  1021  	return len(dAtA) - i, nil
  1022  }
  1023  
  1024  func (m *ListRequest) Marshal() (dAtA []byte, err error) {
  1025  	size := m.Size()
  1026  	dAtA = make([]byte, size)
  1027  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1028  	if err != nil {
  1029  		return nil, err
  1030  	}
  1031  	return dAtA[:n], nil
  1032  }
  1033  
  1034  func (m *ListRequest) MarshalTo(dAtA []byte) (int, error) {
  1035  	size := m.Size()
  1036  	return m.MarshalToSizedBuffer(dAtA[:size])
  1037  }
  1038  
  1039  func (m *ListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1040  	i := len(dAtA)
  1041  	_ = i
  1042  	var l int
  1043  	_ = l
  1044  	if m.XXX_unrecognized != nil {
  1045  		i -= len(m.XXX_unrecognized)
  1046  		copy(dAtA[i:], m.XXX_unrecognized)
  1047  	}
  1048  	if len(m.Filters) > 0 {
  1049  		for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- {
  1050  			i -= len(m.Filters[iNdEx])
  1051  			copy(dAtA[i:], m.Filters[iNdEx])
  1052  			i = encodeVarintLeases(dAtA, i, uint64(len(m.Filters[iNdEx])))
  1053  			i--
  1054  			dAtA[i] = 0xa
  1055  		}
  1056  	}
  1057  	return len(dAtA) - i, nil
  1058  }
  1059  
  1060  func (m *ListResponse) Marshal() (dAtA []byte, err error) {
  1061  	size := m.Size()
  1062  	dAtA = make([]byte, size)
  1063  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1064  	if err != nil {
  1065  		return nil, err
  1066  	}
  1067  	return dAtA[:n], nil
  1068  }
  1069  
  1070  func (m *ListResponse) MarshalTo(dAtA []byte) (int, error) {
  1071  	size := m.Size()
  1072  	return m.MarshalToSizedBuffer(dAtA[:size])
  1073  }
  1074  
  1075  func (m *ListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1076  	i := len(dAtA)
  1077  	_ = i
  1078  	var l int
  1079  	_ = l
  1080  	if m.XXX_unrecognized != nil {
  1081  		i -= len(m.XXX_unrecognized)
  1082  		copy(dAtA[i:], m.XXX_unrecognized)
  1083  	}
  1084  	if len(m.Leases) > 0 {
  1085  		for iNdEx := len(m.Leases) - 1; iNdEx >= 0; iNdEx-- {
  1086  			{
  1087  				size, err := m.Leases[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1088  				if err != nil {
  1089  					return 0, err
  1090  				}
  1091  				i -= size
  1092  				i = encodeVarintLeases(dAtA, i, uint64(size))
  1093  			}
  1094  			i--
  1095  			dAtA[i] = 0xa
  1096  		}
  1097  	}
  1098  	return len(dAtA) - i, nil
  1099  }
  1100  
  1101  func (m *Resource) Marshal() (dAtA []byte, err error) {
  1102  	size := m.Size()
  1103  	dAtA = make([]byte, size)
  1104  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1105  	if err != nil {
  1106  		return nil, err
  1107  	}
  1108  	return dAtA[:n], nil
  1109  }
  1110  
  1111  func (m *Resource) MarshalTo(dAtA []byte) (int, error) {
  1112  	size := m.Size()
  1113  	return m.MarshalToSizedBuffer(dAtA[:size])
  1114  }
  1115  
  1116  func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1117  	i := len(dAtA)
  1118  	_ = i
  1119  	var l int
  1120  	_ = l
  1121  	if m.XXX_unrecognized != nil {
  1122  		i -= len(m.XXX_unrecognized)
  1123  		copy(dAtA[i:], m.XXX_unrecognized)
  1124  	}
  1125  	if len(m.Type) > 0 {
  1126  		i -= len(m.Type)
  1127  		copy(dAtA[i:], m.Type)
  1128  		i = encodeVarintLeases(dAtA, i, uint64(len(m.Type)))
  1129  		i--
  1130  		dAtA[i] = 0x12
  1131  	}
  1132  	if len(m.ID) > 0 {
  1133  		i -= len(m.ID)
  1134  		copy(dAtA[i:], m.ID)
  1135  		i = encodeVarintLeases(dAtA, i, uint64(len(m.ID)))
  1136  		i--
  1137  		dAtA[i] = 0xa
  1138  	}
  1139  	return len(dAtA) - i, nil
  1140  }
  1141  
  1142  func (m *AddResourceRequest) Marshal() (dAtA []byte, err error) {
  1143  	size := m.Size()
  1144  	dAtA = make([]byte, size)
  1145  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1146  	if err != nil {
  1147  		return nil, err
  1148  	}
  1149  	return dAtA[:n], nil
  1150  }
  1151  
  1152  func (m *AddResourceRequest) MarshalTo(dAtA []byte) (int, error) {
  1153  	size := m.Size()
  1154  	return m.MarshalToSizedBuffer(dAtA[:size])
  1155  }
  1156  
  1157  func (m *AddResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1158  	i := len(dAtA)
  1159  	_ = i
  1160  	var l int
  1161  	_ = l
  1162  	if m.XXX_unrecognized != nil {
  1163  		i -= len(m.XXX_unrecognized)
  1164  		copy(dAtA[i:], m.XXX_unrecognized)
  1165  	}
  1166  	{
  1167  		size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
  1168  		if err != nil {
  1169  			return 0, err
  1170  		}
  1171  		i -= size
  1172  		i = encodeVarintLeases(dAtA, i, uint64(size))
  1173  	}
  1174  	i--
  1175  	dAtA[i] = 0x12
  1176  	if len(m.ID) > 0 {
  1177  		i -= len(m.ID)
  1178  		copy(dAtA[i:], m.ID)
  1179  		i = encodeVarintLeases(dAtA, i, uint64(len(m.ID)))
  1180  		i--
  1181  		dAtA[i] = 0xa
  1182  	}
  1183  	return len(dAtA) - i, nil
  1184  }
  1185  
  1186  func (m *DeleteResourceRequest) Marshal() (dAtA []byte, err error) {
  1187  	size := m.Size()
  1188  	dAtA = make([]byte, size)
  1189  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1190  	if err != nil {
  1191  		return nil, err
  1192  	}
  1193  	return dAtA[:n], nil
  1194  }
  1195  
  1196  func (m *DeleteResourceRequest) MarshalTo(dAtA []byte) (int, error) {
  1197  	size := m.Size()
  1198  	return m.MarshalToSizedBuffer(dAtA[:size])
  1199  }
  1200  
  1201  func (m *DeleteResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1202  	i := len(dAtA)
  1203  	_ = i
  1204  	var l int
  1205  	_ = l
  1206  	if m.XXX_unrecognized != nil {
  1207  		i -= len(m.XXX_unrecognized)
  1208  		copy(dAtA[i:], m.XXX_unrecognized)
  1209  	}
  1210  	{
  1211  		size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i])
  1212  		if err != nil {
  1213  			return 0, err
  1214  		}
  1215  		i -= size
  1216  		i = encodeVarintLeases(dAtA, i, uint64(size))
  1217  	}
  1218  	i--
  1219  	dAtA[i] = 0x12
  1220  	if len(m.ID) > 0 {
  1221  		i -= len(m.ID)
  1222  		copy(dAtA[i:], m.ID)
  1223  		i = encodeVarintLeases(dAtA, i, uint64(len(m.ID)))
  1224  		i--
  1225  		dAtA[i] = 0xa
  1226  	}
  1227  	return len(dAtA) - i, nil
  1228  }
  1229  
  1230  func (m *ListResourcesRequest) Marshal() (dAtA []byte, err error) {
  1231  	size := m.Size()
  1232  	dAtA = make([]byte, size)
  1233  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1234  	if err != nil {
  1235  		return nil, err
  1236  	}
  1237  	return dAtA[:n], nil
  1238  }
  1239  
  1240  func (m *ListResourcesRequest) MarshalTo(dAtA []byte) (int, error) {
  1241  	size := m.Size()
  1242  	return m.MarshalToSizedBuffer(dAtA[:size])
  1243  }
  1244  
  1245  func (m *ListResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1246  	i := len(dAtA)
  1247  	_ = i
  1248  	var l int
  1249  	_ = l
  1250  	if m.XXX_unrecognized != nil {
  1251  		i -= len(m.XXX_unrecognized)
  1252  		copy(dAtA[i:], m.XXX_unrecognized)
  1253  	}
  1254  	if len(m.ID) > 0 {
  1255  		i -= len(m.ID)
  1256  		copy(dAtA[i:], m.ID)
  1257  		i = encodeVarintLeases(dAtA, i, uint64(len(m.ID)))
  1258  		i--
  1259  		dAtA[i] = 0xa
  1260  	}
  1261  	return len(dAtA) - i, nil
  1262  }
  1263  
  1264  func (m *ListResourcesResponse) Marshal() (dAtA []byte, err error) {
  1265  	size := m.Size()
  1266  	dAtA = make([]byte, size)
  1267  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1268  	if err != nil {
  1269  		return nil, err
  1270  	}
  1271  	return dAtA[:n], nil
  1272  }
  1273  
  1274  func (m *ListResourcesResponse) MarshalTo(dAtA []byte) (int, error) {
  1275  	size := m.Size()
  1276  	return m.MarshalToSizedBuffer(dAtA[:size])
  1277  }
  1278  
  1279  func (m *ListResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1280  	i := len(dAtA)
  1281  	_ = i
  1282  	var l int
  1283  	_ = l
  1284  	if m.XXX_unrecognized != nil {
  1285  		i -= len(m.XXX_unrecognized)
  1286  		copy(dAtA[i:], m.XXX_unrecognized)
  1287  	}
  1288  	if len(m.Resources) > 0 {
  1289  		for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- {
  1290  			{
  1291  				size, err := m.Resources[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1292  				if err != nil {
  1293  					return 0, err
  1294  				}
  1295  				i -= size
  1296  				i = encodeVarintLeases(dAtA, i, uint64(size))
  1297  			}
  1298  			i--
  1299  			dAtA[i] = 0xa
  1300  		}
  1301  	}
  1302  	return len(dAtA) - i, nil
  1303  }
  1304  
  1305  func encodeVarintLeases(dAtA []byte, offset int, v uint64) int {
  1306  	offset -= sovLeases(v)
  1307  	base := offset
  1308  	for v >= 1<<7 {
  1309  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1310  		v >>= 7
  1311  		offset++
  1312  	}
  1313  	dAtA[offset] = uint8(v)
  1314  	return base
  1315  }
  1316  func (m *Lease) Size() (n int) {
  1317  	if m == nil {
  1318  		return 0
  1319  	}
  1320  	var l int
  1321  	_ = l
  1322  	l = len(m.ID)
  1323  	if l > 0 {
  1324  		n += 1 + l + sovLeases(uint64(l))
  1325  	}
  1326  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)
  1327  	n += 1 + l + sovLeases(uint64(l))
  1328  	if len(m.Labels) > 0 {
  1329  		for k, v := range m.Labels {
  1330  			_ = k
  1331  			_ = v
  1332  			mapEntrySize := 1 + len(k) + sovLeases(uint64(len(k))) + 1 + len(v) + sovLeases(uint64(len(v)))
  1333  			n += mapEntrySize + 1 + sovLeases(uint64(mapEntrySize))
  1334  		}
  1335  	}
  1336  	if m.XXX_unrecognized != nil {
  1337  		n += len(m.XXX_unrecognized)
  1338  	}
  1339  	return n
  1340  }
  1341  
  1342  func (m *CreateRequest) Size() (n int) {
  1343  	if m == nil {
  1344  		return 0
  1345  	}
  1346  	var l int
  1347  	_ = l
  1348  	l = len(m.ID)
  1349  	if l > 0 {
  1350  		n += 1 + l + sovLeases(uint64(l))
  1351  	}
  1352  	if len(m.Labels) > 0 {
  1353  		for k, v := range m.Labels {
  1354  			_ = k
  1355  			_ = v
  1356  			mapEntrySize := 1 + len(k) + sovLeases(uint64(len(k))) + 1 + len(v) + sovLeases(uint64(len(v)))
  1357  			n += mapEntrySize + 1 + sovLeases(uint64(mapEntrySize))
  1358  		}
  1359  	}
  1360  	if m.XXX_unrecognized != nil {
  1361  		n += len(m.XXX_unrecognized)
  1362  	}
  1363  	return n
  1364  }
  1365  
  1366  func (m *CreateResponse) Size() (n int) {
  1367  	if m == nil {
  1368  		return 0
  1369  	}
  1370  	var l int
  1371  	_ = l
  1372  	if m.Lease != nil {
  1373  		l = m.Lease.Size()
  1374  		n += 1 + l + sovLeases(uint64(l))
  1375  	}
  1376  	if m.XXX_unrecognized != nil {
  1377  		n += len(m.XXX_unrecognized)
  1378  	}
  1379  	return n
  1380  }
  1381  
  1382  func (m *DeleteRequest) Size() (n int) {
  1383  	if m == nil {
  1384  		return 0
  1385  	}
  1386  	var l int
  1387  	_ = l
  1388  	l = len(m.ID)
  1389  	if l > 0 {
  1390  		n += 1 + l + sovLeases(uint64(l))
  1391  	}
  1392  	if m.Sync {
  1393  		n += 2
  1394  	}
  1395  	if m.XXX_unrecognized != nil {
  1396  		n += len(m.XXX_unrecognized)
  1397  	}
  1398  	return n
  1399  }
  1400  
  1401  func (m *ListRequest) Size() (n int) {
  1402  	if m == nil {
  1403  		return 0
  1404  	}
  1405  	var l int
  1406  	_ = l
  1407  	if len(m.Filters) > 0 {
  1408  		for _, s := range m.Filters {
  1409  			l = len(s)
  1410  			n += 1 + l + sovLeases(uint64(l))
  1411  		}
  1412  	}
  1413  	if m.XXX_unrecognized != nil {
  1414  		n += len(m.XXX_unrecognized)
  1415  	}
  1416  	return n
  1417  }
  1418  
  1419  func (m *ListResponse) Size() (n int) {
  1420  	if m == nil {
  1421  		return 0
  1422  	}
  1423  	var l int
  1424  	_ = l
  1425  	if len(m.Leases) > 0 {
  1426  		for _, e := range m.Leases {
  1427  			l = e.Size()
  1428  			n += 1 + l + sovLeases(uint64(l))
  1429  		}
  1430  	}
  1431  	if m.XXX_unrecognized != nil {
  1432  		n += len(m.XXX_unrecognized)
  1433  	}
  1434  	return n
  1435  }
  1436  
  1437  func (m *Resource) Size() (n int) {
  1438  	if m == nil {
  1439  		return 0
  1440  	}
  1441  	var l int
  1442  	_ = l
  1443  	l = len(m.ID)
  1444  	if l > 0 {
  1445  		n += 1 + l + sovLeases(uint64(l))
  1446  	}
  1447  	l = len(m.Type)
  1448  	if l > 0 {
  1449  		n += 1 + l + sovLeases(uint64(l))
  1450  	}
  1451  	if m.XXX_unrecognized != nil {
  1452  		n += len(m.XXX_unrecognized)
  1453  	}
  1454  	return n
  1455  }
  1456  
  1457  func (m *AddResourceRequest) Size() (n int) {
  1458  	if m == nil {
  1459  		return 0
  1460  	}
  1461  	var l int
  1462  	_ = l
  1463  	l = len(m.ID)
  1464  	if l > 0 {
  1465  		n += 1 + l + sovLeases(uint64(l))
  1466  	}
  1467  	l = m.Resource.Size()
  1468  	n += 1 + l + sovLeases(uint64(l))
  1469  	if m.XXX_unrecognized != nil {
  1470  		n += len(m.XXX_unrecognized)
  1471  	}
  1472  	return n
  1473  }
  1474  
  1475  func (m *DeleteResourceRequest) Size() (n int) {
  1476  	if m == nil {
  1477  		return 0
  1478  	}
  1479  	var l int
  1480  	_ = l
  1481  	l = len(m.ID)
  1482  	if l > 0 {
  1483  		n += 1 + l + sovLeases(uint64(l))
  1484  	}
  1485  	l = m.Resource.Size()
  1486  	n += 1 + l + sovLeases(uint64(l))
  1487  	if m.XXX_unrecognized != nil {
  1488  		n += len(m.XXX_unrecognized)
  1489  	}
  1490  	return n
  1491  }
  1492  
  1493  func (m *ListResourcesRequest) Size() (n int) {
  1494  	if m == nil {
  1495  		return 0
  1496  	}
  1497  	var l int
  1498  	_ = l
  1499  	l = len(m.ID)
  1500  	if l > 0 {
  1501  		n += 1 + l + sovLeases(uint64(l))
  1502  	}
  1503  	if m.XXX_unrecognized != nil {
  1504  		n += len(m.XXX_unrecognized)
  1505  	}
  1506  	return n
  1507  }
  1508  
  1509  func (m *ListResourcesResponse) Size() (n int) {
  1510  	if m == nil {
  1511  		return 0
  1512  	}
  1513  	var l int
  1514  	_ = l
  1515  	if len(m.Resources) > 0 {
  1516  		for _, e := range m.Resources {
  1517  			l = e.Size()
  1518  			n += 1 + l + sovLeases(uint64(l))
  1519  		}
  1520  	}
  1521  	if m.XXX_unrecognized != nil {
  1522  		n += len(m.XXX_unrecognized)
  1523  	}
  1524  	return n
  1525  }
  1526  
  1527  func sovLeases(x uint64) (n int) {
  1528  	return (math_bits.Len64(x|1) + 6) / 7
  1529  }
  1530  func sozLeases(x uint64) (n int) {
  1531  	return sovLeases(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1532  }
  1533  func (this *Lease) String() string {
  1534  	if this == nil {
  1535  		return "nil"
  1536  	}
  1537  	keysForLabels := make([]string, 0, len(this.Labels))
  1538  	for k, _ := range this.Labels {
  1539  		keysForLabels = append(keysForLabels, k)
  1540  	}
  1541  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  1542  	mapStringForLabels := "map[string]string{"
  1543  	for _, k := range keysForLabels {
  1544  		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  1545  	}
  1546  	mapStringForLabels += "}"
  1547  	s := strings.Join([]string{`&Lease{`,
  1548  		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  1549  		`CreatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreatedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  1550  		`Labels:` + mapStringForLabels + `,`,
  1551  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1552  		`}`,
  1553  	}, "")
  1554  	return s
  1555  }
  1556  func (this *CreateRequest) String() string {
  1557  	if this == nil {
  1558  		return "nil"
  1559  	}
  1560  	keysForLabels := make([]string, 0, len(this.Labels))
  1561  	for k, _ := range this.Labels {
  1562  		keysForLabels = append(keysForLabels, k)
  1563  	}
  1564  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  1565  	mapStringForLabels := "map[string]string{"
  1566  	for _, k := range keysForLabels {
  1567  		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  1568  	}
  1569  	mapStringForLabels += "}"
  1570  	s := strings.Join([]string{`&CreateRequest{`,
  1571  		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  1572  		`Labels:` + mapStringForLabels + `,`,
  1573  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1574  		`}`,
  1575  	}, "")
  1576  	return s
  1577  }
  1578  func (this *CreateResponse) String() string {
  1579  	if this == nil {
  1580  		return "nil"
  1581  	}
  1582  	s := strings.Join([]string{`&CreateResponse{`,
  1583  		`Lease:` + strings.Replace(this.Lease.String(), "Lease", "Lease", 1) + `,`,
  1584  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1585  		`}`,
  1586  	}, "")
  1587  	return s
  1588  }
  1589  func (this *DeleteRequest) String() string {
  1590  	if this == nil {
  1591  		return "nil"
  1592  	}
  1593  	s := strings.Join([]string{`&DeleteRequest{`,
  1594  		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  1595  		`Sync:` + fmt.Sprintf("%v", this.Sync) + `,`,
  1596  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1597  		`}`,
  1598  	}, "")
  1599  	return s
  1600  }
  1601  func (this *ListRequest) String() string {
  1602  	if this == nil {
  1603  		return "nil"
  1604  	}
  1605  	s := strings.Join([]string{`&ListRequest{`,
  1606  		`Filters:` + fmt.Sprintf("%v", this.Filters) + `,`,
  1607  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1608  		`}`,
  1609  	}, "")
  1610  	return s
  1611  }
  1612  func (this *ListResponse) String() string {
  1613  	if this == nil {
  1614  		return "nil"
  1615  	}
  1616  	repeatedStringForLeases := "[]*Lease{"
  1617  	for _, f := range this.Leases {
  1618  		repeatedStringForLeases += strings.Replace(f.String(), "Lease", "Lease", 1) + ","
  1619  	}
  1620  	repeatedStringForLeases += "}"
  1621  	s := strings.Join([]string{`&ListResponse{`,
  1622  		`Leases:` + repeatedStringForLeases + `,`,
  1623  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1624  		`}`,
  1625  	}, "")
  1626  	return s
  1627  }
  1628  func (this *Resource) String() string {
  1629  	if this == nil {
  1630  		return "nil"
  1631  	}
  1632  	s := strings.Join([]string{`&Resource{`,
  1633  		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  1634  		`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
  1635  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1636  		`}`,
  1637  	}, "")
  1638  	return s
  1639  }
  1640  func (this *AddResourceRequest) String() string {
  1641  	if this == nil {
  1642  		return "nil"
  1643  	}
  1644  	s := strings.Join([]string{`&AddResourceRequest{`,
  1645  		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  1646  		`Resource:` + strings.Replace(strings.Replace(this.Resource.String(), "Resource", "Resource", 1), `&`, ``, 1) + `,`,
  1647  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1648  		`}`,
  1649  	}, "")
  1650  	return s
  1651  }
  1652  func (this *DeleteResourceRequest) String() string {
  1653  	if this == nil {
  1654  		return "nil"
  1655  	}
  1656  	s := strings.Join([]string{`&DeleteResourceRequest{`,
  1657  		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  1658  		`Resource:` + strings.Replace(strings.Replace(this.Resource.String(), "Resource", "Resource", 1), `&`, ``, 1) + `,`,
  1659  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1660  		`}`,
  1661  	}, "")
  1662  	return s
  1663  }
  1664  func (this *ListResourcesRequest) String() string {
  1665  	if this == nil {
  1666  		return "nil"
  1667  	}
  1668  	s := strings.Join([]string{`&ListResourcesRequest{`,
  1669  		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  1670  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1671  		`}`,
  1672  	}, "")
  1673  	return s
  1674  }
  1675  func (this *ListResourcesResponse) String() string {
  1676  	if this == nil {
  1677  		return "nil"
  1678  	}
  1679  	repeatedStringForResources := "[]Resource{"
  1680  	for _, f := range this.Resources {
  1681  		repeatedStringForResources += strings.Replace(strings.Replace(f.String(), "Resource", "Resource", 1), `&`, ``, 1) + ","
  1682  	}
  1683  	repeatedStringForResources += "}"
  1684  	s := strings.Join([]string{`&ListResourcesResponse{`,
  1685  		`Resources:` + repeatedStringForResources + `,`,
  1686  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  1687  		`}`,
  1688  	}, "")
  1689  	return s
  1690  }
  1691  func valueToStringLeases(v interface{}) string {
  1692  	rv := reflect.ValueOf(v)
  1693  	if rv.IsNil() {
  1694  		return "nil"
  1695  	}
  1696  	pv := reflect.Indirect(rv).Interface()
  1697  	return fmt.Sprintf("*%v", pv)
  1698  }
  1699  func (m *Lease) Unmarshal(dAtA []byte) error {
  1700  	l := len(dAtA)
  1701  	iNdEx := 0
  1702  	for iNdEx < l {
  1703  		preIndex := iNdEx
  1704  		var wire uint64
  1705  		for shift := uint(0); ; shift += 7 {
  1706  			if shift >= 64 {
  1707  				return ErrIntOverflowLeases
  1708  			}
  1709  			if iNdEx >= l {
  1710  				return io.ErrUnexpectedEOF
  1711  			}
  1712  			b := dAtA[iNdEx]
  1713  			iNdEx++
  1714  			wire |= uint64(b&0x7F) << shift
  1715  			if b < 0x80 {
  1716  				break
  1717  			}
  1718  		}
  1719  		fieldNum := int32(wire >> 3)
  1720  		wireType := int(wire & 0x7)
  1721  		if wireType == 4 {
  1722  			return fmt.Errorf("proto: Lease: wiretype end group for non-group")
  1723  		}
  1724  		if fieldNum <= 0 {
  1725  			return fmt.Errorf("proto: Lease: illegal tag %d (wire type %d)", fieldNum, wire)
  1726  		}
  1727  		switch fieldNum {
  1728  		case 1:
  1729  			if wireType != 2 {
  1730  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1731  			}
  1732  			var stringLen uint64
  1733  			for shift := uint(0); ; shift += 7 {
  1734  				if shift >= 64 {
  1735  					return ErrIntOverflowLeases
  1736  				}
  1737  				if iNdEx >= l {
  1738  					return io.ErrUnexpectedEOF
  1739  				}
  1740  				b := dAtA[iNdEx]
  1741  				iNdEx++
  1742  				stringLen |= uint64(b&0x7F) << shift
  1743  				if b < 0x80 {
  1744  					break
  1745  				}
  1746  			}
  1747  			intStringLen := int(stringLen)
  1748  			if intStringLen < 0 {
  1749  				return ErrInvalidLengthLeases
  1750  			}
  1751  			postIndex := iNdEx + intStringLen
  1752  			if postIndex < 0 {
  1753  				return ErrInvalidLengthLeases
  1754  			}
  1755  			if postIndex > l {
  1756  				return io.ErrUnexpectedEOF
  1757  			}
  1758  			m.ID = string(dAtA[iNdEx:postIndex])
  1759  			iNdEx = postIndex
  1760  		case 2:
  1761  			if wireType != 2 {
  1762  				return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
  1763  			}
  1764  			var msglen int
  1765  			for shift := uint(0); ; shift += 7 {
  1766  				if shift >= 64 {
  1767  					return ErrIntOverflowLeases
  1768  				}
  1769  				if iNdEx >= l {
  1770  					return io.ErrUnexpectedEOF
  1771  				}
  1772  				b := dAtA[iNdEx]
  1773  				iNdEx++
  1774  				msglen |= int(b&0x7F) << shift
  1775  				if b < 0x80 {
  1776  					break
  1777  				}
  1778  			}
  1779  			if msglen < 0 {
  1780  				return ErrInvalidLengthLeases
  1781  			}
  1782  			postIndex := iNdEx + msglen
  1783  			if postIndex < 0 {
  1784  				return ErrInvalidLengthLeases
  1785  			}
  1786  			if postIndex > l {
  1787  				return io.ErrUnexpectedEOF
  1788  			}
  1789  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
  1790  				return err
  1791  			}
  1792  			iNdEx = postIndex
  1793  		case 3:
  1794  			if wireType != 2 {
  1795  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  1796  			}
  1797  			var msglen int
  1798  			for shift := uint(0); ; shift += 7 {
  1799  				if shift >= 64 {
  1800  					return ErrIntOverflowLeases
  1801  				}
  1802  				if iNdEx >= l {
  1803  					return io.ErrUnexpectedEOF
  1804  				}
  1805  				b := dAtA[iNdEx]
  1806  				iNdEx++
  1807  				msglen |= int(b&0x7F) << shift
  1808  				if b < 0x80 {
  1809  					break
  1810  				}
  1811  			}
  1812  			if msglen < 0 {
  1813  				return ErrInvalidLengthLeases
  1814  			}
  1815  			postIndex := iNdEx + msglen
  1816  			if postIndex < 0 {
  1817  				return ErrInvalidLengthLeases
  1818  			}
  1819  			if postIndex > l {
  1820  				return io.ErrUnexpectedEOF
  1821  			}
  1822  			if m.Labels == nil {
  1823  				m.Labels = make(map[string]string)
  1824  			}
  1825  			var mapkey string
  1826  			var mapvalue string
  1827  			for iNdEx < postIndex {
  1828  				entryPreIndex := iNdEx
  1829  				var wire uint64
  1830  				for shift := uint(0); ; shift += 7 {
  1831  					if shift >= 64 {
  1832  						return ErrIntOverflowLeases
  1833  					}
  1834  					if iNdEx >= l {
  1835  						return io.ErrUnexpectedEOF
  1836  					}
  1837  					b := dAtA[iNdEx]
  1838  					iNdEx++
  1839  					wire |= uint64(b&0x7F) << shift
  1840  					if b < 0x80 {
  1841  						break
  1842  					}
  1843  				}
  1844  				fieldNum := int32(wire >> 3)
  1845  				if fieldNum == 1 {
  1846  					var stringLenmapkey uint64
  1847  					for shift := uint(0); ; shift += 7 {
  1848  						if shift >= 64 {
  1849  							return ErrIntOverflowLeases
  1850  						}
  1851  						if iNdEx >= l {
  1852  							return io.ErrUnexpectedEOF
  1853  						}
  1854  						b := dAtA[iNdEx]
  1855  						iNdEx++
  1856  						stringLenmapkey |= uint64(b&0x7F) << shift
  1857  						if b < 0x80 {
  1858  							break
  1859  						}
  1860  					}
  1861  					intStringLenmapkey := int(stringLenmapkey)
  1862  					if intStringLenmapkey < 0 {
  1863  						return ErrInvalidLengthLeases
  1864  					}
  1865  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  1866  					if postStringIndexmapkey < 0 {
  1867  						return ErrInvalidLengthLeases
  1868  					}
  1869  					if postStringIndexmapkey > l {
  1870  						return io.ErrUnexpectedEOF
  1871  					}
  1872  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1873  					iNdEx = postStringIndexmapkey
  1874  				} else if fieldNum == 2 {
  1875  					var stringLenmapvalue uint64
  1876  					for shift := uint(0); ; shift += 7 {
  1877  						if shift >= 64 {
  1878  							return ErrIntOverflowLeases
  1879  						}
  1880  						if iNdEx >= l {
  1881  							return io.ErrUnexpectedEOF
  1882  						}
  1883  						b := dAtA[iNdEx]
  1884  						iNdEx++
  1885  						stringLenmapvalue |= uint64(b&0x7F) << shift
  1886  						if b < 0x80 {
  1887  							break
  1888  						}
  1889  					}
  1890  					intStringLenmapvalue := int(stringLenmapvalue)
  1891  					if intStringLenmapvalue < 0 {
  1892  						return ErrInvalidLengthLeases
  1893  					}
  1894  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  1895  					if postStringIndexmapvalue < 0 {
  1896  						return ErrInvalidLengthLeases
  1897  					}
  1898  					if postStringIndexmapvalue > l {
  1899  						return io.ErrUnexpectedEOF
  1900  					}
  1901  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  1902  					iNdEx = postStringIndexmapvalue
  1903  				} else {
  1904  					iNdEx = entryPreIndex
  1905  					skippy, err := skipLeases(dAtA[iNdEx:])
  1906  					if err != nil {
  1907  						return err
  1908  					}
  1909  					if skippy < 0 {
  1910  						return ErrInvalidLengthLeases
  1911  					}
  1912  					if (iNdEx + skippy) > postIndex {
  1913  						return io.ErrUnexpectedEOF
  1914  					}
  1915  					iNdEx += skippy
  1916  				}
  1917  			}
  1918  			m.Labels[mapkey] = mapvalue
  1919  			iNdEx = postIndex
  1920  		default:
  1921  			iNdEx = preIndex
  1922  			skippy, err := skipLeases(dAtA[iNdEx:])
  1923  			if err != nil {
  1924  				return err
  1925  			}
  1926  			if skippy < 0 {
  1927  				return ErrInvalidLengthLeases
  1928  			}
  1929  			if (iNdEx + skippy) < 0 {
  1930  				return ErrInvalidLengthLeases
  1931  			}
  1932  			if (iNdEx + skippy) > l {
  1933  				return io.ErrUnexpectedEOF
  1934  			}
  1935  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1936  			iNdEx += skippy
  1937  		}
  1938  	}
  1939  
  1940  	if iNdEx > l {
  1941  		return io.ErrUnexpectedEOF
  1942  	}
  1943  	return nil
  1944  }
  1945  func (m *CreateRequest) Unmarshal(dAtA []byte) error {
  1946  	l := len(dAtA)
  1947  	iNdEx := 0
  1948  	for iNdEx < l {
  1949  		preIndex := iNdEx
  1950  		var wire uint64
  1951  		for shift := uint(0); ; shift += 7 {
  1952  			if shift >= 64 {
  1953  				return ErrIntOverflowLeases
  1954  			}
  1955  			if iNdEx >= l {
  1956  				return io.ErrUnexpectedEOF
  1957  			}
  1958  			b := dAtA[iNdEx]
  1959  			iNdEx++
  1960  			wire |= uint64(b&0x7F) << shift
  1961  			if b < 0x80 {
  1962  				break
  1963  			}
  1964  		}
  1965  		fieldNum := int32(wire >> 3)
  1966  		wireType := int(wire & 0x7)
  1967  		if wireType == 4 {
  1968  			return fmt.Errorf("proto: CreateRequest: wiretype end group for non-group")
  1969  		}
  1970  		if fieldNum <= 0 {
  1971  			return fmt.Errorf("proto: CreateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1972  		}
  1973  		switch fieldNum {
  1974  		case 1:
  1975  			if wireType != 2 {
  1976  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1977  			}
  1978  			var stringLen uint64
  1979  			for shift := uint(0); ; shift += 7 {
  1980  				if shift >= 64 {
  1981  					return ErrIntOverflowLeases
  1982  				}
  1983  				if iNdEx >= l {
  1984  					return io.ErrUnexpectedEOF
  1985  				}
  1986  				b := dAtA[iNdEx]
  1987  				iNdEx++
  1988  				stringLen |= uint64(b&0x7F) << shift
  1989  				if b < 0x80 {
  1990  					break
  1991  				}
  1992  			}
  1993  			intStringLen := int(stringLen)
  1994  			if intStringLen < 0 {
  1995  				return ErrInvalidLengthLeases
  1996  			}
  1997  			postIndex := iNdEx + intStringLen
  1998  			if postIndex < 0 {
  1999  				return ErrInvalidLengthLeases
  2000  			}
  2001  			if postIndex > l {
  2002  				return io.ErrUnexpectedEOF
  2003  			}
  2004  			m.ID = string(dAtA[iNdEx:postIndex])
  2005  			iNdEx = postIndex
  2006  		case 3:
  2007  			if wireType != 2 {
  2008  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  2009  			}
  2010  			var msglen int
  2011  			for shift := uint(0); ; shift += 7 {
  2012  				if shift >= 64 {
  2013  					return ErrIntOverflowLeases
  2014  				}
  2015  				if iNdEx >= l {
  2016  					return io.ErrUnexpectedEOF
  2017  				}
  2018  				b := dAtA[iNdEx]
  2019  				iNdEx++
  2020  				msglen |= int(b&0x7F) << shift
  2021  				if b < 0x80 {
  2022  					break
  2023  				}
  2024  			}
  2025  			if msglen < 0 {
  2026  				return ErrInvalidLengthLeases
  2027  			}
  2028  			postIndex := iNdEx + msglen
  2029  			if postIndex < 0 {
  2030  				return ErrInvalidLengthLeases
  2031  			}
  2032  			if postIndex > l {
  2033  				return io.ErrUnexpectedEOF
  2034  			}
  2035  			if m.Labels == nil {
  2036  				m.Labels = make(map[string]string)
  2037  			}
  2038  			var mapkey string
  2039  			var mapvalue string
  2040  			for iNdEx < postIndex {
  2041  				entryPreIndex := iNdEx
  2042  				var wire uint64
  2043  				for shift := uint(0); ; shift += 7 {
  2044  					if shift >= 64 {
  2045  						return ErrIntOverflowLeases
  2046  					}
  2047  					if iNdEx >= l {
  2048  						return io.ErrUnexpectedEOF
  2049  					}
  2050  					b := dAtA[iNdEx]
  2051  					iNdEx++
  2052  					wire |= uint64(b&0x7F) << shift
  2053  					if b < 0x80 {
  2054  						break
  2055  					}
  2056  				}
  2057  				fieldNum := int32(wire >> 3)
  2058  				if fieldNum == 1 {
  2059  					var stringLenmapkey uint64
  2060  					for shift := uint(0); ; shift += 7 {
  2061  						if shift >= 64 {
  2062  							return ErrIntOverflowLeases
  2063  						}
  2064  						if iNdEx >= l {
  2065  							return io.ErrUnexpectedEOF
  2066  						}
  2067  						b := dAtA[iNdEx]
  2068  						iNdEx++
  2069  						stringLenmapkey |= uint64(b&0x7F) << shift
  2070  						if b < 0x80 {
  2071  							break
  2072  						}
  2073  					}
  2074  					intStringLenmapkey := int(stringLenmapkey)
  2075  					if intStringLenmapkey < 0 {
  2076  						return ErrInvalidLengthLeases
  2077  					}
  2078  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2079  					if postStringIndexmapkey < 0 {
  2080  						return ErrInvalidLengthLeases
  2081  					}
  2082  					if postStringIndexmapkey > l {
  2083  						return io.ErrUnexpectedEOF
  2084  					}
  2085  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2086  					iNdEx = postStringIndexmapkey
  2087  				} else if fieldNum == 2 {
  2088  					var stringLenmapvalue uint64
  2089  					for shift := uint(0); ; shift += 7 {
  2090  						if shift >= 64 {
  2091  							return ErrIntOverflowLeases
  2092  						}
  2093  						if iNdEx >= l {
  2094  							return io.ErrUnexpectedEOF
  2095  						}
  2096  						b := dAtA[iNdEx]
  2097  						iNdEx++
  2098  						stringLenmapvalue |= uint64(b&0x7F) << shift
  2099  						if b < 0x80 {
  2100  							break
  2101  						}
  2102  					}
  2103  					intStringLenmapvalue := int(stringLenmapvalue)
  2104  					if intStringLenmapvalue < 0 {
  2105  						return ErrInvalidLengthLeases
  2106  					}
  2107  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2108  					if postStringIndexmapvalue < 0 {
  2109  						return ErrInvalidLengthLeases
  2110  					}
  2111  					if postStringIndexmapvalue > l {
  2112  						return io.ErrUnexpectedEOF
  2113  					}
  2114  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  2115  					iNdEx = postStringIndexmapvalue
  2116  				} else {
  2117  					iNdEx = entryPreIndex
  2118  					skippy, err := skipLeases(dAtA[iNdEx:])
  2119  					if err != nil {
  2120  						return err
  2121  					}
  2122  					if skippy < 0 {
  2123  						return ErrInvalidLengthLeases
  2124  					}
  2125  					if (iNdEx + skippy) > postIndex {
  2126  						return io.ErrUnexpectedEOF
  2127  					}
  2128  					iNdEx += skippy
  2129  				}
  2130  			}
  2131  			m.Labels[mapkey] = mapvalue
  2132  			iNdEx = postIndex
  2133  		default:
  2134  			iNdEx = preIndex
  2135  			skippy, err := skipLeases(dAtA[iNdEx:])
  2136  			if err != nil {
  2137  				return err
  2138  			}
  2139  			if skippy < 0 {
  2140  				return ErrInvalidLengthLeases
  2141  			}
  2142  			if (iNdEx + skippy) < 0 {
  2143  				return ErrInvalidLengthLeases
  2144  			}
  2145  			if (iNdEx + skippy) > l {
  2146  				return io.ErrUnexpectedEOF
  2147  			}
  2148  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2149  			iNdEx += skippy
  2150  		}
  2151  	}
  2152  
  2153  	if iNdEx > l {
  2154  		return io.ErrUnexpectedEOF
  2155  	}
  2156  	return nil
  2157  }
  2158  func (m *CreateResponse) Unmarshal(dAtA []byte) error {
  2159  	l := len(dAtA)
  2160  	iNdEx := 0
  2161  	for iNdEx < l {
  2162  		preIndex := iNdEx
  2163  		var wire uint64
  2164  		for shift := uint(0); ; shift += 7 {
  2165  			if shift >= 64 {
  2166  				return ErrIntOverflowLeases
  2167  			}
  2168  			if iNdEx >= l {
  2169  				return io.ErrUnexpectedEOF
  2170  			}
  2171  			b := dAtA[iNdEx]
  2172  			iNdEx++
  2173  			wire |= uint64(b&0x7F) << shift
  2174  			if b < 0x80 {
  2175  				break
  2176  			}
  2177  		}
  2178  		fieldNum := int32(wire >> 3)
  2179  		wireType := int(wire & 0x7)
  2180  		if wireType == 4 {
  2181  			return fmt.Errorf("proto: CreateResponse: wiretype end group for non-group")
  2182  		}
  2183  		if fieldNum <= 0 {
  2184  			return fmt.Errorf("proto: CreateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2185  		}
  2186  		switch fieldNum {
  2187  		case 1:
  2188  			if wireType != 2 {
  2189  				return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType)
  2190  			}
  2191  			var msglen int
  2192  			for shift := uint(0); ; shift += 7 {
  2193  				if shift >= 64 {
  2194  					return ErrIntOverflowLeases
  2195  				}
  2196  				if iNdEx >= l {
  2197  					return io.ErrUnexpectedEOF
  2198  				}
  2199  				b := dAtA[iNdEx]
  2200  				iNdEx++
  2201  				msglen |= int(b&0x7F) << shift
  2202  				if b < 0x80 {
  2203  					break
  2204  				}
  2205  			}
  2206  			if msglen < 0 {
  2207  				return ErrInvalidLengthLeases
  2208  			}
  2209  			postIndex := iNdEx + msglen
  2210  			if postIndex < 0 {
  2211  				return ErrInvalidLengthLeases
  2212  			}
  2213  			if postIndex > l {
  2214  				return io.ErrUnexpectedEOF
  2215  			}
  2216  			if m.Lease == nil {
  2217  				m.Lease = &Lease{}
  2218  			}
  2219  			if err := m.Lease.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2220  				return err
  2221  			}
  2222  			iNdEx = postIndex
  2223  		default:
  2224  			iNdEx = preIndex
  2225  			skippy, err := skipLeases(dAtA[iNdEx:])
  2226  			if err != nil {
  2227  				return err
  2228  			}
  2229  			if skippy < 0 {
  2230  				return ErrInvalidLengthLeases
  2231  			}
  2232  			if (iNdEx + skippy) < 0 {
  2233  				return ErrInvalidLengthLeases
  2234  			}
  2235  			if (iNdEx + skippy) > l {
  2236  				return io.ErrUnexpectedEOF
  2237  			}
  2238  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2239  			iNdEx += skippy
  2240  		}
  2241  	}
  2242  
  2243  	if iNdEx > l {
  2244  		return io.ErrUnexpectedEOF
  2245  	}
  2246  	return nil
  2247  }
  2248  func (m *DeleteRequest) Unmarshal(dAtA []byte) error {
  2249  	l := len(dAtA)
  2250  	iNdEx := 0
  2251  	for iNdEx < l {
  2252  		preIndex := iNdEx
  2253  		var wire uint64
  2254  		for shift := uint(0); ; shift += 7 {
  2255  			if shift >= 64 {
  2256  				return ErrIntOverflowLeases
  2257  			}
  2258  			if iNdEx >= l {
  2259  				return io.ErrUnexpectedEOF
  2260  			}
  2261  			b := dAtA[iNdEx]
  2262  			iNdEx++
  2263  			wire |= uint64(b&0x7F) << shift
  2264  			if b < 0x80 {
  2265  				break
  2266  			}
  2267  		}
  2268  		fieldNum := int32(wire >> 3)
  2269  		wireType := int(wire & 0x7)
  2270  		if wireType == 4 {
  2271  			return fmt.Errorf("proto: DeleteRequest: wiretype end group for non-group")
  2272  		}
  2273  		if fieldNum <= 0 {
  2274  			return fmt.Errorf("proto: DeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2275  		}
  2276  		switch fieldNum {
  2277  		case 1:
  2278  			if wireType != 2 {
  2279  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2280  			}
  2281  			var stringLen uint64
  2282  			for shift := uint(0); ; shift += 7 {
  2283  				if shift >= 64 {
  2284  					return ErrIntOverflowLeases
  2285  				}
  2286  				if iNdEx >= l {
  2287  					return io.ErrUnexpectedEOF
  2288  				}
  2289  				b := dAtA[iNdEx]
  2290  				iNdEx++
  2291  				stringLen |= uint64(b&0x7F) << shift
  2292  				if b < 0x80 {
  2293  					break
  2294  				}
  2295  			}
  2296  			intStringLen := int(stringLen)
  2297  			if intStringLen < 0 {
  2298  				return ErrInvalidLengthLeases
  2299  			}
  2300  			postIndex := iNdEx + intStringLen
  2301  			if postIndex < 0 {
  2302  				return ErrInvalidLengthLeases
  2303  			}
  2304  			if postIndex > l {
  2305  				return io.ErrUnexpectedEOF
  2306  			}
  2307  			m.ID = string(dAtA[iNdEx:postIndex])
  2308  			iNdEx = postIndex
  2309  		case 2:
  2310  			if wireType != 0 {
  2311  				return fmt.Errorf("proto: wrong wireType = %d for field Sync", wireType)
  2312  			}
  2313  			var v int
  2314  			for shift := uint(0); ; shift += 7 {
  2315  				if shift >= 64 {
  2316  					return ErrIntOverflowLeases
  2317  				}
  2318  				if iNdEx >= l {
  2319  					return io.ErrUnexpectedEOF
  2320  				}
  2321  				b := dAtA[iNdEx]
  2322  				iNdEx++
  2323  				v |= int(b&0x7F) << shift
  2324  				if b < 0x80 {
  2325  					break
  2326  				}
  2327  			}
  2328  			m.Sync = bool(v != 0)
  2329  		default:
  2330  			iNdEx = preIndex
  2331  			skippy, err := skipLeases(dAtA[iNdEx:])
  2332  			if err != nil {
  2333  				return err
  2334  			}
  2335  			if skippy < 0 {
  2336  				return ErrInvalidLengthLeases
  2337  			}
  2338  			if (iNdEx + skippy) < 0 {
  2339  				return ErrInvalidLengthLeases
  2340  			}
  2341  			if (iNdEx + skippy) > l {
  2342  				return io.ErrUnexpectedEOF
  2343  			}
  2344  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2345  			iNdEx += skippy
  2346  		}
  2347  	}
  2348  
  2349  	if iNdEx > l {
  2350  		return io.ErrUnexpectedEOF
  2351  	}
  2352  	return nil
  2353  }
  2354  func (m *ListRequest) Unmarshal(dAtA []byte) error {
  2355  	l := len(dAtA)
  2356  	iNdEx := 0
  2357  	for iNdEx < l {
  2358  		preIndex := iNdEx
  2359  		var wire uint64
  2360  		for shift := uint(0); ; shift += 7 {
  2361  			if shift >= 64 {
  2362  				return ErrIntOverflowLeases
  2363  			}
  2364  			if iNdEx >= l {
  2365  				return io.ErrUnexpectedEOF
  2366  			}
  2367  			b := dAtA[iNdEx]
  2368  			iNdEx++
  2369  			wire |= uint64(b&0x7F) << shift
  2370  			if b < 0x80 {
  2371  				break
  2372  			}
  2373  		}
  2374  		fieldNum := int32(wire >> 3)
  2375  		wireType := int(wire & 0x7)
  2376  		if wireType == 4 {
  2377  			return fmt.Errorf("proto: ListRequest: wiretype end group for non-group")
  2378  		}
  2379  		if fieldNum <= 0 {
  2380  			return fmt.Errorf("proto: ListRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2381  		}
  2382  		switch fieldNum {
  2383  		case 1:
  2384  			if wireType != 2 {
  2385  				return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
  2386  			}
  2387  			var stringLen uint64
  2388  			for shift := uint(0); ; shift += 7 {
  2389  				if shift >= 64 {
  2390  					return ErrIntOverflowLeases
  2391  				}
  2392  				if iNdEx >= l {
  2393  					return io.ErrUnexpectedEOF
  2394  				}
  2395  				b := dAtA[iNdEx]
  2396  				iNdEx++
  2397  				stringLen |= uint64(b&0x7F) << shift
  2398  				if b < 0x80 {
  2399  					break
  2400  				}
  2401  			}
  2402  			intStringLen := int(stringLen)
  2403  			if intStringLen < 0 {
  2404  				return ErrInvalidLengthLeases
  2405  			}
  2406  			postIndex := iNdEx + intStringLen
  2407  			if postIndex < 0 {
  2408  				return ErrInvalidLengthLeases
  2409  			}
  2410  			if postIndex > l {
  2411  				return io.ErrUnexpectedEOF
  2412  			}
  2413  			m.Filters = append(m.Filters, string(dAtA[iNdEx:postIndex]))
  2414  			iNdEx = postIndex
  2415  		default:
  2416  			iNdEx = preIndex
  2417  			skippy, err := skipLeases(dAtA[iNdEx:])
  2418  			if err != nil {
  2419  				return err
  2420  			}
  2421  			if skippy < 0 {
  2422  				return ErrInvalidLengthLeases
  2423  			}
  2424  			if (iNdEx + skippy) < 0 {
  2425  				return ErrInvalidLengthLeases
  2426  			}
  2427  			if (iNdEx + skippy) > l {
  2428  				return io.ErrUnexpectedEOF
  2429  			}
  2430  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2431  			iNdEx += skippy
  2432  		}
  2433  	}
  2434  
  2435  	if iNdEx > l {
  2436  		return io.ErrUnexpectedEOF
  2437  	}
  2438  	return nil
  2439  }
  2440  func (m *ListResponse) Unmarshal(dAtA []byte) error {
  2441  	l := len(dAtA)
  2442  	iNdEx := 0
  2443  	for iNdEx < l {
  2444  		preIndex := iNdEx
  2445  		var wire uint64
  2446  		for shift := uint(0); ; shift += 7 {
  2447  			if shift >= 64 {
  2448  				return ErrIntOverflowLeases
  2449  			}
  2450  			if iNdEx >= l {
  2451  				return io.ErrUnexpectedEOF
  2452  			}
  2453  			b := dAtA[iNdEx]
  2454  			iNdEx++
  2455  			wire |= uint64(b&0x7F) << shift
  2456  			if b < 0x80 {
  2457  				break
  2458  			}
  2459  		}
  2460  		fieldNum := int32(wire >> 3)
  2461  		wireType := int(wire & 0x7)
  2462  		if wireType == 4 {
  2463  			return fmt.Errorf("proto: ListResponse: wiretype end group for non-group")
  2464  		}
  2465  		if fieldNum <= 0 {
  2466  			return fmt.Errorf("proto: ListResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2467  		}
  2468  		switch fieldNum {
  2469  		case 1:
  2470  			if wireType != 2 {
  2471  				return fmt.Errorf("proto: wrong wireType = %d for field Leases", wireType)
  2472  			}
  2473  			var msglen int
  2474  			for shift := uint(0); ; shift += 7 {
  2475  				if shift >= 64 {
  2476  					return ErrIntOverflowLeases
  2477  				}
  2478  				if iNdEx >= l {
  2479  					return io.ErrUnexpectedEOF
  2480  				}
  2481  				b := dAtA[iNdEx]
  2482  				iNdEx++
  2483  				msglen |= int(b&0x7F) << shift
  2484  				if b < 0x80 {
  2485  					break
  2486  				}
  2487  			}
  2488  			if msglen < 0 {
  2489  				return ErrInvalidLengthLeases
  2490  			}
  2491  			postIndex := iNdEx + msglen
  2492  			if postIndex < 0 {
  2493  				return ErrInvalidLengthLeases
  2494  			}
  2495  			if postIndex > l {
  2496  				return io.ErrUnexpectedEOF
  2497  			}
  2498  			m.Leases = append(m.Leases, &Lease{})
  2499  			if err := m.Leases[len(m.Leases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2500  				return err
  2501  			}
  2502  			iNdEx = postIndex
  2503  		default:
  2504  			iNdEx = preIndex
  2505  			skippy, err := skipLeases(dAtA[iNdEx:])
  2506  			if err != nil {
  2507  				return err
  2508  			}
  2509  			if skippy < 0 {
  2510  				return ErrInvalidLengthLeases
  2511  			}
  2512  			if (iNdEx + skippy) < 0 {
  2513  				return ErrInvalidLengthLeases
  2514  			}
  2515  			if (iNdEx + skippy) > l {
  2516  				return io.ErrUnexpectedEOF
  2517  			}
  2518  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2519  			iNdEx += skippy
  2520  		}
  2521  	}
  2522  
  2523  	if iNdEx > l {
  2524  		return io.ErrUnexpectedEOF
  2525  	}
  2526  	return nil
  2527  }
  2528  func (m *Resource) Unmarshal(dAtA []byte) error {
  2529  	l := len(dAtA)
  2530  	iNdEx := 0
  2531  	for iNdEx < l {
  2532  		preIndex := iNdEx
  2533  		var wire uint64
  2534  		for shift := uint(0); ; shift += 7 {
  2535  			if shift >= 64 {
  2536  				return ErrIntOverflowLeases
  2537  			}
  2538  			if iNdEx >= l {
  2539  				return io.ErrUnexpectedEOF
  2540  			}
  2541  			b := dAtA[iNdEx]
  2542  			iNdEx++
  2543  			wire |= uint64(b&0x7F) << shift
  2544  			if b < 0x80 {
  2545  				break
  2546  			}
  2547  		}
  2548  		fieldNum := int32(wire >> 3)
  2549  		wireType := int(wire & 0x7)
  2550  		if wireType == 4 {
  2551  			return fmt.Errorf("proto: Resource: wiretype end group for non-group")
  2552  		}
  2553  		if fieldNum <= 0 {
  2554  			return fmt.Errorf("proto: Resource: illegal tag %d (wire type %d)", fieldNum, wire)
  2555  		}
  2556  		switch fieldNum {
  2557  		case 1:
  2558  			if wireType != 2 {
  2559  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2560  			}
  2561  			var stringLen uint64
  2562  			for shift := uint(0); ; shift += 7 {
  2563  				if shift >= 64 {
  2564  					return ErrIntOverflowLeases
  2565  				}
  2566  				if iNdEx >= l {
  2567  					return io.ErrUnexpectedEOF
  2568  				}
  2569  				b := dAtA[iNdEx]
  2570  				iNdEx++
  2571  				stringLen |= uint64(b&0x7F) << shift
  2572  				if b < 0x80 {
  2573  					break
  2574  				}
  2575  			}
  2576  			intStringLen := int(stringLen)
  2577  			if intStringLen < 0 {
  2578  				return ErrInvalidLengthLeases
  2579  			}
  2580  			postIndex := iNdEx + intStringLen
  2581  			if postIndex < 0 {
  2582  				return ErrInvalidLengthLeases
  2583  			}
  2584  			if postIndex > l {
  2585  				return io.ErrUnexpectedEOF
  2586  			}
  2587  			m.ID = string(dAtA[iNdEx:postIndex])
  2588  			iNdEx = postIndex
  2589  		case 2:
  2590  			if wireType != 2 {
  2591  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2592  			}
  2593  			var stringLen uint64
  2594  			for shift := uint(0); ; shift += 7 {
  2595  				if shift >= 64 {
  2596  					return ErrIntOverflowLeases
  2597  				}
  2598  				if iNdEx >= l {
  2599  					return io.ErrUnexpectedEOF
  2600  				}
  2601  				b := dAtA[iNdEx]
  2602  				iNdEx++
  2603  				stringLen |= uint64(b&0x7F) << shift
  2604  				if b < 0x80 {
  2605  					break
  2606  				}
  2607  			}
  2608  			intStringLen := int(stringLen)
  2609  			if intStringLen < 0 {
  2610  				return ErrInvalidLengthLeases
  2611  			}
  2612  			postIndex := iNdEx + intStringLen
  2613  			if postIndex < 0 {
  2614  				return ErrInvalidLengthLeases
  2615  			}
  2616  			if postIndex > l {
  2617  				return io.ErrUnexpectedEOF
  2618  			}
  2619  			m.Type = string(dAtA[iNdEx:postIndex])
  2620  			iNdEx = postIndex
  2621  		default:
  2622  			iNdEx = preIndex
  2623  			skippy, err := skipLeases(dAtA[iNdEx:])
  2624  			if err != nil {
  2625  				return err
  2626  			}
  2627  			if skippy < 0 {
  2628  				return ErrInvalidLengthLeases
  2629  			}
  2630  			if (iNdEx + skippy) < 0 {
  2631  				return ErrInvalidLengthLeases
  2632  			}
  2633  			if (iNdEx + skippy) > l {
  2634  				return io.ErrUnexpectedEOF
  2635  			}
  2636  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2637  			iNdEx += skippy
  2638  		}
  2639  	}
  2640  
  2641  	if iNdEx > l {
  2642  		return io.ErrUnexpectedEOF
  2643  	}
  2644  	return nil
  2645  }
  2646  func (m *AddResourceRequest) Unmarshal(dAtA []byte) error {
  2647  	l := len(dAtA)
  2648  	iNdEx := 0
  2649  	for iNdEx < l {
  2650  		preIndex := iNdEx
  2651  		var wire uint64
  2652  		for shift := uint(0); ; shift += 7 {
  2653  			if shift >= 64 {
  2654  				return ErrIntOverflowLeases
  2655  			}
  2656  			if iNdEx >= l {
  2657  				return io.ErrUnexpectedEOF
  2658  			}
  2659  			b := dAtA[iNdEx]
  2660  			iNdEx++
  2661  			wire |= uint64(b&0x7F) << shift
  2662  			if b < 0x80 {
  2663  				break
  2664  			}
  2665  		}
  2666  		fieldNum := int32(wire >> 3)
  2667  		wireType := int(wire & 0x7)
  2668  		if wireType == 4 {
  2669  			return fmt.Errorf("proto: AddResourceRequest: wiretype end group for non-group")
  2670  		}
  2671  		if fieldNum <= 0 {
  2672  			return fmt.Errorf("proto: AddResourceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2673  		}
  2674  		switch fieldNum {
  2675  		case 1:
  2676  			if wireType != 2 {
  2677  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2678  			}
  2679  			var stringLen uint64
  2680  			for shift := uint(0); ; shift += 7 {
  2681  				if shift >= 64 {
  2682  					return ErrIntOverflowLeases
  2683  				}
  2684  				if iNdEx >= l {
  2685  					return io.ErrUnexpectedEOF
  2686  				}
  2687  				b := dAtA[iNdEx]
  2688  				iNdEx++
  2689  				stringLen |= uint64(b&0x7F) << shift
  2690  				if b < 0x80 {
  2691  					break
  2692  				}
  2693  			}
  2694  			intStringLen := int(stringLen)
  2695  			if intStringLen < 0 {
  2696  				return ErrInvalidLengthLeases
  2697  			}
  2698  			postIndex := iNdEx + intStringLen
  2699  			if postIndex < 0 {
  2700  				return ErrInvalidLengthLeases
  2701  			}
  2702  			if postIndex > l {
  2703  				return io.ErrUnexpectedEOF
  2704  			}
  2705  			m.ID = string(dAtA[iNdEx:postIndex])
  2706  			iNdEx = postIndex
  2707  		case 2:
  2708  			if wireType != 2 {
  2709  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  2710  			}
  2711  			var msglen int
  2712  			for shift := uint(0); ; shift += 7 {
  2713  				if shift >= 64 {
  2714  					return ErrIntOverflowLeases
  2715  				}
  2716  				if iNdEx >= l {
  2717  					return io.ErrUnexpectedEOF
  2718  				}
  2719  				b := dAtA[iNdEx]
  2720  				iNdEx++
  2721  				msglen |= int(b&0x7F) << shift
  2722  				if b < 0x80 {
  2723  					break
  2724  				}
  2725  			}
  2726  			if msglen < 0 {
  2727  				return ErrInvalidLengthLeases
  2728  			}
  2729  			postIndex := iNdEx + msglen
  2730  			if postIndex < 0 {
  2731  				return ErrInvalidLengthLeases
  2732  			}
  2733  			if postIndex > l {
  2734  				return io.ErrUnexpectedEOF
  2735  			}
  2736  			if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2737  				return err
  2738  			}
  2739  			iNdEx = postIndex
  2740  		default:
  2741  			iNdEx = preIndex
  2742  			skippy, err := skipLeases(dAtA[iNdEx:])
  2743  			if err != nil {
  2744  				return err
  2745  			}
  2746  			if skippy < 0 {
  2747  				return ErrInvalidLengthLeases
  2748  			}
  2749  			if (iNdEx + skippy) < 0 {
  2750  				return ErrInvalidLengthLeases
  2751  			}
  2752  			if (iNdEx + skippy) > l {
  2753  				return io.ErrUnexpectedEOF
  2754  			}
  2755  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2756  			iNdEx += skippy
  2757  		}
  2758  	}
  2759  
  2760  	if iNdEx > l {
  2761  		return io.ErrUnexpectedEOF
  2762  	}
  2763  	return nil
  2764  }
  2765  func (m *DeleteResourceRequest) Unmarshal(dAtA []byte) error {
  2766  	l := len(dAtA)
  2767  	iNdEx := 0
  2768  	for iNdEx < l {
  2769  		preIndex := iNdEx
  2770  		var wire uint64
  2771  		for shift := uint(0); ; shift += 7 {
  2772  			if shift >= 64 {
  2773  				return ErrIntOverflowLeases
  2774  			}
  2775  			if iNdEx >= l {
  2776  				return io.ErrUnexpectedEOF
  2777  			}
  2778  			b := dAtA[iNdEx]
  2779  			iNdEx++
  2780  			wire |= uint64(b&0x7F) << shift
  2781  			if b < 0x80 {
  2782  				break
  2783  			}
  2784  		}
  2785  		fieldNum := int32(wire >> 3)
  2786  		wireType := int(wire & 0x7)
  2787  		if wireType == 4 {
  2788  			return fmt.Errorf("proto: DeleteResourceRequest: wiretype end group for non-group")
  2789  		}
  2790  		if fieldNum <= 0 {
  2791  			return fmt.Errorf("proto: DeleteResourceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2792  		}
  2793  		switch fieldNum {
  2794  		case 1:
  2795  			if wireType != 2 {
  2796  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2797  			}
  2798  			var stringLen uint64
  2799  			for shift := uint(0); ; shift += 7 {
  2800  				if shift >= 64 {
  2801  					return ErrIntOverflowLeases
  2802  				}
  2803  				if iNdEx >= l {
  2804  					return io.ErrUnexpectedEOF
  2805  				}
  2806  				b := dAtA[iNdEx]
  2807  				iNdEx++
  2808  				stringLen |= uint64(b&0x7F) << shift
  2809  				if b < 0x80 {
  2810  					break
  2811  				}
  2812  			}
  2813  			intStringLen := int(stringLen)
  2814  			if intStringLen < 0 {
  2815  				return ErrInvalidLengthLeases
  2816  			}
  2817  			postIndex := iNdEx + intStringLen
  2818  			if postIndex < 0 {
  2819  				return ErrInvalidLengthLeases
  2820  			}
  2821  			if postIndex > l {
  2822  				return io.ErrUnexpectedEOF
  2823  			}
  2824  			m.ID = string(dAtA[iNdEx:postIndex])
  2825  			iNdEx = postIndex
  2826  		case 2:
  2827  			if wireType != 2 {
  2828  				return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType)
  2829  			}
  2830  			var msglen int
  2831  			for shift := uint(0); ; shift += 7 {
  2832  				if shift >= 64 {
  2833  					return ErrIntOverflowLeases
  2834  				}
  2835  				if iNdEx >= l {
  2836  					return io.ErrUnexpectedEOF
  2837  				}
  2838  				b := dAtA[iNdEx]
  2839  				iNdEx++
  2840  				msglen |= int(b&0x7F) << shift
  2841  				if b < 0x80 {
  2842  					break
  2843  				}
  2844  			}
  2845  			if msglen < 0 {
  2846  				return ErrInvalidLengthLeases
  2847  			}
  2848  			postIndex := iNdEx + msglen
  2849  			if postIndex < 0 {
  2850  				return ErrInvalidLengthLeases
  2851  			}
  2852  			if postIndex > l {
  2853  				return io.ErrUnexpectedEOF
  2854  			}
  2855  			if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2856  				return err
  2857  			}
  2858  			iNdEx = postIndex
  2859  		default:
  2860  			iNdEx = preIndex
  2861  			skippy, err := skipLeases(dAtA[iNdEx:])
  2862  			if err != nil {
  2863  				return err
  2864  			}
  2865  			if skippy < 0 {
  2866  				return ErrInvalidLengthLeases
  2867  			}
  2868  			if (iNdEx + skippy) < 0 {
  2869  				return ErrInvalidLengthLeases
  2870  			}
  2871  			if (iNdEx + skippy) > l {
  2872  				return io.ErrUnexpectedEOF
  2873  			}
  2874  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2875  			iNdEx += skippy
  2876  		}
  2877  	}
  2878  
  2879  	if iNdEx > l {
  2880  		return io.ErrUnexpectedEOF
  2881  	}
  2882  	return nil
  2883  }
  2884  func (m *ListResourcesRequest) Unmarshal(dAtA []byte) error {
  2885  	l := len(dAtA)
  2886  	iNdEx := 0
  2887  	for iNdEx < l {
  2888  		preIndex := iNdEx
  2889  		var wire uint64
  2890  		for shift := uint(0); ; shift += 7 {
  2891  			if shift >= 64 {
  2892  				return ErrIntOverflowLeases
  2893  			}
  2894  			if iNdEx >= l {
  2895  				return io.ErrUnexpectedEOF
  2896  			}
  2897  			b := dAtA[iNdEx]
  2898  			iNdEx++
  2899  			wire |= uint64(b&0x7F) << shift
  2900  			if b < 0x80 {
  2901  				break
  2902  			}
  2903  		}
  2904  		fieldNum := int32(wire >> 3)
  2905  		wireType := int(wire & 0x7)
  2906  		if wireType == 4 {
  2907  			return fmt.Errorf("proto: ListResourcesRequest: wiretype end group for non-group")
  2908  		}
  2909  		if fieldNum <= 0 {
  2910  			return fmt.Errorf("proto: ListResourcesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2911  		}
  2912  		switch fieldNum {
  2913  		case 1:
  2914  			if wireType != 2 {
  2915  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2916  			}
  2917  			var stringLen uint64
  2918  			for shift := uint(0); ; shift += 7 {
  2919  				if shift >= 64 {
  2920  					return ErrIntOverflowLeases
  2921  				}
  2922  				if iNdEx >= l {
  2923  					return io.ErrUnexpectedEOF
  2924  				}
  2925  				b := dAtA[iNdEx]
  2926  				iNdEx++
  2927  				stringLen |= uint64(b&0x7F) << shift
  2928  				if b < 0x80 {
  2929  					break
  2930  				}
  2931  			}
  2932  			intStringLen := int(stringLen)
  2933  			if intStringLen < 0 {
  2934  				return ErrInvalidLengthLeases
  2935  			}
  2936  			postIndex := iNdEx + intStringLen
  2937  			if postIndex < 0 {
  2938  				return ErrInvalidLengthLeases
  2939  			}
  2940  			if postIndex > l {
  2941  				return io.ErrUnexpectedEOF
  2942  			}
  2943  			m.ID = string(dAtA[iNdEx:postIndex])
  2944  			iNdEx = postIndex
  2945  		default:
  2946  			iNdEx = preIndex
  2947  			skippy, err := skipLeases(dAtA[iNdEx:])
  2948  			if err != nil {
  2949  				return err
  2950  			}
  2951  			if skippy < 0 {
  2952  				return ErrInvalidLengthLeases
  2953  			}
  2954  			if (iNdEx + skippy) < 0 {
  2955  				return ErrInvalidLengthLeases
  2956  			}
  2957  			if (iNdEx + skippy) > l {
  2958  				return io.ErrUnexpectedEOF
  2959  			}
  2960  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2961  			iNdEx += skippy
  2962  		}
  2963  	}
  2964  
  2965  	if iNdEx > l {
  2966  		return io.ErrUnexpectedEOF
  2967  	}
  2968  	return nil
  2969  }
  2970  func (m *ListResourcesResponse) Unmarshal(dAtA []byte) error {
  2971  	l := len(dAtA)
  2972  	iNdEx := 0
  2973  	for iNdEx < l {
  2974  		preIndex := iNdEx
  2975  		var wire uint64
  2976  		for shift := uint(0); ; shift += 7 {
  2977  			if shift >= 64 {
  2978  				return ErrIntOverflowLeases
  2979  			}
  2980  			if iNdEx >= l {
  2981  				return io.ErrUnexpectedEOF
  2982  			}
  2983  			b := dAtA[iNdEx]
  2984  			iNdEx++
  2985  			wire |= uint64(b&0x7F) << shift
  2986  			if b < 0x80 {
  2987  				break
  2988  			}
  2989  		}
  2990  		fieldNum := int32(wire >> 3)
  2991  		wireType := int(wire & 0x7)
  2992  		if wireType == 4 {
  2993  			return fmt.Errorf("proto: ListResourcesResponse: wiretype end group for non-group")
  2994  		}
  2995  		if fieldNum <= 0 {
  2996  			return fmt.Errorf("proto: ListResourcesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2997  		}
  2998  		switch fieldNum {
  2999  		case 1:
  3000  			if wireType != 2 {
  3001  				return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType)
  3002  			}
  3003  			var msglen int
  3004  			for shift := uint(0); ; shift += 7 {
  3005  				if shift >= 64 {
  3006  					return ErrIntOverflowLeases
  3007  				}
  3008  				if iNdEx >= l {
  3009  					return io.ErrUnexpectedEOF
  3010  				}
  3011  				b := dAtA[iNdEx]
  3012  				iNdEx++
  3013  				msglen |= int(b&0x7F) << shift
  3014  				if b < 0x80 {
  3015  					break
  3016  				}
  3017  			}
  3018  			if msglen < 0 {
  3019  				return ErrInvalidLengthLeases
  3020  			}
  3021  			postIndex := iNdEx + msglen
  3022  			if postIndex < 0 {
  3023  				return ErrInvalidLengthLeases
  3024  			}
  3025  			if postIndex > l {
  3026  				return io.ErrUnexpectedEOF
  3027  			}
  3028  			m.Resources = append(m.Resources, Resource{})
  3029  			if err := m.Resources[len(m.Resources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3030  				return err
  3031  			}
  3032  			iNdEx = postIndex
  3033  		default:
  3034  			iNdEx = preIndex
  3035  			skippy, err := skipLeases(dAtA[iNdEx:])
  3036  			if err != nil {
  3037  				return err
  3038  			}
  3039  			if skippy < 0 {
  3040  				return ErrInvalidLengthLeases
  3041  			}
  3042  			if (iNdEx + skippy) < 0 {
  3043  				return ErrInvalidLengthLeases
  3044  			}
  3045  			if (iNdEx + skippy) > l {
  3046  				return io.ErrUnexpectedEOF
  3047  			}
  3048  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3049  			iNdEx += skippy
  3050  		}
  3051  	}
  3052  
  3053  	if iNdEx > l {
  3054  		return io.ErrUnexpectedEOF
  3055  	}
  3056  	return nil
  3057  }
  3058  func skipLeases(dAtA []byte) (n int, err error) {
  3059  	l := len(dAtA)
  3060  	iNdEx := 0
  3061  	depth := 0
  3062  	for iNdEx < l {
  3063  		var wire uint64
  3064  		for shift := uint(0); ; shift += 7 {
  3065  			if shift >= 64 {
  3066  				return 0, ErrIntOverflowLeases
  3067  			}
  3068  			if iNdEx >= l {
  3069  				return 0, io.ErrUnexpectedEOF
  3070  			}
  3071  			b := dAtA[iNdEx]
  3072  			iNdEx++
  3073  			wire |= (uint64(b) & 0x7F) << shift
  3074  			if b < 0x80 {
  3075  				break
  3076  			}
  3077  		}
  3078  		wireType := int(wire & 0x7)
  3079  		switch wireType {
  3080  		case 0:
  3081  			for shift := uint(0); ; shift += 7 {
  3082  				if shift >= 64 {
  3083  					return 0, ErrIntOverflowLeases
  3084  				}
  3085  				if iNdEx >= l {
  3086  					return 0, io.ErrUnexpectedEOF
  3087  				}
  3088  				iNdEx++
  3089  				if dAtA[iNdEx-1] < 0x80 {
  3090  					break
  3091  				}
  3092  			}
  3093  		case 1:
  3094  			iNdEx += 8
  3095  		case 2:
  3096  			var length int
  3097  			for shift := uint(0); ; shift += 7 {
  3098  				if shift >= 64 {
  3099  					return 0, ErrIntOverflowLeases
  3100  				}
  3101  				if iNdEx >= l {
  3102  					return 0, io.ErrUnexpectedEOF
  3103  				}
  3104  				b := dAtA[iNdEx]
  3105  				iNdEx++
  3106  				length |= (int(b) & 0x7F) << shift
  3107  				if b < 0x80 {
  3108  					break
  3109  				}
  3110  			}
  3111  			if length < 0 {
  3112  				return 0, ErrInvalidLengthLeases
  3113  			}
  3114  			iNdEx += length
  3115  		case 3:
  3116  			depth++
  3117  		case 4:
  3118  			if depth == 0 {
  3119  				return 0, ErrUnexpectedEndOfGroupLeases
  3120  			}
  3121  			depth--
  3122  		case 5:
  3123  			iNdEx += 4
  3124  		default:
  3125  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3126  		}
  3127  		if iNdEx < 0 {
  3128  			return 0, ErrInvalidLengthLeases
  3129  		}
  3130  		if depth == 0 {
  3131  			return iNdEx, nil
  3132  		}
  3133  	}
  3134  	return 0, io.ErrUnexpectedEOF
  3135  }
  3136  
  3137  var (
  3138  	ErrInvalidLengthLeases        = fmt.Errorf("proto: negative length found during unmarshaling")
  3139  	ErrIntOverflowLeases          = fmt.Errorf("proto: integer overflow")
  3140  	ErrUnexpectedEndOfGroupLeases = fmt.Errorf("proto: unexpected end of group")
  3141  )