github.com/demonoid81/containerd@v1.3.4/api/services/snapshots/v1/snapshots.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto
     3  
     4  package snapshots
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	types "github.com/containerd/containerd/api/types"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
    12  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    13  	types1 "github.com/gogo/protobuf/types"
    14  	grpc "google.golang.org/grpc"
    15  	io "io"
    16  	math "math"
    17  	reflect "reflect"
    18  	strings "strings"
    19  	time "time"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  var _ = time.Kitchen
    27  
    28  // This is a compile-time assertion to ensure that this generated file
    29  // is compatible with the proto package it is being compiled against.
    30  // A compilation error at this line likely means your copy of the
    31  // proto package needs to be updated.
    32  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    33  
    34  type Kind int32
    35  
    36  const (
    37  	KindUnknown   Kind = 0
    38  	KindView      Kind = 1
    39  	KindActive    Kind = 2
    40  	KindCommitted Kind = 3
    41  )
    42  
    43  var Kind_name = map[int32]string{
    44  	0: "UNKNOWN",
    45  	1: "VIEW",
    46  	2: "ACTIVE",
    47  	3: "COMMITTED",
    48  }
    49  
    50  var Kind_value = map[string]int32{
    51  	"UNKNOWN":   0,
    52  	"VIEW":      1,
    53  	"ACTIVE":    2,
    54  	"COMMITTED": 3,
    55  }
    56  
    57  func (x Kind) String() string {
    58  	return proto.EnumName(Kind_name, int32(x))
    59  }
    60  
    61  func (Kind) EnumDescriptor() ([]byte, []int) {
    62  	return fileDescriptor_cfc0ddf12791f168, []int{0}
    63  }
    64  
    65  type PrepareSnapshotRequest struct {
    66  	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
    67  	Key         string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
    68  	Parent      string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
    69  	// Labels are arbitrary data on snapshots.
    70  	//
    71  	// The combined size of a key/value pair cannot exceed 4096 bytes.
    72  	Labels               map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    73  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    74  	XXX_unrecognized     []byte            `json:"-"`
    75  	XXX_sizecache        int32             `json:"-"`
    76  }
    77  
    78  func (m *PrepareSnapshotRequest) Reset()      { *m = PrepareSnapshotRequest{} }
    79  func (*PrepareSnapshotRequest) ProtoMessage() {}
    80  func (*PrepareSnapshotRequest) Descriptor() ([]byte, []int) {
    81  	return fileDescriptor_cfc0ddf12791f168, []int{0}
    82  }
    83  func (m *PrepareSnapshotRequest) XXX_Unmarshal(b []byte) error {
    84  	return m.Unmarshal(b)
    85  }
    86  func (m *PrepareSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    87  	if deterministic {
    88  		return xxx_messageInfo_PrepareSnapshotRequest.Marshal(b, m, deterministic)
    89  	} else {
    90  		b = b[:cap(b)]
    91  		n, err := m.MarshalTo(b)
    92  		if err != nil {
    93  			return nil, err
    94  		}
    95  		return b[:n], nil
    96  	}
    97  }
    98  func (m *PrepareSnapshotRequest) XXX_Merge(src proto.Message) {
    99  	xxx_messageInfo_PrepareSnapshotRequest.Merge(m, src)
   100  }
   101  func (m *PrepareSnapshotRequest) XXX_Size() int {
   102  	return m.Size()
   103  }
   104  func (m *PrepareSnapshotRequest) XXX_DiscardUnknown() {
   105  	xxx_messageInfo_PrepareSnapshotRequest.DiscardUnknown(m)
   106  }
   107  
   108  var xxx_messageInfo_PrepareSnapshotRequest proto.InternalMessageInfo
   109  
   110  type PrepareSnapshotResponse struct {
   111  	Mounts               []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"`
   112  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   113  	XXX_unrecognized     []byte         `json:"-"`
   114  	XXX_sizecache        int32          `json:"-"`
   115  }
   116  
   117  func (m *PrepareSnapshotResponse) Reset()      { *m = PrepareSnapshotResponse{} }
   118  func (*PrepareSnapshotResponse) ProtoMessage() {}
   119  func (*PrepareSnapshotResponse) Descriptor() ([]byte, []int) {
   120  	return fileDescriptor_cfc0ddf12791f168, []int{1}
   121  }
   122  func (m *PrepareSnapshotResponse) XXX_Unmarshal(b []byte) error {
   123  	return m.Unmarshal(b)
   124  }
   125  func (m *PrepareSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   126  	if deterministic {
   127  		return xxx_messageInfo_PrepareSnapshotResponse.Marshal(b, m, deterministic)
   128  	} else {
   129  		b = b[:cap(b)]
   130  		n, err := m.MarshalTo(b)
   131  		if err != nil {
   132  			return nil, err
   133  		}
   134  		return b[:n], nil
   135  	}
   136  }
   137  func (m *PrepareSnapshotResponse) XXX_Merge(src proto.Message) {
   138  	xxx_messageInfo_PrepareSnapshotResponse.Merge(m, src)
   139  }
   140  func (m *PrepareSnapshotResponse) XXX_Size() int {
   141  	return m.Size()
   142  }
   143  func (m *PrepareSnapshotResponse) XXX_DiscardUnknown() {
   144  	xxx_messageInfo_PrepareSnapshotResponse.DiscardUnknown(m)
   145  }
   146  
   147  var xxx_messageInfo_PrepareSnapshotResponse proto.InternalMessageInfo
   148  
   149  type ViewSnapshotRequest struct {
   150  	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
   151  	Key         string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
   152  	Parent      string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
   153  	// Labels are arbitrary data on snapshots.
   154  	//
   155  	// The combined size of a key/value pair cannot exceed 4096 bytes.
   156  	Labels               map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   157  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   158  	XXX_unrecognized     []byte            `json:"-"`
   159  	XXX_sizecache        int32             `json:"-"`
   160  }
   161  
   162  func (m *ViewSnapshotRequest) Reset()      { *m = ViewSnapshotRequest{} }
   163  func (*ViewSnapshotRequest) ProtoMessage() {}
   164  func (*ViewSnapshotRequest) Descriptor() ([]byte, []int) {
   165  	return fileDescriptor_cfc0ddf12791f168, []int{2}
   166  }
   167  func (m *ViewSnapshotRequest) XXX_Unmarshal(b []byte) error {
   168  	return m.Unmarshal(b)
   169  }
   170  func (m *ViewSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   171  	if deterministic {
   172  		return xxx_messageInfo_ViewSnapshotRequest.Marshal(b, m, deterministic)
   173  	} else {
   174  		b = b[:cap(b)]
   175  		n, err := m.MarshalTo(b)
   176  		if err != nil {
   177  			return nil, err
   178  		}
   179  		return b[:n], nil
   180  	}
   181  }
   182  func (m *ViewSnapshotRequest) XXX_Merge(src proto.Message) {
   183  	xxx_messageInfo_ViewSnapshotRequest.Merge(m, src)
   184  }
   185  func (m *ViewSnapshotRequest) XXX_Size() int {
   186  	return m.Size()
   187  }
   188  func (m *ViewSnapshotRequest) XXX_DiscardUnknown() {
   189  	xxx_messageInfo_ViewSnapshotRequest.DiscardUnknown(m)
   190  }
   191  
   192  var xxx_messageInfo_ViewSnapshotRequest proto.InternalMessageInfo
   193  
   194  type ViewSnapshotResponse struct {
   195  	Mounts               []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"`
   196  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   197  	XXX_unrecognized     []byte         `json:"-"`
   198  	XXX_sizecache        int32          `json:"-"`
   199  }
   200  
   201  func (m *ViewSnapshotResponse) Reset()      { *m = ViewSnapshotResponse{} }
   202  func (*ViewSnapshotResponse) ProtoMessage() {}
   203  func (*ViewSnapshotResponse) Descriptor() ([]byte, []int) {
   204  	return fileDescriptor_cfc0ddf12791f168, []int{3}
   205  }
   206  func (m *ViewSnapshotResponse) XXX_Unmarshal(b []byte) error {
   207  	return m.Unmarshal(b)
   208  }
   209  func (m *ViewSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   210  	if deterministic {
   211  		return xxx_messageInfo_ViewSnapshotResponse.Marshal(b, m, deterministic)
   212  	} else {
   213  		b = b[:cap(b)]
   214  		n, err := m.MarshalTo(b)
   215  		if err != nil {
   216  			return nil, err
   217  		}
   218  		return b[:n], nil
   219  	}
   220  }
   221  func (m *ViewSnapshotResponse) XXX_Merge(src proto.Message) {
   222  	xxx_messageInfo_ViewSnapshotResponse.Merge(m, src)
   223  }
   224  func (m *ViewSnapshotResponse) XXX_Size() int {
   225  	return m.Size()
   226  }
   227  func (m *ViewSnapshotResponse) XXX_DiscardUnknown() {
   228  	xxx_messageInfo_ViewSnapshotResponse.DiscardUnknown(m)
   229  }
   230  
   231  var xxx_messageInfo_ViewSnapshotResponse proto.InternalMessageInfo
   232  
   233  type MountsRequest struct {
   234  	Snapshotter          string   `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
   235  	Key                  string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
   236  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   237  	XXX_unrecognized     []byte   `json:"-"`
   238  	XXX_sizecache        int32    `json:"-"`
   239  }
   240  
   241  func (m *MountsRequest) Reset()      { *m = MountsRequest{} }
   242  func (*MountsRequest) ProtoMessage() {}
   243  func (*MountsRequest) Descriptor() ([]byte, []int) {
   244  	return fileDescriptor_cfc0ddf12791f168, []int{4}
   245  }
   246  func (m *MountsRequest) XXX_Unmarshal(b []byte) error {
   247  	return m.Unmarshal(b)
   248  }
   249  func (m *MountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   250  	if deterministic {
   251  		return xxx_messageInfo_MountsRequest.Marshal(b, m, deterministic)
   252  	} else {
   253  		b = b[:cap(b)]
   254  		n, err := m.MarshalTo(b)
   255  		if err != nil {
   256  			return nil, err
   257  		}
   258  		return b[:n], nil
   259  	}
   260  }
   261  func (m *MountsRequest) XXX_Merge(src proto.Message) {
   262  	xxx_messageInfo_MountsRequest.Merge(m, src)
   263  }
   264  func (m *MountsRequest) XXX_Size() int {
   265  	return m.Size()
   266  }
   267  func (m *MountsRequest) XXX_DiscardUnknown() {
   268  	xxx_messageInfo_MountsRequest.DiscardUnknown(m)
   269  }
   270  
   271  var xxx_messageInfo_MountsRequest proto.InternalMessageInfo
   272  
   273  type MountsResponse struct {
   274  	Mounts               []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"`
   275  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   276  	XXX_unrecognized     []byte         `json:"-"`
   277  	XXX_sizecache        int32          `json:"-"`
   278  }
   279  
   280  func (m *MountsResponse) Reset()      { *m = MountsResponse{} }
   281  func (*MountsResponse) ProtoMessage() {}
   282  func (*MountsResponse) Descriptor() ([]byte, []int) {
   283  	return fileDescriptor_cfc0ddf12791f168, []int{5}
   284  }
   285  func (m *MountsResponse) XXX_Unmarshal(b []byte) error {
   286  	return m.Unmarshal(b)
   287  }
   288  func (m *MountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   289  	if deterministic {
   290  		return xxx_messageInfo_MountsResponse.Marshal(b, m, deterministic)
   291  	} else {
   292  		b = b[:cap(b)]
   293  		n, err := m.MarshalTo(b)
   294  		if err != nil {
   295  			return nil, err
   296  		}
   297  		return b[:n], nil
   298  	}
   299  }
   300  func (m *MountsResponse) XXX_Merge(src proto.Message) {
   301  	xxx_messageInfo_MountsResponse.Merge(m, src)
   302  }
   303  func (m *MountsResponse) XXX_Size() int {
   304  	return m.Size()
   305  }
   306  func (m *MountsResponse) XXX_DiscardUnknown() {
   307  	xxx_messageInfo_MountsResponse.DiscardUnknown(m)
   308  }
   309  
   310  var xxx_messageInfo_MountsResponse proto.InternalMessageInfo
   311  
   312  type RemoveSnapshotRequest struct {
   313  	Snapshotter          string   `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
   314  	Key                  string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
   315  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   316  	XXX_unrecognized     []byte   `json:"-"`
   317  	XXX_sizecache        int32    `json:"-"`
   318  }
   319  
   320  func (m *RemoveSnapshotRequest) Reset()      { *m = RemoveSnapshotRequest{} }
   321  func (*RemoveSnapshotRequest) ProtoMessage() {}
   322  func (*RemoveSnapshotRequest) Descriptor() ([]byte, []int) {
   323  	return fileDescriptor_cfc0ddf12791f168, []int{6}
   324  }
   325  func (m *RemoveSnapshotRequest) XXX_Unmarshal(b []byte) error {
   326  	return m.Unmarshal(b)
   327  }
   328  func (m *RemoveSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   329  	if deterministic {
   330  		return xxx_messageInfo_RemoveSnapshotRequest.Marshal(b, m, deterministic)
   331  	} else {
   332  		b = b[:cap(b)]
   333  		n, err := m.MarshalTo(b)
   334  		if err != nil {
   335  			return nil, err
   336  		}
   337  		return b[:n], nil
   338  	}
   339  }
   340  func (m *RemoveSnapshotRequest) XXX_Merge(src proto.Message) {
   341  	xxx_messageInfo_RemoveSnapshotRequest.Merge(m, src)
   342  }
   343  func (m *RemoveSnapshotRequest) XXX_Size() int {
   344  	return m.Size()
   345  }
   346  func (m *RemoveSnapshotRequest) XXX_DiscardUnknown() {
   347  	xxx_messageInfo_RemoveSnapshotRequest.DiscardUnknown(m)
   348  }
   349  
   350  var xxx_messageInfo_RemoveSnapshotRequest proto.InternalMessageInfo
   351  
   352  type CommitSnapshotRequest struct {
   353  	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
   354  	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
   355  	Key         string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
   356  	// Labels are arbitrary data on snapshots.
   357  	//
   358  	// The combined size of a key/value pair cannot exceed 4096 bytes.
   359  	Labels               map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   360  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   361  	XXX_unrecognized     []byte            `json:"-"`
   362  	XXX_sizecache        int32             `json:"-"`
   363  }
   364  
   365  func (m *CommitSnapshotRequest) Reset()      { *m = CommitSnapshotRequest{} }
   366  func (*CommitSnapshotRequest) ProtoMessage() {}
   367  func (*CommitSnapshotRequest) Descriptor() ([]byte, []int) {
   368  	return fileDescriptor_cfc0ddf12791f168, []int{7}
   369  }
   370  func (m *CommitSnapshotRequest) XXX_Unmarshal(b []byte) error {
   371  	return m.Unmarshal(b)
   372  }
   373  func (m *CommitSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   374  	if deterministic {
   375  		return xxx_messageInfo_CommitSnapshotRequest.Marshal(b, m, deterministic)
   376  	} else {
   377  		b = b[:cap(b)]
   378  		n, err := m.MarshalTo(b)
   379  		if err != nil {
   380  			return nil, err
   381  		}
   382  		return b[:n], nil
   383  	}
   384  }
   385  func (m *CommitSnapshotRequest) XXX_Merge(src proto.Message) {
   386  	xxx_messageInfo_CommitSnapshotRequest.Merge(m, src)
   387  }
   388  func (m *CommitSnapshotRequest) XXX_Size() int {
   389  	return m.Size()
   390  }
   391  func (m *CommitSnapshotRequest) XXX_DiscardUnknown() {
   392  	xxx_messageInfo_CommitSnapshotRequest.DiscardUnknown(m)
   393  }
   394  
   395  var xxx_messageInfo_CommitSnapshotRequest proto.InternalMessageInfo
   396  
   397  type StatSnapshotRequest struct {
   398  	Snapshotter          string   `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
   399  	Key                  string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
   400  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   401  	XXX_unrecognized     []byte   `json:"-"`
   402  	XXX_sizecache        int32    `json:"-"`
   403  }
   404  
   405  func (m *StatSnapshotRequest) Reset()      { *m = StatSnapshotRequest{} }
   406  func (*StatSnapshotRequest) ProtoMessage() {}
   407  func (*StatSnapshotRequest) Descriptor() ([]byte, []int) {
   408  	return fileDescriptor_cfc0ddf12791f168, []int{8}
   409  }
   410  func (m *StatSnapshotRequest) XXX_Unmarshal(b []byte) error {
   411  	return m.Unmarshal(b)
   412  }
   413  func (m *StatSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   414  	if deterministic {
   415  		return xxx_messageInfo_StatSnapshotRequest.Marshal(b, m, deterministic)
   416  	} else {
   417  		b = b[:cap(b)]
   418  		n, err := m.MarshalTo(b)
   419  		if err != nil {
   420  			return nil, err
   421  		}
   422  		return b[:n], nil
   423  	}
   424  }
   425  func (m *StatSnapshotRequest) XXX_Merge(src proto.Message) {
   426  	xxx_messageInfo_StatSnapshotRequest.Merge(m, src)
   427  }
   428  func (m *StatSnapshotRequest) XXX_Size() int {
   429  	return m.Size()
   430  }
   431  func (m *StatSnapshotRequest) XXX_DiscardUnknown() {
   432  	xxx_messageInfo_StatSnapshotRequest.DiscardUnknown(m)
   433  }
   434  
   435  var xxx_messageInfo_StatSnapshotRequest proto.InternalMessageInfo
   436  
   437  type Info struct {
   438  	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   439  	Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"`
   440  	Kind   Kind   `protobuf:"varint,3,opt,name=kind,proto3,enum=containerd.services.snapshots.v1.Kind" json:"kind,omitempty"`
   441  	// CreatedAt provides the time at which the snapshot was created.
   442  	CreatedAt time.Time `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"`
   443  	// UpdatedAt provides the time the info was last updated.
   444  	UpdatedAt time.Time `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"`
   445  	// Labels are arbitrary data on snapshots.
   446  	//
   447  	// The combined size of a key/value pair cannot exceed 4096 bytes.
   448  	Labels               map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   449  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   450  	XXX_unrecognized     []byte            `json:"-"`
   451  	XXX_sizecache        int32             `json:"-"`
   452  }
   453  
   454  func (m *Info) Reset()      { *m = Info{} }
   455  func (*Info) ProtoMessage() {}
   456  func (*Info) Descriptor() ([]byte, []int) {
   457  	return fileDescriptor_cfc0ddf12791f168, []int{9}
   458  }
   459  func (m *Info) XXX_Unmarshal(b []byte) error {
   460  	return m.Unmarshal(b)
   461  }
   462  func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   463  	if deterministic {
   464  		return xxx_messageInfo_Info.Marshal(b, m, deterministic)
   465  	} else {
   466  		b = b[:cap(b)]
   467  		n, err := m.MarshalTo(b)
   468  		if err != nil {
   469  			return nil, err
   470  		}
   471  		return b[:n], nil
   472  	}
   473  }
   474  func (m *Info) XXX_Merge(src proto.Message) {
   475  	xxx_messageInfo_Info.Merge(m, src)
   476  }
   477  func (m *Info) XXX_Size() int {
   478  	return m.Size()
   479  }
   480  func (m *Info) XXX_DiscardUnknown() {
   481  	xxx_messageInfo_Info.DiscardUnknown(m)
   482  }
   483  
   484  var xxx_messageInfo_Info proto.InternalMessageInfo
   485  
   486  type StatSnapshotResponse struct {
   487  	Info                 Info     `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
   488  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   489  	XXX_unrecognized     []byte   `json:"-"`
   490  	XXX_sizecache        int32    `json:"-"`
   491  }
   492  
   493  func (m *StatSnapshotResponse) Reset()      { *m = StatSnapshotResponse{} }
   494  func (*StatSnapshotResponse) ProtoMessage() {}
   495  func (*StatSnapshotResponse) Descriptor() ([]byte, []int) {
   496  	return fileDescriptor_cfc0ddf12791f168, []int{10}
   497  }
   498  func (m *StatSnapshotResponse) XXX_Unmarshal(b []byte) error {
   499  	return m.Unmarshal(b)
   500  }
   501  func (m *StatSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   502  	if deterministic {
   503  		return xxx_messageInfo_StatSnapshotResponse.Marshal(b, m, deterministic)
   504  	} else {
   505  		b = b[:cap(b)]
   506  		n, err := m.MarshalTo(b)
   507  		if err != nil {
   508  			return nil, err
   509  		}
   510  		return b[:n], nil
   511  	}
   512  }
   513  func (m *StatSnapshotResponse) XXX_Merge(src proto.Message) {
   514  	xxx_messageInfo_StatSnapshotResponse.Merge(m, src)
   515  }
   516  func (m *StatSnapshotResponse) XXX_Size() int {
   517  	return m.Size()
   518  }
   519  func (m *StatSnapshotResponse) XXX_DiscardUnknown() {
   520  	xxx_messageInfo_StatSnapshotResponse.DiscardUnknown(m)
   521  }
   522  
   523  var xxx_messageInfo_StatSnapshotResponse proto.InternalMessageInfo
   524  
   525  type UpdateSnapshotRequest struct {
   526  	Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
   527  	Info        Info   `protobuf:"bytes,2,opt,name=info,proto3" json:"info"`
   528  	// UpdateMask specifies which fields to perform the update on. If empty,
   529  	// the operation applies to all fields.
   530  	//
   531  	// In info, Name, Parent, Kind, Created are immutable,
   532  	// other field may be updated using this mask.
   533  	// If no mask is provided, all mutable field are updated.
   534  	UpdateMask           *types1.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
   535  	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
   536  	XXX_unrecognized     []byte            `json:"-"`
   537  	XXX_sizecache        int32             `json:"-"`
   538  }
   539  
   540  func (m *UpdateSnapshotRequest) Reset()      { *m = UpdateSnapshotRequest{} }
   541  func (*UpdateSnapshotRequest) ProtoMessage() {}
   542  func (*UpdateSnapshotRequest) Descriptor() ([]byte, []int) {
   543  	return fileDescriptor_cfc0ddf12791f168, []int{11}
   544  }
   545  func (m *UpdateSnapshotRequest) XXX_Unmarshal(b []byte) error {
   546  	return m.Unmarshal(b)
   547  }
   548  func (m *UpdateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   549  	if deterministic {
   550  		return xxx_messageInfo_UpdateSnapshotRequest.Marshal(b, m, deterministic)
   551  	} else {
   552  		b = b[:cap(b)]
   553  		n, err := m.MarshalTo(b)
   554  		if err != nil {
   555  			return nil, err
   556  		}
   557  		return b[:n], nil
   558  	}
   559  }
   560  func (m *UpdateSnapshotRequest) XXX_Merge(src proto.Message) {
   561  	xxx_messageInfo_UpdateSnapshotRequest.Merge(m, src)
   562  }
   563  func (m *UpdateSnapshotRequest) XXX_Size() int {
   564  	return m.Size()
   565  }
   566  func (m *UpdateSnapshotRequest) XXX_DiscardUnknown() {
   567  	xxx_messageInfo_UpdateSnapshotRequest.DiscardUnknown(m)
   568  }
   569  
   570  var xxx_messageInfo_UpdateSnapshotRequest proto.InternalMessageInfo
   571  
   572  type UpdateSnapshotResponse struct {
   573  	Info                 Info     `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
   574  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   575  	XXX_unrecognized     []byte   `json:"-"`
   576  	XXX_sizecache        int32    `json:"-"`
   577  }
   578  
   579  func (m *UpdateSnapshotResponse) Reset()      { *m = UpdateSnapshotResponse{} }
   580  func (*UpdateSnapshotResponse) ProtoMessage() {}
   581  func (*UpdateSnapshotResponse) Descriptor() ([]byte, []int) {
   582  	return fileDescriptor_cfc0ddf12791f168, []int{12}
   583  }
   584  func (m *UpdateSnapshotResponse) XXX_Unmarshal(b []byte) error {
   585  	return m.Unmarshal(b)
   586  }
   587  func (m *UpdateSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   588  	if deterministic {
   589  		return xxx_messageInfo_UpdateSnapshotResponse.Marshal(b, m, deterministic)
   590  	} else {
   591  		b = b[:cap(b)]
   592  		n, err := m.MarshalTo(b)
   593  		if err != nil {
   594  			return nil, err
   595  		}
   596  		return b[:n], nil
   597  	}
   598  }
   599  func (m *UpdateSnapshotResponse) XXX_Merge(src proto.Message) {
   600  	xxx_messageInfo_UpdateSnapshotResponse.Merge(m, src)
   601  }
   602  func (m *UpdateSnapshotResponse) XXX_Size() int {
   603  	return m.Size()
   604  }
   605  func (m *UpdateSnapshotResponse) XXX_DiscardUnknown() {
   606  	xxx_messageInfo_UpdateSnapshotResponse.DiscardUnknown(m)
   607  }
   608  
   609  var xxx_messageInfo_UpdateSnapshotResponse proto.InternalMessageInfo
   610  
   611  type ListSnapshotsRequest struct {
   612  	Snapshotter          string   `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
   613  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   614  	XXX_unrecognized     []byte   `json:"-"`
   615  	XXX_sizecache        int32    `json:"-"`
   616  }
   617  
   618  func (m *ListSnapshotsRequest) Reset()      { *m = ListSnapshotsRequest{} }
   619  func (*ListSnapshotsRequest) ProtoMessage() {}
   620  func (*ListSnapshotsRequest) Descriptor() ([]byte, []int) {
   621  	return fileDescriptor_cfc0ddf12791f168, []int{13}
   622  }
   623  func (m *ListSnapshotsRequest) XXX_Unmarshal(b []byte) error {
   624  	return m.Unmarshal(b)
   625  }
   626  func (m *ListSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   627  	if deterministic {
   628  		return xxx_messageInfo_ListSnapshotsRequest.Marshal(b, m, deterministic)
   629  	} else {
   630  		b = b[:cap(b)]
   631  		n, err := m.MarshalTo(b)
   632  		if err != nil {
   633  			return nil, err
   634  		}
   635  		return b[:n], nil
   636  	}
   637  }
   638  func (m *ListSnapshotsRequest) XXX_Merge(src proto.Message) {
   639  	xxx_messageInfo_ListSnapshotsRequest.Merge(m, src)
   640  }
   641  func (m *ListSnapshotsRequest) XXX_Size() int {
   642  	return m.Size()
   643  }
   644  func (m *ListSnapshotsRequest) XXX_DiscardUnknown() {
   645  	xxx_messageInfo_ListSnapshotsRequest.DiscardUnknown(m)
   646  }
   647  
   648  var xxx_messageInfo_ListSnapshotsRequest proto.InternalMessageInfo
   649  
   650  type ListSnapshotsResponse struct {
   651  	Info                 []Info   `protobuf:"bytes,1,rep,name=info,proto3" json:"info"`
   652  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   653  	XXX_unrecognized     []byte   `json:"-"`
   654  	XXX_sizecache        int32    `json:"-"`
   655  }
   656  
   657  func (m *ListSnapshotsResponse) Reset()      { *m = ListSnapshotsResponse{} }
   658  func (*ListSnapshotsResponse) ProtoMessage() {}
   659  func (*ListSnapshotsResponse) Descriptor() ([]byte, []int) {
   660  	return fileDescriptor_cfc0ddf12791f168, []int{14}
   661  }
   662  func (m *ListSnapshotsResponse) XXX_Unmarshal(b []byte) error {
   663  	return m.Unmarshal(b)
   664  }
   665  func (m *ListSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   666  	if deterministic {
   667  		return xxx_messageInfo_ListSnapshotsResponse.Marshal(b, m, deterministic)
   668  	} else {
   669  		b = b[:cap(b)]
   670  		n, err := m.MarshalTo(b)
   671  		if err != nil {
   672  			return nil, err
   673  		}
   674  		return b[:n], nil
   675  	}
   676  }
   677  func (m *ListSnapshotsResponse) XXX_Merge(src proto.Message) {
   678  	xxx_messageInfo_ListSnapshotsResponse.Merge(m, src)
   679  }
   680  func (m *ListSnapshotsResponse) XXX_Size() int {
   681  	return m.Size()
   682  }
   683  func (m *ListSnapshotsResponse) XXX_DiscardUnknown() {
   684  	xxx_messageInfo_ListSnapshotsResponse.DiscardUnknown(m)
   685  }
   686  
   687  var xxx_messageInfo_ListSnapshotsResponse proto.InternalMessageInfo
   688  
   689  type UsageRequest struct {
   690  	Snapshotter          string   `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"`
   691  	Key                  string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
   692  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   693  	XXX_unrecognized     []byte   `json:"-"`
   694  	XXX_sizecache        int32    `json:"-"`
   695  }
   696  
   697  func (m *UsageRequest) Reset()      { *m = UsageRequest{} }
   698  func (*UsageRequest) ProtoMessage() {}
   699  func (*UsageRequest) Descriptor() ([]byte, []int) {
   700  	return fileDescriptor_cfc0ddf12791f168, []int{15}
   701  }
   702  func (m *UsageRequest) XXX_Unmarshal(b []byte) error {
   703  	return m.Unmarshal(b)
   704  }
   705  func (m *UsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   706  	if deterministic {
   707  		return xxx_messageInfo_UsageRequest.Marshal(b, m, deterministic)
   708  	} else {
   709  		b = b[:cap(b)]
   710  		n, err := m.MarshalTo(b)
   711  		if err != nil {
   712  			return nil, err
   713  		}
   714  		return b[:n], nil
   715  	}
   716  }
   717  func (m *UsageRequest) XXX_Merge(src proto.Message) {
   718  	xxx_messageInfo_UsageRequest.Merge(m, src)
   719  }
   720  func (m *UsageRequest) XXX_Size() int {
   721  	return m.Size()
   722  }
   723  func (m *UsageRequest) XXX_DiscardUnknown() {
   724  	xxx_messageInfo_UsageRequest.DiscardUnknown(m)
   725  }
   726  
   727  var xxx_messageInfo_UsageRequest proto.InternalMessageInfo
   728  
   729  type UsageResponse struct {
   730  	Size_                int64    `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
   731  	Inodes               int64    `protobuf:"varint,2,opt,name=inodes,proto3" json:"inodes,omitempty"`
   732  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   733  	XXX_unrecognized     []byte   `json:"-"`
   734  	XXX_sizecache        int32    `json:"-"`
   735  }
   736  
   737  func (m *UsageResponse) Reset()      { *m = UsageResponse{} }
   738  func (*UsageResponse) ProtoMessage() {}
   739  func (*UsageResponse) Descriptor() ([]byte, []int) {
   740  	return fileDescriptor_cfc0ddf12791f168, []int{16}
   741  }
   742  func (m *UsageResponse) XXX_Unmarshal(b []byte) error {
   743  	return m.Unmarshal(b)
   744  }
   745  func (m *UsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   746  	if deterministic {
   747  		return xxx_messageInfo_UsageResponse.Marshal(b, m, deterministic)
   748  	} else {
   749  		b = b[:cap(b)]
   750  		n, err := m.MarshalTo(b)
   751  		if err != nil {
   752  			return nil, err
   753  		}
   754  		return b[:n], nil
   755  	}
   756  }
   757  func (m *UsageResponse) XXX_Merge(src proto.Message) {
   758  	xxx_messageInfo_UsageResponse.Merge(m, src)
   759  }
   760  func (m *UsageResponse) XXX_Size() int {
   761  	return m.Size()
   762  }
   763  func (m *UsageResponse) XXX_DiscardUnknown() {
   764  	xxx_messageInfo_UsageResponse.DiscardUnknown(m)
   765  }
   766  
   767  var xxx_messageInfo_UsageResponse proto.InternalMessageInfo
   768  
   769  func init() {
   770  	proto.RegisterEnum("containerd.services.snapshots.v1.Kind", Kind_name, Kind_value)
   771  	proto.RegisterType((*PrepareSnapshotRequest)(nil), "containerd.services.snapshots.v1.PrepareSnapshotRequest")
   772  	proto.RegisterMapType((map[string]string)(nil), "containerd.services.snapshots.v1.PrepareSnapshotRequest.LabelsEntry")
   773  	proto.RegisterType((*PrepareSnapshotResponse)(nil), "containerd.services.snapshots.v1.PrepareSnapshotResponse")
   774  	proto.RegisterType((*ViewSnapshotRequest)(nil), "containerd.services.snapshots.v1.ViewSnapshotRequest")
   775  	proto.RegisterMapType((map[string]string)(nil), "containerd.services.snapshots.v1.ViewSnapshotRequest.LabelsEntry")
   776  	proto.RegisterType((*ViewSnapshotResponse)(nil), "containerd.services.snapshots.v1.ViewSnapshotResponse")
   777  	proto.RegisterType((*MountsRequest)(nil), "containerd.services.snapshots.v1.MountsRequest")
   778  	proto.RegisterType((*MountsResponse)(nil), "containerd.services.snapshots.v1.MountsResponse")
   779  	proto.RegisterType((*RemoveSnapshotRequest)(nil), "containerd.services.snapshots.v1.RemoveSnapshotRequest")
   780  	proto.RegisterType((*CommitSnapshotRequest)(nil), "containerd.services.snapshots.v1.CommitSnapshotRequest")
   781  	proto.RegisterMapType((map[string]string)(nil), "containerd.services.snapshots.v1.CommitSnapshotRequest.LabelsEntry")
   782  	proto.RegisterType((*StatSnapshotRequest)(nil), "containerd.services.snapshots.v1.StatSnapshotRequest")
   783  	proto.RegisterType((*Info)(nil), "containerd.services.snapshots.v1.Info")
   784  	proto.RegisterMapType((map[string]string)(nil), "containerd.services.snapshots.v1.Info.LabelsEntry")
   785  	proto.RegisterType((*StatSnapshotResponse)(nil), "containerd.services.snapshots.v1.StatSnapshotResponse")
   786  	proto.RegisterType((*UpdateSnapshotRequest)(nil), "containerd.services.snapshots.v1.UpdateSnapshotRequest")
   787  	proto.RegisterType((*UpdateSnapshotResponse)(nil), "containerd.services.snapshots.v1.UpdateSnapshotResponse")
   788  	proto.RegisterType((*ListSnapshotsRequest)(nil), "containerd.services.snapshots.v1.ListSnapshotsRequest")
   789  	proto.RegisterType((*ListSnapshotsResponse)(nil), "containerd.services.snapshots.v1.ListSnapshotsResponse")
   790  	proto.RegisterType((*UsageRequest)(nil), "containerd.services.snapshots.v1.UsageRequest")
   791  	proto.RegisterType((*UsageResponse)(nil), "containerd.services.snapshots.v1.UsageResponse")
   792  }
   793  
   794  func init() {
   795  	proto.RegisterFile("github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto", fileDescriptor_cfc0ddf12791f168)
   796  }
   797  
   798  var fileDescriptor_cfc0ddf12791f168 = []byte{
   799  	// 1007 bytes of a gzipped FileDescriptorProto
   800  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1a, 0x47,
   801  	0x14, 0x67, 0x60, 0x8d, 0xe3, 0x87, 0xed, 0xd2, 0x09, 0x26, 0x68, 0x5b, 0xe1, 0x15, 0x87, 0xca,
   802  	0xea, 0x61, 0x37, 0xa1, 0x6a, 0xe2, 0xc4, 0x97, 0x62, 0x4c, 0x2b, 0xec, 0xd8, 0xa9, 0x36, 0xb6,
   803  	0x13, 0xa7, 0x55, 0xa3, 0x35, 0x8c, 0xf1, 0x0a, 0x76, 0x97, 0x32, 0x03, 0x11, 0xad, 0x54, 0xf5,
   804  	0x18, 0xf9, 0xd4, 0x2f, 0xe0, 0x53, 0xfb, 0x21, 0xaa, 0x7e, 0x02, 0x1f, 0x7b, 0xec, 0xa9, 0x6d,
   805  	0xfc, 0x25, 0x7a, 0xea, 0x1f, 0xcd, 0xec, 0x2c, 0x60, 0x4c, 0xc5, 0x82, 0xc9, 0x6d, 0x66, 0x67,
   806  	0x7e, 0xef, 0xfd, 0xe6, 0xf7, 0xe6, 0xbd, 0x37, 0x0b, 0xdb, 0x35, 0x9b, 0x9d, 0xb6, 0x8f, 0xf5,
   807  	0x8a, 0xe7, 0x18, 0x15, 0xcf, 0x65, 0x96, 0xed, 0x92, 0x56, 0x75, 0x70, 0x68, 0x35, 0x6d, 0x83,
   808  	0x92, 0x56, 0xc7, 0xae, 0x10, 0x6a, 0x50, 0xd7, 0x6a, 0xd2, 0x53, 0x8f, 0x51, 0xa3, 0x73, 0xaf,
   809  	0x3f, 0xd1, 0x9b, 0x2d, 0x8f, 0x79, 0x58, 0xeb, 0xa3, 0xf4, 0x00, 0xa1, 0xf7, 0x37, 0x75, 0xee,
   810  	0xa9, 0xa9, 0x9a, 0x57, 0xf3, 0xc4, 0x66, 0x83, 0x8f, 0x7c, 0x9c, 0xfa, 0x5e, 0xcd, 0xf3, 0x6a,
   811  	0x0d, 0x62, 0x88, 0xd9, 0x71, 0xfb, 0xc4, 0x20, 0x4e, 0x93, 0x75, 0xe5, 0xa2, 0x36, 0xbc, 0x78,
   812  	0x62, 0x93, 0x46, 0xf5, 0xa5, 0x63, 0xd1, 0xba, 0xdc, 0xb1, 0x3a, 0xbc, 0x83, 0xd9, 0x0e, 0xa1,
   813  	0xcc, 0x72, 0x9a, 0x72, 0xc3, 0xfd, 0x50, 0x67, 0x64, 0xdd, 0x26, 0xa1, 0x86, 0xe3, 0xb5, 0x5d,
   814  	0xe6, 0xe3, 0x72, 0x7f, 0x23, 0x48, 0x7f, 0xde, 0x22, 0x4d, 0xab, 0x45, 0x9e, 0xca, 0x53, 0x98,
   815  	0xe4, 0xeb, 0x36, 0xa1, 0x0c, 0x6b, 0x90, 0x08, 0x0e, 0xc6, 0x48, 0x2b, 0x83, 0x34, 0xb4, 0xb6,
   816  	0x60, 0x0e, 0x7e, 0xc2, 0x49, 0x88, 0xd5, 0x49, 0x37, 0x13, 0x15, 0x2b, 0x7c, 0x88, 0xd3, 0x10,
   817  	0xe7, 0xa6, 0x5c, 0x96, 0x89, 0x89, 0x8f, 0x72, 0x86, 0xbf, 0x84, 0x78, 0xc3, 0x3a, 0x26, 0x0d,
   818  	0x9a, 0x51, 0xb4, 0xd8, 0x5a, 0x22, 0xbf, 0xa5, 0x8f, 0xd3, 0x51, 0x1f, 0xcd, 0x4a, 0x7f, 0x2c,
   819  	0xcc, 0x94, 0x5c, 0xd6, 0xea, 0x9a, 0xd2, 0xa6, 0xfa, 0x10, 0x12, 0x03, 0x9f, 0x03, 0x5a, 0xa8,
   820  	0x4f, 0x2b, 0x05, 0x73, 0x1d, 0xab, 0xd1, 0x26, 0x92, 0xaa, 0x3f, 0x79, 0x14, 0x5d, 0x47, 0xb9,
   821  	0x6d, 0xb8, 0x73, 0xcd, 0x11, 0x6d, 0x7a, 0x2e, 0x25, 0xd8, 0x80, 0xb8, 0x50, 0x8a, 0x66, 0x90,
   822  	0xe0, 0x7c, 0x67, 0x90, 0xb3, 0x50, 0x52, 0xdf, 0xe5, 0xeb, 0xa6, 0xdc, 0x96, 0xfb, 0x0b, 0xc1,
   823  	0xed, 0x43, 0x9b, 0xbc, 0x7a, 0x9b, 0x42, 0x1e, 0x0d, 0x09, 0x59, 0x18, 0x2f, 0xe4, 0x08, 0x4a,
   824  	0xb3, 0x56, 0xf1, 0x33, 0x48, 0x5d, 0xf5, 0x32, 0xad, 0x84, 0x45, 0x58, 0x12, 0x1f, 0xe8, 0x0d,
   825  	0xb4, 0xcb, 0x15, 0x60, 0x39, 0x30, 0x32, 0x2d, 0x8f, 0x1d, 0x58, 0x31, 0x89, 0xe3, 0x75, 0x66,
   826  	0x91, 0x14, 0xfc, 0x5e, 0xac, 0x14, 0x3d, 0xc7, 0xb1, 0xd9, 0xe4, 0xd6, 0x30, 0x28, 0xae, 0xe5,
   827  	0x04, 0x92, 0x8b, 0x71, 0xe0, 0x21, 0xd6, 0x8f, 0xcc, 0x17, 0x43, 0xb7, 0xa2, 0x38, 0xfe, 0x56,
   828  	0x8c, 0x24, 0x34, 0xeb, 0x7b, 0x51, 0x86, 0xdb, 0x4f, 0x99, 0xc5, 0x66, 0x21, 0xe2, 0xbf, 0x51,
   829  	0x50, 0xca, 0xee, 0x89, 0xd7, 0x53, 0x04, 0x0d, 0x28, 0xd2, 0xcf, 0x96, 0xe8, 0x95, 0x6c, 0x79,
   830  	0x04, 0x4a, 0xdd, 0x76, 0xab, 0x42, 0xaa, 0xe5, 0xfc, 0x07, 0xe3, 0x55, 0xd9, 0xb1, 0xdd, 0xaa,
   831  	0x29, 0x30, 0xb8, 0x08, 0x50, 0x69, 0x11, 0x8b, 0x91, 0xea, 0x4b, 0x8b, 0x65, 0x14, 0x0d, 0xad,
   832  	0x25, 0xf2, 0xaa, 0xee, 0xd7, 0x61, 0x3d, 0xa8, 0xc3, 0xfa, 0x7e, 0x50, 0x87, 0x37, 0x6f, 0x5d,
   833  	0xfc, 0xbe, 0x1a, 0xf9, 0xe1, 0x8f, 0x55, 0x64, 0x2e, 0x48, 0x5c, 0x81, 0x71, 0x23, 0xed, 0x66,
   834  	0x35, 0x30, 0x32, 0x37, 0x89, 0x11, 0x89, 0x2b, 0x30, 0xbc, 0xdd, 0x8b, 0x6e, 0x5c, 0x44, 0x37,
   835  	0x3f, 0xfe, 0x1c, 0x5c, 0xa9, 0x59, 0x07, 0xf3, 0x39, 0xa4, 0xae, 0x06, 0x53, 0x26, 0xd7, 0x27,
   836  	0xa0, 0xd8, 0xee, 0x89, 0x27, 0x8c, 0x24, 0xc2, 0x88, 0xcc, 0xc9, 0x6d, 0x2a, 0xfc, 0xa4, 0xa6,
   837  	0x40, 0xe6, 0x7e, 0x46, 0xb0, 0x72, 0x20, 0x8e, 0x3b, 0xf9, 0x4d, 0x09, 0xbc, 0x47, 0xa7, 0xf5,
   838  	0x8e, 0x37, 0x20, 0xe1, 0x6b, 0x2d, 0x1a, 0xae, 0xb8, 0x2b, 0xa3, 0x82, 0xf4, 0x29, 0xef, 0xc9,
   839  	0xbb, 0x16, 0xad, 0x9b, 0x32, 0xa4, 0x7c, 0x9c, 0x7b, 0x01, 0xe9, 0x61, 0xe6, 0x33, 0x93, 0x65,
   840  	0x1d, 0x52, 0x8f, 0x6d, 0xda, 0x13, 0x3c, 0x7c, 0x4d, 0xcc, 0x1d, 0xc1, 0xca, 0x10, 0xf2, 0x1a,
   841  	0xa9, 0xd8, 0x94, 0xa4, 0x36, 0x61, 0xf1, 0x80, 0x5a, 0x35, 0x72, 0x93, 0x5c, 0xde, 0x80, 0x25,
   842  	0x69, 0x43, 0xd2, 0xc2, 0xa0, 0x50, 0xfb, 0x1b, 0x3f, 0xa7, 0x63, 0xa6, 0x18, 0xf3, 0x9c, 0xb6,
   843  	0x5d, 0xaf, 0x4a, 0xa8, 0x40, 0xc6, 0x4c, 0x39, 0xfb, 0xf0, 0x35, 0x02, 0x85, 0xa7, 0x29, 0x7e,
   844  	0x1f, 0xe6, 0x0f, 0xf6, 0x76, 0xf6, 0x9e, 0x3c, 0xdb, 0x4b, 0x46, 0xd4, 0x77, 0xce, 0xce, 0xb5,
   845  	0x04, 0xff, 0x7c, 0xe0, 0xd6, 0x5d, 0xef, 0x95, 0x8b, 0xd3, 0xa0, 0x1c, 0x96, 0x4b, 0xcf, 0x92,
   846  	0x48, 0x5d, 0x3c, 0x3b, 0xd7, 0x6e, 0xf1, 0x25, 0xde, 0xa2, 0xb0, 0x0a, 0xf1, 0x42, 0x71, 0xbf,
   847  	0x7c, 0x58, 0x4a, 0x46, 0xd5, 0xe5, 0xb3, 0x73, 0x0d, 0xf8, 0x4a, 0xa1, 0xc2, 0xec, 0x0e, 0xc1,
   848  	0x1a, 0x2c, 0x14, 0x9f, 0xec, 0xee, 0x96, 0xf7, 0xf7, 0x4b, 0x5b, 0xc9, 0x98, 0xfa, 0xee, 0xd9,
   849  	0xb9, 0xb6, 0xc4, 0x97, 0xfd, 0x5a, 0xc9, 0x48, 0x55, 0x5d, 0x7c, 0xfd, 0x63, 0x36, 0xf2, 0xcb,
   850  	0x4f, 0x59, 0xc1, 0x20, 0xff, 0xcf, 0x3c, 0x2c, 0xf4, 0x34, 0xc6, 0xdf, 0xc1, 0xbc, 0x7c, 0x4a,
   851  	0xe0, 0xf5, 0x69, 0x9f, 0x37, 0xea, 0xc3, 0x29, 0x90, 0x52, 0xc4, 0x36, 0x28, 0xe2, 0x84, 0x1f,
   852  	0x4f, 0xf5, 0x24, 0x50, 0xef, 0x4f, 0x0a, 0x93, 0x6e, 0xeb, 0x10, 0xf7, 0xbb, 0x2d, 0x36, 0xc6,
   853  	0x5b, 0xb8, 0xd2, 0xdc, 0xd5, 0xbb, 0xe1, 0x01, 0xd2, 0xd9, 0x11, 0xc4, 0xfd, 0x60, 0xe0, 0x07,
   854  	0x53, 0xb6, 0x38, 0x35, 0x7d, 0x2d, 0xb3, 0x4b, 0xfc, 0x29, 0xce, 0x4d, 0xfb, 0x2d, 0x3f, 0x8c,
   855  	0xe9, 0x91, 0x8f, 0x83, 0xff, 0x35, 0xdd, 0x06, 0x85, 0x57, 0xce, 0x30, 0x91, 0x19, 0xd1, 0x2e,
   856  	0xc3, 0x44, 0x66, 0x64, 0x61, 0xfe, 0x16, 0xe2, 0x7e, 0x6d, 0x0a, 0x73, 0xa2, 0x91, 0xf5, 0x57,
   857  	0x5d, 0x9f, 0x1c, 0x28, 0x9d, 0x77, 0x41, 0xe1, 0x25, 0x08, 0x87, 0x20, 0x3f, 0xaa, 0xc8, 0xa9,
   858  	0x0f, 0x26, 0xc6, 0xf9, 0x8e, 0xef, 0x22, 0x7c, 0x0a, 0x73, 0xa2, 0xbc, 0x60, 0x3d, 0x04, 0xfb,
   859  	0x81, 0x5a, 0xa6, 0x1a, 0xa1, 0xf7, 0xfb, 0xbe, 0x36, 0xbf, 0xba, 0x78, 0x93, 0x8d, 0xfc, 0xf6,
   860  	0x26, 0x1b, 0xf9, 0xfe, 0x32, 0x8b, 0x2e, 0x2e, 0xb3, 0xe8, 0xd7, 0xcb, 0x2c, 0xfa, 0xf3, 0x32,
   861  	0x8b, 0x5e, 0x6c, 0x4d, 0xff, 0xcf, 0xb9, 0xd1, 0x9b, 0x3c, 0x8f, 0x1c, 0xc7, 0xc5, 0x55, 0xfa,
   862  	0xe8, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8e, 0xa0, 0xb2, 0xda, 0xc4, 0x0e, 0x00, 0x00,
   863  }
   864  
   865  // Reference imports to suppress errors if they are not otherwise used.
   866  var _ context.Context
   867  var _ grpc.ClientConn
   868  
   869  // This is a compile-time assertion to ensure that this generated file
   870  // is compatible with the grpc package it is being compiled against.
   871  const _ = grpc.SupportPackageIsVersion4
   872  
   873  // SnapshotsClient is the client API for Snapshots service.
   874  //
   875  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   876  type SnapshotsClient interface {
   877  	Prepare(ctx context.Context, in *PrepareSnapshotRequest, opts ...grpc.CallOption) (*PrepareSnapshotResponse, error)
   878  	View(ctx context.Context, in *ViewSnapshotRequest, opts ...grpc.CallOption) (*ViewSnapshotResponse, error)
   879  	Mounts(ctx context.Context, in *MountsRequest, opts ...grpc.CallOption) (*MountsResponse, error)
   880  	Commit(ctx context.Context, in *CommitSnapshotRequest, opts ...grpc.CallOption) (*types1.Empty, error)
   881  	Remove(ctx context.Context, in *RemoveSnapshotRequest, opts ...grpc.CallOption) (*types1.Empty, error)
   882  	Stat(ctx context.Context, in *StatSnapshotRequest, opts ...grpc.CallOption) (*StatSnapshotResponse, error)
   883  	Update(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*UpdateSnapshotResponse, error)
   884  	List(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (Snapshots_ListClient, error)
   885  	Usage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error)
   886  }
   887  
   888  type snapshotsClient struct {
   889  	cc *grpc.ClientConn
   890  }
   891  
   892  func NewSnapshotsClient(cc *grpc.ClientConn) SnapshotsClient {
   893  	return &snapshotsClient{cc}
   894  }
   895  
   896  func (c *snapshotsClient) Prepare(ctx context.Context, in *PrepareSnapshotRequest, opts ...grpc.CallOption) (*PrepareSnapshotResponse, error) {
   897  	out := new(PrepareSnapshotResponse)
   898  	err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Prepare", in, out, opts...)
   899  	if err != nil {
   900  		return nil, err
   901  	}
   902  	return out, nil
   903  }
   904  
   905  func (c *snapshotsClient) View(ctx context.Context, in *ViewSnapshotRequest, opts ...grpc.CallOption) (*ViewSnapshotResponse, error) {
   906  	out := new(ViewSnapshotResponse)
   907  	err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/View", in, out, opts...)
   908  	if err != nil {
   909  		return nil, err
   910  	}
   911  	return out, nil
   912  }
   913  
   914  func (c *snapshotsClient) Mounts(ctx context.Context, in *MountsRequest, opts ...grpc.CallOption) (*MountsResponse, error) {
   915  	out := new(MountsResponse)
   916  	err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Mounts", in, out, opts...)
   917  	if err != nil {
   918  		return nil, err
   919  	}
   920  	return out, nil
   921  }
   922  
   923  func (c *snapshotsClient) Commit(ctx context.Context, in *CommitSnapshotRequest, opts ...grpc.CallOption) (*types1.Empty, error) {
   924  	out := new(types1.Empty)
   925  	err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Commit", in, out, opts...)
   926  	if err != nil {
   927  		return nil, err
   928  	}
   929  	return out, nil
   930  }
   931  
   932  func (c *snapshotsClient) Remove(ctx context.Context, in *RemoveSnapshotRequest, opts ...grpc.CallOption) (*types1.Empty, error) {
   933  	out := new(types1.Empty)
   934  	err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Remove", in, out, opts...)
   935  	if err != nil {
   936  		return nil, err
   937  	}
   938  	return out, nil
   939  }
   940  
   941  func (c *snapshotsClient) Stat(ctx context.Context, in *StatSnapshotRequest, opts ...grpc.CallOption) (*StatSnapshotResponse, error) {
   942  	out := new(StatSnapshotResponse)
   943  	err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Stat", in, out, opts...)
   944  	if err != nil {
   945  		return nil, err
   946  	}
   947  	return out, nil
   948  }
   949  
   950  func (c *snapshotsClient) Update(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*UpdateSnapshotResponse, error) {
   951  	out := new(UpdateSnapshotResponse)
   952  	err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Update", in, out, opts...)
   953  	if err != nil {
   954  		return nil, err
   955  	}
   956  	return out, nil
   957  }
   958  
   959  func (c *snapshotsClient) List(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (Snapshots_ListClient, error) {
   960  	stream, err := c.cc.NewStream(ctx, &_Snapshots_serviceDesc.Streams[0], "/containerd.services.snapshots.v1.Snapshots/List", opts...)
   961  	if err != nil {
   962  		return nil, err
   963  	}
   964  	x := &snapshotsListClient{stream}
   965  	if err := x.ClientStream.SendMsg(in); err != nil {
   966  		return nil, err
   967  	}
   968  	if err := x.ClientStream.CloseSend(); err != nil {
   969  		return nil, err
   970  	}
   971  	return x, nil
   972  }
   973  
   974  type Snapshots_ListClient interface {
   975  	Recv() (*ListSnapshotsResponse, error)
   976  	grpc.ClientStream
   977  }
   978  
   979  type snapshotsListClient struct {
   980  	grpc.ClientStream
   981  }
   982  
   983  func (x *snapshotsListClient) Recv() (*ListSnapshotsResponse, error) {
   984  	m := new(ListSnapshotsResponse)
   985  	if err := x.ClientStream.RecvMsg(m); err != nil {
   986  		return nil, err
   987  	}
   988  	return m, nil
   989  }
   990  
   991  func (c *snapshotsClient) Usage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error) {
   992  	out := new(UsageResponse)
   993  	err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Usage", in, out, opts...)
   994  	if err != nil {
   995  		return nil, err
   996  	}
   997  	return out, nil
   998  }
   999  
  1000  // SnapshotsServer is the server API for Snapshots service.
  1001  type SnapshotsServer interface {
  1002  	Prepare(context.Context, *PrepareSnapshotRequest) (*PrepareSnapshotResponse, error)
  1003  	View(context.Context, *ViewSnapshotRequest) (*ViewSnapshotResponse, error)
  1004  	Mounts(context.Context, *MountsRequest) (*MountsResponse, error)
  1005  	Commit(context.Context, *CommitSnapshotRequest) (*types1.Empty, error)
  1006  	Remove(context.Context, *RemoveSnapshotRequest) (*types1.Empty, error)
  1007  	Stat(context.Context, *StatSnapshotRequest) (*StatSnapshotResponse, error)
  1008  	Update(context.Context, *UpdateSnapshotRequest) (*UpdateSnapshotResponse, error)
  1009  	List(*ListSnapshotsRequest, Snapshots_ListServer) error
  1010  	Usage(context.Context, *UsageRequest) (*UsageResponse, error)
  1011  }
  1012  
  1013  func RegisterSnapshotsServer(s *grpc.Server, srv SnapshotsServer) {
  1014  	s.RegisterService(&_Snapshots_serviceDesc, srv)
  1015  }
  1016  
  1017  func _Snapshots_Prepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1018  	in := new(PrepareSnapshotRequest)
  1019  	if err := dec(in); err != nil {
  1020  		return nil, err
  1021  	}
  1022  	if interceptor == nil {
  1023  		return srv.(SnapshotsServer).Prepare(ctx, in)
  1024  	}
  1025  	info := &grpc.UnaryServerInfo{
  1026  		Server:     srv,
  1027  		FullMethod: "/containerd.services.snapshots.v1.Snapshots/Prepare",
  1028  	}
  1029  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1030  		return srv.(SnapshotsServer).Prepare(ctx, req.(*PrepareSnapshotRequest))
  1031  	}
  1032  	return interceptor(ctx, in, info, handler)
  1033  }
  1034  
  1035  func _Snapshots_View_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1036  	in := new(ViewSnapshotRequest)
  1037  	if err := dec(in); err != nil {
  1038  		return nil, err
  1039  	}
  1040  	if interceptor == nil {
  1041  		return srv.(SnapshotsServer).View(ctx, in)
  1042  	}
  1043  	info := &grpc.UnaryServerInfo{
  1044  		Server:     srv,
  1045  		FullMethod: "/containerd.services.snapshots.v1.Snapshots/View",
  1046  	}
  1047  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1048  		return srv.(SnapshotsServer).View(ctx, req.(*ViewSnapshotRequest))
  1049  	}
  1050  	return interceptor(ctx, in, info, handler)
  1051  }
  1052  
  1053  func _Snapshots_Mounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1054  	in := new(MountsRequest)
  1055  	if err := dec(in); err != nil {
  1056  		return nil, err
  1057  	}
  1058  	if interceptor == nil {
  1059  		return srv.(SnapshotsServer).Mounts(ctx, in)
  1060  	}
  1061  	info := &grpc.UnaryServerInfo{
  1062  		Server:     srv,
  1063  		FullMethod: "/containerd.services.snapshots.v1.Snapshots/Mounts",
  1064  	}
  1065  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1066  		return srv.(SnapshotsServer).Mounts(ctx, req.(*MountsRequest))
  1067  	}
  1068  	return interceptor(ctx, in, info, handler)
  1069  }
  1070  
  1071  func _Snapshots_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1072  	in := new(CommitSnapshotRequest)
  1073  	if err := dec(in); err != nil {
  1074  		return nil, err
  1075  	}
  1076  	if interceptor == nil {
  1077  		return srv.(SnapshotsServer).Commit(ctx, in)
  1078  	}
  1079  	info := &grpc.UnaryServerInfo{
  1080  		Server:     srv,
  1081  		FullMethod: "/containerd.services.snapshots.v1.Snapshots/Commit",
  1082  	}
  1083  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1084  		return srv.(SnapshotsServer).Commit(ctx, req.(*CommitSnapshotRequest))
  1085  	}
  1086  	return interceptor(ctx, in, info, handler)
  1087  }
  1088  
  1089  func _Snapshots_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1090  	in := new(RemoveSnapshotRequest)
  1091  	if err := dec(in); err != nil {
  1092  		return nil, err
  1093  	}
  1094  	if interceptor == nil {
  1095  		return srv.(SnapshotsServer).Remove(ctx, in)
  1096  	}
  1097  	info := &grpc.UnaryServerInfo{
  1098  		Server:     srv,
  1099  		FullMethod: "/containerd.services.snapshots.v1.Snapshots/Remove",
  1100  	}
  1101  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1102  		return srv.(SnapshotsServer).Remove(ctx, req.(*RemoveSnapshotRequest))
  1103  	}
  1104  	return interceptor(ctx, in, info, handler)
  1105  }
  1106  
  1107  func _Snapshots_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1108  	in := new(StatSnapshotRequest)
  1109  	if err := dec(in); err != nil {
  1110  		return nil, err
  1111  	}
  1112  	if interceptor == nil {
  1113  		return srv.(SnapshotsServer).Stat(ctx, in)
  1114  	}
  1115  	info := &grpc.UnaryServerInfo{
  1116  		Server:     srv,
  1117  		FullMethod: "/containerd.services.snapshots.v1.Snapshots/Stat",
  1118  	}
  1119  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1120  		return srv.(SnapshotsServer).Stat(ctx, req.(*StatSnapshotRequest))
  1121  	}
  1122  	return interceptor(ctx, in, info, handler)
  1123  }
  1124  
  1125  func _Snapshots_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1126  	in := new(UpdateSnapshotRequest)
  1127  	if err := dec(in); err != nil {
  1128  		return nil, err
  1129  	}
  1130  	if interceptor == nil {
  1131  		return srv.(SnapshotsServer).Update(ctx, in)
  1132  	}
  1133  	info := &grpc.UnaryServerInfo{
  1134  		Server:     srv,
  1135  		FullMethod: "/containerd.services.snapshots.v1.Snapshots/Update",
  1136  	}
  1137  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1138  		return srv.(SnapshotsServer).Update(ctx, req.(*UpdateSnapshotRequest))
  1139  	}
  1140  	return interceptor(ctx, in, info, handler)
  1141  }
  1142  
  1143  func _Snapshots_List_Handler(srv interface{}, stream grpc.ServerStream) error {
  1144  	m := new(ListSnapshotsRequest)
  1145  	if err := stream.RecvMsg(m); err != nil {
  1146  		return err
  1147  	}
  1148  	return srv.(SnapshotsServer).List(m, &snapshotsListServer{stream})
  1149  }
  1150  
  1151  type Snapshots_ListServer interface {
  1152  	Send(*ListSnapshotsResponse) error
  1153  	grpc.ServerStream
  1154  }
  1155  
  1156  type snapshotsListServer struct {
  1157  	grpc.ServerStream
  1158  }
  1159  
  1160  func (x *snapshotsListServer) Send(m *ListSnapshotsResponse) error {
  1161  	return x.ServerStream.SendMsg(m)
  1162  }
  1163  
  1164  func _Snapshots_Usage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1165  	in := new(UsageRequest)
  1166  	if err := dec(in); err != nil {
  1167  		return nil, err
  1168  	}
  1169  	if interceptor == nil {
  1170  		return srv.(SnapshotsServer).Usage(ctx, in)
  1171  	}
  1172  	info := &grpc.UnaryServerInfo{
  1173  		Server:     srv,
  1174  		FullMethod: "/containerd.services.snapshots.v1.Snapshots/Usage",
  1175  	}
  1176  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1177  		return srv.(SnapshotsServer).Usage(ctx, req.(*UsageRequest))
  1178  	}
  1179  	return interceptor(ctx, in, info, handler)
  1180  }
  1181  
  1182  var _Snapshots_serviceDesc = grpc.ServiceDesc{
  1183  	ServiceName: "containerd.services.snapshots.v1.Snapshots",
  1184  	HandlerType: (*SnapshotsServer)(nil),
  1185  	Methods: []grpc.MethodDesc{
  1186  		{
  1187  			MethodName: "Prepare",
  1188  			Handler:    _Snapshots_Prepare_Handler,
  1189  		},
  1190  		{
  1191  			MethodName: "View",
  1192  			Handler:    _Snapshots_View_Handler,
  1193  		},
  1194  		{
  1195  			MethodName: "Mounts",
  1196  			Handler:    _Snapshots_Mounts_Handler,
  1197  		},
  1198  		{
  1199  			MethodName: "Commit",
  1200  			Handler:    _Snapshots_Commit_Handler,
  1201  		},
  1202  		{
  1203  			MethodName: "Remove",
  1204  			Handler:    _Snapshots_Remove_Handler,
  1205  		},
  1206  		{
  1207  			MethodName: "Stat",
  1208  			Handler:    _Snapshots_Stat_Handler,
  1209  		},
  1210  		{
  1211  			MethodName: "Update",
  1212  			Handler:    _Snapshots_Update_Handler,
  1213  		},
  1214  		{
  1215  			MethodName: "Usage",
  1216  			Handler:    _Snapshots_Usage_Handler,
  1217  		},
  1218  	},
  1219  	Streams: []grpc.StreamDesc{
  1220  		{
  1221  			StreamName:    "List",
  1222  			Handler:       _Snapshots_List_Handler,
  1223  			ServerStreams: true,
  1224  		},
  1225  	},
  1226  	Metadata: "github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto",
  1227  }
  1228  
  1229  func (m *PrepareSnapshotRequest) Marshal() (dAtA []byte, err error) {
  1230  	size := m.Size()
  1231  	dAtA = make([]byte, size)
  1232  	n, err := m.MarshalTo(dAtA)
  1233  	if err != nil {
  1234  		return nil, err
  1235  	}
  1236  	return dAtA[:n], nil
  1237  }
  1238  
  1239  func (m *PrepareSnapshotRequest) MarshalTo(dAtA []byte) (int, error) {
  1240  	var i int
  1241  	_ = i
  1242  	var l int
  1243  	_ = l
  1244  	if len(m.Snapshotter) > 0 {
  1245  		dAtA[i] = 0xa
  1246  		i++
  1247  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1248  		i += copy(dAtA[i:], m.Snapshotter)
  1249  	}
  1250  	if len(m.Key) > 0 {
  1251  		dAtA[i] = 0x12
  1252  		i++
  1253  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key)))
  1254  		i += copy(dAtA[i:], m.Key)
  1255  	}
  1256  	if len(m.Parent) > 0 {
  1257  		dAtA[i] = 0x1a
  1258  		i++
  1259  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Parent)))
  1260  		i += copy(dAtA[i:], m.Parent)
  1261  	}
  1262  	if len(m.Labels) > 0 {
  1263  		for k, _ := range m.Labels {
  1264  			dAtA[i] = 0x22
  1265  			i++
  1266  			v := m.Labels[k]
  1267  			mapSize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v)))
  1268  			i = encodeVarintSnapshots(dAtA, i, uint64(mapSize))
  1269  			dAtA[i] = 0xa
  1270  			i++
  1271  			i = encodeVarintSnapshots(dAtA, i, uint64(len(k)))
  1272  			i += copy(dAtA[i:], k)
  1273  			dAtA[i] = 0x12
  1274  			i++
  1275  			i = encodeVarintSnapshots(dAtA, i, uint64(len(v)))
  1276  			i += copy(dAtA[i:], v)
  1277  		}
  1278  	}
  1279  	if m.XXX_unrecognized != nil {
  1280  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1281  	}
  1282  	return i, nil
  1283  }
  1284  
  1285  func (m *PrepareSnapshotResponse) Marshal() (dAtA []byte, err error) {
  1286  	size := m.Size()
  1287  	dAtA = make([]byte, size)
  1288  	n, err := m.MarshalTo(dAtA)
  1289  	if err != nil {
  1290  		return nil, err
  1291  	}
  1292  	return dAtA[:n], nil
  1293  }
  1294  
  1295  func (m *PrepareSnapshotResponse) MarshalTo(dAtA []byte) (int, error) {
  1296  	var i int
  1297  	_ = i
  1298  	var l int
  1299  	_ = l
  1300  	if len(m.Mounts) > 0 {
  1301  		for _, msg := range m.Mounts {
  1302  			dAtA[i] = 0xa
  1303  			i++
  1304  			i = encodeVarintSnapshots(dAtA, i, uint64(msg.Size()))
  1305  			n, err := msg.MarshalTo(dAtA[i:])
  1306  			if err != nil {
  1307  				return 0, err
  1308  			}
  1309  			i += n
  1310  		}
  1311  	}
  1312  	if m.XXX_unrecognized != nil {
  1313  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1314  	}
  1315  	return i, nil
  1316  }
  1317  
  1318  func (m *ViewSnapshotRequest) Marshal() (dAtA []byte, err error) {
  1319  	size := m.Size()
  1320  	dAtA = make([]byte, size)
  1321  	n, err := m.MarshalTo(dAtA)
  1322  	if err != nil {
  1323  		return nil, err
  1324  	}
  1325  	return dAtA[:n], nil
  1326  }
  1327  
  1328  func (m *ViewSnapshotRequest) MarshalTo(dAtA []byte) (int, error) {
  1329  	var i int
  1330  	_ = i
  1331  	var l int
  1332  	_ = l
  1333  	if len(m.Snapshotter) > 0 {
  1334  		dAtA[i] = 0xa
  1335  		i++
  1336  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1337  		i += copy(dAtA[i:], m.Snapshotter)
  1338  	}
  1339  	if len(m.Key) > 0 {
  1340  		dAtA[i] = 0x12
  1341  		i++
  1342  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key)))
  1343  		i += copy(dAtA[i:], m.Key)
  1344  	}
  1345  	if len(m.Parent) > 0 {
  1346  		dAtA[i] = 0x1a
  1347  		i++
  1348  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Parent)))
  1349  		i += copy(dAtA[i:], m.Parent)
  1350  	}
  1351  	if len(m.Labels) > 0 {
  1352  		for k, _ := range m.Labels {
  1353  			dAtA[i] = 0x22
  1354  			i++
  1355  			v := m.Labels[k]
  1356  			mapSize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v)))
  1357  			i = encodeVarintSnapshots(dAtA, i, uint64(mapSize))
  1358  			dAtA[i] = 0xa
  1359  			i++
  1360  			i = encodeVarintSnapshots(dAtA, i, uint64(len(k)))
  1361  			i += copy(dAtA[i:], k)
  1362  			dAtA[i] = 0x12
  1363  			i++
  1364  			i = encodeVarintSnapshots(dAtA, i, uint64(len(v)))
  1365  			i += copy(dAtA[i:], v)
  1366  		}
  1367  	}
  1368  	if m.XXX_unrecognized != nil {
  1369  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1370  	}
  1371  	return i, nil
  1372  }
  1373  
  1374  func (m *ViewSnapshotResponse) Marshal() (dAtA []byte, err error) {
  1375  	size := m.Size()
  1376  	dAtA = make([]byte, size)
  1377  	n, err := m.MarshalTo(dAtA)
  1378  	if err != nil {
  1379  		return nil, err
  1380  	}
  1381  	return dAtA[:n], nil
  1382  }
  1383  
  1384  func (m *ViewSnapshotResponse) MarshalTo(dAtA []byte) (int, error) {
  1385  	var i int
  1386  	_ = i
  1387  	var l int
  1388  	_ = l
  1389  	if len(m.Mounts) > 0 {
  1390  		for _, msg := range m.Mounts {
  1391  			dAtA[i] = 0xa
  1392  			i++
  1393  			i = encodeVarintSnapshots(dAtA, i, uint64(msg.Size()))
  1394  			n, err := msg.MarshalTo(dAtA[i:])
  1395  			if err != nil {
  1396  				return 0, err
  1397  			}
  1398  			i += n
  1399  		}
  1400  	}
  1401  	if m.XXX_unrecognized != nil {
  1402  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1403  	}
  1404  	return i, nil
  1405  }
  1406  
  1407  func (m *MountsRequest) Marshal() (dAtA []byte, err error) {
  1408  	size := m.Size()
  1409  	dAtA = make([]byte, size)
  1410  	n, err := m.MarshalTo(dAtA)
  1411  	if err != nil {
  1412  		return nil, err
  1413  	}
  1414  	return dAtA[:n], nil
  1415  }
  1416  
  1417  func (m *MountsRequest) MarshalTo(dAtA []byte) (int, error) {
  1418  	var i int
  1419  	_ = i
  1420  	var l int
  1421  	_ = l
  1422  	if len(m.Snapshotter) > 0 {
  1423  		dAtA[i] = 0xa
  1424  		i++
  1425  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1426  		i += copy(dAtA[i:], m.Snapshotter)
  1427  	}
  1428  	if len(m.Key) > 0 {
  1429  		dAtA[i] = 0x12
  1430  		i++
  1431  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key)))
  1432  		i += copy(dAtA[i:], m.Key)
  1433  	}
  1434  	if m.XXX_unrecognized != nil {
  1435  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1436  	}
  1437  	return i, nil
  1438  }
  1439  
  1440  func (m *MountsResponse) Marshal() (dAtA []byte, err error) {
  1441  	size := m.Size()
  1442  	dAtA = make([]byte, size)
  1443  	n, err := m.MarshalTo(dAtA)
  1444  	if err != nil {
  1445  		return nil, err
  1446  	}
  1447  	return dAtA[:n], nil
  1448  }
  1449  
  1450  func (m *MountsResponse) MarshalTo(dAtA []byte) (int, error) {
  1451  	var i int
  1452  	_ = i
  1453  	var l int
  1454  	_ = l
  1455  	if len(m.Mounts) > 0 {
  1456  		for _, msg := range m.Mounts {
  1457  			dAtA[i] = 0xa
  1458  			i++
  1459  			i = encodeVarintSnapshots(dAtA, i, uint64(msg.Size()))
  1460  			n, err := msg.MarshalTo(dAtA[i:])
  1461  			if err != nil {
  1462  				return 0, err
  1463  			}
  1464  			i += n
  1465  		}
  1466  	}
  1467  	if m.XXX_unrecognized != nil {
  1468  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1469  	}
  1470  	return i, nil
  1471  }
  1472  
  1473  func (m *RemoveSnapshotRequest) Marshal() (dAtA []byte, err error) {
  1474  	size := m.Size()
  1475  	dAtA = make([]byte, size)
  1476  	n, err := m.MarshalTo(dAtA)
  1477  	if err != nil {
  1478  		return nil, err
  1479  	}
  1480  	return dAtA[:n], nil
  1481  }
  1482  
  1483  func (m *RemoveSnapshotRequest) MarshalTo(dAtA []byte) (int, error) {
  1484  	var i int
  1485  	_ = i
  1486  	var l int
  1487  	_ = l
  1488  	if len(m.Snapshotter) > 0 {
  1489  		dAtA[i] = 0xa
  1490  		i++
  1491  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1492  		i += copy(dAtA[i:], m.Snapshotter)
  1493  	}
  1494  	if len(m.Key) > 0 {
  1495  		dAtA[i] = 0x12
  1496  		i++
  1497  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key)))
  1498  		i += copy(dAtA[i:], m.Key)
  1499  	}
  1500  	if m.XXX_unrecognized != nil {
  1501  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1502  	}
  1503  	return i, nil
  1504  }
  1505  
  1506  func (m *CommitSnapshotRequest) Marshal() (dAtA []byte, err error) {
  1507  	size := m.Size()
  1508  	dAtA = make([]byte, size)
  1509  	n, err := m.MarshalTo(dAtA)
  1510  	if err != nil {
  1511  		return nil, err
  1512  	}
  1513  	return dAtA[:n], nil
  1514  }
  1515  
  1516  func (m *CommitSnapshotRequest) MarshalTo(dAtA []byte) (int, error) {
  1517  	var i int
  1518  	_ = i
  1519  	var l int
  1520  	_ = l
  1521  	if len(m.Snapshotter) > 0 {
  1522  		dAtA[i] = 0xa
  1523  		i++
  1524  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1525  		i += copy(dAtA[i:], m.Snapshotter)
  1526  	}
  1527  	if len(m.Name) > 0 {
  1528  		dAtA[i] = 0x12
  1529  		i++
  1530  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Name)))
  1531  		i += copy(dAtA[i:], m.Name)
  1532  	}
  1533  	if len(m.Key) > 0 {
  1534  		dAtA[i] = 0x1a
  1535  		i++
  1536  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key)))
  1537  		i += copy(dAtA[i:], m.Key)
  1538  	}
  1539  	if len(m.Labels) > 0 {
  1540  		for k, _ := range m.Labels {
  1541  			dAtA[i] = 0x22
  1542  			i++
  1543  			v := m.Labels[k]
  1544  			mapSize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v)))
  1545  			i = encodeVarintSnapshots(dAtA, i, uint64(mapSize))
  1546  			dAtA[i] = 0xa
  1547  			i++
  1548  			i = encodeVarintSnapshots(dAtA, i, uint64(len(k)))
  1549  			i += copy(dAtA[i:], k)
  1550  			dAtA[i] = 0x12
  1551  			i++
  1552  			i = encodeVarintSnapshots(dAtA, i, uint64(len(v)))
  1553  			i += copy(dAtA[i:], v)
  1554  		}
  1555  	}
  1556  	if m.XXX_unrecognized != nil {
  1557  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1558  	}
  1559  	return i, nil
  1560  }
  1561  
  1562  func (m *StatSnapshotRequest) Marshal() (dAtA []byte, err error) {
  1563  	size := m.Size()
  1564  	dAtA = make([]byte, size)
  1565  	n, err := m.MarshalTo(dAtA)
  1566  	if err != nil {
  1567  		return nil, err
  1568  	}
  1569  	return dAtA[:n], nil
  1570  }
  1571  
  1572  func (m *StatSnapshotRequest) MarshalTo(dAtA []byte) (int, error) {
  1573  	var i int
  1574  	_ = i
  1575  	var l int
  1576  	_ = l
  1577  	if len(m.Snapshotter) > 0 {
  1578  		dAtA[i] = 0xa
  1579  		i++
  1580  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1581  		i += copy(dAtA[i:], m.Snapshotter)
  1582  	}
  1583  	if len(m.Key) > 0 {
  1584  		dAtA[i] = 0x12
  1585  		i++
  1586  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key)))
  1587  		i += copy(dAtA[i:], m.Key)
  1588  	}
  1589  	if m.XXX_unrecognized != nil {
  1590  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1591  	}
  1592  	return i, nil
  1593  }
  1594  
  1595  func (m *Info) Marshal() (dAtA []byte, err error) {
  1596  	size := m.Size()
  1597  	dAtA = make([]byte, size)
  1598  	n, err := m.MarshalTo(dAtA)
  1599  	if err != nil {
  1600  		return nil, err
  1601  	}
  1602  	return dAtA[:n], nil
  1603  }
  1604  
  1605  func (m *Info) MarshalTo(dAtA []byte) (int, error) {
  1606  	var i int
  1607  	_ = i
  1608  	var l int
  1609  	_ = l
  1610  	if len(m.Name) > 0 {
  1611  		dAtA[i] = 0xa
  1612  		i++
  1613  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Name)))
  1614  		i += copy(dAtA[i:], m.Name)
  1615  	}
  1616  	if len(m.Parent) > 0 {
  1617  		dAtA[i] = 0x12
  1618  		i++
  1619  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Parent)))
  1620  		i += copy(dAtA[i:], m.Parent)
  1621  	}
  1622  	if m.Kind != 0 {
  1623  		dAtA[i] = 0x18
  1624  		i++
  1625  		i = encodeVarintSnapshots(dAtA, i, uint64(m.Kind))
  1626  	}
  1627  	dAtA[i] = 0x22
  1628  	i++
  1629  	i = encodeVarintSnapshots(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)))
  1630  	n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i:])
  1631  	if err != nil {
  1632  		return 0, err
  1633  	}
  1634  	i += n1
  1635  	dAtA[i] = 0x2a
  1636  	i++
  1637  	i = encodeVarintSnapshots(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt)))
  1638  	n2, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i:])
  1639  	if err != nil {
  1640  		return 0, err
  1641  	}
  1642  	i += n2
  1643  	if len(m.Labels) > 0 {
  1644  		for k, _ := range m.Labels {
  1645  			dAtA[i] = 0x32
  1646  			i++
  1647  			v := m.Labels[k]
  1648  			mapSize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v)))
  1649  			i = encodeVarintSnapshots(dAtA, i, uint64(mapSize))
  1650  			dAtA[i] = 0xa
  1651  			i++
  1652  			i = encodeVarintSnapshots(dAtA, i, uint64(len(k)))
  1653  			i += copy(dAtA[i:], k)
  1654  			dAtA[i] = 0x12
  1655  			i++
  1656  			i = encodeVarintSnapshots(dAtA, i, uint64(len(v)))
  1657  			i += copy(dAtA[i:], v)
  1658  		}
  1659  	}
  1660  	if m.XXX_unrecognized != nil {
  1661  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1662  	}
  1663  	return i, nil
  1664  }
  1665  
  1666  func (m *StatSnapshotResponse) Marshal() (dAtA []byte, err error) {
  1667  	size := m.Size()
  1668  	dAtA = make([]byte, size)
  1669  	n, err := m.MarshalTo(dAtA)
  1670  	if err != nil {
  1671  		return nil, err
  1672  	}
  1673  	return dAtA[:n], nil
  1674  }
  1675  
  1676  func (m *StatSnapshotResponse) MarshalTo(dAtA []byte) (int, error) {
  1677  	var i int
  1678  	_ = i
  1679  	var l int
  1680  	_ = l
  1681  	dAtA[i] = 0xa
  1682  	i++
  1683  	i = encodeVarintSnapshots(dAtA, i, uint64(m.Info.Size()))
  1684  	n3, err := m.Info.MarshalTo(dAtA[i:])
  1685  	if err != nil {
  1686  		return 0, err
  1687  	}
  1688  	i += n3
  1689  	if m.XXX_unrecognized != nil {
  1690  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1691  	}
  1692  	return i, nil
  1693  }
  1694  
  1695  func (m *UpdateSnapshotRequest) Marshal() (dAtA []byte, err error) {
  1696  	size := m.Size()
  1697  	dAtA = make([]byte, size)
  1698  	n, err := m.MarshalTo(dAtA)
  1699  	if err != nil {
  1700  		return nil, err
  1701  	}
  1702  	return dAtA[:n], nil
  1703  }
  1704  
  1705  func (m *UpdateSnapshotRequest) MarshalTo(dAtA []byte) (int, error) {
  1706  	var i int
  1707  	_ = i
  1708  	var l int
  1709  	_ = l
  1710  	if len(m.Snapshotter) > 0 {
  1711  		dAtA[i] = 0xa
  1712  		i++
  1713  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1714  		i += copy(dAtA[i:], m.Snapshotter)
  1715  	}
  1716  	dAtA[i] = 0x12
  1717  	i++
  1718  	i = encodeVarintSnapshots(dAtA, i, uint64(m.Info.Size()))
  1719  	n4, err := m.Info.MarshalTo(dAtA[i:])
  1720  	if err != nil {
  1721  		return 0, err
  1722  	}
  1723  	i += n4
  1724  	if m.UpdateMask != nil {
  1725  		dAtA[i] = 0x1a
  1726  		i++
  1727  		i = encodeVarintSnapshots(dAtA, i, uint64(m.UpdateMask.Size()))
  1728  		n5, err := m.UpdateMask.MarshalTo(dAtA[i:])
  1729  		if err != nil {
  1730  			return 0, err
  1731  		}
  1732  		i += n5
  1733  	}
  1734  	if m.XXX_unrecognized != nil {
  1735  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1736  	}
  1737  	return i, nil
  1738  }
  1739  
  1740  func (m *UpdateSnapshotResponse) Marshal() (dAtA []byte, err error) {
  1741  	size := m.Size()
  1742  	dAtA = make([]byte, size)
  1743  	n, err := m.MarshalTo(dAtA)
  1744  	if err != nil {
  1745  		return nil, err
  1746  	}
  1747  	return dAtA[:n], nil
  1748  }
  1749  
  1750  func (m *UpdateSnapshotResponse) MarshalTo(dAtA []byte) (int, error) {
  1751  	var i int
  1752  	_ = i
  1753  	var l int
  1754  	_ = l
  1755  	dAtA[i] = 0xa
  1756  	i++
  1757  	i = encodeVarintSnapshots(dAtA, i, uint64(m.Info.Size()))
  1758  	n6, err := m.Info.MarshalTo(dAtA[i:])
  1759  	if err != nil {
  1760  		return 0, err
  1761  	}
  1762  	i += n6
  1763  	if m.XXX_unrecognized != nil {
  1764  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1765  	}
  1766  	return i, nil
  1767  }
  1768  
  1769  func (m *ListSnapshotsRequest) Marshal() (dAtA []byte, err error) {
  1770  	size := m.Size()
  1771  	dAtA = make([]byte, size)
  1772  	n, err := m.MarshalTo(dAtA)
  1773  	if err != nil {
  1774  		return nil, err
  1775  	}
  1776  	return dAtA[:n], nil
  1777  }
  1778  
  1779  func (m *ListSnapshotsRequest) MarshalTo(dAtA []byte) (int, error) {
  1780  	var i int
  1781  	_ = i
  1782  	var l int
  1783  	_ = l
  1784  	if len(m.Snapshotter) > 0 {
  1785  		dAtA[i] = 0xa
  1786  		i++
  1787  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1788  		i += copy(dAtA[i:], m.Snapshotter)
  1789  	}
  1790  	if m.XXX_unrecognized != nil {
  1791  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1792  	}
  1793  	return i, nil
  1794  }
  1795  
  1796  func (m *ListSnapshotsResponse) Marshal() (dAtA []byte, err error) {
  1797  	size := m.Size()
  1798  	dAtA = make([]byte, size)
  1799  	n, err := m.MarshalTo(dAtA)
  1800  	if err != nil {
  1801  		return nil, err
  1802  	}
  1803  	return dAtA[:n], nil
  1804  }
  1805  
  1806  func (m *ListSnapshotsResponse) MarshalTo(dAtA []byte) (int, error) {
  1807  	var i int
  1808  	_ = i
  1809  	var l int
  1810  	_ = l
  1811  	if len(m.Info) > 0 {
  1812  		for _, msg := range m.Info {
  1813  			dAtA[i] = 0xa
  1814  			i++
  1815  			i = encodeVarintSnapshots(dAtA, i, uint64(msg.Size()))
  1816  			n, err := msg.MarshalTo(dAtA[i:])
  1817  			if err != nil {
  1818  				return 0, err
  1819  			}
  1820  			i += n
  1821  		}
  1822  	}
  1823  	if m.XXX_unrecognized != nil {
  1824  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1825  	}
  1826  	return i, nil
  1827  }
  1828  
  1829  func (m *UsageRequest) Marshal() (dAtA []byte, err error) {
  1830  	size := m.Size()
  1831  	dAtA = make([]byte, size)
  1832  	n, err := m.MarshalTo(dAtA)
  1833  	if err != nil {
  1834  		return nil, err
  1835  	}
  1836  	return dAtA[:n], nil
  1837  }
  1838  
  1839  func (m *UsageRequest) MarshalTo(dAtA []byte) (int, error) {
  1840  	var i int
  1841  	_ = i
  1842  	var l int
  1843  	_ = l
  1844  	if len(m.Snapshotter) > 0 {
  1845  		dAtA[i] = 0xa
  1846  		i++
  1847  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter)))
  1848  		i += copy(dAtA[i:], m.Snapshotter)
  1849  	}
  1850  	if len(m.Key) > 0 {
  1851  		dAtA[i] = 0x12
  1852  		i++
  1853  		i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key)))
  1854  		i += copy(dAtA[i:], m.Key)
  1855  	}
  1856  	if m.XXX_unrecognized != nil {
  1857  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1858  	}
  1859  	return i, nil
  1860  }
  1861  
  1862  func (m *UsageResponse) Marshal() (dAtA []byte, err error) {
  1863  	size := m.Size()
  1864  	dAtA = make([]byte, size)
  1865  	n, err := m.MarshalTo(dAtA)
  1866  	if err != nil {
  1867  		return nil, err
  1868  	}
  1869  	return dAtA[:n], nil
  1870  }
  1871  
  1872  func (m *UsageResponse) MarshalTo(dAtA []byte) (int, error) {
  1873  	var i int
  1874  	_ = i
  1875  	var l int
  1876  	_ = l
  1877  	if m.Size_ != 0 {
  1878  		dAtA[i] = 0x8
  1879  		i++
  1880  		i = encodeVarintSnapshots(dAtA, i, uint64(m.Size_))
  1881  	}
  1882  	if m.Inodes != 0 {
  1883  		dAtA[i] = 0x10
  1884  		i++
  1885  		i = encodeVarintSnapshots(dAtA, i, uint64(m.Inodes))
  1886  	}
  1887  	if m.XXX_unrecognized != nil {
  1888  		i += copy(dAtA[i:], m.XXX_unrecognized)
  1889  	}
  1890  	return i, nil
  1891  }
  1892  
  1893  func encodeVarintSnapshots(dAtA []byte, offset int, v uint64) int {
  1894  	for v >= 1<<7 {
  1895  		dAtA[offset] = uint8(v&0x7f | 0x80)
  1896  		v >>= 7
  1897  		offset++
  1898  	}
  1899  	dAtA[offset] = uint8(v)
  1900  	return offset + 1
  1901  }
  1902  func (m *PrepareSnapshotRequest) Size() (n int) {
  1903  	if m == nil {
  1904  		return 0
  1905  	}
  1906  	var l int
  1907  	_ = l
  1908  	l = len(m.Snapshotter)
  1909  	if l > 0 {
  1910  		n += 1 + l + sovSnapshots(uint64(l))
  1911  	}
  1912  	l = len(m.Key)
  1913  	if l > 0 {
  1914  		n += 1 + l + sovSnapshots(uint64(l))
  1915  	}
  1916  	l = len(m.Parent)
  1917  	if l > 0 {
  1918  		n += 1 + l + sovSnapshots(uint64(l))
  1919  	}
  1920  	if len(m.Labels) > 0 {
  1921  		for k, v := range m.Labels {
  1922  			_ = k
  1923  			_ = v
  1924  			mapEntrySize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v)))
  1925  			n += mapEntrySize + 1 + sovSnapshots(uint64(mapEntrySize))
  1926  		}
  1927  	}
  1928  	if m.XXX_unrecognized != nil {
  1929  		n += len(m.XXX_unrecognized)
  1930  	}
  1931  	return n
  1932  }
  1933  
  1934  func (m *PrepareSnapshotResponse) Size() (n int) {
  1935  	if m == nil {
  1936  		return 0
  1937  	}
  1938  	var l int
  1939  	_ = l
  1940  	if len(m.Mounts) > 0 {
  1941  		for _, e := range m.Mounts {
  1942  			l = e.Size()
  1943  			n += 1 + l + sovSnapshots(uint64(l))
  1944  		}
  1945  	}
  1946  	if m.XXX_unrecognized != nil {
  1947  		n += len(m.XXX_unrecognized)
  1948  	}
  1949  	return n
  1950  }
  1951  
  1952  func (m *ViewSnapshotRequest) Size() (n int) {
  1953  	if m == nil {
  1954  		return 0
  1955  	}
  1956  	var l int
  1957  	_ = l
  1958  	l = len(m.Snapshotter)
  1959  	if l > 0 {
  1960  		n += 1 + l + sovSnapshots(uint64(l))
  1961  	}
  1962  	l = len(m.Key)
  1963  	if l > 0 {
  1964  		n += 1 + l + sovSnapshots(uint64(l))
  1965  	}
  1966  	l = len(m.Parent)
  1967  	if l > 0 {
  1968  		n += 1 + l + sovSnapshots(uint64(l))
  1969  	}
  1970  	if len(m.Labels) > 0 {
  1971  		for k, v := range m.Labels {
  1972  			_ = k
  1973  			_ = v
  1974  			mapEntrySize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v)))
  1975  			n += mapEntrySize + 1 + sovSnapshots(uint64(mapEntrySize))
  1976  		}
  1977  	}
  1978  	if m.XXX_unrecognized != nil {
  1979  		n += len(m.XXX_unrecognized)
  1980  	}
  1981  	return n
  1982  }
  1983  
  1984  func (m *ViewSnapshotResponse) Size() (n int) {
  1985  	if m == nil {
  1986  		return 0
  1987  	}
  1988  	var l int
  1989  	_ = l
  1990  	if len(m.Mounts) > 0 {
  1991  		for _, e := range m.Mounts {
  1992  			l = e.Size()
  1993  			n += 1 + l + sovSnapshots(uint64(l))
  1994  		}
  1995  	}
  1996  	if m.XXX_unrecognized != nil {
  1997  		n += len(m.XXX_unrecognized)
  1998  	}
  1999  	return n
  2000  }
  2001  
  2002  func (m *MountsRequest) Size() (n int) {
  2003  	if m == nil {
  2004  		return 0
  2005  	}
  2006  	var l int
  2007  	_ = l
  2008  	l = len(m.Snapshotter)
  2009  	if l > 0 {
  2010  		n += 1 + l + sovSnapshots(uint64(l))
  2011  	}
  2012  	l = len(m.Key)
  2013  	if l > 0 {
  2014  		n += 1 + l + sovSnapshots(uint64(l))
  2015  	}
  2016  	if m.XXX_unrecognized != nil {
  2017  		n += len(m.XXX_unrecognized)
  2018  	}
  2019  	return n
  2020  }
  2021  
  2022  func (m *MountsResponse) Size() (n int) {
  2023  	if m == nil {
  2024  		return 0
  2025  	}
  2026  	var l int
  2027  	_ = l
  2028  	if len(m.Mounts) > 0 {
  2029  		for _, e := range m.Mounts {
  2030  			l = e.Size()
  2031  			n += 1 + l + sovSnapshots(uint64(l))
  2032  		}
  2033  	}
  2034  	if m.XXX_unrecognized != nil {
  2035  		n += len(m.XXX_unrecognized)
  2036  	}
  2037  	return n
  2038  }
  2039  
  2040  func (m *RemoveSnapshotRequest) Size() (n int) {
  2041  	if m == nil {
  2042  		return 0
  2043  	}
  2044  	var l int
  2045  	_ = l
  2046  	l = len(m.Snapshotter)
  2047  	if l > 0 {
  2048  		n += 1 + l + sovSnapshots(uint64(l))
  2049  	}
  2050  	l = len(m.Key)
  2051  	if l > 0 {
  2052  		n += 1 + l + sovSnapshots(uint64(l))
  2053  	}
  2054  	if m.XXX_unrecognized != nil {
  2055  		n += len(m.XXX_unrecognized)
  2056  	}
  2057  	return n
  2058  }
  2059  
  2060  func (m *CommitSnapshotRequest) Size() (n int) {
  2061  	if m == nil {
  2062  		return 0
  2063  	}
  2064  	var l int
  2065  	_ = l
  2066  	l = len(m.Snapshotter)
  2067  	if l > 0 {
  2068  		n += 1 + l + sovSnapshots(uint64(l))
  2069  	}
  2070  	l = len(m.Name)
  2071  	if l > 0 {
  2072  		n += 1 + l + sovSnapshots(uint64(l))
  2073  	}
  2074  	l = len(m.Key)
  2075  	if l > 0 {
  2076  		n += 1 + l + sovSnapshots(uint64(l))
  2077  	}
  2078  	if len(m.Labels) > 0 {
  2079  		for k, v := range m.Labels {
  2080  			_ = k
  2081  			_ = v
  2082  			mapEntrySize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v)))
  2083  			n += mapEntrySize + 1 + sovSnapshots(uint64(mapEntrySize))
  2084  		}
  2085  	}
  2086  	if m.XXX_unrecognized != nil {
  2087  		n += len(m.XXX_unrecognized)
  2088  	}
  2089  	return n
  2090  }
  2091  
  2092  func (m *StatSnapshotRequest) Size() (n int) {
  2093  	if m == nil {
  2094  		return 0
  2095  	}
  2096  	var l int
  2097  	_ = l
  2098  	l = len(m.Snapshotter)
  2099  	if l > 0 {
  2100  		n += 1 + l + sovSnapshots(uint64(l))
  2101  	}
  2102  	l = len(m.Key)
  2103  	if l > 0 {
  2104  		n += 1 + l + sovSnapshots(uint64(l))
  2105  	}
  2106  	if m.XXX_unrecognized != nil {
  2107  		n += len(m.XXX_unrecognized)
  2108  	}
  2109  	return n
  2110  }
  2111  
  2112  func (m *Info) Size() (n int) {
  2113  	if m == nil {
  2114  		return 0
  2115  	}
  2116  	var l int
  2117  	_ = l
  2118  	l = len(m.Name)
  2119  	if l > 0 {
  2120  		n += 1 + l + sovSnapshots(uint64(l))
  2121  	}
  2122  	l = len(m.Parent)
  2123  	if l > 0 {
  2124  		n += 1 + l + sovSnapshots(uint64(l))
  2125  	}
  2126  	if m.Kind != 0 {
  2127  		n += 1 + sovSnapshots(uint64(m.Kind))
  2128  	}
  2129  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)
  2130  	n += 1 + l + sovSnapshots(uint64(l))
  2131  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt)
  2132  	n += 1 + l + sovSnapshots(uint64(l))
  2133  	if len(m.Labels) > 0 {
  2134  		for k, v := range m.Labels {
  2135  			_ = k
  2136  			_ = v
  2137  			mapEntrySize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v)))
  2138  			n += mapEntrySize + 1 + sovSnapshots(uint64(mapEntrySize))
  2139  		}
  2140  	}
  2141  	if m.XXX_unrecognized != nil {
  2142  		n += len(m.XXX_unrecognized)
  2143  	}
  2144  	return n
  2145  }
  2146  
  2147  func (m *StatSnapshotResponse) Size() (n int) {
  2148  	if m == nil {
  2149  		return 0
  2150  	}
  2151  	var l int
  2152  	_ = l
  2153  	l = m.Info.Size()
  2154  	n += 1 + l + sovSnapshots(uint64(l))
  2155  	if m.XXX_unrecognized != nil {
  2156  		n += len(m.XXX_unrecognized)
  2157  	}
  2158  	return n
  2159  }
  2160  
  2161  func (m *UpdateSnapshotRequest) Size() (n int) {
  2162  	if m == nil {
  2163  		return 0
  2164  	}
  2165  	var l int
  2166  	_ = l
  2167  	l = len(m.Snapshotter)
  2168  	if l > 0 {
  2169  		n += 1 + l + sovSnapshots(uint64(l))
  2170  	}
  2171  	l = m.Info.Size()
  2172  	n += 1 + l + sovSnapshots(uint64(l))
  2173  	if m.UpdateMask != nil {
  2174  		l = m.UpdateMask.Size()
  2175  		n += 1 + l + sovSnapshots(uint64(l))
  2176  	}
  2177  	if m.XXX_unrecognized != nil {
  2178  		n += len(m.XXX_unrecognized)
  2179  	}
  2180  	return n
  2181  }
  2182  
  2183  func (m *UpdateSnapshotResponse) Size() (n int) {
  2184  	if m == nil {
  2185  		return 0
  2186  	}
  2187  	var l int
  2188  	_ = l
  2189  	l = m.Info.Size()
  2190  	n += 1 + l + sovSnapshots(uint64(l))
  2191  	if m.XXX_unrecognized != nil {
  2192  		n += len(m.XXX_unrecognized)
  2193  	}
  2194  	return n
  2195  }
  2196  
  2197  func (m *ListSnapshotsRequest) Size() (n int) {
  2198  	if m == nil {
  2199  		return 0
  2200  	}
  2201  	var l int
  2202  	_ = l
  2203  	l = len(m.Snapshotter)
  2204  	if l > 0 {
  2205  		n += 1 + l + sovSnapshots(uint64(l))
  2206  	}
  2207  	if m.XXX_unrecognized != nil {
  2208  		n += len(m.XXX_unrecognized)
  2209  	}
  2210  	return n
  2211  }
  2212  
  2213  func (m *ListSnapshotsResponse) Size() (n int) {
  2214  	if m == nil {
  2215  		return 0
  2216  	}
  2217  	var l int
  2218  	_ = l
  2219  	if len(m.Info) > 0 {
  2220  		for _, e := range m.Info {
  2221  			l = e.Size()
  2222  			n += 1 + l + sovSnapshots(uint64(l))
  2223  		}
  2224  	}
  2225  	if m.XXX_unrecognized != nil {
  2226  		n += len(m.XXX_unrecognized)
  2227  	}
  2228  	return n
  2229  }
  2230  
  2231  func (m *UsageRequest) Size() (n int) {
  2232  	if m == nil {
  2233  		return 0
  2234  	}
  2235  	var l int
  2236  	_ = l
  2237  	l = len(m.Snapshotter)
  2238  	if l > 0 {
  2239  		n += 1 + l + sovSnapshots(uint64(l))
  2240  	}
  2241  	l = len(m.Key)
  2242  	if l > 0 {
  2243  		n += 1 + l + sovSnapshots(uint64(l))
  2244  	}
  2245  	if m.XXX_unrecognized != nil {
  2246  		n += len(m.XXX_unrecognized)
  2247  	}
  2248  	return n
  2249  }
  2250  
  2251  func (m *UsageResponse) Size() (n int) {
  2252  	if m == nil {
  2253  		return 0
  2254  	}
  2255  	var l int
  2256  	_ = l
  2257  	if m.Size_ != 0 {
  2258  		n += 1 + sovSnapshots(uint64(m.Size_))
  2259  	}
  2260  	if m.Inodes != 0 {
  2261  		n += 1 + sovSnapshots(uint64(m.Inodes))
  2262  	}
  2263  	if m.XXX_unrecognized != nil {
  2264  		n += len(m.XXX_unrecognized)
  2265  	}
  2266  	return n
  2267  }
  2268  
  2269  func sovSnapshots(x uint64) (n int) {
  2270  	for {
  2271  		n++
  2272  		x >>= 7
  2273  		if x == 0 {
  2274  			break
  2275  		}
  2276  	}
  2277  	return n
  2278  }
  2279  func sozSnapshots(x uint64) (n int) {
  2280  	return sovSnapshots(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2281  }
  2282  func (this *PrepareSnapshotRequest) String() string {
  2283  	if this == nil {
  2284  		return "nil"
  2285  	}
  2286  	keysForLabels := make([]string, 0, len(this.Labels))
  2287  	for k, _ := range this.Labels {
  2288  		keysForLabels = append(keysForLabels, k)
  2289  	}
  2290  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  2291  	mapStringForLabels := "map[string]string{"
  2292  	for _, k := range keysForLabels {
  2293  		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  2294  	}
  2295  	mapStringForLabels += "}"
  2296  	s := strings.Join([]string{`&PrepareSnapshotRequest{`,
  2297  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2298  		`Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  2299  		`Parent:` + fmt.Sprintf("%v", this.Parent) + `,`,
  2300  		`Labels:` + mapStringForLabels + `,`,
  2301  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2302  		`}`,
  2303  	}, "")
  2304  	return s
  2305  }
  2306  func (this *PrepareSnapshotResponse) String() string {
  2307  	if this == nil {
  2308  		return "nil"
  2309  	}
  2310  	s := strings.Join([]string{`&PrepareSnapshotResponse{`,
  2311  		`Mounts:` + strings.Replace(fmt.Sprintf("%v", this.Mounts), "Mount", "types.Mount", 1) + `,`,
  2312  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2313  		`}`,
  2314  	}, "")
  2315  	return s
  2316  }
  2317  func (this *ViewSnapshotRequest) String() string {
  2318  	if this == nil {
  2319  		return "nil"
  2320  	}
  2321  	keysForLabels := make([]string, 0, len(this.Labels))
  2322  	for k, _ := range this.Labels {
  2323  		keysForLabels = append(keysForLabels, k)
  2324  	}
  2325  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  2326  	mapStringForLabels := "map[string]string{"
  2327  	for _, k := range keysForLabels {
  2328  		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  2329  	}
  2330  	mapStringForLabels += "}"
  2331  	s := strings.Join([]string{`&ViewSnapshotRequest{`,
  2332  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2333  		`Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  2334  		`Parent:` + fmt.Sprintf("%v", this.Parent) + `,`,
  2335  		`Labels:` + mapStringForLabels + `,`,
  2336  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2337  		`}`,
  2338  	}, "")
  2339  	return s
  2340  }
  2341  func (this *ViewSnapshotResponse) String() string {
  2342  	if this == nil {
  2343  		return "nil"
  2344  	}
  2345  	s := strings.Join([]string{`&ViewSnapshotResponse{`,
  2346  		`Mounts:` + strings.Replace(fmt.Sprintf("%v", this.Mounts), "Mount", "types.Mount", 1) + `,`,
  2347  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2348  		`}`,
  2349  	}, "")
  2350  	return s
  2351  }
  2352  func (this *MountsRequest) String() string {
  2353  	if this == nil {
  2354  		return "nil"
  2355  	}
  2356  	s := strings.Join([]string{`&MountsRequest{`,
  2357  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2358  		`Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  2359  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2360  		`}`,
  2361  	}, "")
  2362  	return s
  2363  }
  2364  func (this *MountsResponse) String() string {
  2365  	if this == nil {
  2366  		return "nil"
  2367  	}
  2368  	s := strings.Join([]string{`&MountsResponse{`,
  2369  		`Mounts:` + strings.Replace(fmt.Sprintf("%v", this.Mounts), "Mount", "types.Mount", 1) + `,`,
  2370  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2371  		`}`,
  2372  	}, "")
  2373  	return s
  2374  }
  2375  func (this *RemoveSnapshotRequest) String() string {
  2376  	if this == nil {
  2377  		return "nil"
  2378  	}
  2379  	s := strings.Join([]string{`&RemoveSnapshotRequest{`,
  2380  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2381  		`Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  2382  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2383  		`}`,
  2384  	}, "")
  2385  	return s
  2386  }
  2387  func (this *CommitSnapshotRequest) String() string {
  2388  	if this == nil {
  2389  		return "nil"
  2390  	}
  2391  	keysForLabels := make([]string, 0, len(this.Labels))
  2392  	for k, _ := range this.Labels {
  2393  		keysForLabels = append(keysForLabels, k)
  2394  	}
  2395  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  2396  	mapStringForLabels := "map[string]string{"
  2397  	for _, k := range keysForLabels {
  2398  		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  2399  	}
  2400  	mapStringForLabels += "}"
  2401  	s := strings.Join([]string{`&CommitSnapshotRequest{`,
  2402  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2403  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  2404  		`Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  2405  		`Labels:` + mapStringForLabels + `,`,
  2406  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2407  		`}`,
  2408  	}, "")
  2409  	return s
  2410  }
  2411  func (this *StatSnapshotRequest) String() string {
  2412  	if this == nil {
  2413  		return "nil"
  2414  	}
  2415  	s := strings.Join([]string{`&StatSnapshotRequest{`,
  2416  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2417  		`Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  2418  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2419  		`}`,
  2420  	}, "")
  2421  	return s
  2422  }
  2423  func (this *Info) String() string {
  2424  	if this == nil {
  2425  		return "nil"
  2426  	}
  2427  	keysForLabels := make([]string, 0, len(this.Labels))
  2428  	for k, _ := range this.Labels {
  2429  		keysForLabels = append(keysForLabels, k)
  2430  	}
  2431  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  2432  	mapStringForLabels := "map[string]string{"
  2433  	for _, k := range keysForLabels {
  2434  		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  2435  	}
  2436  	mapStringForLabels += "}"
  2437  	s := strings.Join([]string{`&Info{`,
  2438  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  2439  		`Parent:` + fmt.Sprintf("%v", this.Parent) + `,`,
  2440  		`Kind:` + fmt.Sprintf("%v", this.Kind) + `,`,
  2441  		`CreatedAt:` + strings.Replace(strings.Replace(this.CreatedAt.String(), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`,
  2442  		`UpdatedAt:` + strings.Replace(strings.Replace(this.UpdatedAt.String(), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`,
  2443  		`Labels:` + mapStringForLabels + `,`,
  2444  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2445  		`}`,
  2446  	}, "")
  2447  	return s
  2448  }
  2449  func (this *StatSnapshotResponse) String() string {
  2450  	if this == nil {
  2451  		return "nil"
  2452  	}
  2453  	s := strings.Join([]string{`&StatSnapshotResponse{`,
  2454  		`Info:` + strings.Replace(strings.Replace(this.Info.String(), "Info", "Info", 1), `&`, ``, 1) + `,`,
  2455  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2456  		`}`,
  2457  	}, "")
  2458  	return s
  2459  }
  2460  func (this *UpdateSnapshotRequest) String() string {
  2461  	if this == nil {
  2462  		return "nil"
  2463  	}
  2464  	s := strings.Join([]string{`&UpdateSnapshotRequest{`,
  2465  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2466  		`Info:` + strings.Replace(strings.Replace(this.Info.String(), "Info", "Info", 1), `&`, ``, 1) + `,`,
  2467  		`UpdateMask:` + strings.Replace(fmt.Sprintf("%v", this.UpdateMask), "FieldMask", "types1.FieldMask", 1) + `,`,
  2468  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2469  		`}`,
  2470  	}, "")
  2471  	return s
  2472  }
  2473  func (this *UpdateSnapshotResponse) String() string {
  2474  	if this == nil {
  2475  		return "nil"
  2476  	}
  2477  	s := strings.Join([]string{`&UpdateSnapshotResponse{`,
  2478  		`Info:` + strings.Replace(strings.Replace(this.Info.String(), "Info", "Info", 1), `&`, ``, 1) + `,`,
  2479  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2480  		`}`,
  2481  	}, "")
  2482  	return s
  2483  }
  2484  func (this *ListSnapshotsRequest) String() string {
  2485  	if this == nil {
  2486  		return "nil"
  2487  	}
  2488  	s := strings.Join([]string{`&ListSnapshotsRequest{`,
  2489  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2490  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2491  		`}`,
  2492  	}, "")
  2493  	return s
  2494  }
  2495  func (this *ListSnapshotsResponse) String() string {
  2496  	if this == nil {
  2497  		return "nil"
  2498  	}
  2499  	s := strings.Join([]string{`&ListSnapshotsResponse{`,
  2500  		`Info:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Info), "Info", "Info", 1), `&`, ``, 1) + `,`,
  2501  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2502  		`}`,
  2503  	}, "")
  2504  	return s
  2505  }
  2506  func (this *UsageRequest) String() string {
  2507  	if this == nil {
  2508  		return "nil"
  2509  	}
  2510  	s := strings.Join([]string{`&UsageRequest{`,
  2511  		`Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`,
  2512  		`Key:` + fmt.Sprintf("%v", this.Key) + `,`,
  2513  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2514  		`}`,
  2515  	}, "")
  2516  	return s
  2517  }
  2518  func (this *UsageResponse) String() string {
  2519  	if this == nil {
  2520  		return "nil"
  2521  	}
  2522  	s := strings.Join([]string{`&UsageResponse{`,
  2523  		`Size_:` + fmt.Sprintf("%v", this.Size_) + `,`,
  2524  		`Inodes:` + fmt.Sprintf("%v", this.Inodes) + `,`,
  2525  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  2526  		`}`,
  2527  	}, "")
  2528  	return s
  2529  }
  2530  func valueToStringSnapshots(v interface{}) string {
  2531  	rv := reflect.ValueOf(v)
  2532  	if rv.IsNil() {
  2533  		return "nil"
  2534  	}
  2535  	pv := reflect.Indirect(rv).Interface()
  2536  	return fmt.Sprintf("*%v", pv)
  2537  }
  2538  func (m *PrepareSnapshotRequest) Unmarshal(dAtA []byte) error {
  2539  	l := len(dAtA)
  2540  	iNdEx := 0
  2541  	for iNdEx < l {
  2542  		preIndex := iNdEx
  2543  		var wire uint64
  2544  		for shift := uint(0); ; shift += 7 {
  2545  			if shift >= 64 {
  2546  				return ErrIntOverflowSnapshots
  2547  			}
  2548  			if iNdEx >= l {
  2549  				return io.ErrUnexpectedEOF
  2550  			}
  2551  			b := dAtA[iNdEx]
  2552  			iNdEx++
  2553  			wire |= uint64(b&0x7F) << shift
  2554  			if b < 0x80 {
  2555  				break
  2556  			}
  2557  		}
  2558  		fieldNum := int32(wire >> 3)
  2559  		wireType := int(wire & 0x7)
  2560  		if wireType == 4 {
  2561  			return fmt.Errorf("proto: PrepareSnapshotRequest: wiretype end group for non-group")
  2562  		}
  2563  		if fieldNum <= 0 {
  2564  			return fmt.Errorf("proto: PrepareSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2565  		}
  2566  		switch fieldNum {
  2567  		case 1:
  2568  			if wireType != 2 {
  2569  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  2570  			}
  2571  			var stringLen uint64
  2572  			for shift := uint(0); ; shift += 7 {
  2573  				if shift >= 64 {
  2574  					return ErrIntOverflowSnapshots
  2575  				}
  2576  				if iNdEx >= l {
  2577  					return io.ErrUnexpectedEOF
  2578  				}
  2579  				b := dAtA[iNdEx]
  2580  				iNdEx++
  2581  				stringLen |= uint64(b&0x7F) << shift
  2582  				if b < 0x80 {
  2583  					break
  2584  				}
  2585  			}
  2586  			intStringLen := int(stringLen)
  2587  			if intStringLen < 0 {
  2588  				return ErrInvalidLengthSnapshots
  2589  			}
  2590  			postIndex := iNdEx + intStringLen
  2591  			if postIndex < 0 {
  2592  				return ErrInvalidLengthSnapshots
  2593  			}
  2594  			if postIndex > l {
  2595  				return io.ErrUnexpectedEOF
  2596  			}
  2597  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  2598  			iNdEx = postIndex
  2599  		case 2:
  2600  			if wireType != 2 {
  2601  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  2602  			}
  2603  			var stringLen uint64
  2604  			for shift := uint(0); ; shift += 7 {
  2605  				if shift >= 64 {
  2606  					return ErrIntOverflowSnapshots
  2607  				}
  2608  				if iNdEx >= l {
  2609  					return io.ErrUnexpectedEOF
  2610  				}
  2611  				b := dAtA[iNdEx]
  2612  				iNdEx++
  2613  				stringLen |= uint64(b&0x7F) << shift
  2614  				if b < 0x80 {
  2615  					break
  2616  				}
  2617  			}
  2618  			intStringLen := int(stringLen)
  2619  			if intStringLen < 0 {
  2620  				return ErrInvalidLengthSnapshots
  2621  			}
  2622  			postIndex := iNdEx + intStringLen
  2623  			if postIndex < 0 {
  2624  				return ErrInvalidLengthSnapshots
  2625  			}
  2626  			if postIndex > l {
  2627  				return io.ErrUnexpectedEOF
  2628  			}
  2629  			m.Key = string(dAtA[iNdEx:postIndex])
  2630  			iNdEx = postIndex
  2631  		case 3:
  2632  			if wireType != 2 {
  2633  				return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType)
  2634  			}
  2635  			var stringLen uint64
  2636  			for shift := uint(0); ; shift += 7 {
  2637  				if shift >= 64 {
  2638  					return ErrIntOverflowSnapshots
  2639  				}
  2640  				if iNdEx >= l {
  2641  					return io.ErrUnexpectedEOF
  2642  				}
  2643  				b := dAtA[iNdEx]
  2644  				iNdEx++
  2645  				stringLen |= uint64(b&0x7F) << shift
  2646  				if b < 0x80 {
  2647  					break
  2648  				}
  2649  			}
  2650  			intStringLen := int(stringLen)
  2651  			if intStringLen < 0 {
  2652  				return ErrInvalidLengthSnapshots
  2653  			}
  2654  			postIndex := iNdEx + intStringLen
  2655  			if postIndex < 0 {
  2656  				return ErrInvalidLengthSnapshots
  2657  			}
  2658  			if postIndex > l {
  2659  				return io.ErrUnexpectedEOF
  2660  			}
  2661  			m.Parent = string(dAtA[iNdEx:postIndex])
  2662  			iNdEx = postIndex
  2663  		case 4:
  2664  			if wireType != 2 {
  2665  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  2666  			}
  2667  			var msglen int
  2668  			for shift := uint(0); ; shift += 7 {
  2669  				if shift >= 64 {
  2670  					return ErrIntOverflowSnapshots
  2671  				}
  2672  				if iNdEx >= l {
  2673  					return io.ErrUnexpectedEOF
  2674  				}
  2675  				b := dAtA[iNdEx]
  2676  				iNdEx++
  2677  				msglen |= int(b&0x7F) << shift
  2678  				if b < 0x80 {
  2679  					break
  2680  				}
  2681  			}
  2682  			if msglen < 0 {
  2683  				return ErrInvalidLengthSnapshots
  2684  			}
  2685  			postIndex := iNdEx + msglen
  2686  			if postIndex < 0 {
  2687  				return ErrInvalidLengthSnapshots
  2688  			}
  2689  			if postIndex > l {
  2690  				return io.ErrUnexpectedEOF
  2691  			}
  2692  			if m.Labels == nil {
  2693  				m.Labels = make(map[string]string)
  2694  			}
  2695  			var mapkey string
  2696  			var mapvalue string
  2697  			for iNdEx < postIndex {
  2698  				entryPreIndex := iNdEx
  2699  				var wire uint64
  2700  				for shift := uint(0); ; shift += 7 {
  2701  					if shift >= 64 {
  2702  						return ErrIntOverflowSnapshots
  2703  					}
  2704  					if iNdEx >= l {
  2705  						return io.ErrUnexpectedEOF
  2706  					}
  2707  					b := dAtA[iNdEx]
  2708  					iNdEx++
  2709  					wire |= uint64(b&0x7F) << shift
  2710  					if b < 0x80 {
  2711  						break
  2712  					}
  2713  				}
  2714  				fieldNum := int32(wire >> 3)
  2715  				if fieldNum == 1 {
  2716  					var stringLenmapkey uint64
  2717  					for shift := uint(0); ; shift += 7 {
  2718  						if shift >= 64 {
  2719  							return ErrIntOverflowSnapshots
  2720  						}
  2721  						if iNdEx >= l {
  2722  							return io.ErrUnexpectedEOF
  2723  						}
  2724  						b := dAtA[iNdEx]
  2725  						iNdEx++
  2726  						stringLenmapkey |= uint64(b&0x7F) << shift
  2727  						if b < 0x80 {
  2728  							break
  2729  						}
  2730  					}
  2731  					intStringLenmapkey := int(stringLenmapkey)
  2732  					if intStringLenmapkey < 0 {
  2733  						return ErrInvalidLengthSnapshots
  2734  					}
  2735  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  2736  					if postStringIndexmapkey < 0 {
  2737  						return ErrInvalidLengthSnapshots
  2738  					}
  2739  					if postStringIndexmapkey > l {
  2740  						return io.ErrUnexpectedEOF
  2741  					}
  2742  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2743  					iNdEx = postStringIndexmapkey
  2744  				} else if fieldNum == 2 {
  2745  					var stringLenmapvalue uint64
  2746  					for shift := uint(0); ; shift += 7 {
  2747  						if shift >= 64 {
  2748  							return ErrIntOverflowSnapshots
  2749  						}
  2750  						if iNdEx >= l {
  2751  							return io.ErrUnexpectedEOF
  2752  						}
  2753  						b := dAtA[iNdEx]
  2754  						iNdEx++
  2755  						stringLenmapvalue |= uint64(b&0x7F) << shift
  2756  						if b < 0x80 {
  2757  							break
  2758  						}
  2759  					}
  2760  					intStringLenmapvalue := int(stringLenmapvalue)
  2761  					if intStringLenmapvalue < 0 {
  2762  						return ErrInvalidLengthSnapshots
  2763  					}
  2764  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2765  					if postStringIndexmapvalue < 0 {
  2766  						return ErrInvalidLengthSnapshots
  2767  					}
  2768  					if postStringIndexmapvalue > l {
  2769  						return io.ErrUnexpectedEOF
  2770  					}
  2771  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  2772  					iNdEx = postStringIndexmapvalue
  2773  				} else {
  2774  					iNdEx = entryPreIndex
  2775  					skippy, err := skipSnapshots(dAtA[iNdEx:])
  2776  					if err != nil {
  2777  						return err
  2778  					}
  2779  					if skippy < 0 {
  2780  						return ErrInvalidLengthSnapshots
  2781  					}
  2782  					if (iNdEx + skippy) > postIndex {
  2783  						return io.ErrUnexpectedEOF
  2784  					}
  2785  					iNdEx += skippy
  2786  				}
  2787  			}
  2788  			m.Labels[mapkey] = mapvalue
  2789  			iNdEx = postIndex
  2790  		default:
  2791  			iNdEx = preIndex
  2792  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  2793  			if err != nil {
  2794  				return err
  2795  			}
  2796  			if skippy < 0 {
  2797  				return ErrInvalidLengthSnapshots
  2798  			}
  2799  			if (iNdEx + skippy) < 0 {
  2800  				return ErrInvalidLengthSnapshots
  2801  			}
  2802  			if (iNdEx + skippy) > l {
  2803  				return io.ErrUnexpectedEOF
  2804  			}
  2805  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2806  			iNdEx += skippy
  2807  		}
  2808  	}
  2809  
  2810  	if iNdEx > l {
  2811  		return io.ErrUnexpectedEOF
  2812  	}
  2813  	return nil
  2814  }
  2815  func (m *PrepareSnapshotResponse) Unmarshal(dAtA []byte) error {
  2816  	l := len(dAtA)
  2817  	iNdEx := 0
  2818  	for iNdEx < l {
  2819  		preIndex := iNdEx
  2820  		var wire uint64
  2821  		for shift := uint(0); ; shift += 7 {
  2822  			if shift >= 64 {
  2823  				return ErrIntOverflowSnapshots
  2824  			}
  2825  			if iNdEx >= l {
  2826  				return io.ErrUnexpectedEOF
  2827  			}
  2828  			b := dAtA[iNdEx]
  2829  			iNdEx++
  2830  			wire |= uint64(b&0x7F) << shift
  2831  			if b < 0x80 {
  2832  				break
  2833  			}
  2834  		}
  2835  		fieldNum := int32(wire >> 3)
  2836  		wireType := int(wire & 0x7)
  2837  		if wireType == 4 {
  2838  			return fmt.Errorf("proto: PrepareSnapshotResponse: wiretype end group for non-group")
  2839  		}
  2840  		if fieldNum <= 0 {
  2841  			return fmt.Errorf("proto: PrepareSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2842  		}
  2843  		switch fieldNum {
  2844  		case 1:
  2845  			if wireType != 2 {
  2846  				return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
  2847  			}
  2848  			var msglen int
  2849  			for shift := uint(0); ; shift += 7 {
  2850  				if shift >= 64 {
  2851  					return ErrIntOverflowSnapshots
  2852  				}
  2853  				if iNdEx >= l {
  2854  					return io.ErrUnexpectedEOF
  2855  				}
  2856  				b := dAtA[iNdEx]
  2857  				iNdEx++
  2858  				msglen |= int(b&0x7F) << shift
  2859  				if b < 0x80 {
  2860  					break
  2861  				}
  2862  			}
  2863  			if msglen < 0 {
  2864  				return ErrInvalidLengthSnapshots
  2865  			}
  2866  			postIndex := iNdEx + msglen
  2867  			if postIndex < 0 {
  2868  				return ErrInvalidLengthSnapshots
  2869  			}
  2870  			if postIndex > l {
  2871  				return io.ErrUnexpectedEOF
  2872  			}
  2873  			m.Mounts = append(m.Mounts, &types.Mount{})
  2874  			if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2875  				return err
  2876  			}
  2877  			iNdEx = postIndex
  2878  		default:
  2879  			iNdEx = preIndex
  2880  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  2881  			if err != nil {
  2882  				return err
  2883  			}
  2884  			if skippy < 0 {
  2885  				return ErrInvalidLengthSnapshots
  2886  			}
  2887  			if (iNdEx + skippy) < 0 {
  2888  				return ErrInvalidLengthSnapshots
  2889  			}
  2890  			if (iNdEx + skippy) > l {
  2891  				return io.ErrUnexpectedEOF
  2892  			}
  2893  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2894  			iNdEx += skippy
  2895  		}
  2896  	}
  2897  
  2898  	if iNdEx > l {
  2899  		return io.ErrUnexpectedEOF
  2900  	}
  2901  	return nil
  2902  }
  2903  func (m *ViewSnapshotRequest) Unmarshal(dAtA []byte) error {
  2904  	l := len(dAtA)
  2905  	iNdEx := 0
  2906  	for iNdEx < l {
  2907  		preIndex := iNdEx
  2908  		var wire uint64
  2909  		for shift := uint(0); ; shift += 7 {
  2910  			if shift >= 64 {
  2911  				return ErrIntOverflowSnapshots
  2912  			}
  2913  			if iNdEx >= l {
  2914  				return io.ErrUnexpectedEOF
  2915  			}
  2916  			b := dAtA[iNdEx]
  2917  			iNdEx++
  2918  			wire |= uint64(b&0x7F) << shift
  2919  			if b < 0x80 {
  2920  				break
  2921  			}
  2922  		}
  2923  		fieldNum := int32(wire >> 3)
  2924  		wireType := int(wire & 0x7)
  2925  		if wireType == 4 {
  2926  			return fmt.Errorf("proto: ViewSnapshotRequest: wiretype end group for non-group")
  2927  		}
  2928  		if fieldNum <= 0 {
  2929  			return fmt.Errorf("proto: ViewSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2930  		}
  2931  		switch fieldNum {
  2932  		case 1:
  2933  			if wireType != 2 {
  2934  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  2935  			}
  2936  			var stringLen uint64
  2937  			for shift := uint(0); ; shift += 7 {
  2938  				if shift >= 64 {
  2939  					return ErrIntOverflowSnapshots
  2940  				}
  2941  				if iNdEx >= l {
  2942  					return io.ErrUnexpectedEOF
  2943  				}
  2944  				b := dAtA[iNdEx]
  2945  				iNdEx++
  2946  				stringLen |= uint64(b&0x7F) << shift
  2947  				if b < 0x80 {
  2948  					break
  2949  				}
  2950  			}
  2951  			intStringLen := int(stringLen)
  2952  			if intStringLen < 0 {
  2953  				return ErrInvalidLengthSnapshots
  2954  			}
  2955  			postIndex := iNdEx + intStringLen
  2956  			if postIndex < 0 {
  2957  				return ErrInvalidLengthSnapshots
  2958  			}
  2959  			if postIndex > l {
  2960  				return io.ErrUnexpectedEOF
  2961  			}
  2962  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  2963  			iNdEx = postIndex
  2964  		case 2:
  2965  			if wireType != 2 {
  2966  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  2967  			}
  2968  			var stringLen uint64
  2969  			for shift := uint(0); ; shift += 7 {
  2970  				if shift >= 64 {
  2971  					return ErrIntOverflowSnapshots
  2972  				}
  2973  				if iNdEx >= l {
  2974  					return io.ErrUnexpectedEOF
  2975  				}
  2976  				b := dAtA[iNdEx]
  2977  				iNdEx++
  2978  				stringLen |= uint64(b&0x7F) << shift
  2979  				if b < 0x80 {
  2980  					break
  2981  				}
  2982  			}
  2983  			intStringLen := int(stringLen)
  2984  			if intStringLen < 0 {
  2985  				return ErrInvalidLengthSnapshots
  2986  			}
  2987  			postIndex := iNdEx + intStringLen
  2988  			if postIndex < 0 {
  2989  				return ErrInvalidLengthSnapshots
  2990  			}
  2991  			if postIndex > l {
  2992  				return io.ErrUnexpectedEOF
  2993  			}
  2994  			m.Key = string(dAtA[iNdEx:postIndex])
  2995  			iNdEx = postIndex
  2996  		case 3:
  2997  			if wireType != 2 {
  2998  				return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType)
  2999  			}
  3000  			var stringLen uint64
  3001  			for shift := uint(0); ; shift += 7 {
  3002  				if shift >= 64 {
  3003  					return ErrIntOverflowSnapshots
  3004  				}
  3005  				if iNdEx >= l {
  3006  					return io.ErrUnexpectedEOF
  3007  				}
  3008  				b := dAtA[iNdEx]
  3009  				iNdEx++
  3010  				stringLen |= uint64(b&0x7F) << shift
  3011  				if b < 0x80 {
  3012  					break
  3013  				}
  3014  			}
  3015  			intStringLen := int(stringLen)
  3016  			if intStringLen < 0 {
  3017  				return ErrInvalidLengthSnapshots
  3018  			}
  3019  			postIndex := iNdEx + intStringLen
  3020  			if postIndex < 0 {
  3021  				return ErrInvalidLengthSnapshots
  3022  			}
  3023  			if postIndex > l {
  3024  				return io.ErrUnexpectedEOF
  3025  			}
  3026  			m.Parent = string(dAtA[iNdEx:postIndex])
  3027  			iNdEx = postIndex
  3028  		case 4:
  3029  			if wireType != 2 {
  3030  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  3031  			}
  3032  			var msglen int
  3033  			for shift := uint(0); ; shift += 7 {
  3034  				if shift >= 64 {
  3035  					return ErrIntOverflowSnapshots
  3036  				}
  3037  				if iNdEx >= l {
  3038  					return io.ErrUnexpectedEOF
  3039  				}
  3040  				b := dAtA[iNdEx]
  3041  				iNdEx++
  3042  				msglen |= int(b&0x7F) << shift
  3043  				if b < 0x80 {
  3044  					break
  3045  				}
  3046  			}
  3047  			if msglen < 0 {
  3048  				return ErrInvalidLengthSnapshots
  3049  			}
  3050  			postIndex := iNdEx + msglen
  3051  			if postIndex < 0 {
  3052  				return ErrInvalidLengthSnapshots
  3053  			}
  3054  			if postIndex > l {
  3055  				return io.ErrUnexpectedEOF
  3056  			}
  3057  			if m.Labels == nil {
  3058  				m.Labels = make(map[string]string)
  3059  			}
  3060  			var mapkey string
  3061  			var mapvalue string
  3062  			for iNdEx < postIndex {
  3063  				entryPreIndex := iNdEx
  3064  				var wire uint64
  3065  				for shift := uint(0); ; shift += 7 {
  3066  					if shift >= 64 {
  3067  						return ErrIntOverflowSnapshots
  3068  					}
  3069  					if iNdEx >= l {
  3070  						return io.ErrUnexpectedEOF
  3071  					}
  3072  					b := dAtA[iNdEx]
  3073  					iNdEx++
  3074  					wire |= uint64(b&0x7F) << shift
  3075  					if b < 0x80 {
  3076  						break
  3077  					}
  3078  				}
  3079  				fieldNum := int32(wire >> 3)
  3080  				if fieldNum == 1 {
  3081  					var stringLenmapkey uint64
  3082  					for shift := uint(0); ; shift += 7 {
  3083  						if shift >= 64 {
  3084  							return ErrIntOverflowSnapshots
  3085  						}
  3086  						if iNdEx >= l {
  3087  							return io.ErrUnexpectedEOF
  3088  						}
  3089  						b := dAtA[iNdEx]
  3090  						iNdEx++
  3091  						stringLenmapkey |= uint64(b&0x7F) << shift
  3092  						if b < 0x80 {
  3093  							break
  3094  						}
  3095  					}
  3096  					intStringLenmapkey := int(stringLenmapkey)
  3097  					if intStringLenmapkey < 0 {
  3098  						return ErrInvalidLengthSnapshots
  3099  					}
  3100  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  3101  					if postStringIndexmapkey < 0 {
  3102  						return ErrInvalidLengthSnapshots
  3103  					}
  3104  					if postStringIndexmapkey > l {
  3105  						return io.ErrUnexpectedEOF
  3106  					}
  3107  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  3108  					iNdEx = postStringIndexmapkey
  3109  				} else if fieldNum == 2 {
  3110  					var stringLenmapvalue uint64
  3111  					for shift := uint(0); ; shift += 7 {
  3112  						if shift >= 64 {
  3113  							return ErrIntOverflowSnapshots
  3114  						}
  3115  						if iNdEx >= l {
  3116  							return io.ErrUnexpectedEOF
  3117  						}
  3118  						b := dAtA[iNdEx]
  3119  						iNdEx++
  3120  						stringLenmapvalue |= uint64(b&0x7F) << shift
  3121  						if b < 0x80 {
  3122  							break
  3123  						}
  3124  					}
  3125  					intStringLenmapvalue := int(stringLenmapvalue)
  3126  					if intStringLenmapvalue < 0 {
  3127  						return ErrInvalidLengthSnapshots
  3128  					}
  3129  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  3130  					if postStringIndexmapvalue < 0 {
  3131  						return ErrInvalidLengthSnapshots
  3132  					}
  3133  					if postStringIndexmapvalue > l {
  3134  						return io.ErrUnexpectedEOF
  3135  					}
  3136  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  3137  					iNdEx = postStringIndexmapvalue
  3138  				} else {
  3139  					iNdEx = entryPreIndex
  3140  					skippy, err := skipSnapshots(dAtA[iNdEx:])
  3141  					if err != nil {
  3142  						return err
  3143  					}
  3144  					if skippy < 0 {
  3145  						return ErrInvalidLengthSnapshots
  3146  					}
  3147  					if (iNdEx + skippy) > postIndex {
  3148  						return io.ErrUnexpectedEOF
  3149  					}
  3150  					iNdEx += skippy
  3151  				}
  3152  			}
  3153  			m.Labels[mapkey] = mapvalue
  3154  			iNdEx = postIndex
  3155  		default:
  3156  			iNdEx = preIndex
  3157  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  3158  			if err != nil {
  3159  				return err
  3160  			}
  3161  			if skippy < 0 {
  3162  				return ErrInvalidLengthSnapshots
  3163  			}
  3164  			if (iNdEx + skippy) < 0 {
  3165  				return ErrInvalidLengthSnapshots
  3166  			}
  3167  			if (iNdEx + skippy) > l {
  3168  				return io.ErrUnexpectedEOF
  3169  			}
  3170  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3171  			iNdEx += skippy
  3172  		}
  3173  	}
  3174  
  3175  	if iNdEx > l {
  3176  		return io.ErrUnexpectedEOF
  3177  	}
  3178  	return nil
  3179  }
  3180  func (m *ViewSnapshotResponse) Unmarshal(dAtA []byte) error {
  3181  	l := len(dAtA)
  3182  	iNdEx := 0
  3183  	for iNdEx < l {
  3184  		preIndex := iNdEx
  3185  		var wire uint64
  3186  		for shift := uint(0); ; shift += 7 {
  3187  			if shift >= 64 {
  3188  				return ErrIntOverflowSnapshots
  3189  			}
  3190  			if iNdEx >= l {
  3191  				return io.ErrUnexpectedEOF
  3192  			}
  3193  			b := dAtA[iNdEx]
  3194  			iNdEx++
  3195  			wire |= uint64(b&0x7F) << shift
  3196  			if b < 0x80 {
  3197  				break
  3198  			}
  3199  		}
  3200  		fieldNum := int32(wire >> 3)
  3201  		wireType := int(wire & 0x7)
  3202  		if wireType == 4 {
  3203  			return fmt.Errorf("proto: ViewSnapshotResponse: wiretype end group for non-group")
  3204  		}
  3205  		if fieldNum <= 0 {
  3206  			return fmt.Errorf("proto: ViewSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3207  		}
  3208  		switch fieldNum {
  3209  		case 1:
  3210  			if wireType != 2 {
  3211  				return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
  3212  			}
  3213  			var msglen int
  3214  			for shift := uint(0); ; shift += 7 {
  3215  				if shift >= 64 {
  3216  					return ErrIntOverflowSnapshots
  3217  				}
  3218  				if iNdEx >= l {
  3219  					return io.ErrUnexpectedEOF
  3220  				}
  3221  				b := dAtA[iNdEx]
  3222  				iNdEx++
  3223  				msglen |= int(b&0x7F) << shift
  3224  				if b < 0x80 {
  3225  					break
  3226  				}
  3227  			}
  3228  			if msglen < 0 {
  3229  				return ErrInvalidLengthSnapshots
  3230  			}
  3231  			postIndex := iNdEx + msglen
  3232  			if postIndex < 0 {
  3233  				return ErrInvalidLengthSnapshots
  3234  			}
  3235  			if postIndex > l {
  3236  				return io.ErrUnexpectedEOF
  3237  			}
  3238  			m.Mounts = append(m.Mounts, &types.Mount{})
  3239  			if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3240  				return err
  3241  			}
  3242  			iNdEx = postIndex
  3243  		default:
  3244  			iNdEx = preIndex
  3245  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  3246  			if err != nil {
  3247  				return err
  3248  			}
  3249  			if skippy < 0 {
  3250  				return ErrInvalidLengthSnapshots
  3251  			}
  3252  			if (iNdEx + skippy) < 0 {
  3253  				return ErrInvalidLengthSnapshots
  3254  			}
  3255  			if (iNdEx + skippy) > l {
  3256  				return io.ErrUnexpectedEOF
  3257  			}
  3258  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3259  			iNdEx += skippy
  3260  		}
  3261  	}
  3262  
  3263  	if iNdEx > l {
  3264  		return io.ErrUnexpectedEOF
  3265  	}
  3266  	return nil
  3267  }
  3268  func (m *MountsRequest) Unmarshal(dAtA []byte) error {
  3269  	l := len(dAtA)
  3270  	iNdEx := 0
  3271  	for iNdEx < l {
  3272  		preIndex := iNdEx
  3273  		var wire uint64
  3274  		for shift := uint(0); ; shift += 7 {
  3275  			if shift >= 64 {
  3276  				return ErrIntOverflowSnapshots
  3277  			}
  3278  			if iNdEx >= l {
  3279  				return io.ErrUnexpectedEOF
  3280  			}
  3281  			b := dAtA[iNdEx]
  3282  			iNdEx++
  3283  			wire |= uint64(b&0x7F) << shift
  3284  			if b < 0x80 {
  3285  				break
  3286  			}
  3287  		}
  3288  		fieldNum := int32(wire >> 3)
  3289  		wireType := int(wire & 0x7)
  3290  		if wireType == 4 {
  3291  			return fmt.Errorf("proto: MountsRequest: wiretype end group for non-group")
  3292  		}
  3293  		if fieldNum <= 0 {
  3294  			return fmt.Errorf("proto: MountsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3295  		}
  3296  		switch fieldNum {
  3297  		case 1:
  3298  			if wireType != 2 {
  3299  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  3300  			}
  3301  			var stringLen uint64
  3302  			for shift := uint(0); ; shift += 7 {
  3303  				if shift >= 64 {
  3304  					return ErrIntOverflowSnapshots
  3305  				}
  3306  				if iNdEx >= l {
  3307  					return io.ErrUnexpectedEOF
  3308  				}
  3309  				b := dAtA[iNdEx]
  3310  				iNdEx++
  3311  				stringLen |= uint64(b&0x7F) << shift
  3312  				if b < 0x80 {
  3313  					break
  3314  				}
  3315  			}
  3316  			intStringLen := int(stringLen)
  3317  			if intStringLen < 0 {
  3318  				return ErrInvalidLengthSnapshots
  3319  			}
  3320  			postIndex := iNdEx + intStringLen
  3321  			if postIndex < 0 {
  3322  				return ErrInvalidLengthSnapshots
  3323  			}
  3324  			if postIndex > l {
  3325  				return io.ErrUnexpectedEOF
  3326  			}
  3327  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  3328  			iNdEx = postIndex
  3329  		case 2:
  3330  			if wireType != 2 {
  3331  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  3332  			}
  3333  			var stringLen uint64
  3334  			for shift := uint(0); ; shift += 7 {
  3335  				if shift >= 64 {
  3336  					return ErrIntOverflowSnapshots
  3337  				}
  3338  				if iNdEx >= l {
  3339  					return io.ErrUnexpectedEOF
  3340  				}
  3341  				b := dAtA[iNdEx]
  3342  				iNdEx++
  3343  				stringLen |= uint64(b&0x7F) << shift
  3344  				if b < 0x80 {
  3345  					break
  3346  				}
  3347  			}
  3348  			intStringLen := int(stringLen)
  3349  			if intStringLen < 0 {
  3350  				return ErrInvalidLengthSnapshots
  3351  			}
  3352  			postIndex := iNdEx + intStringLen
  3353  			if postIndex < 0 {
  3354  				return ErrInvalidLengthSnapshots
  3355  			}
  3356  			if postIndex > l {
  3357  				return io.ErrUnexpectedEOF
  3358  			}
  3359  			m.Key = string(dAtA[iNdEx:postIndex])
  3360  			iNdEx = postIndex
  3361  		default:
  3362  			iNdEx = preIndex
  3363  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  3364  			if err != nil {
  3365  				return err
  3366  			}
  3367  			if skippy < 0 {
  3368  				return ErrInvalidLengthSnapshots
  3369  			}
  3370  			if (iNdEx + skippy) < 0 {
  3371  				return ErrInvalidLengthSnapshots
  3372  			}
  3373  			if (iNdEx + skippy) > l {
  3374  				return io.ErrUnexpectedEOF
  3375  			}
  3376  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3377  			iNdEx += skippy
  3378  		}
  3379  	}
  3380  
  3381  	if iNdEx > l {
  3382  		return io.ErrUnexpectedEOF
  3383  	}
  3384  	return nil
  3385  }
  3386  func (m *MountsResponse) Unmarshal(dAtA []byte) error {
  3387  	l := len(dAtA)
  3388  	iNdEx := 0
  3389  	for iNdEx < l {
  3390  		preIndex := iNdEx
  3391  		var wire uint64
  3392  		for shift := uint(0); ; shift += 7 {
  3393  			if shift >= 64 {
  3394  				return ErrIntOverflowSnapshots
  3395  			}
  3396  			if iNdEx >= l {
  3397  				return io.ErrUnexpectedEOF
  3398  			}
  3399  			b := dAtA[iNdEx]
  3400  			iNdEx++
  3401  			wire |= uint64(b&0x7F) << shift
  3402  			if b < 0x80 {
  3403  				break
  3404  			}
  3405  		}
  3406  		fieldNum := int32(wire >> 3)
  3407  		wireType := int(wire & 0x7)
  3408  		if wireType == 4 {
  3409  			return fmt.Errorf("proto: MountsResponse: wiretype end group for non-group")
  3410  		}
  3411  		if fieldNum <= 0 {
  3412  			return fmt.Errorf("proto: MountsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3413  		}
  3414  		switch fieldNum {
  3415  		case 1:
  3416  			if wireType != 2 {
  3417  				return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
  3418  			}
  3419  			var msglen int
  3420  			for shift := uint(0); ; shift += 7 {
  3421  				if shift >= 64 {
  3422  					return ErrIntOverflowSnapshots
  3423  				}
  3424  				if iNdEx >= l {
  3425  					return io.ErrUnexpectedEOF
  3426  				}
  3427  				b := dAtA[iNdEx]
  3428  				iNdEx++
  3429  				msglen |= int(b&0x7F) << shift
  3430  				if b < 0x80 {
  3431  					break
  3432  				}
  3433  			}
  3434  			if msglen < 0 {
  3435  				return ErrInvalidLengthSnapshots
  3436  			}
  3437  			postIndex := iNdEx + msglen
  3438  			if postIndex < 0 {
  3439  				return ErrInvalidLengthSnapshots
  3440  			}
  3441  			if postIndex > l {
  3442  				return io.ErrUnexpectedEOF
  3443  			}
  3444  			m.Mounts = append(m.Mounts, &types.Mount{})
  3445  			if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3446  				return err
  3447  			}
  3448  			iNdEx = postIndex
  3449  		default:
  3450  			iNdEx = preIndex
  3451  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  3452  			if err != nil {
  3453  				return err
  3454  			}
  3455  			if skippy < 0 {
  3456  				return ErrInvalidLengthSnapshots
  3457  			}
  3458  			if (iNdEx + skippy) < 0 {
  3459  				return ErrInvalidLengthSnapshots
  3460  			}
  3461  			if (iNdEx + skippy) > l {
  3462  				return io.ErrUnexpectedEOF
  3463  			}
  3464  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3465  			iNdEx += skippy
  3466  		}
  3467  	}
  3468  
  3469  	if iNdEx > l {
  3470  		return io.ErrUnexpectedEOF
  3471  	}
  3472  	return nil
  3473  }
  3474  func (m *RemoveSnapshotRequest) Unmarshal(dAtA []byte) error {
  3475  	l := len(dAtA)
  3476  	iNdEx := 0
  3477  	for iNdEx < l {
  3478  		preIndex := iNdEx
  3479  		var wire uint64
  3480  		for shift := uint(0); ; shift += 7 {
  3481  			if shift >= 64 {
  3482  				return ErrIntOverflowSnapshots
  3483  			}
  3484  			if iNdEx >= l {
  3485  				return io.ErrUnexpectedEOF
  3486  			}
  3487  			b := dAtA[iNdEx]
  3488  			iNdEx++
  3489  			wire |= uint64(b&0x7F) << shift
  3490  			if b < 0x80 {
  3491  				break
  3492  			}
  3493  		}
  3494  		fieldNum := int32(wire >> 3)
  3495  		wireType := int(wire & 0x7)
  3496  		if wireType == 4 {
  3497  			return fmt.Errorf("proto: RemoveSnapshotRequest: wiretype end group for non-group")
  3498  		}
  3499  		if fieldNum <= 0 {
  3500  			return fmt.Errorf("proto: RemoveSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3501  		}
  3502  		switch fieldNum {
  3503  		case 1:
  3504  			if wireType != 2 {
  3505  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  3506  			}
  3507  			var stringLen uint64
  3508  			for shift := uint(0); ; shift += 7 {
  3509  				if shift >= 64 {
  3510  					return ErrIntOverflowSnapshots
  3511  				}
  3512  				if iNdEx >= l {
  3513  					return io.ErrUnexpectedEOF
  3514  				}
  3515  				b := dAtA[iNdEx]
  3516  				iNdEx++
  3517  				stringLen |= uint64(b&0x7F) << shift
  3518  				if b < 0x80 {
  3519  					break
  3520  				}
  3521  			}
  3522  			intStringLen := int(stringLen)
  3523  			if intStringLen < 0 {
  3524  				return ErrInvalidLengthSnapshots
  3525  			}
  3526  			postIndex := iNdEx + intStringLen
  3527  			if postIndex < 0 {
  3528  				return ErrInvalidLengthSnapshots
  3529  			}
  3530  			if postIndex > l {
  3531  				return io.ErrUnexpectedEOF
  3532  			}
  3533  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  3534  			iNdEx = postIndex
  3535  		case 2:
  3536  			if wireType != 2 {
  3537  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  3538  			}
  3539  			var stringLen uint64
  3540  			for shift := uint(0); ; shift += 7 {
  3541  				if shift >= 64 {
  3542  					return ErrIntOverflowSnapshots
  3543  				}
  3544  				if iNdEx >= l {
  3545  					return io.ErrUnexpectedEOF
  3546  				}
  3547  				b := dAtA[iNdEx]
  3548  				iNdEx++
  3549  				stringLen |= uint64(b&0x7F) << shift
  3550  				if b < 0x80 {
  3551  					break
  3552  				}
  3553  			}
  3554  			intStringLen := int(stringLen)
  3555  			if intStringLen < 0 {
  3556  				return ErrInvalidLengthSnapshots
  3557  			}
  3558  			postIndex := iNdEx + intStringLen
  3559  			if postIndex < 0 {
  3560  				return ErrInvalidLengthSnapshots
  3561  			}
  3562  			if postIndex > l {
  3563  				return io.ErrUnexpectedEOF
  3564  			}
  3565  			m.Key = string(dAtA[iNdEx:postIndex])
  3566  			iNdEx = postIndex
  3567  		default:
  3568  			iNdEx = preIndex
  3569  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  3570  			if err != nil {
  3571  				return err
  3572  			}
  3573  			if skippy < 0 {
  3574  				return ErrInvalidLengthSnapshots
  3575  			}
  3576  			if (iNdEx + skippy) < 0 {
  3577  				return ErrInvalidLengthSnapshots
  3578  			}
  3579  			if (iNdEx + skippy) > l {
  3580  				return io.ErrUnexpectedEOF
  3581  			}
  3582  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3583  			iNdEx += skippy
  3584  		}
  3585  	}
  3586  
  3587  	if iNdEx > l {
  3588  		return io.ErrUnexpectedEOF
  3589  	}
  3590  	return nil
  3591  }
  3592  func (m *CommitSnapshotRequest) Unmarshal(dAtA []byte) error {
  3593  	l := len(dAtA)
  3594  	iNdEx := 0
  3595  	for iNdEx < l {
  3596  		preIndex := iNdEx
  3597  		var wire uint64
  3598  		for shift := uint(0); ; shift += 7 {
  3599  			if shift >= 64 {
  3600  				return ErrIntOverflowSnapshots
  3601  			}
  3602  			if iNdEx >= l {
  3603  				return io.ErrUnexpectedEOF
  3604  			}
  3605  			b := dAtA[iNdEx]
  3606  			iNdEx++
  3607  			wire |= uint64(b&0x7F) << shift
  3608  			if b < 0x80 {
  3609  				break
  3610  			}
  3611  		}
  3612  		fieldNum := int32(wire >> 3)
  3613  		wireType := int(wire & 0x7)
  3614  		if wireType == 4 {
  3615  			return fmt.Errorf("proto: CommitSnapshotRequest: wiretype end group for non-group")
  3616  		}
  3617  		if fieldNum <= 0 {
  3618  			return fmt.Errorf("proto: CommitSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3619  		}
  3620  		switch fieldNum {
  3621  		case 1:
  3622  			if wireType != 2 {
  3623  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  3624  			}
  3625  			var stringLen uint64
  3626  			for shift := uint(0); ; shift += 7 {
  3627  				if shift >= 64 {
  3628  					return ErrIntOverflowSnapshots
  3629  				}
  3630  				if iNdEx >= l {
  3631  					return io.ErrUnexpectedEOF
  3632  				}
  3633  				b := dAtA[iNdEx]
  3634  				iNdEx++
  3635  				stringLen |= uint64(b&0x7F) << shift
  3636  				if b < 0x80 {
  3637  					break
  3638  				}
  3639  			}
  3640  			intStringLen := int(stringLen)
  3641  			if intStringLen < 0 {
  3642  				return ErrInvalidLengthSnapshots
  3643  			}
  3644  			postIndex := iNdEx + intStringLen
  3645  			if postIndex < 0 {
  3646  				return ErrInvalidLengthSnapshots
  3647  			}
  3648  			if postIndex > l {
  3649  				return io.ErrUnexpectedEOF
  3650  			}
  3651  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  3652  			iNdEx = postIndex
  3653  		case 2:
  3654  			if wireType != 2 {
  3655  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3656  			}
  3657  			var stringLen uint64
  3658  			for shift := uint(0); ; shift += 7 {
  3659  				if shift >= 64 {
  3660  					return ErrIntOverflowSnapshots
  3661  				}
  3662  				if iNdEx >= l {
  3663  					return io.ErrUnexpectedEOF
  3664  				}
  3665  				b := dAtA[iNdEx]
  3666  				iNdEx++
  3667  				stringLen |= uint64(b&0x7F) << shift
  3668  				if b < 0x80 {
  3669  					break
  3670  				}
  3671  			}
  3672  			intStringLen := int(stringLen)
  3673  			if intStringLen < 0 {
  3674  				return ErrInvalidLengthSnapshots
  3675  			}
  3676  			postIndex := iNdEx + intStringLen
  3677  			if postIndex < 0 {
  3678  				return ErrInvalidLengthSnapshots
  3679  			}
  3680  			if postIndex > l {
  3681  				return io.ErrUnexpectedEOF
  3682  			}
  3683  			m.Name = string(dAtA[iNdEx:postIndex])
  3684  			iNdEx = postIndex
  3685  		case 3:
  3686  			if wireType != 2 {
  3687  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  3688  			}
  3689  			var stringLen uint64
  3690  			for shift := uint(0); ; shift += 7 {
  3691  				if shift >= 64 {
  3692  					return ErrIntOverflowSnapshots
  3693  				}
  3694  				if iNdEx >= l {
  3695  					return io.ErrUnexpectedEOF
  3696  				}
  3697  				b := dAtA[iNdEx]
  3698  				iNdEx++
  3699  				stringLen |= uint64(b&0x7F) << shift
  3700  				if b < 0x80 {
  3701  					break
  3702  				}
  3703  			}
  3704  			intStringLen := int(stringLen)
  3705  			if intStringLen < 0 {
  3706  				return ErrInvalidLengthSnapshots
  3707  			}
  3708  			postIndex := iNdEx + intStringLen
  3709  			if postIndex < 0 {
  3710  				return ErrInvalidLengthSnapshots
  3711  			}
  3712  			if postIndex > l {
  3713  				return io.ErrUnexpectedEOF
  3714  			}
  3715  			m.Key = string(dAtA[iNdEx:postIndex])
  3716  			iNdEx = postIndex
  3717  		case 4:
  3718  			if wireType != 2 {
  3719  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  3720  			}
  3721  			var msglen int
  3722  			for shift := uint(0); ; shift += 7 {
  3723  				if shift >= 64 {
  3724  					return ErrIntOverflowSnapshots
  3725  				}
  3726  				if iNdEx >= l {
  3727  					return io.ErrUnexpectedEOF
  3728  				}
  3729  				b := dAtA[iNdEx]
  3730  				iNdEx++
  3731  				msglen |= int(b&0x7F) << shift
  3732  				if b < 0x80 {
  3733  					break
  3734  				}
  3735  			}
  3736  			if msglen < 0 {
  3737  				return ErrInvalidLengthSnapshots
  3738  			}
  3739  			postIndex := iNdEx + msglen
  3740  			if postIndex < 0 {
  3741  				return ErrInvalidLengthSnapshots
  3742  			}
  3743  			if postIndex > l {
  3744  				return io.ErrUnexpectedEOF
  3745  			}
  3746  			if m.Labels == nil {
  3747  				m.Labels = make(map[string]string)
  3748  			}
  3749  			var mapkey string
  3750  			var mapvalue string
  3751  			for iNdEx < postIndex {
  3752  				entryPreIndex := iNdEx
  3753  				var wire uint64
  3754  				for shift := uint(0); ; shift += 7 {
  3755  					if shift >= 64 {
  3756  						return ErrIntOverflowSnapshots
  3757  					}
  3758  					if iNdEx >= l {
  3759  						return io.ErrUnexpectedEOF
  3760  					}
  3761  					b := dAtA[iNdEx]
  3762  					iNdEx++
  3763  					wire |= uint64(b&0x7F) << shift
  3764  					if b < 0x80 {
  3765  						break
  3766  					}
  3767  				}
  3768  				fieldNum := int32(wire >> 3)
  3769  				if fieldNum == 1 {
  3770  					var stringLenmapkey uint64
  3771  					for shift := uint(0); ; shift += 7 {
  3772  						if shift >= 64 {
  3773  							return ErrIntOverflowSnapshots
  3774  						}
  3775  						if iNdEx >= l {
  3776  							return io.ErrUnexpectedEOF
  3777  						}
  3778  						b := dAtA[iNdEx]
  3779  						iNdEx++
  3780  						stringLenmapkey |= uint64(b&0x7F) << shift
  3781  						if b < 0x80 {
  3782  							break
  3783  						}
  3784  					}
  3785  					intStringLenmapkey := int(stringLenmapkey)
  3786  					if intStringLenmapkey < 0 {
  3787  						return ErrInvalidLengthSnapshots
  3788  					}
  3789  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  3790  					if postStringIndexmapkey < 0 {
  3791  						return ErrInvalidLengthSnapshots
  3792  					}
  3793  					if postStringIndexmapkey > l {
  3794  						return io.ErrUnexpectedEOF
  3795  					}
  3796  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  3797  					iNdEx = postStringIndexmapkey
  3798  				} else if fieldNum == 2 {
  3799  					var stringLenmapvalue uint64
  3800  					for shift := uint(0); ; shift += 7 {
  3801  						if shift >= 64 {
  3802  							return ErrIntOverflowSnapshots
  3803  						}
  3804  						if iNdEx >= l {
  3805  							return io.ErrUnexpectedEOF
  3806  						}
  3807  						b := dAtA[iNdEx]
  3808  						iNdEx++
  3809  						stringLenmapvalue |= uint64(b&0x7F) << shift
  3810  						if b < 0x80 {
  3811  							break
  3812  						}
  3813  					}
  3814  					intStringLenmapvalue := int(stringLenmapvalue)
  3815  					if intStringLenmapvalue < 0 {
  3816  						return ErrInvalidLengthSnapshots
  3817  					}
  3818  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  3819  					if postStringIndexmapvalue < 0 {
  3820  						return ErrInvalidLengthSnapshots
  3821  					}
  3822  					if postStringIndexmapvalue > l {
  3823  						return io.ErrUnexpectedEOF
  3824  					}
  3825  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  3826  					iNdEx = postStringIndexmapvalue
  3827  				} else {
  3828  					iNdEx = entryPreIndex
  3829  					skippy, err := skipSnapshots(dAtA[iNdEx:])
  3830  					if err != nil {
  3831  						return err
  3832  					}
  3833  					if skippy < 0 {
  3834  						return ErrInvalidLengthSnapshots
  3835  					}
  3836  					if (iNdEx + skippy) > postIndex {
  3837  						return io.ErrUnexpectedEOF
  3838  					}
  3839  					iNdEx += skippy
  3840  				}
  3841  			}
  3842  			m.Labels[mapkey] = mapvalue
  3843  			iNdEx = postIndex
  3844  		default:
  3845  			iNdEx = preIndex
  3846  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  3847  			if err != nil {
  3848  				return err
  3849  			}
  3850  			if skippy < 0 {
  3851  				return ErrInvalidLengthSnapshots
  3852  			}
  3853  			if (iNdEx + skippy) < 0 {
  3854  				return ErrInvalidLengthSnapshots
  3855  			}
  3856  			if (iNdEx + skippy) > l {
  3857  				return io.ErrUnexpectedEOF
  3858  			}
  3859  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3860  			iNdEx += skippy
  3861  		}
  3862  	}
  3863  
  3864  	if iNdEx > l {
  3865  		return io.ErrUnexpectedEOF
  3866  	}
  3867  	return nil
  3868  }
  3869  func (m *StatSnapshotRequest) Unmarshal(dAtA []byte) error {
  3870  	l := len(dAtA)
  3871  	iNdEx := 0
  3872  	for iNdEx < l {
  3873  		preIndex := iNdEx
  3874  		var wire uint64
  3875  		for shift := uint(0); ; shift += 7 {
  3876  			if shift >= 64 {
  3877  				return ErrIntOverflowSnapshots
  3878  			}
  3879  			if iNdEx >= l {
  3880  				return io.ErrUnexpectedEOF
  3881  			}
  3882  			b := dAtA[iNdEx]
  3883  			iNdEx++
  3884  			wire |= uint64(b&0x7F) << shift
  3885  			if b < 0x80 {
  3886  				break
  3887  			}
  3888  		}
  3889  		fieldNum := int32(wire >> 3)
  3890  		wireType := int(wire & 0x7)
  3891  		if wireType == 4 {
  3892  			return fmt.Errorf("proto: StatSnapshotRequest: wiretype end group for non-group")
  3893  		}
  3894  		if fieldNum <= 0 {
  3895  			return fmt.Errorf("proto: StatSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3896  		}
  3897  		switch fieldNum {
  3898  		case 1:
  3899  			if wireType != 2 {
  3900  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  3901  			}
  3902  			var stringLen uint64
  3903  			for shift := uint(0); ; shift += 7 {
  3904  				if shift >= 64 {
  3905  					return ErrIntOverflowSnapshots
  3906  				}
  3907  				if iNdEx >= l {
  3908  					return io.ErrUnexpectedEOF
  3909  				}
  3910  				b := dAtA[iNdEx]
  3911  				iNdEx++
  3912  				stringLen |= uint64(b&0x7F) << shift
  3913  				if b < 0x80 {
  3914  					break
  3915  				}
  3916  			}
  3917  			intStringLen := int(stringLen)
  3918  			if intStringLen < 0 {
  3919  				return ErrInvalidLengthSnapshots
  3920  			}
  3921  			postIndex := iNdEx + intStringLen
  3922  			if postIndex < 0 {
  3923  				return ErrInvalidLengthSnapshots
  3924  			}
  3925  			if postIndex > l {
  3926  				return io.ErrUnexpectedEOF
  3927  			}
  3928  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  3929  			iNdEx = postIndex
  3930  		case 2:
  3931  			if wireType != 2 {
  3932  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  3933  			}
  3934  			var stringLen uint64
  3935  			for shift := uint(0); ; shift += 7 {
  3936  				if shift >= 64 {
  3937  					return ErrIntOverflowSnapshots
  3938  				}
  3939  				if iNdEx >= l {
  3940  					return io.ErrUnexpectedEOF
  3941  				}
  3942  				b := dAtA[iNdEx]
  3943  				iNdEx++
  3944  				stringLen |= uint64(b&0x7F) << shift
  3945  				if b < 0x80 {
  3946  					break
  3947  				}
  3948  			}
  3949  			intStringLen := int(stringLen)
  3950  			if intStringLen < 0 {
  3951  				return ErrInvalidLengthSnapshots
  3952  			}
  3953  			postIndex := iNdEx + intStringLen
  3954  			if postIndex < 0 {
  3955  				return ErrInvalidLengthSnapshots
  3956  			}
  3957  			if postIndex > l {
  3958  				return io.ErrUnexpectedEOF
  3959  			}
  3960  			m.Key = string(dAtA[iNdEx:postIndex])
  3961  			iNdEx = postIndex
  3962  		default:
  3963  			iNdEx = preIndex
  3964  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  3965  			if err != nil {
  3966  				return err
  3967  			}
  3968  			if skippy < 0 {
  3969  				return ErrInvalidLengthSnapshots
  3970  			}
  3971  			if (iNdEx + skippy) < 0 {
  3972  				return ErrInvalidLengthSnapshots
  3973  			}
  3974  			if (iNdEx + skippy) > l {
  3975  				return io.ErrUnexpectedEOF
  3976  			}
  3977  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3978  			iNdEx += skippy
  3979  		}
  3980  	}
  3981  
  3982  	if iNdEx > l {
  3983  		return io.ErrUnexpectedEOF
  3984  	}
  3985  	return nil
  3986  }
  3987  func (m *Info) Unmarshal(dAtA []byte) error {
  3988  	l := len(dAtA)
  3989  	iNdEx := 0
  3990  	for iNdEx < l {
  3991  		preIndex := iNdEx
  3992  		var wire uint64
  3993  		for shift := uint(0); ; shift += 7 {
  3994  			if shift >= 64 {
  3995  				return ErrIntOverflowSnapshots
  3996  			}
  3997  			if iNdEx >= l {
  3998  				return io.ErrUnexpectedEOF
  3999  			}
  4000  			b := dAtA[iNdEx]
  4001  			iNdEx++
  4002  			wire |= uint64(b&0x7F) << shift
  4003  			if b < 0x80 {
  4004  				break
  4005  			}
  4006  		}
  4007  		fieldNum := int32(wire >> 3)
  4008  		wireType := int(wire & 0x7)
  4009  		if wireType == 4 {
  4010  			return fmt.Errorf("proto: Info: wiretype end group for non-group")
  4011  		}
  4012  		if fieldNum <= 0 {
  4013  			return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire)
  4014  		}
  4015  		switch fieldNum {
  4016  		case 1:
  4017  			if wireType != 2 {
  4018  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4019  			}
  4020  			var stringLen uint64
  4021  			for shift := uint(0); ; shift += 7 {
  4022  				if shift >= 64 {
  4023  					return ErrIntOverflowSnapshots
  4024  				}
  4025  				if iNdEx >= l {
  4026  					return io.ErrUnexpectedEOF
  4027  				}
  4028  				b := dAtA[iNdEx]
  4029  				iNdEx++
  4030  				stringLen |= uint64(b&0x7F) << shift
  4031  				if b < 0x80 {
  4032  					break
  4033  				}
  4034  			}
  4035  			intStringLen := int(stringLen)
  4036  			if intStringLen < 0 {
  4037  				return ErrInvalidLengthSnapshots
  4038  			}
  4039  			postIndex := iNdEx + intStringLen
  4040  			if postIndex < 0 {
  4041  				return ErrInvalidLengthSnapshots
  4042  			}
  4043  			if postIndex > l {
  4044  				return io.ErrUnexpectedEOF
  4045  			}
  4046  			m.Name = string(dAtA[iNdEx:postIndex])
  4047  			iNdEx = postIndex
  4048  		case 2:
  4049  			if wireType != 2 {
  4050  				return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType)
  4051  			}
  4052  			var stringLen uint64
  4053  			for shift := uint(0); ; shift += 7 {
  4054  				if shift >= 64 {
  4055  					return ErrIntOverflowSnapshots
  4056  				}
  4057  				if iNdEx >= l {
  4058  					return io.ErrUnexpectedEOF
  4059  				}
  4060  				b := dAtA[iNdEx]
  4061  				iNdEx++
  4062  				stringLen |= uint64(b&0x7F) << shift
  4063  				if b < 0x80 {
  4064  					break
  4065  				}
  4066  			}
  4067  			intStringLen := int(stringLen)
  4068  			if intStringLen < 0 {
  4069  				return ErrInvalidLengthSnapshots
  4070  			}
  4071  			postIndex := iNdEx + intStringLen
  4072  			if postIndex < 0 {
  4073  				return ErrInvalidLengthSnapshots
  4074  			}
  4075  			if postIndex > l {
  4076  				return io.ErrUnexpectedEOF
  4077  			}
  4078  			m.Parent = string(dAtA[iNdEx:postIndex])
  4079  			iNdEx = postIndex
  4080  		case 3:
  4081  			if wireType != 0 {
  4082  				return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  4083  			}
  4084  			m.Kind = 0
  4085  			for shift := uint(0); ; shift += 7 {
  4086  				if shift >= 64 {
  4087  					return ErrIntOverflowSnapshots
  4088  				}
  4089  				if iNdEx >= l {
  4090  					return io.ErrUnexpectedEOF
  4091  				}
  4092  				b := dAtA[iNdEx]
  4093  				iNdEx++
  4094  				m.Kind |= Kind(b&0x7F) << shift
  4095  				if b < 0x80 {
  4096  					break
  4097  				}
  4098  			}
  4099  		case 4:
  4100  			if wireType != 2 {
  4101  				return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
  4102  			}
  4103  			var msglen int
  4104  			for shift := uint(0); ; shift += 7 {
  4105  				if shift >= 64 {
  4106  					return ErrIntOverflowSnapshots
  4107  				}
  4108  				if iNdEx >= l {
  4109  					return io.ErrUnexpectedEOF
  4110  				}
  4111  				b := dAtA[iNdEx]
  4112  				iNdEx++
  4113  				msglen |= int(b&0x7F) << shift
  4114  				if b < 0x80 {
  4115  					break
  4116  				}
  4117  			}
  4118  			if msglen < 0 {
  4119  				return ErrInvalidLengthSnapshots
  4120  			}
  4121  			postIndex := iNdEx + msglen
  4122  			if postIndex < 0 {
  4123  				return ErrInvalidLengthSnapshots
  4124  			}
  4125  			if postIndex > l {
  4126  				return io.ErrUnexpectedEOF
  4127  			}
  4128  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
  4129  				return err
  4130  			}
  4131  			iNdEx = postIndex
  4132  		case 5:
  4133  			if wireType != 2 {
  4134  				return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType)
  4135  			}
  4136  			var msglen int
  4137  			for shift := uint(0); ; shift += 7 {
  4138  				if shift >= 64 {
  4139  					return ErrIntOverflowSnapshots
  4140  				}
  4141  				if iNdEx >= l {
  4142  					return io.ErrUnexpectedEOF
  4143  				}
  4144  				b := dAtA[iNdEx]
  4145  				iNdEx++
  4146  				msglen |= int(b&0x7F) << shift
  4147  				if b < 0x80 {
  4148  					break
  4149  				}
  4150  			}
  4151  			if msglen < 0 {
  4152  				return ErrInvalidLengthSnapshots
  4153  			}
  4154  			postIndex := iNdEx + msglen
  4155  			if postIndex < 0 {
  4156  				return ErrInvalidLengthSnapshots
  4157  			}
  4158  			if postIndex > l {
  4159  				return io.ErrUnexpectedEOF
  4160  			}
  4161  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil {
  4162  				return err
  4163  			}
  4164  			iNdEx = postIndex
  4165  		case 6:
  4166  			if wireType != 2 {
  4167  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  4168  			}
  4169  			var msglen int
  4170  			for shift := uint(0); ; shift += 7 {
  4171  				if shift >= 64 {
  4172  					return ErrIntOverflowSnapshots
  4173  				}
  4174  				if iNdEx >= l {
  4175  					return io.ErrUnexpectedEOF
  4176  				}
  4177  				b := dAtA[iNdEx]
  4178  				iNdEx++
  4179  				msglen |= int(b&0x7F) << shift
  4180  				if b < 0x80 {
  4181  					break
  4182  				}
  4183  			}
  4184  			if msglen < 0 {
  4185  				return ErrInvalidLengthSnapshots
  4186  			}
  4187  			postIndex := iNdEx + msglen
  4188  			if postIndex < 0 {
  4189  				return ErrInvalidLengthSnapshots
  4190  			}
  4191  			if postIndex > l {
  4192  				return io.ErrUnexpectedEOF
  4193  			}
  4194  			if m.Labels == nil {
  4195  				m.Labels = make(map[string]string)
  4196  			}
  4197  			var mapkey string
  4198  			var mapvalue string
  4199  			for iNdEx < postIndex {
  4200  				entryPreIndex := iNdEx
  4201  				var wire uint64
  4202  				for shift := uint(0); ; shift += 7 {
  4203  					if shift >= 64 {
  4204  						return ErrIntOverflowSnapshots
  4205  					}
  4206  					if iNdEx >= l {
  4207  						return io.ErrUnexpectedEOF
  4208  					}
  4209  					b := dAtA[iNdEx]
  4210  					iNdEx++
  4211  					wire |= uint64(b&0x7F) << shift
  4212  					if b < 0x80 {
  4213  						break
  4214  					}
  4215  				}
  4216  				fieldNum := int32(wire >> 3)
  4217  				if fieldNum == 1 {
  4218  					var stringLenmapkey uint64
  4219  					for shift := uint(0); ; shift += 7 {
  4220  						if shift >= 64 {
  4221  							return ErrIntOverflowSnapshots
  4222  						}
  4223  						if iNdEx >= l {
  4224  							return io.ErrUnexpectedEOF
  4225  						}
  4226  						b := dAtA[iNdEx]
  4227  						iNdEx++
  4228  						stringLenmapkey |= uint64(b&0x7F) << shift
  4229  						if b < 0x80 {
  4230  							break
  4231  						}
  4232  					}
  4233  					intStringLenmapkey := int(stringLenmapkey)
  4234  					if intStringLenmapkey < 0 {
  4235  						return ErrInvalidLengthSnapshots
  4236  					}
  4237  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  4238  					if postStringIndexmapkey < 0 {
  4239  						return ErrInvalidLengthSnapshots
  4240  					}
  4241  					if postStringIndexmapkey > l {
  4242  						return io.ErrUnexpectedEOF
  4243  					}
  4244  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  4245  					iNdEx = postStringIndexmapkey
  4246  				} else if fieldNum == 2 {
  4247  					var stringLenmapvalue uint64
  4248  					for shift := uint(0); ; shift += 7 {
  4249  						if shift >= 64 {
  4250  							return ErrIntOverflowSnapshots
  4251  						}
  4252  						if iNdEx >= l {
  4253  							return io.ErrUnexpectedEOF
  4254  						}
  4255  						b := dAtA[iNdEx]
  4256  						iNdEx++
  4257  						stringLenmapvalue |= uint64(b&0x7F) << shift
  4258  						if b < 0x80 {
  4259  							break
  4260  						}
  4261  					}
  4262  					intStringLenmapvalue := int(stringLenmapvalue)
  4263  					if intStringLenmapvalue < 0 {
  4264  						return ErrInvalidLengthSnapshots
  4265  					}
  4266  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  4267  					if postStringIndexmapvalue < 0 {
  4268  						return ErrInvalidLengthSnapshots
  4269  					}
  4270  					if postStringIndexmapvalue > l {
  4271  						return io.ErrUnexpectedEOF
  4272  					}
  4273  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  4274  					iNdEx = postStringIndexmapvalue
  4275  				} else {
  4276  					iNdEx = entryPreIndex
  4277  					skippy, err := skipSnapshots(dAtA[iNdEx:])
  4278  					if err != nil {
  4279  						return err
  4280  					}
  4281  					if skippy < 0 {
  4282  						return ErrInvalidLengthSnapshots
  4283  					}
  4284  					if (iNdEx + skippy) > postIndex {
  4285  						return io.ErrUnexpectedEOF
  4286  					}
  4287  					iNdEx += skippy
  4288  				}
  4289  			}
  4290  			m.Labels[mapkey] = mapvalue
  4291  			iNdEx = postIndex
  4292  		default:
  4293  			iNdEx = preIndex
  4294  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  4295  			if err != nil {
  4296  				return err
  4297  			}
  4298  			if skippy < 0 {
  4299  				return ErrInvalidLengthSnapshots
  4300  			}
  4301  			if (iNdEx + skippy) < 0 {
  4302  				return ErrInvalidLengthSnapshots
  4303  			}
  4304  			if (iNdEx + skippy) > l {
  4305  				return io.ErrUnexpectedEOF
  4306  			}
  4307  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4308  			iNdEx += skippy
  4309  		}
  4310  	}
  4311  
  4312  	if iNdEx > l {
  4313  		return io.ErrUnexpectedEOF
  4314  	}
  4315  	return nil
  4316  }
  4317  func (m *StatSnapshotResponse) Unmarshal(dAtA []byte) error {
  4318  	l := len(dAtA)
  4319  	iNdEx := 0
  4320  	for iNdEx < l {
  4321  		preIndex := iNdEx
  4322  		var wire uint64
  4323  		for shift := uint(0); ; shift += 7 {
  4324  			if shift >= 64 {
  4325  				return ErrIntOverflowSnapshots
  4326  			}
  4327  			if iNdEx >= l {
  4328  				return io.ErrUnexpectedEOF
  4329  			}
  4330  			b := dAtA[iNdEx]
  4331  			iNdEx++
  4332  			wire |= uint64(b&0x7F) << shift
  4333  			if b < 0x80 {
  4334  				break
  4335  			}
  4336  		}
  4337  		fieldNum := int32(wire >> 3)
  4338  		wireType := int(wire & 0x7)
  4339  		if wireType == 4 {
  4340  			return fmt.Errorf("proto: StatSnapshotResponse: wiretype end group for non-group")
  4341  		}
  4342  		if fieldNum <= 0 {
  4343  			return fmt.Errorf("proto: StatSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4344  		}
  4345  		switch fieldNum {
  4346  		case 1:
  4347  			if wireType != 2 {
  4348  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  4349  			}
  4350  			var msglen int
  4351  			for shift := uint(0); ; shift += 7 {
  4352  				if shift >= 64 {
  4353  					return ErrIntOverflowSnapshots
  4354  				}
  4355  				if iNdEx >= l {
  4356  					return io.ErrUnexpectedEOF
  4357  				}
  4358  				b := dAtA[iNdEx]
  4359  				iNdEx++
  4360  				msglen |= int(b&0x7F) << shift
  4361  				if b < 0x80 {
  4362  					break
  4363  				}
  4364  			}
  4365  			if msglen < 0 {
  4366  				return ErrInvalidLengthSnapshots
  4367  			}
  4368  			postIndex := iNdEx + msglen
  4369  			if postIndex < 0 {
  4370  				return ErrInvalidLengthSnapshots
  4371  			}
  4372  			if postIndex > l {
  4373  				return io.ErrUnexpectedEOF
  4374  			}
  4375  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4376  				return err
  4377  			}
  4378  			iNdEx = postIndex
  4379  		default:
  4380  			iNdEx = preIndex
  4381  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  4382  			if err != nil {
  4383  				return err
  4384  			}
  4385  			if skippy < 0 {
  4386  				return ErrInvalidLengthSnapshots
  4387  			}
  4388  			if (iNdEx + skippy) < 0 {
  4389  				return ErrInvalidLengthSnapshots
  4390  			}
  4391  			if (iNdEx + skippy) > l {
  4392  				return io.ErrUnexpectedEOF
  4393  			}
  4394  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4395  			iNdEx += skippy
  4396  		}
  4397  	}
  4398  
  4399  	if iNdEx > l {
  4400  		return io.ErrUnexpectedEOF
  4401  	}
  4402  	return nil
  4403  }
  4404  func (m *UpdateSnapshotRequest) Unmarshal(dAtA []byte) error {
  4405  	l := len(dAtA)
  4406  	iNdEx := 0
  4407  	for iNdEx < l {
  4408  		preIndex := iNdEx
  4409  		var wire uint64
  4410  		for shift := uint(0); ; shift += 7 {
  4411  			if shift >= 64 {
  4412  				return ErrIntOverflowSnapshots
  4413  			}
  4414  			if iNdEx >= l {
  4415  				return io.ErrUnexpectedEOF
  4416  			}
  4417  			b := dAtA[iNdEx]
  4418  			iNdEx++
  4419  			wire |= uint64(b&0x7F) << shift
  4420  			if b < 0x80 {
  4421  				break
  4422  			}
  4423  		}
  4424  		fieldNum := int32(wire >> 3)
  4425  		wireType := int(wire & 0x7)
  4426  		if wireType == 4 {
  4427  			return fmt.Errorf("proto: UpdateSnapshotRequest: wiretype end group for non-group")
  4428  		}
  4429  		if fieldNum <= 0 {
  4430  			return fmt.Errorf("proto: UpdateSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4431  		}
  4432  		switch fieldNum {
  4433  		case 1:
  4434  			if wireType != 2 {
  4435  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  4436  			}
  4437  			var stringLen uint64
  4438  			for shift := uint(0); ; shift += 7 {
  4439  				if shift >= 64 {
  4440  					return ErrIntOverflowSnapshots
  4441  				}
  4442  				if iNdEx >= l {
  4443  					return io.ErrUnexpectedEOF
  4444  				}
  4445  				b := dAtA[iNdEx]
  4446  				iNdEx++
  4447  				stringLen |= uint64(b&0x7F) << shift
  4448  				if b < 0x80 {
  4449  					break
  4450  				}
  4451  			}
  4452  			intStringLen := int(stringLen)
  4453  			if intStringLen < 0 {
  4454  				return ErrInvalidLengthSnapshots
  4455  			}
  4456  			postIndex := iNdEx + intStringLen
  4457  			if postIndex < 0 {
  4458  				return ErrInvalidLengthSnapshots
  4459  			}
  4460  			if postIndex > l {
  4461  				return io.ErrUnexpectedEOF
  4462  			}
  4463  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  4464  			iNdEx = postIndex
  4465  		case 2:
  4466  			if wireType != 2 {
  4467  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  4468  			}
  4469  			var msglen int
  4470  			for shift := uint(0); ; shift += 7 {
  4471  				if shift >= 64 {
  4472  					return ErrIntOverflowSnapshots
  4473  				}
  4474  				if iNdEx >= l {
  4475  					return io.ErrUnexpectedEOF
  4476  				}
  4477  				b := dAtA[iNdEx]
  4478  				iNdEx++
  4479  				msglen |= int(b&0x7F) << shift
  4480  				if b < 0x80 {
  4481  					break
  4482  				}
  4483  			}
  4484  			if msglen < 0 {
  4485  				return ErrInvalidLengthSnapshots
  4486  			}
  4487  			postIndex := iNdEx + msglen
  4488  			if postIndex < 0 {
  4489  				return ErrInvalidLengthSnapshots
  4490  			}
  4491  			if postIndex > l {
  4492  				return io.ErrUnexpectedEOF
  4493  			}
  4494  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4495  				return err
  4496  			}
  4497  			iNdEx = postIndex
  4498  		case 3:
  4499  			if wireType != 2 {
  4500  				return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType)
  4501  			}
  4502  			var msglen int
  4503  			for shift := uint(0); ; shift += 7 {
  4504  				if shift >= 64 {
  4505  					return ErrIntOverflowSnapshots
  4506  				}
  4507  				if iNdEx >= l {
  4508  					return io.ErrUnexpectedEOF
  4509  				}
  4510  				b := dAtA[iNdEx]
  4511  				iNdEx++
  4512  				msglen |= int(b&0x7F) << shift
  4513  				if b < 0x80 {
  4514  					break
  4515  				}
  4516  			}
  4517  			if msglen < 0 {
  4518  				return ErrInvalidLengthSnapshots
  4519  			}
  4520  			postIndex := iNdEx + msglen
  4521  			if postIndex < 0 {
  4522  				return ErrInvalidLengthSnapshots
  4523  			}
  4524  			if postIndex > l {
  4525  				return io.ErrUnexpectedEOF
  4526  			}
  4527  			if m.UpdateMask == nil {
  4528  				m.UpdateMask = &types1.FieldMask{}
  4529  			}
  4530  			if err := m.UpdateMask.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4531  				return err
  4532  			}
  4533  			iNdEx = postIndex
  4534  		default:
  4535  			iNdEx = preIndex
  4536  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  4537  			if err != nil {
  4538  				return err
  4539  			}
  4540  			if skippy < 0 {
  4541  				return ErrInvalidLengthSnapshots
  4542  			}
  4543  			if (iNdEx + skippy) < 0 {
  4544  				return ErrInvalidLengthSnapshots
  4545  			}
  4546  			if (iNdEx + skippy) > l {
  4547  				return io.ErrUnexpectedEOF
  4548  			}
  4549  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4550  			iNdEx += skippy
  4551  		}
  4552  	}
  4553  
  4554  	if iNdEx > l {
  4555  		return io.ErrUnexpectedEOF
  4556  	}
  4557  	return nil
  4558  }
  4559  func (m *UpdateSnapshotResponse) Unmarshal(dAtA []byte) error {
  4560  	l := len(dAtA)
  4561  	iNdEx := 0
  4562  	for iNdEx < l {
  4563  		preIndex := iNdEx
  4564  		var wire uint64
  4565  		for shift := uint(0); ; shift += 7 {
  4566  			if shift >= 64 {
  4567  				return ErrIntOverflowSnapshots
  4568  			}
  4569  			if iNdEx >= l {
  4570  				return io.ErrUnexpectedEOF
  4571  			}
  4572  			b := dAtA[iNdEx]
  4573  			iNdEx++
  4574  			wire |= uint64(b&0x7F) << shift
  4575  			if b < 0x80 {
  4576  				break
  4577  			}
  4578  		}
  4579  		fieldNum := int32(wire >> 3)
  4580  		wireType := int(wire & 0x7)
  4581  		if wireType == 4 {
  4582  			return fmt.Errorf("proto: UpdateSnapshotResponse: wiretype end group for non-group")
  4583  		}
  4584  		if fieldNum <= 0 {
  4585  			return fmt.Errorf("proto: UpdateSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4586  		}
  4587  		switch fieldNum {
  4588  		case 1:
  4589  			if wireType != 2 {
  4590  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  4591  			}
  4592  			var msglen int
  4593  			for shift := uint(0); ; shift += 7 {
  4594  				if shift >= 64 {
  4595  					return ErrIntOverflowSnapshots
  4596  				}
  4597  				if iNdEx >= l {
  4598  					return io.ErrUnexpectedEOF
  4599  				}
  4600  				b := dAtA[iNdEx]
  4601  				iNdEx++
  4602  				msglen |= int(b&0x7F) << shift
  4603  				if b < 0x80 {
  4604  					break
  4605  				}
  4606  			}
  4607  			if msglen < 0 {
  4608  				return ErrInvalidLengthSnapshots
  4609  			}
  4610  			postIndex := iNdEx + msglen
  4611  			if postIndex < 0 {
  4612  				return ErrInvalidLengthSnapshots
  4613  			}
  4614  			if postIndex > l {
  4615  				return io.ErrUnexpectedEOF
  4616  			}
  4617  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4618  				return err
  4619  			}
  4620  			iNdEx = postIndex
  4621  		default:
  4622  			iNdEx = preIndex
  4623  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  4624  			if err != nil {
  4625  				return err
  4626  			}
  4627  			if skippy < 0 {
  4628  				return ErrInvalidLengthSnapshots
  4629  			}
  4630  			if (iNdEx + skippy) < 0 {
  4631  				return ErrInvalidLengthSnapshots
  4632  			}
  4633  			if (iNdEx + skippy) > l {
  4634  				return io.ErrUnexpectedEOF
  4635  			}
  4636  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4637  			iNdEx += skippy
  4638  		}
  4639  	}
  4640  
  4641  	if iNdEx > l {
  4642  		return io.ErrUnexpectedEOF
  4643  	}
  4644  	return nil
  4645  }
  4646  func (m *ListSnapshotsRequest) Unmarshal(dAtA []byte) error {
  4647  	l := len(dAtA)
  4648  	iNdEx := 0
  4649  	for iNdEx < l {
  4650  		preIndex := iNdEx
  4651  		var wire uint64
  4652  		for shift := uint(0); ; shift += 7 {
  4653  			if shift >= 64 {
  4654  				return ErrIntOverflowSnapshots
  4655  			}
  4656  			if iNdEx >= l {
  4657  				return io.ErrUnexpectedEOF
  4658  			}
  4659  			b := dAtA[iNdEx]
  4660  			iNdEx++
  4661  			wire |= uint64(b&0x7F) << shift
  4662  			if b < 0x80 {
  4663  				break
  4664  			}
  4665  		}
  4666  		fieldNum := int32(wire >> 3)
  4667  		wireType := int(wire & 0x7)
  4668  		if wireType == 4 {
  4669  			return fmt.Errorf("proto: ListSnapshotsRequest: wiretype end group for non-group")
  4670  		}
  4671  		if fieldNum <= 0 {
  4672  			return fmt.Errorf("proto: ListSnapshotsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4673  		}
  4674  		switch fieldNum {
  4675  		case 1:
  4676  			if wireType != 2 {
  4677  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  4678  			}
  4679  			var stringLen uint64
  4680  			for shift := uint(0); ; shift += 7 {
  4681  				if shift >= 64 {
  4682  					return ErrIntOverflowSnapshots
  4683  				}
  4684  				if iNdEx >= l {
  4685  					return io.ErrUnexpectedEOF
  4686  				}
  4687  				b := dAtA[iNdEx]
  4688  				iNdEx++
  4689  				stringLen |= uint64(b&0x7F) << shift
  4690  				if b < 0x80 {
  4691  					break
  4692  				}
  4693  			}
  4694  			intStringLen := int(stringLen)
  4695  			if intStringLen < 0 {
  4696  				return ErrInvalidLengthSnapshots
  4697  			}
  4698  			postIndex := iNdEx + intStringLen
  4699  			if postIndex < 0 {
  4700  				return ErrInvalidLengthSnapshots
  4701  			}
  4702  			if postIndex > l {
  4703  				return io.ErrUnexpectedEOF
  4704  			}
  4705  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  4706  			iNdEx = postIndex
  4707  		default:
  4708  			iNdEx = preIndex
  4709  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  4710  			if err != nil {
  4711  				return err
  4712  			}
  4713  			if skippy < 0 {
  4714  				return ErrInvalidLengthSnapshots
  4715  			}
  4716  			if (iNdEx + skippy) < 0 {
  4717  				return ErrInvalidLengthSnapshots
  4718  			}
  4719  			if (iNdEx + skippy) > l {
  4720  				return io.ErrUnexpectedEOF
  4721  			}
  4722  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4723  			iNdEx += skippy
  4724  		}
  4725  	}
  4726  
  4727  	if iNdEx > l {
  4728  		return io.ErrUnexpectedEOF
  4729  	}
  4730  	return nil
  4731  }
  4732  func (m *ListSnapshotsResponse) Unmarshal(dAtA []byte) error {
  4733  	l := len(dAtA)
  4734  	iNdEx := 0
  4735  	for iNdEx < l {
  4736  		preIndex := iNdEx
  4737  		var wire uint64
  4738  		for shift := uint(0); ; shift += 7 {
  4739  			if shift >= 64 {
  4740  				return ErrIntOverflowSnapshots
  4741  			}
  4742  			if iNdEx >= l {
  4743  				return io.ErrUnexpectedEOF
  4744  			}
  4745  			b := dAtA[iNdEx]
  4746  			iNdEx++
  4747  			wire |= uint64(b&0x7F) << shift
  4748  			if b < 0x80 {
  4749  				break
  4750  			}
  4751  		}
  4752  		fieldNum := int32(wire >> 3)
  4753  		wireType := int(wire & 0x7)
  4754  		if wireType == 4 {
  4755  			return fmt.Errorf("proto: ListSnapshotsResponse: wiretype end group for non-group")
  4756  		}
  4757  		if fieldNum <= 0 {
  4758  			return fmt.Errorf("proto: ListSnapshotsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4759  		}
  4760  		switch fieldNum {
  4761  		case 1:
  4762  			if wireType != 2 {
  4763  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  4764  			}
  4765  			var msglen int
  4766  			for shift := uint(0); ; shift += 7 {
  4767  				if shift >= 64 {
  4768  					return ErrIntOverflowSnapshots
  4769  				}
  4770  				if iNdEx >= l {
  4771  					return io.ErrUnexpectedEOF
  4772  				}
  4773  				b := dAtA[iNdEx]
  4774  				iNdEx++
  4775  				msglen |= int(b&0x7F) << shift
  4776  				if b < 0x80 {
  4777  					break
  4778  				}
  4779  			}
  4780  			if msglen < 0 {
  4781  				return ErrInvalidLengthSnapshots
  4782  			}
  4783  			postIndex := iNdEx + msglen
  4784  			if postIndex < 0 {
  4785  				return ErrInvalidLengthSnapshots
  4786  			}
  4787  			if postIndex > l {
  4788  				return io.ErrUnexpectedEOF
  4789  			}
  4790  			m.Info = append(m.Info, Info{})
  4791  			if err := m.Info[len(m.Info)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4792  				return err
  4793  			}
  4794  			iNdEx = postIndex
  4795  		default:
  4796  			iNdEx = preIndex
  4797  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  4798  			if err != nil {
  4799  				return err
  4800  			}
  4801  			if skippy < 0 {
  4802  				return ErrInvalidLengthSnapshots
  4803  			}
  4804  			if (iNdEx + skippy) < 0 {
  4805  				return ErrInvalidLengthSnapshots
  4806  			}
  4807  			if (iNdEx + skippy) > l {
  4808  				return io.ErrUnexpectedEOF
  4809  			}
  4810  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4811  			iNdEx += skippy
  4812  		}
  4813  	}
  4814  
  4815  	if iNdEx > l {
  4816  		return io.ErrUnexpectedEOF
  4817  	}
  4818  	return nil
  4819  }
  4820  func (m *UsageRequest) Unmarshal(dAtA []byte) error {
  4821  	l := len(dAtA)
  4822  	iNdEx := 0
  4823  	for iNdEx < l {
  4824  		preIndex := iNdEx
  4825  		var wire uint64
  4826  		for shift := uint(0); ; shift += 7 {
  4827  			if shift >= 64 {
  4828  				return ErrIntOverflowSnapshots
  4829  			}
  4830  			if iNdEx >= l {
  4831  				return io.ErrUnexpectedEOF
  4832  			}
  4833  			b := dAtA[iNdEx]
  4834  			iNdEx++
  4835  			wire |= uint64(b&0x7F) << shift
  4836  			if b < 0x80 {
  4837  				break
  4838  			}
  4839  		}
  4840  		fieldNum := int32(wire >> 3)
  4841  		wireType := int(wire & 0x7)
  4842  		if wireType == 4 {
  4843  			return fmt.Errorf("proto: UsageRequest: wiretype end group for non-group")
  4844  		}
  4845  		if fieldNum <= 0 {
  4846  			return fmt.Errorf("proto: UsageRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4847  		}
  4848  		switch fieldNum {
  4849  		case 1:
  4850  			if wireType != 2 {
  4851  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType)
  4852  			}
  4853  			var stringLen uint64
  4854  			for shift := uint(0); ; shift += 7 {
  4855  				if shift >= 64 {
  4856  					return ErrIntOverflowSnapshots
  4857  				}
  4858  				if iNdEx >= l {
  4859  					return io.ErrUnexpectedEOF
  4860  				}
  4861  				b := dAtA[iNdEx]
  4862  				iNdEx++
  4863  				stringLen |= uint64(b&0x7F) << shift
  4864  				if b < 0x80 {
  4865  					break
  4866  				}
  4867  			}
  4868  			intStringLen := int(stringLen)
  4869  			if intStringLen < 0 {
  4870  				return ErrInvalidLengthSnapshots
  4871  			}
  4872  			postIndex := iNdEx + intStringLen
  4873  			if postIndex < 0 {
  4874  				return ErrInvalidLengthSnapshots
  4875  			}
  4876  			if postIndex > l {
  4877  				return io.ErrUnexpectedEOF
  4878  			}
  4879  			m.Snapshotter = string(dAtA[iNdEx:postIndex])
  4880  			iNdEx = postIndex
  4881  		case 2:
  4882  			if wireType != 2 {
  4883  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  4884  			}
  4885  			var stringLen uint64
  4886  			for shift := uint(0); ; shift += 7 {
  4887  				if shift >= 64 {
  4888  					return ErrIntOverflowSnapshots
  4889  				}
  4890  				if iNdEx >= l {
  4891  					return io.ErrUnexpectedEOF
  4892  				}
  4893  				b := dAtA[iNdEx]
  4894  				iNdEx++
  4895  				stringLen |= uint64(b&0x7F) << shift
  4896  				if b < 0x80 {
  4897  					break
  4898  				}
  4899  			}
  4900  			intStringLen := int(stringLen)
  4901  			if intStringLen < 0 {
  4902  				return ErrInvalidLengthSnapshots
  4903  			}
  4904  			postIndex := iNdEx + intStringLen
  4905  			if postIndex < 0 {
  4906  				return ErrInvalidLengthSnapshots
  4907  			}
  4908  			if postIndex > l {
  4909  				return io.ErrUnexpectedEOF
  4910  			}
  4911  			m.Key = string(dAtA[iNdEx:postIndex])
  4912  			iNdEx = postIndex
  4913  		default:
  4914  			iNdEx = preIndex
  4915  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  4916  			if err != nil {
  4917  				return err
  4918  			}
  4919  			if skippy < 0 {
  4920  				return ErrInvalidLengthSnapshots
  4921  			}
  4922  			if (iNdEx + skippy) < 0 {
  4923  				return ErrInvalidLengthSnapshots
  4924  			}
  4925  			if (iNdEx + skippy) > l {
  4926  				return io.ErrUnexpectedEOF
  4927  			}
  4928  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4929  			iNdEx += skippy
  4930  		}
  4931  	}
  4932  
  4933  	if iNdEx > l {
  4934  		return io.ErrUnexpectedEOF
  4935  	}
  4936  	return nil
  4937  }
  4938  func (m *UsageResponse) Unmarshal(dAtA []byte) error {
  4939  	l := len(dAtA)
  4940  	iNdEx := 0
  4941  	for iNdEx < l {
  4942  		preIndex := iNdEx
  4943  		var wire uint64
  4944  		for shift := uint(0); ; shift += 7 {
  4945  			if shift >= 64 {
  4946  				return ErrIntOverflowSnapshots
  4947  			}
  4948  			if iNdEx >= l {
  4949  				return io.ErrUnexpectedEOF
  4950  			}
  4951  			b := dAtA[iNdEx]
  4952  			iNdEx++
  4953  			wire |= uint64(b&0x7F) << shift
  4954  			if b < 0x80 {
  4955  				break
  4956  			}
  4957  		}
  4958  		fieldNum := int32(wire >> 3)
  4959  		wireType := int(wire & 0x7)
  4960  		if wireType == 4 {
  4961  			return fmt.Errorf("proto: UsageResponse: wiretype end group for non-group")
  4962  		}
  4963  		if fieldNum <= 0 {
  4964  			return fmt.Errorf("proto: UsageResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4965  		}
  4966  		switch fieldNum {
  4967  		case 1:
  4968  			if wireType != 0 {
  4969  				return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
  4970  			}
  4971  			m.Size_ = 0
  4972  			for shift := uint(0); ; shift += 7 {
  4973  				if shift >= 64 {
  4974  					return ErrIntOverflowSnapshots
  4975  				}
  4976  				if iNdEx >= l {
  4977  					return io.ErrUnexpectedEOF
  4978  				}
  4979  				b := dAtA[iNdEx]
  4980  				iNdEx++
  4981  				m.Size_ |= int64(b&0x7F) << shift
  4982  				if b < 0x80 {
  4983  					break
  4984  				}
  4985  			}
  4986  		case 2:
  4987  			if wireType != 0 {
  4988  				return fmt.Errorf("proto: wrong wireType = %d for field Inodes", wireType)
  4989  			}
  4990  			m.Inodes = 0
  4991  			for shift := uint(0); ; shift += 7 {
  4992  				if shift >= 64 {
  4993  					return ErrIntOverflowSnapshots
  4994  				}
  4995  				if iNdEx >= l {
  4996  					return io.ErrUnexpectedEOF
  4997  				}
  4998  				b := dAtA[iNdEx]
  4999  				iNdEx++
  5000  				m.Inodes |= int64(b&0x7F) << shift
  5001  				if b < 0x80 {
  5002  					break
  5003  				}
  5004  			}
  5005  		default:
  5006  			iNdEx = preIndex
  5007  			skippy, err := skipSnapshots(dAtA[iNdEx:])
  5008  			if err != nil {
  5009  				return err
  5010  			}
  5011  			if skippy < 0 {
  5012  				return ErrInvalidLengthSnapshots
  5013  			}
  5014  			if (iNdEx + skippy) < 0 {
  5015  				return ErrInvalidLengthSnapshots
  5016  			}
  5017  			if (iNdEx + skippy) > l {
  5018  				return io.ErrUnexpectedEOF
  5019  			}
  5020  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5021  			iNdEx += skippy
  5022  		}
  5023  	}
  5024  
  5025  	if iNdEx > l {
  5026  		return io.ErrUnexpectedEOF
  5027  	}
  5028  	return nil
  5029  }
  5030  func skipSnapshots(dAtA []byte) (n int, err error) {
  5031  	l := len(dAtA)
  5032  	iNdEx := 0
  5033  	for iNdEx < l {
  5034  		var wire uint64
  5035  		for shift := uint(0); ; shift += 7 {
  5036  			if shift >= 64 {
  5037  				return 0, ErrIntOverflowSnapshots
  5038  			}
  5039  			if iNdEx >= l {
  5040  				return 0, io.ErrUnexpectedEOF
  5041  			}
  5042  			b := dAtA[iNdEx]
  5043  			iNdEx++
  5044  			wire |= (uint64(b) & 0x7F) << shift
  5045  			if b < 0x80 {
  5046  				break
  5047  			}
  5048  		}
  5049  		wireType := int(wire & 0x7)
  5050  		switch wireType {
  5051  		case 0:
  5052  			for shift := uint(0); ; shift += 7 {
  5053  				if shift >= 64 {
  5054  					return 0, ErrIntOverflowSnapshots
  5055  				}
  5056  				if iNdEx >= l {
  5057  					return 0, io.ErrUnexpectedEOF
  5058  				}
  5059  				iNdEx++
  5060  				if dAtA[iNdEx-1] < 0x80 {
  5061  					break
  5062  				}
  5063  			}
  5064  			return iNdEx, nil
  5065  		case 1:
  5066  			iNdEx += 8
  5067  			return iNdEx, nil
  5068  		case 2:
  5069  			var length int
  5070  			for shift := uint(0); ; shift += 7 {
  5071  				if shift >= 64 {
  5072  					return 0, ErrIntOverflowSnapshots
  5073  				}
  5074  				if iNdEx >= l {
  5075  					return 0, io.ErrUnexpectedEOF
  5076  				}
  5077  				b := dAtA[iNdEx]
  5078  				iNdEx++
  5079  				length |= (int(b) & 0x7F) << shift
  5080  				if b < 0x80 {
  5081  					break
  5082  				}
  5083  			}
  5084  			if length < 0 {
  5085  				return 0, ErrInvalidLengthSnapshots
  5086  			}
  5087  			iNdEx += length
  5088  			if iNdEx < 0 {
  5089  				return 0, ErrInvalidLengthSnapshots
  5090  			}
  5091  			return iNdEx, nil
  5092  		case 3:
  5093  			for {
  5094  				var innerWire uint64
  5095  				var start int = iNdEx
  5096  				for shift := uint(0); ; shift += 7 {
  5097  					if shift >= 64 {
  5098  						return 0, ErrIntOverflowSnapshots
  5099  					}
  5100  					if iNdEx >= l {
  5101  						return 0, io.ErrUnexpectedEOF
  5102  					}
  5103  					b := dAtA[iNdEx]
  5104  					iNdEx++
  5105  					innerWire |= (uint64(b) & 0x7F) << shift
  5106  					if b < 0x80 {
  5107  						break
  5108  					}
  5109  				}
  5110  				innerWireType := int(innerWire & 0x7)
  5111  				if innerWireType == 4 {
  5112  					break
  5113  				}
  5114  				next, err := skipSnapshots(dAtA[start:])
  5115  				if err != nil {
  5116  					return 0, err
  5117  				}
  5118  				iNdEx = start + next
  5119  				if iNdEx < 0 {
  5120  					return 0, ErrInvalidLengthSnapshots
  5121  				}
  5122  			}
  5123  			return iNdEx, nil
  5124  		case 4:
  5125  			return iNdEx, nil
  5126  		case 5:
  5127  			iNdEx += 4
  5128  			return iNdEx, nil
  5129  		default:
  5130  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5131  		}
  5132  	}
  5133  	panic("unreachable")
  5134  }
  5135  
  5136  var (
  5137  	ErrInvalidLengthSnapshots = fmt.Errorf("proto: negative length found during unmarshaling")
  5138  	ErrIntOverflowSnapshots   = fmt.Errorf("proto: integer overflow")
  5139  )