github.com/lalkh/containerd@v1.4.3/api/services/content/v1/content.pb.go (about)

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