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

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