github.com/containerd/Containerd@v1.4.13/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) || (iNdEx+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) || (iNdEx+skippy) < 0 {
  3301  				return ErrInvalidLengthContent
  3302  			}
  3303  			if (iNdEx + skippy) > l {
  3304  				return io.ErrUnexpectedEOF
  3305  			}
  3306  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3307  			iNdEx += skippy
  3308  		}
  3309  	}
  3310  
  3311  	if iNdEx > l {
  3312  		return io.ErrUnexpectedEOF
  3313  	}
  3314  	return nil
  3315  }
  3316  func (m *InfoRequest) Unmarshal(dAtA []byte) error {
  3317  	l := len(dAtA)
  3318  	iNdEx := 0
  3319  	for iNdEx < l {
  3320  		preIndex := iNdEx
  3321  		var wire uint64
  3322  		for shift := uint(0); ; shift += 7 {
  3323  			if shift >= 64 {
  3324  				return ErrIntOverflowContent
  3325  			}
  3326  			if iNdEx >= l {
  3327  				return io.ErrUnexpectedEOF
  3328  			}
  3329  			b := dAtA[iNdEx]
  3330  			iNdEx++
  3331  			wire |= uint64(b&0x7F) << shift
  3332  			if b < 0x80 {
  3333  				break
  3334  			}
  3335  		}
  3336  		fieldNum := int32(wire >> 3)
  3337  		wireType := int(wire & 0x7)
  3338  		if wireType == 4 {
  3339  			return fmt.Errorf("proto: InfoRequest: wiretype end group for non-group")
  3340  		}
  3341  		if fieldNum <= 0 {
  3342  			return fmt.Errorf("proto: InfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3343  		}
  3344  		switch fieldNum {
  3345  		case 1:
  3346  			if wireType != 2 {
  3347  				return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType)
  3348  			}
  3349  			var stringLen uint64
  3350  			for shift := uint(0); ; shift += 7 {
  3351  				if shift >= 64 {
  3352  					return ErrIntOverflowContent
  3353  				}
  3354  				if iNdEx >= l {
  3355  					return io.ErrUnexpectedEOF
  3356  				}
  3357  				b := dAtA[iNdEx]
  3358  				iNdEx++
  3359  				stringLen |= uint64(b&0x7F) << shift
  3360  				if b < 0x80 {
  3361  					break
  3362  				}
  3363  			}
  3364  			intStringLen := int(stringLen)
  3365  			if intStringLen < 0 {
  3366  				return ErrInvalidLengthContent
  3367  			}
  3368  			postIndex := iNdEx + intStringLen
  3369  			if postIndex < 0 {
  3370  				return ErrInvalidLengthContent
  3371  			}
  3372  			if postIndex > l {
  3373  				return io.ErrUnexpectedEOF
  3374  			}
  3375  			m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
  3376  			iNdEx = postIndex
  3377  		default:
  3378  			iNdEx = preIndex
  3379  			skippy, err := skipContent(dAtA[iNdEx:])
  3380  			if err != nil {
  3381  				return err
  3382  			}
  3383  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3384  				return ErrInvalidLengthContent
  3385  			}
  3386  			if (iNdEx + skippy) > l {
  3387  				return io.ErrUnexpectedEOF
  3388  			}
  3389  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3390  			iNdEx += skippy
  3391  		}
  3392  	}
  3393  
  3394  	if iNdEx > l {
  3395  		return io.ErrUnexpectedEOF
  3396  	}
  3397  	return nil
  3398  }
  3399  func (m *InfoResponse) Unmarshal(dAtA []byte) error {
  3400  	l := len(dAtA)
  3401  	iNdEx := 0
  3402  	for iNdEx < l {
  3403  		preIndex := iNdEx
  3404  		var wire uint64
  3405  		for shift := uint(0); ; shift += 7 {
  3406  			if shift >= 64 {
  3407  				return ErrIntOverflowContent
  3408  			}
  3409  			if iNdEx >= l {
  3410  				return io.ErrUnexpectedEOF
  3411  			}
  3412  			b := dAtA[iNdEx]
  3413  			iNdEx++
  3414  			wire |= uint64(b&0x7F) << shift
  3415  			if b < 0x80 {
  3416  				break
  3417  			}
  3418  		}
  3419  		fieldNum := int32(wire >> 3)
  3420  		wireType := int(wire & 0x7)
  3421  		if wireType == 4 {
  3422  			return fmt.Errorf("proto: InfoResponse: wiretype end group for non-group")
  3423  		}
  3424  		if fieldNum <= 0 {
  3425  			return fmt.Errorf("proto: InfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3426  		}
  3427  		switch fieldNum {
  3428  		case 1:
  3429  			if wireType != 2 {
  3430  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  3431  			}
  3432  			var msglen int
  3433  			for shift := uint(0); ; shift += 7 {
  3434  				if shift >= 64 {
  3435  					return ErrIntOverflowContent
  3436  				}
  3437  				if iNdEx >= l {
  3438  					return io.ErrUnexpectedEOF
  3439  				}
  3440  				b := dAtA[iNdEx]
  3441  				iNdEx++
  3442  				msglen |= int(b&0x7F) << shift
  3443  				if b < 0x80 {
  3444  					break
  3445  				}
  3446  			}
  3447  			if msglen < 0 {
  3448  				return ErrInvalidLengthContent
  3449  			}
  3450  			postIndex := iNdEx + msglen
  3451  			if postIndex < 0 {
  3452  				return ErrInvalidLengthContent
  3453  			}
  3454  			if postIndex > l {
  3455  				return io.ErrUnexpectedEOF
  3456  			}
  3457  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3458  				return err
  3459  			}
  3460  			iNdEx = postIndex
  3461  		default:
  3462  			iNdEx = preIndex
  3463  			skippy, err := skipContent(dAtA[iNdEx:])
  3464  			if err != nil {
  3465  				return err
  3466  			}
  3467  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3468  				return ErrInvalidLengthContent
  3469  			}
  3470  			if (iNdEx + skippy) > l {
  3471  				return io.ErrUnexpectedEOF
  3472  			}
  3473  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3474  			iNdEx += skippy
  3475  		}
  3476  	}
  3477  
  3478  	if iNdEx > l {
  3479  		return io.ErrUnexpectedEOF
  3480  	}
  3481  	return nil
  3482  }
  3483  func (m *UpdateRequest) Unmarshal(dAtA []byte) error {
  3484  	l := len(dAtA)
  3485  	iNdEx := 0
  3486  	for iNdEx < l {
  3487  		preIndex := iNdEx
  3488  		var wire uint64
  3489  		for shift := uint(0); ; shift += 7 {
  3490  			if shift >= 64 {
  3491  				return ErrIntOverflowContent
  3492  			}
  3493  			if iNdEx >= l {
  3494  				return io.ErrUnexpectedEOF
  3495  			}
  3496  			b := dAtA[iNdEx]
  3497  			iNdEx++
  3498  			wire |= uint64(b&0x7F) << shift
  3499  			if b < 0x80 {
  3500  				break
  3501  			}
  3502  		}
  3503  		fieldNum := int32(wire >> 3)
  3504  		wireType := int(wire & 0x7)
  3505  		if wireType == 4 {
  3506  			return fmt.Errorf("proto: UpdateRequest: wiretype end group for non-group")
  3507  		}
  3508  		if fieldNum <= 0 {
  3509  			return fmt.Errorf("proto: UpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3510  		}
  3511  		switch fieldNum {
  3512  		case 1:
  3513  			if wireType != 2 {
  3514  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  3515  			}
  3516  			var msglen int
  3517  			for shift := uint(0); ; shift += 7 {
  3518  				if shift >= 64 {
  3519  					return ErrIntOverflowContent
  3520  				}
  3521  				if iNdEx >= l {
  3522  					return io.ErrUnexpectedEOF
  3523  				}
  3524  				b := dAtA[iNdEx]
  3525  				iNdEx++
  3526  				msglen |= int(b&0x7F) << shift
  3527  				if b < 0x80 {
  3528  					break
  3529  				}
  3530  			}
  3531  			if msglen < 0 {
  3532  				return ErrInvalidLengthContent
  3533  			}
  3534  			postIndex := iNdEx + msglen
  3535  			if postIndex < 0 {
  3536  				return ErrInvalidLengthContent
  3537  			}
  3538  			if postIndex > l {
  3539  				return io.ErrUnexpectedEOF
  3540  			}
  3541  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3542  				return err
  3543  			}
  3544  			iNdEx = postIndex
  3545  		case 2:
  3546  			if wireType != 2 {
  3547  				return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType)
  3548  			}
  3549  			var msglen int
  3550  			for shift := uint(0); ; shift += 7 {
  3551  				if shift >= 64 {
  3552  					return ErrIntOverflowContent
  3553  				}
  3554  				if iNdEx >= l {
  3555  					return io.ErrUnexpectedEOF
  3556  				}
  3557  				b := dAtA[iNdEx]
  3558  				iNdEx++
  3559  				msglen |= int(b&0x7F) << shift
  3560  				if b < 0x80 {
  3561  					break
  3562  				}
  3563  			}
  3564  			if msglen < 0 {
  3565  				return ErrInvalidLengthContent
  3566  			}
  3567  			postIndex := iNdEx + msglen
  3568  			if postIndex < 0 {
  3569  				return ErrInvalidLengthContent
  3570  			}
  3571  			if postIndex > l {
  3572  				return io.ErrUnexpectedEOF
  3573  			}
  3574  			if m.UpdateMask == nil {
  3575  				m.UpdateMask = &types.FieldMask{}
  3576  			}
  3577  			if err := m.UpdateMask.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3578  				return err
  3579  			}
  3580  			iNdEx = postIndex
  3581  		default:
  3582  			iNdEx = preIndex
  3583  			skippy, err := skipContent(dAtA[iNdEx:])
  3584  			if err != nil {
  3585  				return err
  3586  			}
  3587  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3588  				return ErrInvalidLengthContent
  3589  			}
  3590  			if (iNdEx + skippy) > l {
  3591  				return io.ErrUnexpectedEOF
  3592  			}
  3593  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3594  			iNdEx += skippy
  3595  		}
  3596  	}
  3597  
  3598  	if iNdEx > l {
  3599  		return io.ErrUnexpectedEOF
  3600  	}
  3601  	return nil
  3602  }
  3603  func (m *UpdateResponse) Unmarshal(dAtA []byte) error {
  3604  	l := len(dAtA)
  3605  	iNdEx := 0
  3606  	for iNdEx < l {
  3607  		preIndex := iNdEx
  3608  		var wire uint64
  3609  		for shift := uint(0); ; shift += 7 {
  3610  			if shift >= 64 {
  3611  				return ErrIntOverflowContent
  3612  			}
  3613  			if iNdEx >= l {
  3614  				return io.ErrUnexpectedEOF
  3615  			}
  3616  			b := dAtA[iNdEx]
  3617  			iNdEx++
  3618  			wire |= uint64(b&0x7F) << shift
  3619  			if b < 0x80 {
  3620  				break
  3621  			}
  3622  		}
  3623  		fieldNum := int32(wire >> 3)
  3624  		wireType := int(wire & 0x7)
  3625  		if wireType == 4 {
  3626  			return fmt.Errorf("proto: UpdateResponse: wiretype end group for non-group")
  3627  		}
  3628  		if fieldNum <= 0 {
  3629  			return fmt.Errorf("proto: UpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3630  		}
  3631  		switch fieldNum {
  3632  		case 1:
  3633  			if wireType != 2 {
  3634  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  3635  			}
  3636  			var msglen int
  3637  			for shift := uint(0); ; shift += 7 {
  3638  				if shift >= 64 {
  3639  					return ErrIntOverflowContent
  3640  				}
  3641  				if iNdEx >= l {
  3642  					return io.ErrUnexpectedEOF
  3643  				}
  3644  				b := dAtA[iNdEx]
  3645  				iNdEx++
  3646  				msglen |= int(b&0x7F) << shift
  3647  				if b < 0x80 {
  3648  					break
  3649  				}
  3650  			}
  3651  			if msglen < 0 {
  3652  				return ErrInvalidLengthContent
  3653  			}
  3654  			postIndex := iNdEx + msglen
  3655  			if postIndex < 0 {
  3656  				return ErrInvalidLengthContent
  3657  			}
  3658  			if postIndex > l {
  3659  				return io.ErrUnexpectedEOF
  3660  			}
  3661  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3662  				return err
  3663  			}
  3664  			iNdEx = postIndex
  3665  		default:
  3666  			iNdEx = preIndex
  3667  			skippy, err := skipContent(dAtA[iNdEx:])
  3668  			if err != nil {
  3669  				return err
  3670  			}
  3671  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3672  				return ErrInvalidLengthContent
  3673  			}
  3674  			if (iNdEx + skippy) > l {
  3675  				return io.ErrUnexpectedEOF
  3676  			}
  3677  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3678  			iNdEx += skippy
  3679  		}
  3680  	}
  3681  
  3682  	if iNdEx > l {
  3683  		return io.ErrUnexpectedEOF
  3684  	}
  3685  	return nil
  3686  }
  3687  func (m *ListContentRequest) Unmarshal(dAtA []byte) error {
  3688  	l := len(dAtA)
  3689  	iNdEx := 0
  3690  	for iNdEx < l {
  3691  		preIndex := iNdEx
  3692  		var wire uint64
  3693  		for shift := uint(0); ; shift += 7 {
  3694  			if shift >= 64 {
  3695  				return ErrIntOverflowContent
  3696  			}
  3697  			if iNdEx >= l {
  3698  				return io.ErrUnexpectedEOF
  3699  			}
  3700  			b := dAtA[iNdEx]
  3701  			iNdEx++
  3702  			wire |= uint64(b&0x7F) << shift
  3703  			if b < 0x80 {
  3704  				break
  3705  			}
  3706  		}
  3707  		fieldNum := int32(wire >> 3)
  3708  		wireType := int(wire & 0x7)
  3709  		if wireType == 4 {
  3710  			return fmt.Errorf("proto: ListContentRequest: wiretype end group for non-group")
  3711  		}
  3712  		if fieldNum <= 0 {
  3713  			return fmt.Errorf("proto: ListContentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3714  		}
  3715  		switch fieldNum {
  3716  		case 1:
  3717  			if wireType != 2 {
  3718  				return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
  3719  			}
  3720  			var stringLen uint64
  3721  			for shift := uint(0); ; shift += 7 {
  3722  				if shift >= 64 {
  3723  					return ErrIntOverflowContent
  3724  				}
  3725  				if iNdEx >= l {
  3726  					return io.ErrUnexpectedEOF
  3727  				}
  3728  				b := dAtA[iNdEx]
  3729  				iNdEx++
  3730  				stringLen |= uint64(b&0x7F) << shift
  3731  				if b < 0x80 {
  3732  					break
  3733  				}
  3734  			}
  3735  			intStringLen := int(stringLen)
  3736  			if intStringLen < 0 {
  3737  				return ErrInvalidLengthContent
  3738  			}
  3739  			postIndex := iNdEx + intStringLen
  3740  			if postIndex < 0 {
  3741  				return ErrInvalidLengthContent
  3742  			}
  3743  			if postIndex > l {
  3744  				return io.ErrUnexpectedEOF
  3745  			}
  3746  			m.Filters = append(m.Filters, string(dAtA[iNdEx:postIndex]))
  3747  			iNdEx = postIndex
  3748  		default:
  3749  			iNdEx = preIndex
  3750  			skippy, err := skipContent(dAtA[iNdEx:])
  3751  			if err != nil {
  3752  				return err
  3753  			}
  3754  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3755  				return ErrInvalidLengthContent
  3756  			}
  3757  			if (iNdEx + skippy) > l {
  3758  				return io.ErrUnexpectedEOF
  3759  			}
  3760  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3761  			iNdEx += skippy
  3762  		}
  3763  	}
  3764  
  3765  	if iNdEx > l {
  3766  		return io.ErrUnexpectedEOF
  3767  	}
  3768  	return nil
  3769  }
  3770  func (m *ListContentResponse) Unmarshal(dAtA []byte) error {
  3771  	l := len(dAtA)
  3772  	iNdEx := 0
  3773  	for iNdEx < l {
  3774  		preIndex := iNdEx
  3775  		var wire uint64
  3776  		for shift := uint(0); ; shift += 7 {
  3777  			if shift >= 64 {
  3778  				return ErrIntOverflowContent
  3779  			}
  3780  			if iNdEx >= l {
  3781  				return io.ErrUnexpectedEOF
  3782  			}
  3783  			b := dAtA[iNdEx]
  3784  			iNdEx++
  3785  			wire |= uint64(b&0x7F) << shift
  3786  			if b < 0x80 {
  3787  				break
  3788  			}
  3789  		}
  3790  		fieldNum := int32(wire >> 3)
  3791  		wireType := int(wire & 0x7)
  3792  		if wireType == 4 {
  3793  			return fmt.Errorf("proto: ListContentResponse: wiretype end group for non-group")
  3794  		}
  3795  		if fieldNum <= 0 {
  3796  			return fmt.Errorf("proto: ListContentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3797  		}
  3798  		switch fieldNum {
  3799  		case 1:
  3800  			if wireType != 2 {
  3801  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  3802  			}
  3803  			var msglen int
  3804  			for shift := uint(0); ; shift += 7 {
  3805  				if shift >= 64 {
  3806  					return ErrIntOverflowContent
  3807  				}
  3808  				if iNdEx >= l {
  3809  					return io.ErrUnexpectedEOF
  3810  				}
  3811  				b := dAtA[iNdEx]
  3812  				iNdEx++
  3813  				msglen |= int(b&0x7F) << shift
  3814  				if b < 0x80 {
  3815  					break
  3816  				}
  3817  			}
  3818  			if msglen < 0 {
  3819  				return ErrInvalidLengthContent
  3820  			}
  3821  			postIndex := iNdEx + msglen
  3822  			if postIndex < 0 {
  3823  				return ErrInvalidLengthContent
  3824  			}
  3825  			if postIndex > l {
  3826  				return io.ErrUnexpectedEOF
  3827  			}
  3828  			m.Info = append(m.Info, Info{})
  3829  			if err := m.Info[len(m.Info)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3830  				return err
  3831  			}
  3832  			iNdEx = postIndex
  3833  		default:
  3834  			iNdEx = preIndex
  3835  			skippy, err := skipContent(dAtA[iNdEx:])
  3836  			if err != nil {
  3837  				return err
  3838  			}
  3839  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3840  				return ErrInvalidLengthContent
  3841  			}
  3842  			if (iNdEx + skippy) > l {
  3843  				return io.ErrUnexpectedEOF
  3844  			}
  3845  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3846  			iNdEx += skippy
  3847  		}
  3848  	}
  3849  
  3850  	if iNdEx > l {
  3851  		return io.ErrUnexpectedEOF
  3852  	}
  3853  	return nil
  3854  }
  3855  func (m *DeleteContentRequest) Unmarshal(dAtA []byte) error {
  3856  	l := len(dAtA)
  3857  	iNdEx := 0
  3858  	for iNdEx < l {
  3859  		preIndex := iNdEx
  3860  		var wire uint64
  3861  		for shift := uint(0); ; shift += 7 {
  3862  			if shift >= 64 {
  3863  				return ErrIntOverflowContent
  3864  			}
  3865  			if iNdEx >= l {
  3866  				return io.ErrUnexpectedEOF
  3867  			}
  3868  			b := dAtA[iNdEx]
  3869  			iNdEx++
  3870  			wire |= uint64(b&0x7F) << shift
  3871  			if b < 0x80 {
  3872  				break
  3873  			}
  3874  		}
  3875  		fieldNum := int32(wire >> 3)
  3876  		wireType := int(wire & 0x7)
  3877  		if wireType == 4 {
  3878  			return fmt.Errorf("proto: DeleteContentRequest: wiretype end group for non-group")
  3879  		}
  3880  		if fieldNum <= 0 {
  3881  			return fmt.Errorf("proto: DeleteContentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3882  		}
  3883  		switch fieldNum {
  3884  		case 1:
  3885  			if wireType != 2 {
  3886  				return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType)
  3887  			}
  3888  			var stringLen uint64
  3889  			for shift := uint(0); ; shift += 7 {
  3890  				if shift >= 64 {
  3891  					return ErrIntOverflowContent
  3892  				}
  3893  				if iNdEx >= l {
  3894  					return io.ErrUnexpectedEOF
  3895  				}
  3896  				b := dAtA[iNdEx]
  3897  				iNdEx++
  3898  				stringLen |= uint64(b&0x7F) << shift
  3899  				if b < 0x80 {
  3900  					break
  3901  				}
  3902  			}
  3903  			intStringLen := int(stringLen)
  3904  			if intStringLen < 0 {
  3905  				return ErrInvalidLengthContent
  3906  			}
  3907  			postIndex := iNdEx + intStringLen
  3908  			if postIndex < 0 {
  3909  				return ErrInvalidLengthContent
  3910  			}
  3911  			if postIndex > l {
  3912  				return io.ErrUnexpectedEOF
  3913  			}
  3914  			m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
  3915  			iNdEx = postIndex
  3916  		default:
  3917  			iNdEx = preIndex
  3918  			skippy, err := skipContent(dAtA[iNdEx:])
  3919  			if err != nil {
  3920  				return err
  3921  			}
  3922  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3923  				return ErrInvalidLengthContent
  3924  			}
  3925  			if (iNdEx + skippy) > l {
  3926  				return io.ErrUnexpectedEOF
  3927  			}
  3928  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  3929  			iNdEx += skippy
  3930  		}
  3931  	}
  3932  
  3933  	if iNdEx > l {
  3934  		return io.ErrUnexpectedEOF
  3935  	}
  3936  	return nil
  3937  }
  3938  func (m *ReadContentRequest) Unmarshal(dAtA []byte) error {
  3939  	l := len(dAtA)
  3940  	iNdEx := 0
  3941  	for iNdEx < l {
  3942  		preIndex := iNdEx
  3943  		var wire uint64
  3944  		for shift := uint(0); ; shift += 7 {
  3945  			if shift >= 64 {
  3946  				return ErrIntOverflowContent
  3947  			}
  3948  			if iNdEx >= l {
  3949  				return io.ErrUnexpectedEOF
  3950  			}
  3951  			b := dAtA[iNdEx]
  3952  			iNdEx++
  3953  			wire |= uint64(b&0x7F) << shift
  3954  			if b < 0x80 {
  3955  				break
  3956  			}
  3957  		}
  3958  		fieldNum := int32(wire >> 3)
  3959  		wireType := int(wire & 0x7)
  3960  		if wireType == 4 {
  3961  			return fmt.Errorf("proto: ReadContentRequest: wiretype end group for non-group")
  3962  		}
  3963  		if fieldNum <= 0 {
  3964  			return fmt.Errorf("proto: ReadContentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3965  		}
  3966  		switch fieldNum {
  3967  		case 1:
  3968  			if wireType != 2 {
  3969  				return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType)
  3970  			}
  3971  			var stringLen uint64
  3972  			for shift := uint(0); ; shift += 7 {
  3973  				if shift >= 64 {
  3974  					return ErrIntOverflowContent
  3975  				}
  3976  				if iNdEx >= l {
  3977  					return io.ErrUnexpectedEOF
  3978  				}
  3979  				b := dAtA[iNdEx]
  3980  				iNdEx++
  3981  				stringLen |= uint64(b&0x7F) << shift
  3982  				if b < 0x80 {
  3983  					break
  3984  				}
  3985  			}
  3986  			intStringLen := int(stringLen)
  3987  			if intStringLen < 0 {
  3988  				return ErrInvalidLengthContent
  3989  			}
  3990  			postIndex := iNdEx + intStringLen
  3991  			if postIndex < 0 {
  3992  				return ErrInvalidLengthContent
  3993  			}
  3994  			if postIndex > l {
  3995  				return io.ErrUnexpectedEOF
  3996  			}
  3997  			m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
  3998  			iNdEx = postIndex
  3999  		case 2:
  4000  			if wireType != 0 {
  4001  				return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  4002  			}
  4003  			m.Offset = 0
  4004  			for shift := uint(0); ; shift += 7 {
  4005  				if shift >= 64 {
  4006  					return ErrIntOverflowContent
  4007  				}
  4008  				if iNdEx >= l {
  4009  					return io.ErrUnexpectedEOF
  4010  				}
  4011  				b := dAtA[iNdEx]
  4012  				iNdEx++
  4013  				m.Offset |= int64(b&0x7F) << shift
  4014  				if b < 0x80 {
  4015  					break
  4016  				}
  4017  			}
  4018  		case 3:
  4019  			if wireType != 0 {
  4020  				return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
  4021  			}
  4022  			m.Size_ = 0
  4023  			for shift := uint(0); ; shift += 7 {
  4024  				if shift >= 64 {
  4025  					return ErrIntOverflowContent
  4026  				}
  4027  				if iNdEx >= l {
  4028  					return io.ErrUnexpectedEOF
  4029  				}
  4030  				b := dAtA[iNdEx]
  4031  				iNdEx++
  4032  				m.Size_ |= int64(b&0x7F) << shift
  4033  				if b < 0x80 {
  4034  					break
  4035  				}
  4036  			}
  4037  		default:
  4038  			iNdEx = preIndex
  4039  			skippy, err := skipContent(dAtA[iNdEx:])
  4040  			if err != nil {
  4041  				return err
  4042  			}
  4043  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4044  				return ErrInvalidLengthContent
  4045  			}
  4046  			if (iNdEx + skippy) > l {
  4047  				return io.ErrUnexpectedEOF
  4048  			}
  4049  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4050  			iNdEx += skippy
  4051  		}
  4052  	}
  4053  
  4054  	if iNdEx > l {
  4055  		return io.ErrUnexpectedEOF
  4056  	}
  4057  	return nil
  4058  }
  4059  func (m *ReadContentResponse) Unmarshal(dAtA []byte) error {
  4060  	l := len(dAtA)
  4061  	iNdEx := 0
  4062  	for iNdEx < l {
  4063  		preIndex := iNdEx
  4064  		var wire uint64
  4065  		for shift := uint(0); ; shift += 7 {
  4066  			if shift >= 64 {
  4067  				return ErrIntOverflowContent
  4068  			}
  4069  			if iNdEx >= l {
  4070  				return io.ErrUnexpectedEOF
  4071  			}
  4072  			b := dAtA[iNdEx]
  4073  			iNdEx++
  4074  			wire |= uint64(b&0x7F) << shift
  4075  			if b < 0x80 {
  4076  				break
  4077  			}
  4078  		}
  4079  		fieldNum := int32(wire >> 3)
  4080  		wireType := int(wire & 0x7)
  4081  		if wireType == 4 {
  4082  			return fmt.Errorf("proto: ReadContentResponse: wiretype end group for non-group")
  4083  		}
  4084  		if fieldNum <= 0 {
  4085  			return fmt.Errorf("proto: ReadContentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4086  		}
  4087  		switch fieldNum {
  4088  		case 1:
  4089  			if wireType != 0 {
  4090  				return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  4091  			}
  4092  			m.Offset = 0
  4093  			for shift := uint(0); ; shift += 7 {
  4094  				if shift >= 64 {
  4095  					return ErrIntOverflowContent
  4096  				}
  4097  				if iNdEx >= l {
  4098  					return io.ErrUnexpectedEOF
  4099  				}
  4100  				b := dAtA[iNdEx]
  4101  				iNdEx++
  4102  				m.Offset |= int64(b&0x7F) << shift
  4103  				if b < 0x80 {
  4104  					break
  4105  				}
  4106  			}
  4107  		case 2:
  4108  			if wireType != 2 {
  4109  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  4110  			}
  4111  			var byteLen int
  4112  			for shift := uint(0); ; shift += 7 {
  4113  				if shift >= 64 {
  4114  					return ErrIntOverflowContent
  4115  				}
  4116  				if iNdEx >= l {
  4117  					return io.ErrUnexpectedEOF
  4118  				}
  4119  				b := dAtA[iNdEx]
  4120  				iNdEx++
  4121  				byteLen |= int(b&0x7F) << shift
  4122  				if b < 0x80 {
  4123  					break
  4124  				}
  4125  			}
  4126  			if byteLen < 0 {
  4127  				return ErrInvalidLengthContent
  4128  			}
  4129  			postIndex := iNdEx + byteLen
  4130  			if postIndex < 0 {
  4131  				return ErrInvalidLengthContent
  4132  			}
  4133  			if postIndex > l {
  4134  				return io.ErrUnexpectedEOF
  4135  			}
  4136  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  4137  			if m.Data == nil {
  4138  				m.Data = []byte{}
  4139  			}
  4140  			iNdEx = postIndex
  4141  		default:
  4142  			iNdEx = preIndex
  4143  			skippy, err := skipContent(dAtA[iNdEx:])
  4144  			if err != nil {
  4145  				return err
  4146  			}
  4147  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4148  				return ErrInvalidLengthContent
  4149  			}
  4150  			if (iNdEx + skippy) > l {
  4151  				return io.ErrUnexpectedEOF
  4152  			}
  4153  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4154  			iNdEx += skippy
  4155  		}
  4156  	}
  4157  
  4158  	if iNdEx > l {
  4159  		return io.ErrUnexpectedEOF
  4160  	}
  4161  	return nil
  4162  }
  4163  func (m *Status) Unmarshal(dAtA []byte) error {
  4164  	l := len(dAtA)
  4165  	iNdEx := 0
  4166  	for iNdEx < l {
  4167  		preIndex := iNdEx
  4168  		var wire uint64
  4169  		for shift := uint(0); ; shift += 7 {
  4170  			if shift >= 64 {
  4171  				return ErrIntOverflowContent
  4172  			}
  4173  			if iNdEx >= l {
  4174  				return io.ErrUnexpectedEOF
  4175  			}
  4176  			b := dAtA[iNdEx]
  4177  			iNdEx++
  4178  			wire |= uint64(b&0x7F) << shift
  4179  			if b < 0x80 {
  4180  				break
  4181  			}
  4182  		}
  4183  		fieldNum := int32(wire >> 3)
  4184  		wireType := int(wire & 0x7)
  4185  		if wireType == 4 {
  4186  			return fmt.Errorf("proto: Status: wiretype end group for non-group")
  4187  		}
  4188  		if fieldNum <= 0 {
  4189  			return fmt.Errorf("proto: Status: illegal tag %d (wire type %d)", fieldNum, wire)
  4190  		}
  4191  		switch fieldNum {
  4192  		case 1:
  4193  			if wireType != 2 {
  4194  				return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType)
  4195  			}
  4196  			var msglen int
  4197  			for shift := uint(0); ; shift += 7 {
  4198  				if shift >= 64 {
  4199  					return ErrIntOverflowContent
  4200  				}
  4201  				if iNdEx >= l {
  4202  					return io.ErrUnexpectedEOF
  4203  				}
  4204  				b := dAtA[iNdEx]
  4205  				iNdEx++
  4206  				msglen |= int(b&0x7F) << shift
  4207  				if b < 0x80 {
  4208  					break
  4209  				}
  4210  			}
  4211  			if msglen < 0 {
  4212  				return ErrInvalidLengthContent
  4213  			}
  4214  			postIndex := iNdEx + msglen
  4215  			if postIndex < 0 {
  4216  				return ErrInvalidLengthContent
  4217  			}
  4218  			if postIndex > l {
  4219  				return io.ErrUnexpectedEOF
  4220  			}
  4221  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartedAt, dAtA[iNdEx:postIndex]); err != nil {
  4222  				return err
  4223  			}
  4224  			iNdEx = postIndex
  4225  		case 2:
  4226  			if wireType != 2 {
  4227  				return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType)
  4228  			}
  4229  			var msglen int
  4230  			for shift := uint(0); ; shift += 7 {
  4231  				if shift >= 64 {
  4232  					return ErrIntOverflowContent
  4233  				}
  4234  				if iNdEx >= l {
  4235  					return io.ErrUnexpectedEOF
  4236  				}
  4237  				b := dAtA[iNdEx]
  4238  				iNdEx++
  4239  				msglen |= int(b&0x7F) << shift
  4240  				if b < 0x80 {
  4241  					break
  4242  				}
  4243  			}
  4244  			if msglen < 0 {
  4245  				return ErrInvalidLengthContent
  4246  			}
  4247  			postIndex := iNdEx + msglen
  4248  			if postIndex < 0 {
  4249  				return ErrInvalidLengthContent
  4250  			}
  4251  			if postIndex > l {
  4252  				return io.ErrUnexpectedEOF
  4253  			}
  4254  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil {
  4255  				return err
  4256  			}
  4257  			iNdEx = postIndex
  4258  		case 3:
  4259  			if wireType != 2 {
  4260  				return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType)
  4261  			}
  4262  			var stringLen uint64
  4263  			for shift := uint(0); ; shift += 7 {
  4264  				if shift >= 64 {
  4265  					return ErrIntOverflowContent
  4266  				}
  4267  				if iNdEx >= l {
  4268  					return io.ErrUnexpectedEOF
  4269  				}
  4270  				b := dAtA[iNdEx]
  4271  				iNdEx++
  4272  				stringLen |= uint64(b&0x7F) << shift
  4273  				if b < 0x80 {
  4274  					break
  4275  				}
  4276  			}
  4277  			intStringLen := int(stringLen)
  4278  			if intStringLen < 0 {
  4279  				return ErrInvalidLengthContent
  4280  			}
  4281  			postIndex := iNdEx + intStringLen
  4282  			if postIndex < 0 {
  4283  				return ErrInvalidLengthContent
  4284  			}
  4285  			if postIndex > l {
  4286  				return io.ErrUnexpectedEOF
  4287  			}
  4288  			m.Ref = string(dAtA[iNdEx:postIndex])
  4289  			iNdEx = postIndex
  4290  		case 4:
  4291  			if wireType != 0 {
  4292  				return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  4293  			}
  4294  			m.Offset = 0
  4295  			for shift := uint(0); ; shift += 7 {
  4296  				if shift >= 64 {
  4297  					return ErrIntOverflowContent
  4298  				}
  4299  				if iNdEx >= l {
  4300  					return io.ErrUnexpectedEOF
  4301  				}
  4302  				b := dAtA[iNdEx]
  4303  				iNdEx++
  4304  				m.Offset |= int64(b&0x7F) << shift
  4305  				if b < 0x80 {
  4306  					break
  4307  				}
  4308  			}
  4309  		case 5:
  4310  			if wireType != 0 {
  4311  				return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  4312  			}
  4313  			m.Total = 0
  4314  			for shift := uint(0); ; shift += 7 {
  4315  				if shift >= 64 {
  4316  					return ErrIntOverflowContent
  4317  				}
  4318  				if iNdEx >= l {
  4319  					return io.ErrUnexpectedEOF
  4320  				}
  4321  				b := dAtA[iNdEx]
  4322  				iNdEx++
  4323  				m.Total |= int64(b&0x7F) << shift
  4324  				if b < 0x80 {
  4325  					break
  4326  				}
  4327  			}
  4328  		case 6:
  4329  			if wireType != 2 {
  4330  				return fmt.Errorf("proto: wrong wireType = %d for field Expected", wireType)
  4331  			}
  4332  			var stringLen uint64
  4333  			for shift := uint(0); ; shift += 7 {
  4334  				if shift >= 64 {
  4335  					return ErrIntOverflowContent
  4336  				}
  4337  				if iNdEx >= l {
  4338  					return io.ErrUnexpectedEOF
  4339  				}
  4340  				b := dAtA[iNdEx]
  4341  				iNdEx++
  4342  				stringLen |= uint64(b&0x7F) << shift
  4343  				if b < 0x80 {
  4344  					break
  4345  				}
  4346  			}
  4347  			intStringLen := int(stringLen)
  4348  			if intStringLen < 0 {
  4349  				return ErrInvalidLengthContent
  4350  			}
  4351  			postIndex := iNdEx + intStringLen
  4352  			if postIndex < 0 {
  4353  				return ErrInvalidLengthContent
  4354  			}
  4355  			if postIndex > l {
  4356  				return io.ErrUnexpectedEOF
  4357  			}
  4358  			m.Expected = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
  4359  			iNdEx = postIndex
  4360  		default:
  4361  			iNdEx = preIndex
  4362  			skippy, err := skipContent(dAtA[iNdEx:])
  4363  			if err != nil {
  4364  				return err
  4365  			}
  4366  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4367  				return ErrInvalidLengthContent
  4368  			}
  4369  			if (iNdEx + skippy) > l {
  4370  				return io.ErrUnexpectedEOF
  4371  			}
  4372  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4373  			iNdEx += skippy
  4374  		}
  4375  	}
  4376  
  4377  	if iNdEx > l {
  4378  		return io.ErrUnexpectedEOF
  4379  	}
  4380  	return nil
  4381  }
  4382  func (m *StatusRequest) Unmarshal(dAtA []byte) error {
  4383  	l := len(dAtA)
  4384  	iNdEx := 0
  4385  	for iNdEx < l {
  4386  		preIndex := iNdEx
  4387  		var wire uint64
  4388  		for shift := uint(0); ; shift += 7 {
  4389  			if shift >= 64 {
  4390  				return ErrIntOverflowContent
  4391  			}
  4392  			if iNdEx >= l {
  4393  				return io.ErrUnexpectedEOF
  4394  			}
  4395  			b := dAtA[iNdEx]
  4396  			iNdEx++
  4397  			wire |= uint64(b&0x7F) << shift
  4398  			if b < 0x80 {
  4399  				break
  4400  			}
  4401  		}
  4402  		fieldNum := int32(wire >> 3)
  4403  		wireType := int(wire & 0x7)
  4404  		if wireType == 4 {
  4405  			return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group")
  4406  		}
  4407  		if fieldNum <= 0 {
  4408  			return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4409  		}
  4410  		switch fieldNum {
  4411  		case 1:
  4412  			if wireType != 2 {
  4413  				return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType)
  4414  			}
  4415  			var stringLen uint64
  4416  			for shift := uint(0); ; shift += 7 {
  4417  				if shift >= 64 {
  4418  					return ErrIntOverflowContent
  4419  				}
  4420  				if iNdEx >= l {
  4421  					return io.ErrUnexpectedEOF
  4422  				}
  4423  				b := dAtA[iNdEx]
  4424  				iNdEx++
  4425  				stringLen |= uint64(b&0x7F) << shift
  4426  				if b < 0x80 {
  4427  					break
  4428  				}
  4429  			}
  4430  			intStringLen := int(stringLen)
  4431  			if intStringLen < 0 {
  4432  				return ErrInvalidLengthContent
  4433  			}
  4434  			postIndex := iNdEx + intStringLen
  4435  			if postIndex < 0 {
  4436  				return ErrInvalidLengthContent
  4437  			}
  4438  			if postIndex > l {
  4439  				return io.ErrUnexpectedEOF
  4440  			}
  4441  			m.Ref = string(dAtA[iNdEx:postIndex])
  4442  			iNdEx = postIndex
  4443  		default:
  4444  			iNdEx = preIndex
  4445  			skippy, err := skipContent(dAtA[iNdEx:])
  4446  			if err != nil {
  4447  				return err
  4448  			}
  4449  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4450  				return ErrInvalidLengthContent
  4451  			}
  4452  			if (iNdEx + skippy) > l {
  4453  				return io.ErrUnexpectedEOF
  4454  			}
  4455  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4456  			iNdEx += skippy
  4457  		}
  4458  	}
  4459  
  4460  	if iNdEx > l {
  4461  		return io.ErrUnexpectedEOF
  4462  	}
  4463  	return nil
  4464  }
  4465  func (m *StatusResponse) Unmarshal(dAtA []byte) error {
  4466  	l := len(dAtA)
  4467  	iNdEx := 0
  4468  	for iNdEx < l {
  4469  		preIndex := iNdEx
  4470  		var wire uint64
  4471  		for shift := uint(0); ; shift += 7 {
  4472  			if shift >= 64 {
  4473  				return ErrIntOverflowContent
  4474  			}
  4475  			if iNdEx >= l {
  4476  				return io.ErrUnexpectedEOF
  4477  			}
  4478  			b := dAtA[iNdEx]
  4479  			iNdEx++
  4480  			wire |= uint64(b&0x7F) << shift
  4481  			if b < 0x80 {
  4482  				break
  4483  			}
  4484  		}
  4485  		fieldNum := int32(wire >> 3)
  4486  		wireType := int(wire & 0x7)
  4487  		if wireType == 4 {
  4488  			return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group")
  4489  		}
  4490  		if fieldNum <= 0 {
  4491  			return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4492  		}
  4493  		switch fieldNum {
  4494  		case 1:
  4495  			if wireType != 2 {
  4496  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  4497  			}
  4498  			var msglen int
  4499  			for shift := uint(0); ; shift += 7 {
  4500  				if shift >= 64 {
  4501  					return ErrIntOverflowContent
  4502  				}
  4503  				if iNdEx >= l {
  4504  					return io.ErrUnexpectedEOF
  4505  				}
  4506  				b := dAtA[iNdEx]
  4507  				iNdEx++
  4508  				msglen |= int(b&0x7F) << shift
  4509  				if b < 0x80 {
  4510  					break
  4511  				}
  4512  			}
  4513  			if msglen < 0 {
  4514  				return ErrInvalidLengthContent
  4515  			}
  4516  			postIndex := iNdEx + msglen
  4517  			if postIndex < 0 {
  4518  				return ErrInvalidLengthContent
  4519  			}
  4520  			if postIndex > l {
  4521  				return io.ErrUnexpectedEOF
  4522  			}
  4523  			if m.Status == nil {
  4524  				m.Status = &Status{}
  4525  			}
  4526  			if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4527  				return err
  4528  			}
  4529  			iNdEx = postIndex
  4530  		default:
  4531  			iNdEx = preIndex
  4532  			skippy, err := skipContent(dAtA[iNdEx:])
  4533  			if err != nil {
  4534  				return err
  4535  			}
  4536  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4537  				return ErrInvalidLengthContent
  4538  			}
  4539  			if (iNdEx + skippy) > l {
  4540  				return io.ErrUnexpectedEOF
  4541  			}
  4542  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4543  			iNdEx += skippy
  4544  		}
  4545  	}
  4546  
  4547  	if iNdEx > l {
  4548  		return io.ErrUnexpectedEOF
  4549  	}
  4550  	return nil
  4551  }
  4552  func (m *ListStatusesRequest) Unmarshal(dAtA []byte) error {
  4553  	l := len(dAtA)
  4554  	iNdEx := 0
  4555  	for iNdEx < l {
  4556  		preIndex := iNdEx
  4557  		var wire uint64
  4558  		for shift := uint(0); ; shift += 7 {
  4559  			if shift >= 64 {
  4560  				return ErrIntOverflowContent
  4561  			}
  4562  			if iNdEx >= l {
  4563  				return io.ErrUnexpectedEOF
  4564  			}
  4565  			b := dAtA[iNdEx]
  4566  			iNdEx++
  4567  			wire |= uint64(b&0x7F) << shift
  4568  			if b < 0x80 {
  4569  				break
  4570  			}
  4571  		}
  4572  		fieldNum := int32(wire >> 3)
  4573  		wireType := int(wire & 0x7)
  4574  		if wireType == 4 {
  4575  			return fmt.Errorf("proto: ListStatusesRequest: wiretype end group for non-group")
  4576  		}
  4577  		if fieldNum <= 0 {
  4578  			return fmt.Errorf("proto: ListStatusesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4579  		}
  4580  		switch fieldNum {
  4581  		case 1:
  4582  			if wireType != 2 {
  4583  				return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType)
  4584  			}
  4585  			var stringLen uint64
  4586  			for shift := uint(0); ; shift += 7 {
  4587  				if shift >= 64 {
  4588  					return ErrIntOverflowContent
  4589  				}
  4590  				if iNdEx >= l {
  4591  					return io.ErrUnexpectedEOF
  4592  				}
  4593  				b := dAtA[iNdEx]
  4594  				iNdEx++
  4595  				stringLen |= uint64(b&0x7F) << shift
  4596  				if b < 0x80 {
  4597  					break
  4598  				}
  4599  			}
  4600  			intStringLen := int(stringLen)
  4601  			if intStringLen < 0 {
  4602  				return ErrInvalidLengthContent
  4603  			}
  4604  			postIndex := iNdEx + intStringLen
  4605  			if postIndex < 0 {
  4606  				return ErrInvalidLengthContent
  4607  			}
  4608  			if postIndex > l {
  4609  				return io.ErrUnexpectedEOF
  4610  			}
  4611  			m.Filters = append(m.Filters, string(dAtA[iNdEx:postIndex]))
  4612  			iNdEx = postIndex
  4613  		default:
  4614  			iNdEx = preIndex
  4615  			skippy, err := skipContent(dAtA[iNdEx:])
  4616  			if err != nil {
  4617  				return err
  4618  			}
  4619  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4620  				return ErrInvalidLengthContent
  4621  			}
  4622  			if (iNdEx + skippy) > l {
  4623  				return io.ErrUnexpectedEOF
  4624  			}
  4625  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4626  			iNdEx += skippy
  4627  		}
  4628  	}
  4629  
  4630  	if iNdEx > l {
  4631  		return io.ErrUnexpectedEOF
  4632  	}
  4633  	return nil
  4634  }
  4635  func (m *ListStatusesResponse) Unmarshal(dAtA []byte) error {
  4636  	l := len(dAtA)
  4637  	iNdEx := 0
  4638  	for iNdEx < l {
  4639  		preIndex := iNdEx
  4640  		var wire uint64
  4641  		for shift := uint(0); ; shift += 7 {
  4642  			if shift >= 64 {
  4643  				return ErrIntOverflowContent
  4644  			}
  4645  			if iNdEx >= l {
  4646  				return io.ErrUnexpectedEOF
  4647  			}
  4648  			b := dAtA[iNdEx]
  4649  			iNdEx++
  4650  			wire |= uint64(b&0x7F) << shift
  4651  			if b < 0x80 {
  4652  				break
  4653  			}
  4654  		}
  4655  		fieldNum := int32(wire >> 3)
  4656  		wireType := int(wire & 0x7)
  4657  		if wireType == 4 {
  4658  			return fmt.Errorf("proto: ListStatusesResponse: wiretype end group for non-group")
  4659  		}
  4660  		if fieldNum <= 0 {
  4661  			return fmt.Errorf("proto: ListStatusesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4662  		}
  4663  		switch fieldNum {
  4664  		case 1:
  4665  			if wireType != 2 {
  4666  				return fmt.Errorf("proto: wrong wireType = %d for field Statuses", wireType)
  4667  			}
  4668  			var msglen int
  4669  			for shift := uint(0); ; shift += 7 {
  4670  				if shift >= 64 {
  4671  					return ErrIntOverflowContent
  4672  				}
  4673  				if iNdEx >= l {
  4674  					return io.ErrUnexpectedEOF
  4675  				}
  4676  				b := dAtA[iNdEx]
  4677  				iNdEx++
  4678  				msglen |= int(b&0x7F) << shift
  4679  				if b < 0x80 {
  4680  					break
  4681  				}
  4682  			}
  4683  			if msglen < 0 {
  4684  				return ErrInvalidLengthContent
  4685  			}
  4686  			postIndex := iNdEx + msglen
  4687  			if postIndex < 0 {
  4688  				return ErrInvalidLengthContent
  4689  			}
  4690  			if postIndex > l {
  4691  				return io.ErrUnexpectedEOF
  4692  			}
  4693  			m.Statuses = append(m.Statuses, Status{})
  4694  			if err := m.Statuses[len(m.Statuses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4695  				return err
  4696  			}
  4697  			iNdEx = postIndex
  4698  		default:
  4699  			iNdEx = preIndex
  4700  			skippy, err := skipContent(dAtA[iNdEx:])
  4701  			if err != nil {
  4702  				return err
  4703  			}
  4704  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4705  				return ErrInvalidLengthContent
  4706  			}
  4707  			if (iNdEx + skippy) > l {
  4708  				return io.ErrUnexpectedEOF
  4709  			}
  4710  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  4711  			iNdEx += skippy
  4712  		}
  4713  	}
  4714  
  4715  	if iNdEx > l {
  4716  		return io.ErrUnexpectedEOF
  4717  	}
  4718  	return nil
  4719  }
  4720  func (m *WriteContentRequest) Unmarshal(dAtA []byte) error {
  4721  	l := len(dAtA)
  4722  	iNdEx := 0
  4723  	for iNdEx < l {
  4724  		preIndex := iNdEx
  4725  		var wire uint64
  4726  		for shift := uint(0); ; shift += 7 {
  4727  			if shift >= 64 {
  4728  				return ErrIntOverflowContent
  4729  			}
  4730  			if iNdEx >= l {
  4731  				return io.ErrUnexpectedEOF
  4732  			}
  4733  			b := dAtA[iNdEx]
  4734  			iNdEx++
  4735  			wire |= uint64(b&0x7F) << shift
  4736  			if b < 0x80 {
  4737  				break
  4738  			}
  4739  		}
  4740  		fieldNum := int32(wire >> 3)
  4741  		wireType := int(wire & 0x7)
  4742  		if wireType == 4 {
  4743  			return fmt.Errorf("proto: WriteContentRequest: wiretype end group for non-group")
  4744  		}
  4745  		if fieldNum <= 0 {
  4746  			return fmt.Errorf("proto: WriteContentRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4747  		}
  4748  		switch fieldNum {
  4749  		case 1:
  4750  			if wireType != 0 {
  4751  				return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  4752  			}
  4753  			m.Action = 0
  4754  			for shift := uint(0); ; shift += 7 {
  4755  				if shift >= 64 {
  4756  					return ErrIntOverflowContent
  4757  				}
  4758  				if iNdEx >= l {
  4759  					return io.ErrUnexpectedEOF
  4760  				}
  4761  				b := dAtA[iNdEx]
  4762  				iNdEx++
  4763  				m.Action |= WriteAction(b&0x7F) << shift
  4764  				if b < 0x80 {
  4765  					break
  4766  				}
  4767  			}
  4768  		case 2:
  4769  			if wireType != 2 {
  4770  				return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType)
  4771  			}
  4772  			var stringLen uint64
  4773  			for shift := uint(0); ; shift += 7 {
  4774  				if shift >= 64 {
  4775  					return ErrIntOverflowContent
  4776  				}
  4777  				if iNdEx >= l {
  4778  					return io.ErrUnexpectedEOF
  4779  				}
  4780  				b := dAtA[iNdEx]
  4781  				iNdEx++
  4782  				stringLen |= uint64(b&0x7F) << shift
  4783  				if b < 0x80 {
  4784  					break
  4785  				}
  4786  			}
  4787  			intStringLen := int(stringLen)
  4788  			if intStringLen < 0 {
  4789  				return ErrInvalidLengthContent
  4790  			}
  4791  			postIndex := iNdEx + intStringLen
  4792  			if postIndex < 0 {
  4793  				return ErrInvalidLengthContent
  4794  			}
  4795  			if postIndex > l {
  4796  				return io.ErrUnexpectedEOF
  4797  			}
  4798  			m.Ref = string(dAtA[iNdEx:postIndex])
  4799  			iNdEx = postIndex
  4800  		case 3:
  4801  			if wireType != 0 {
  4802  				return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  4803  			}
  4804  			m.Total = 0
  4805  			for shift := uint(0); ; shift += 7 {
  4806  				if shift >= 64 {
  4807  					return ErrIntOverflowContent
  4808  				}
  4809  				if iNdEx >= l {
  4810  					return io.ErrUnexpectedEOF
  4811  				}
  4812  				b := dAtA[iNdEx]
  4813  				iNdEx++
  4814  				m.Total |= int64(b&0x7F) << shift
  4815  				if b < 0x80 {
  4816  					break
  4817  				}
  4818  			}
  4819  		case 4:
  4820  			if wireType != 2 {
  4821  				return fmt.Errorf("proto: wrong wireType = %d for field Expected", wireType)
  4822  			}
  4823  			var stringLen uint64
  4824  			for shift := uint(0); ; shift += 7 {
  4825  				if shift >= 64 {
  4826  					return ErrIntOverflowContent
  4827  				}
  4828  				if iNdEx >= l {
  4829  					return io.ErrUnexpectedEOF
  4830  				}
  4831  				b := dAtA[iNdEx]
  4832  				iNdEx++
  4833  				stringLen |= uint64(b&0x7F) << shift
  4834  				if b < 0x80 {
  4835  					break
  4836  				}
  4837  			}
  4838  			intStringLen := int(stringLen)
  4839  			if intStringLen < 0 {
  4840  				return ErrInvalidLengthContent
  4841  			}
  4842  			postIndex := iNdEx + intStringLen
  4843  			if postIndex < 0 {
  4844  				return ErrInvalidLengthContent
  4845  			}
  4846  			if postIndex > l {
  4847  				return io.ErrUnexpectedEOF
  4848  			}
  4849  			m.Expected = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
  4850  			iNdEx = postIndex
  4851  		case 5:
  4852  			if wireType != 0 {
  4853  				return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  4854  			}
  4855  			m.Offset = 0
  4856  			for shift := uint(0); ; shift += 7 {
  4857  				if shift >= 64 {
  4858  					return ErrIntOverflowContent
  4859  				}
  4860  				if iNdEx >= l {
  4861  					return io.ErrUnexpectedEOF
  4862  				}
  4863  				b := dAtA[iNdEx]
  4864  				iNdEx++
  4865  				m.Offset |= int64(b&0x7F) << shift
  4866  				if b < 0x80 {
  4867  					break
  4868  				}
  4869  			}
  4870  		case 6:
  4871  			if wireType != 2 {
  4872  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  4873  			}
  4874  			var byteLen int
  4875  			for shift := uint(0); ; shift += 7 {
  4876  				if shift >= 64 {
  4877  					return ErrIntOverflowContent
  4878  				}
  4879  				if iNdEx >= l {
  4880  					return io.ErrUnexpectedEOF
  4881  				}
  4882  				b := dAtA[iNdEx]
  4883  				iNdEx++
  4884  				byteLen |= int(b&0x7F) << shift
  4885  				if b < 0x80 {
  4886  					break
  4887  				}
  4888  			}
  4889  			if byteLen < 0 {
  4890  				return ErrInvalidLengthContent
  4891  			}
  4892  			postIndex := iNdEx + byteLen
  4893  			if postIndex < 0 {
  4894  				return ErrInvalidLengthContent
  4895  			}
  4896  			if postIndex > l {
  4897  				return io.ErrUnexpectedEOF
  4898  			}
  4899  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  4900  			if m.Data == nil {
  4901  				m.Data = []byte{}
  4902  			}
  4903  			iNdEx = postIndex
  4904  		case 7:
  4905  			if wireType != 2 {
  4906  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  4907  			}
  4908  			var msglen int
  4909  			for shift := uint(0); ; shift += 7 {
  4910  				if shift >= 64 {
  4911  					return ErrIntOverflowContent
  4912  				}
  4913  				if iNdEx >= l {
  4914  					return io.ErrUnexpectedEOF
  4915  				}
  4916  				b := dAtA[iNdEx]
  4917  				iNdEx++
  4918  				msglen |= int(b&0x7F) << shift
  4919  				if b < 0x80 {
  4920  					break
  4921  				}
  4922  			}
  4923  			if msglen < 0 {
  4924  				return ErrInvalidLengthContent
  4925  			}
  4926  			postIndex := iNdEx + msglen
  4927  			if postIndex < 0 {
  4928  				return ErrInvalidLengthContent
  4929  			}
  4930  			if postIndex > l {
  4931  				return io.ErrUnexpectedEOF
  4932  			}
  4933  			if m.Labels == nil {
  4934  				m.Labels = make(map[string]string)
  4935  			}
  4936  			var mapkey string
  4937  			var mapvalue string
  4938  			for iNdEx < postIndex {
  4939  				entryPreIndex := iNdEx
  4940  				var wire uint64
  4941  				for shift := uint(0); ; shift += 7 {
  4942  					if shift >= 64 {
  4943  						return ErrIntOverflowContent
  4944  					}
  4945  					if iNdEx >= l {
  4946  						return io.ErrUnexpectedEOF
  4947  					}
  4948  					b := dAtA[iNdEx]
  4949  					iNdEx++
  4950  					wire |= uint64(b&0x7F) << shift
  4951  					if b < 0x80 {
  4952  						break
  4953  					}
  4954  				}
  4955  				fieldNum := int32(wire >> 3)
  4956  				if fieldNum == 1 {
  4957  					var stringLenmapkey uint64
  4958  					for shift := uint(0); ; shift += 7 {
  4959  						if shift >= 64 {
  4960  							return ErrIntOverflowContent
  4961  						}
  4962  						if iNdEx >= l {
  4963  							return io.ErrUnexpectedEOF
  4964  						}
  4965  						b := dAtA[iNdEx]
  4966  						iNdEx++
  4967  						stringLenmapkey |= uint64(b&0x7F) << shift
  4968  						if b < 0x80 {
  4969  							break
  4970  						}
  4971  					}
  4972  					intStringLenmapkey := int(stringLenmapkey)
  4973  					if intStringLenmapkey < 0 {
  4974  						return ErrInvalidLengthContent
  4975  					}
  4976  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  4977  					if postStringIndexmapkey < 0 {
  4978  						return ErrInvalidLengthContent
  4979  					}
  4980  					if postStringIndexmapkey > l {
  4981  						return io.ErrUnexpectedEOF
  4982  					}
  4983  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  4984  					iNdEx = postStringIndexmapkey
  4985  				} else if fieldNum == 2 {
  4986  					var stringLenmapvalue uint64
  4987  					for shift := uint(0); ; shift += 7 {
  4988  						if shift >= 64 {
  4989  							return ErrIntOverflowContent
  4990  						}
  4991  						if iNdEx >= l {
  4992  							return io.ErrUnexpectedEOF
  4993  						}
  4994  						b := dAtA[iNdEx]
  4995  						iNdEx++
  4996  						stringLenmapvalue |= uint64(b&0x7F) << shift
  4997  						if b < 0x80 {
  4998  							break
  4999  						}
  5000  					}
  5001  					intStringLenmapvalue := int(stringLenmapvalue)
  5002  					if intStringLenmapvalue < 0 {
  5003  						return ErrInvalidLengthContent
  5004  					}
  5005  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  5006  					if postStringIndexmapvalue < 0 {
  5007  						return ErrInvalidLengthContent
  5008  					}
  5009  					if postStringIndexmapvalue > l {
  5010  						return io.ErrUnexpectedEOF
  5011  					}
  5012  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  5013  					iNdEx = postStringIndexmapvalue
  5014  				} else {
  5015  					iNdEx = entryPreIndex
  5016  					skippy, err := skipContent(dAtA[iNdEx:])
  5017  					if err != nil {
  5018  						return err
  5019  					}
  5020  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  5021  						return ErrInvalidLengthContent
  5022  					}
  5023  					if (iNdEx + skippy) > postIndex {
  5024  						return io.ErrUnexpectedEOF
  5025  					}
  5026  					iNdEx += skippy
  5027  				}
  5028  			}
  5029  			m.Labels[mapkey] = mapvalue
  5030  			iNdEx = postIndex
  5031  		default:
  5032  			iNdEx = preIndex
  5033  			skippy, err := skipContent(dAtA[iNdEx:])
  5034  			if err != nil {
  5035  				return err
  5036  			}
  5037  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5038  				return ErrInvalidLengthContent
  5039  			}
  5040  			if (iNdEx + skippy) > l {
  5041  				return io.ErrUnexpectedEOF
  5042  			}
  5043  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5044  			iNdEx += skippy
  5045  		}
  5046  	}
  5047  
  5048  	if iNdEx > l {
  5049  		return io.ErrUnexpectedEOF
  5050  	}
  5051  	return nil
  5052  }
  5053  func (m *WriteContentResponse) Unmarshal(dAtA []byte) error {
  5054  	l := len(dAtA)
  5055  	iNdEx := 0
  5056  	for iNdEx < l {
  5057  		preIndex := iNdEx
  5058  		var wire uint64
  5059  		for shift := uint(0); ; shift += 7 {
  5060  			if shift >= 64 {
  5061  				return ErrIntOverflowContent
  5062  			}
  5063  			if iNdEx >= l {
  5064  				return io.ErrUnexpectedEOF
  5065  			}
  5066  			b := dAtA[iNdEx]
  5067  			iNdEx++
  5068  			wire |= uint64(b&0x7F) << shift
  5069  			if b < 0x80 {
  5070  				break
  5071  			}
  5072  		}
  5073  		fieldNum := int32(wire >> 3)
  5074  		wireType := int(wire & 0x7)
  5075  		if wireType == 4 {
  5076  			return fmt.Errorf("proto: WriteContentResponse: wiretype end group for non-group")
  5077  		}
  5078  		if fieldNum <= 0 {
  5079  			return fmt.Errorf("proto: WriteContentResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5080  		}
  5081  		switch fieldNum {
  5082  		case 1:
  5083  			if wireType != 0 {
  5084  				return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType)
  5085  			}
  5086  			m.Action = 0
  5087  			for shift := uint(0); ; shift += 7 {
  5088  				if shift >= 64 {
  5089  					return ErrIntOverflowContent
  5090  				}
  5091  				if iNdEx >= l {
  5092  					return io.ErrUnexpectedEOF
  5093  				}
  5094  				b := dAtA[iNdEx]
  5095  				iNdEx++
  5096  				m.Action |= WriteAction(b&0x7F) << shift
  5097  				if b < 0x80 {
  5098  					break
  5099  				}
  5100  			}
  5101  		case 2:
  5102  			if wireType != 2 {
  5103  				return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType)
  5104  			}
  5105  			var msglen int
  5106  			for shift := uint(0); ; shift += 7 {
  5107  				if shift >= 64 {
  5108  					return ErrIntOverflowContent
  5109  				}
  5110  				if iNdEx >= l {
  5111  					return io.ErrUnexpectedEOF
  5112  				}
  5113  				b := dAtA[iNdEx]
  5114  				iNdEx++
  5115  				msglen |= int(b&0x7F) << shift
  5116  				if b < 0x80 {
  5117  					break
  5118  				}
  5119  			}
  5120  			if msglen < 0 {
  5121  				return ErrInvalidLengthContent
  5122  			}
  5123  			postIndex := iNdEx + msglen
  5124  			if postIndex < 0 {
  5125  				return ErrInvalidLengthContent
  5126  			}
  5127  			if postIndex > l {
  5128  				return io.ErrUnexpectedEOF
  5129  			}
  5130  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.StartedAt, dAtA[iNdEx:postIndex]); err != nil {
  5131  				return err
  5132  			}
  5133  			iNdEx = postIndex
  5134  		case 3:
  5135  			if wireType != 2 {
  5136  				return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType)
  5137  			}
  5138  			var msglen int
  5139  			for shift := uint(0); ; shift += 7 {
  5140  				if shift >= 64 {
  5141  					return ErrIntOverflowContent
  5142  				}
  5143  				if iNdEx >= l {
  5144  					return io.ErrUnexpectedEOF
  5145  				}
  5146  				b := dAtA[iNdEx]
  5147  				iNdEx++
  5148  				msglen |= int(b&0x7F) << shift
  5149  				if b < 0x80 {
  5150  					break
  5151  				}
  5152  			}
  5153  			if msglen < 0 {
  5154  				return ErrInvalidLengthContent
  5155  			}
  5156  			postIndex := iNdEx + msglen
  5157  			if postIndex < 0 {
  5158  				return ErrInvalidLengthContent
  5159  			}
  5160  			if postIndex > l {
  5161  				return io.ErrUnexpectedEOF
  5162  			}
  5163  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil {
  5164  				return err
  5165  			}
  5166  			iNdEx = postIndex
  5167  		case 4:
  5168  			if wireType != 0 {
  5169  				return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  5170  			}
  5171  			m.Offset = 0
  5172  			for shift := uint(0); ; shift += 7 {
  5173  				if shift >= 64 {
  5174  					return ErrIntOverflowContent
  5175  				}
  5176  				if iNdEx >= l {
  5177  					return io.ErrUnexpectedEOF
  5178  				}
  5179  				b := dAtA[iNdEx]
  5180  				iNdEx++
  5181  				m.Offset |= int64(b&0x7F) << shift
  5182  				if b < 0x80 {
  5183  					break
  5184  				}
  5185  			}
  5186  		case 5:
  5187  			if wireType != 0 {
  5188  				return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  5189  			}
  5190  			m.Total = 0
  5191  			for shift := uint(0); ; shift += 7 {
  5192  				if shift >= 64 {
  5193  					return ErrIntOverflowContent
  5194  				}
  5195  				if iNdEx >= l {
  5196  					return io.ErrUnexpectedEOF
  5197  				}
  5198  				b := dAtA[iNdEx]
  5199  				iNdEx++
  5200  				m.Total |= int64(b&0x7F) << shift
  5201  				if b < 0x80 {
  5202  					break
  5203  				}
  5204  			}
  5205  		case 6:
  5206  			if wireType != 2 {
  5207  				return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType)
  5208  			}
  5209  			var stringLen uint64
  5210  			for shift := uint(0); ; shift += 7 {
  5211  				if shift >= 64 {
  5212  					return ErrIntOverflowContent
  5213  				}
  5214  				if iNdEx >= l {
  5215  					return io.ErrUnexpectedEOF
  5216  				}
  5217  				b := dAtA[iNdEx]
  5218  				iNdEx++
  5219  				stringLen |= uint64(b&0x7F) << shift
  5220  				if b < 0x80 {
  5221  					break
  5222  				}
  5223  			}
  5224  			intStringLen := int(stringLen)
  5225  			if intStringLen < 0 {
  5226  				return ErrInvalidLengthContent
  5227  			}
  5228  			postIndex := iNdEx + intStringLen
  5229  			if postIndex < 0 {
  5230  				return ErrInvalidLengthContent
  5231  			}
  5232  			if postIndex > l {
  5233  				return io.ErrUnexpectedEOF
  5234  			}
  5235  			m.Digest = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex])
  5236  			iNdEx = postIndex
  5237  		default:
  5238  			iNdEx = preIndex
  5239  			skippy, err := skipContent(dAtA[iNdEx:])
  5240  			if err != nil {
  5241  				return err
  5242  			}
  5243  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5244  				return ErrInvalidLengthContent
  5245  			}
  5246  			if (iNdEx + skippy) > l {
  5247  				return io.ErrUnexpectedEOF
  5248  			}
  5249  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5250  			iNdEx += skippy
  5251  		}
  5252  	}
  5253  
  5254  	if iNdEx > l {
  5255  		return io.ErrUnexpectedEOF
  5256  	}
  5257  	return nil
  5258  }
  5259  func (m *AbortRequest) Unmarshal(dAtA []byte) error {
  5260  	l := len(dAtA)
  5261  	iNdEx := 0
  5262  	for iNdEx < l {
  5263  		preIndex := iNdEx
  5264  		var wire uint64
  5265  		for shift := uint(0); ; shift += 7 {
  5266  			if shift >= 64 {
  5267  				return ErrIntOverflowContent
  5268  			}
  5269  			if iNdEx >= l {
  5270  				return io.ErrUnexpectedEOF
  5271  			}
  5272  			b := dAtA[iNdEx]
  5273  			iNdEx++
  5274  			wire |= uint64(b&0x7F) << shift
  5275  			if b < 0x80 {
  5276  				break
  5277  			}
  5278  		}
  5279  		fieldNum := int32(wire >> 3)
  5280  		wireType := int(wire & 0x7)
  5281  		if wireType == 4 {
  5282  			return fmt.Errorf("proto: AbortRequest: wiretype end group for non-group")
  5283  		}
  5284  		if fieldNum <= 0 {
  5285  			return fmt.Errorf("proto: AbortRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5286  		}
  5287  		switch fieldNum {
  5288  		case 1:
  5289  			if wireType != 2 {
  5290  				return fmt.Errorf("proto: wrong wireType = %d for field Ref", wireType)
  5291  			}
  5292  			var stringLen uint64
  5293  			for shift := uint(0); ; shift += 7 {
  5294  				if shift >= 64 {
  5295  					return ErrIntOverflowContent
  5296  				}
  5297  				if iNdEx >= l {
  5298  					return io.ErrUnexpectedEOF
  5299  				}
  5300  				b := dAtA[iNdEx]
  5301  				iNdEx++
  5302  				stringLen |= uint64(b&0x7F) << shift
  5303  				if b < 0x80 {
  5304  					break
  5305  				}
  5306  			}
  5307  			intStringLen := int(stringLen)
  5308  			if intStringLen < 0 {
  5309  				return ErrInvalidLengthContent
  5310  			}
  5311  			postIndex := iNdEx + intStringLen
  5312  			if postIndex < 0 {
  5313  				return ErrInvalidLengthContent
  5314  			}
  5315  			if postIndex > l {
  5316  				return io.ErrUnexpectedEOF
  5317  			}
  5318  			m.Ref = string(dAtA[iNdEx:postIndex])
  5319  			iNdEx = postIndex
  5320  		default:
  5321  			iNdEx = preIndex
  5322  			skippy, err := skipContent(dAtA[iNdEx:])
  5323  			if err != nil {
  5324  				return err
  5325  			}
  5326  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5327  				return ErrInvalidLengthContent
  5328  			}
  5329  			if (iNdEx + skippy) > l {
  5330  				return io.ErrUnexpectedEOF
  5331  			}
  5332  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  5333  			iNdEx += skippy
  5334  		}
  5335  	}
  5336  
  5337  	if iNdEx > l {
  5338  		return io.ErrUnexpectedEOF
  5339  	}
  5340  	return nil
  5341  }
  5342  func skipContent(dAtA []byte) (n int, err error) {
  5343  	l := len(dAtA)
  5344  	iNdEx := 0
  5345  	depth := 0
  5346  	for iNdEx < l {
  5347  		var wire uint64
  5348  		for shift := uint(0); ; shift += 7 {
  5349  			if shift >= 64 {
  5350  				return 0, ErrIntOverflowContent
  5351  			}
  5352  			if iNdEx >= l {
  5353  				return 0, io.ErrUnexpectedEOF
  5354  			}
  5355  			b := dAtA[iNdEx]
  5356  			iNdEx++
  5357  			wire |= (uint64(b) & 0x7F) << shift
  5358  			if b < 0x80 {
  5359  				break
  5360  			}
  5361  		}
  5362  		wireType := int(wire & 0x7)
  5363  		switch wireType {
  5364  		case 0:
  5365  			for shift := uint(0); ; shift += 7 {
  5366  				if shift >= 64 {
  5367  					return 0, ErrIntOverflowContent
  5368  				}
  5369  				if iNdEx >= l {
  5370  					return 0, io.ErrUnexpectedEOF
  5371  				}
  5372  				iNdEx++
  5373  				if dAtA[iNdEx-1] < 0x80 {
  5374  					break
  5375  				}
  5376  			}
  5377  		case 1:
  5378  			iNdEx += 8
  5379  		case 2:
  5380  			var length int
  5381  			for shift := uint(0); ; shift += 7 {
  5382  				if shift >= 64 {
  5383  					return 0, ErrIntOverflowContent
  5384  				}
  5385  				if iNdEx >= l {
  5386  					return 0, io.ErrUnexpectedEOF
  5387  				}
  5388  				b := dAtA[iNdEx]
  5389  				iNdEx++
  5390  				length |= (int(b) & 0x7F) << shift
  5391  				if b < 0x80 {
  5392  					break
  5393  				}
  5394  			}
  5395  			if length < 0 {
  5396  				return 0, ErrInvalidLengthContent
  5397  			}
  5398  			iNdEx += length
  5399  		case 3:
  5400  			depth++
  5401  		case 4:
  5402  			if depth == 0 {
  5403  				return 0, ErrUnexpectedEndOfGroupContent
  5404  			}
  5405  			depth--
  5406  		case 5:
  5407  			iNdEx += 4
  5408  		default:
  5409  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5410  		}
  5411  		if iNdEx < 0 {
  5412  			return 0, ErrInvalidLengthContent
  5413  		}
  5414  		if depth == 0 {
  5415  			return iNdEx, nil
  5416  		}
  5417  	}
  5418  	return 0, io.ErrUnexpectedEOF
  5419  }
  5420  
  5421  var (
  5422  	ErrInvalidLengthContent        = fmt.Errorf("proto: negative length found during unmarshaling")
  5423  	ErrIntOverflowContent          = fmt.Errorf("proto: integer overflow")
  5424  	ErrUnexpectedEndOfGroupContent = fmt.Errorf("proto: unexpected end of group")
  5425  )