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