github.com/demonoid81/containerd@v1.3.4/api/types/task/task.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/containerd/containerd/api/types/task/task.proto
     3  
     4  package task
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    10  	types "github.com/gogo/protobuf/types"
    11  	io "io"
    12  	math "math"
    13  	reflect "reflect"
    14  	strings "strings"
    15  	time "time"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  var _ = time.Kitchen
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    29  
    30  type Status int32
    31  
    32  const (
    33  	StatusUnknown Status = 0
    34  	StatusCreated Status = 1
    35  	StatusRunning Status = 2
    36  	StatusStopped Status = 3
    37  	StatusPaused  Status = 4
    38  	StatusPausing Status = 5
    39  )
    40  
    41  var Status_name = map[int32]string{
    42  	0: "UNKNOWN",
    43  	1: "CREATED",
    44  	2: "RUNNING",
    45  	3: "STOPPED",
    46  	4: "PAUSED",
    47  	5: "PAUSING",
    48  }
    49  
    50  var Status_value = map[string]int32{
    51  	"UNKNOWN": 0,
    52  	"CREATED": 1,
    53  	"RUNNING": 2,
    54  	"STOPPED": 3,
    55  	"PAUSED":  4,
    56  	"PAUSING": 5,
    57  }
    58  
    59  func (x Status) String() string {
    60  	return proto.EnumName(Status_name, int32(x))
    61  }
    62  
    63  func (Status) EnumDescriptor() ([]byte, []int) {
    64  	return fileDescriptor_391ef18c8ab0dc16, []int{0}
    65  }
    66  
    67  type Process struct {
    68  	ContainerID          string    `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
    69  	ID                   string    `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
    70  	Pid                  uint32    `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"`
    71  	Status               Status    `protobuf:"varint,4,opt,name=status,proto3,enum=containerd.v1.types.Status" json:"status,omitempty"`
    72  	Stdin                string    `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"`
    73  	Stdout               string    `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"`
    74  	Stderr               string    `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"`
    75  	Terminal             bool      `protobuf:"varint,8,opt,name=terminal,proto3" json:"terminal,omitempty"`
    76  	ExitStatus           uint32    `protobuf:"varint,9,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"`
    77  	ExitedAt             time.Time `protobuf:"bytes,10,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"`
    78  	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    79  	XXX_unrecognized     []byte    `json:"-"`
    80  	XXX_sizecache        int32     `json:"-"`
    81  }
    82  
    83  func (m *Process) Reset()      { *m = Process{} }
    84  func (*Process) ProtoMessage() {}
    85  func (*Process) Descriptor() ([]byte, []int) {
    86  	return fileDescriptor_391ef18c8ab0dc16, []int{0}
    87  }
    88  func (m *Process) XXX_Unmarshal(b []byte) error {
    89  	return m.Unmarshal(b)
    90  }
    91  func (m *Process) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    92  	if deterministic {
    93  		return xxx_messageInfo_Process.Marshal(b, m, deterministic)
    94  	} else {
    95  		b = b[:cap(b)]
    96  		n, err := m.MarshalTo(b)
    97  		if err != nil {
    98  			return nil, err
    99  		}
   100  		return b[:n], nil
   101  	}
   102  }
   103  func (m *Process) XXX_Merge(src proto.Message) {
   104  	xxx_messageInfo_Process.Merge(m, src)
   105  }
   106  func (m *Process) XXX_Size() int {
   107  	return m.Size()
   108  }
   109  func (m *Process) XXX_DiscardUnknown() {
   110  	xxx_messageInfo_Process.DiscardUnknown(m)
   111  }
   112  
   113  var xxx_messageInfo_Process proto.InternalMessageInfo
   114  
   115  type ProcessInfo struct {
   116  	// PID is the process ID.
   117  	Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"`
   118  	// Info contains additional process information.
   119  	//
   120  	// Info varies by platform.
   121  	Info                 *types.Any `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
   122  	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
   123  	XXX_unrecognized     []byte     `json:"-"`
   124  	XXX_sizecache        int32      `json:"-"`
   125  }
   126  
   127  func (m *ProcessInfo) Reset()      { *m = ProcessInfo{} }
   128  func (*ProcessInfo) ProtoMessage() {}
   129  func (*ProcessInfo) Descriptor() ([]byte, []int) {
   130  	return fileDescriptor_391ef18c8ab0dc16, []int{1}
   131  }
   132  func (m *ProcessInfo) XXX_Unmarshal(b []byte) error {
   133  	return m.Unmarshal(b)
   134  }
   135  func (m *ProcessInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   136  	if deterministic {
   137  		return xxx_messageInfo_ProcessInfo.Marshal(b, m, deterministic)
   138  	} else {
   139  		b = b[:cap(b)]
   140  		n, err := m.MarshalTo(b)
   141  		if err != nil {
   142  			return nil, err
   143  		}
   144  		return b[:n], nil
   145  	}
   146  }
   147  func (m *ProcessInfo) XXX_Merge(src proto.Message) {
   148  	xxx_messageInfo_ProcessInfo.Merge(m, src)
   149  }
   150  func (m *ProcessInfo) XXX_Size() int {
   151  	return m.Size()
   152  }
   153  func (m *ProcessInfo) XXX_DiscardUnknown() {
   154  	xxx_messageInfo_ProcessInfo.DiscardUnknown(m)
   155  }
   156  
   157  var xxx_messageInfo_ProcessInfo proto.InternalMessageInfo
   158  
   159  func init() {
   160  	proto.RegisterEnum("containerd.v1.types.Status", Status_name, Status_value)
   161  	proto.RegisterType((*Process)(nil), "containerd.v1.types.Process")
   162  	proto.RegisterType((*ProcessInfo)(nil), "containerd.v1.types.ProcessInfo")
   163  }
   164  
   165  func init() {
   166  	proto.RegisterFile("github.com/containerd/containerd/api/types/task/task.proto", fileDescriptor_391ef18c8ab0dc16)
   167  }
   168  
   169  var fileDescriptor_391ef18c8ab0dc16 = []byte{
   170  	// 545 bytes of a gzipped FileDescriptorProto
   171  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x3f, 0x6f, 0xd3, 0x40,
   172  	0x18, 0xc6, 0x7d, 0x6e, 0xeb, 0xa6, 0xe7, 0xb6, 0x18, 0x13, 0x55, 0xc6, 0x20, 0xdb, 0xea, 0x64,
   173  	0x31, 0xd8, 0x22, 0xdd, 0xd8, 0xf2, 0x4f, 0xc8, 0x42, 0x72, 0x23, 0x27, 0x11, 0x6c, 0x91, 0x13,
   174  	0x5f, 0xcc, 0xa9, 0xcd, 0x9d, 0x65, 0x9f, 0x81, 0x6c, 0x8c, 0xa8, 0x13, 0x5f, 0xa0, 0x13, 0x7c,
   175  	0x0a, 0x3e, 0x41, 0x46, 0x26, 0xc4, 0x14, 0xa8, 0x3f, 0x09, 0x3a, 0xdb, 0x49, 0x23, 0x60, 0x39,
   176  	0xbd, 0xef, 0xf3, 0x7b, 0xee, 0xbd, 0xf7, 0x1e, 0xf8, 0x22, 0xc6, 0xec, 0x6d, 0x3e, 0x75, 0x66,
   177  	0x74, 0xe1, 0xce, 0x28, 0x61, 0x21, 0x26, 0x28, 0x8d, 0x76, 0xcb, 0x30, 0xc1, 0x2e, 0x5b, 0x26,
   178  	0x28, 0x73, 0x59, 0x98, 0x5d, 0x95, 0x87, 0x93, 0xa4, 0x94, 0x51, 0xf5, 0xd1, 0xbd, 0xcb, 0x79,
   179  	0xf7, 0xdc, 0x29, 0x4d, 0x7a, 0x33, 0xa6, 0x31, 0x2d, 0xb9, 0xcb, 0xab, 0xca, 0xaa, 0x9b, 0x31,
   180  	0xa5, 0xf1, 0x35, 0x72, 0xcb, 0x6e, 0x9a, 0xcf, 0x5d, 0x86, 0x17, 0x28, 0x63, 0xe1, 0x22, 0xa9,
   181  	0x0d, 0x8f, 0xff, 0x36, 0x84, 0x64, 0x59, 0xa1, 0xf3, 0x42, 0x84, 0x87, 0x83, 0x94, 0xce, 0x50,
   182  	0x96, 0xa9, 0x2d, 0x78, 0xbc, 0x7d, 0x74, 0x82, 0x23, 0x0d, 0x58, 0xc0, 0x3e, 0xea, 0x3c, 0x28,
   183  	0xd6, 0xa6, 0xdc, 0xdd, 0xe8, 0x5e, 0x2f, 0x90, 0xb7, 0x26, 0x2f, 0x52, 0xcf, 0xa0, 0x88, 0x23,
   184  	0x4d, 0x2c, 0x9d, 0x52, 0xb1, 0x36, 0x45, 0xaf, 0x17, 0x88, 0x38, 0x52, 0x15, 0xb8, 0x97, 0xe0,
   185  	0x48, 0xdb, 0xb3, 0x80, 0x7d, 0x12, 0xf0, 0x52, 0xbd, 0x80, 0x52, 0xc6, 0x42, 0x96, 0x67, 0xda,
   186  	0xbe, 0x05, 0xec, 0xd3, 0xd6, 0x13, 0xe7, 0x3f, 0x3f, 0x74, 0x86, 0xa5, 0x25, 0xa8, 0xad, 0x6a,
   187  	0x13, 0x1e, 0x64, 0x2c, 0xc2, 0x44, 0x3b, 0xe0, 0x2f, 0x04, 0x55, 0xa3, 0x9e, 0xf1, 0x51, 0x11,
   188  	0xcd, 0x99, 0x26, 0x95, 0x72, 0xdd, 0xd5, 0x3a, 0x4a, 0x53, 0xed, 0x70, 0xab, 0xa3, 0x34, 0x55,
   189  	0x75, 0xd8, 0x60, 0x28, 0x5d, 0x60, 0x12, 0x5e, 0x6b, 0x0d, 0x0b, 0xd8, 0x8d, 0x60, 0xdb, 0xab,
   190  	0x26, 0x94, 0xd1, 0x07, 0xcc, 0x26, 0xf5, 0x6e, 0x47, 0xe5, 0xc2, 0x90, 0x4b, 0xd5, 0x2a, 0x6a,
   191  	0x1b, 0x1e, 0xf1, 0x0e, 0x45, 0x93, 0x90, 0x69, 0xd0, 0x02, 0xb6, 0xdc, 0xd2, 0x9d, 0x2a, 0x50,
   192  	0x67, 0x13, 0xa8, 0x33, 0xda, 0x24, 0xde, 0x69, 0xac, 0xd6, 0xa6, 0xf0, 0xf9, 0x97, 0x09, 0x82,
   193  	0x46, 0x75, 0xad, 0xcd, 0xce, 0x3d, 0x28, 0xd7, 0x19, 0x7b, 0x64, 0x4e, 0x37, 0xd9, 0x80, 0xfb,
   194  	0x6c, 0x6c, 0xb8, 0x8f, 0xc9, 0x9c, 0x96, 0x39, 0xca, 0xad, 0xe6, 0x3f, 0xe3, 0xdb, 0x64, 0x19,
   195  	0x94, 0x8e, 0x67, 0x3f, 0x00, 0x94, 0xea, 0xc5, 0x0c, 0x78, 0x38, 0xf6, 0x5f, 0xf9, 0x97, 0xaf,
   196  	0x7d, 0x45, 0xd0, 0x1f, 0xde, 0xdc, 0x5a, 0x27, 0x15, 0x18, 0x93, 0x2b, 0x42, 0xdf, 0x13, 0xce,
   197  	0xbb, 0x41, 0xbf, 0x3d, 0xea, 0xf7, 0x14, 0xb0, 0xcb, 0xbb, 0x29, 0x0a, 0x19, 0x8a, 0x38, 0x0f,
   198  	0xc6, 0xbe, 0xef, 0xf9, 0x2f, 0x15, 0x71, 0x97, 0x07, 0x39, 0x21, 0x98, 0xc4, 0x9c, 0x0f, 0x47,
   199  	0x97, 0x83, 0x41, 0xbf, 0xa7, 0xec, 0xed, 0xf2, 0x21, 0xa3, 0x49, 0x82, 0x22, 0xf5, 0x29, 0x94,
   200  	0x06, 0xed, 0xf1, 0xb0, 0xdf, 0x53, 0xf6, 0x75, 0xe5, 0xe6, 0xd6, 0x3a, 0xae, 0xf0, 0x20, 0xcc,
   201  	0xb3, 0x6a, 0x3a, 0xa7, 0x7c, 0xfa, 0xc1, 0xee, 0x6d, 0x8e, 0x31, 0x89, 0xf5, 0xd3, 0x4f, 0x5f,
   202  	0x0c, 0xe1, 0xdb, 0x57, 0xa3, 0xfe, 0x4d, 0x47, 0x5b, 0xdd, 0x19, 0xc2, 0xcf, 0x3b, 0x43, 0xf8,
   203  	0x58, 0x18, 0x60, 0x55, 0x18, 0xe0, 0x7b, 0x61, 0x80, 0xdf, 0x85, 0x01, 0xde, 0x08, 0x53, 0xa9,
   204  	0x0c, 0xe2, 0xe2, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x32, 0xd2, 0x86, 0x50, 0x03, 0x00,
   205  	0x00,
   206  }
   207  
   208  func (m *Process) Marshal() (dAtA []byte, err error) {
   209  	size := m.Size()
   210  	dAtA = make([]byte, size)
   211  	n, err := m.MarshalTo(dAtA)
   212  	if err != nil {
   213  		return nil, err
   214  	}
   215  	return dAtA[:n], nil
   216  }
   217  
   218  func (m *Process) MarshalTo(dAtA []byte) (int, error) {
   219  	var i int
   220  	_ = i
   221  	var l int
   222  	_ = l
   223  	if len(m.ContainerID) > 0 {
   224  		dAtA[i] = 0xa
   225  		i++
   226  		i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID)))
   227  		i += copy(dAtA[i:], m.ContainerID)
   228  	}
   229  	if len(m.ID) > 0 {
   230  		dAtA[i] = 0x12
   231  		i++
   232  		i = encodeVarintTask(dAtA, i, uint64(len(m.ID)))
   233  		i += copy(dAtA[i:], m.ID)
   234  	}
   235  	if m.Pid != 0 {
   236  		dAtA[i] = 0x18
   237  		i++
   238  		i = encodeVarintTask(dAtA, i, uint64(m.Pid))
   239  	}
   240  	if m.Status != 0 {
   241  		dAtA[i] = 0x20
   242  		i++
   243  		i = encodeVarintTask(dAtA, i, uint64(m.Status))
   244  	}
   245  	if len(m.Stdin) > 0 {
   246  		dAtA[i] = 0x2a
   247  		i++
   248  		i = encodeVarintTask(dAtA, i, uint64(len(m.Stdin)))
   249  		i += copy(dAtA[i:], m.Stdin)
   250  	}
   251  	if len(m.Stdout) > 0 {
   252  		dAtA[i] = 0x32
   253  		i++
   254  		i = encodeVarintTask(dAtA, i, uint64(len(m.Stdout)))
   255  		i += copy(dAtA[i:], m.Stdout)
   256  	}
   257  	if len(m.Stderr) > 0 {
   258  		dAtA[i] = 0x3a
   259  		i++
   260  		i = encodeVarintTask(dAtA, i, uint64(len(m.Stderr)))
   261  		i += copy(dAtA[i:], m.Stderr)
   262  	}
   263  	if m.Terminal {
   264  		dAtA[i] = 0x40
   265  		i++
   266  		if m.Terminal {
   267  			dAtA[i] = 1
   268  		} else {
   269  			dAtA[i] = 0
   270  		}
   271  		i++
   272  	}
   273  	if m.ExitStatus != 0 {
   274  		dAtA[i] = 0x48
   275  		i++
   276  		i = encodeVarintTask(dAtA, i, uint64(m.ExitStatus))
   277  	}
   278  	dAtA[i] = 0x52
   279  	i++
   280  	i = encodeVarintTask(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt)))
   281  	n1, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i:])
   282  	if err != nil {
   283  		return 0, err
   284  	}
   285  	i += n1
   286  	if m.XXX_unrecognized != nil {
   287  		i += copy(dAtA[i:], m.XXX_unrecognized)
   288  	}
   289  	return i, nil
   290  }
   291  
   292  func (m *ProcessInfo) Marshal() (dAtA []byte, err error) {
   293  	size := m.Size()
   294  	dAtA = make([]byte, size)
   295  	n, err := m.MarshalTo(dAtA)
   296  	if err != nil {
   297  		return nil, err
   298  	}
   299  	return dAtA[:n], nil
   300  }
   301  
   302  func (m *ProcessInfo) MarshalTo(dAtA []byte) (int, error) {
   303  	var i int
   304  	_ = i
   305  	var l int
   306  	_ = l
   307  	if m.Pid != 0 {
   308  		dAtA[i] = 0x8
   309  		i++
   310  		i = encodeVarintTask(dAtA, i, uint64(m.Pid))
   311  	}
   312  	if m.Info != nil {
   313  		dAtA[i] = 0x12
   314  		i++
   315  		i = encodeVarintTask(dAtA, i, uint64(m.Info.Size()))
   316  		n2, err := m.Info.MarshalTo(dAtA[i:])
   317  		if err != nil {
   318  			return 0, err
   319  		}
   320  		i += n2
   321  	}
   322  	if m.XXX_unrecognized != nil {
   323  		i += copy(dAtA[i:], m.XXX_unrecognized)
   324  	}
   325  	return i, nil
   326  }
   327  
   328  func encodeVarintTask(dAtA []byte, offset int, v uint64) int {
   329  	for v >= 1<<7 {
   330  		dAtA[offset] = uint8(v&0x7f | 0x80)
   331  		v >>= 7
   332  		offset++
   333  	}
   334  	dAtA[offset] = uint8(v)
   335  	return offset + 1
   336  }
   337  func (m *Process) Size() (n int) {
   338  	if m == nil {
   339  		return 0
   340  	}
   341  	var l int
   342  	_ = l
   343  	l = len(m.ContainerID)
   344  	if l > 0 {
   345  		n += 1 + l + sovTask(uint64(l))
   346  	}
   347  	l = len(m.ID)
   348  	if l > 0 {
   349  		n += 1 + l + sovTask(uint64(l))
   350  	}
   351  	if m.Pid != 0 {
   352  		n += 1 + sovTask(uint64(m.Pid))
   353  	}
   354  	if m.Status != 0 {
   355  		n += 1 + sovTask(uint64(m.Status))
   356  	}
   357  	l = len(m.Stdin)
   358  	if l > 0 {
   359  		n += 1 + l + sovTask(uint64(l))
   360  	}
   361  	l = len(m.Stdout)
   362  	if l > 0 {
   363  		n += 1 + l + sovTask(uint64(l))
   364  	}
   365  	l = len(m.Stderr)
   366  	if l > 0 {
   367  		n += 1 + l + sovTask(uint64(l))
   368  	}
   369  	if m.Terminal {
   370  		n += 2
   371  	}
   372  	if m.ExitStatus != 0 {
   373  		n += 1 + sovTask(uint64(m.ExitStatus))
   374  	}
   375  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt)
   376  	n += 1 + l + sovTask(uint64(l))
   377  	if m.XXX_unrecognized != nil {
   378  		n += len(m.XXX_unrecognized)
   379  	}
   380  	return n
   381  }
   382  
   383  func (m *ProcessInfo) Size() (n int) {
   384  	if m == nil {
   385  		return 0
   386  	}
   387  	var l int
   388  	_ = l
   389  	if m.Pid != 0 {
   390  		n += 1 + sovTask(uint64(m.Pid))
   391  	}
   392  	if m.Info != nil {
   393  		l = m.Info.Size()
   394  		n += 1 + l + sovTask(uint64(l))
   395  	}
   396  	if m.XXX_unrecognized != nil {
   397  		n += len(m.XXX_unrecognized)
   398  	}
   399  	return n
   400  }
   401  
   402  func sovTask(x uint64) (n int) {
   403  	for {
   404  		n++
   405  		x >>= 7
   406  		if x == 0 {
   407  			break
   408  		}
   409  	}
   410  	return n
   411  }
   412  func sozTask(x uint64) (n int) {
   413  	return sovTask(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   414  }
   415  func (this *Process) String() string {
   416  	if this == nil {
   417  		return "nil"
   418  	}
   419  	s := strings.Join([]string{`&Process{`,
   420  		`ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`,
   421  		`ID:` + fmt.Sprintf("%v", this.ID) + `,`,
   422  		`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
   423  		`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
   424  		`Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`,
   425  		`Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`,
   426  		`Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`,
   427  		`Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`,
   428  		`ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`,
   429  		`ExitedAt:` + strings.Replace(strings.Replace(this.ExitedAt.String(), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
   430  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
   431  		`}`,
   432  	}, "")
   433  	return s
   434  }
   435  func (this *ProcessInfo) String() string {
   436  	if this == nil {
   437  		return "nil"
   438  	}
   439  	s := strings.Join([]string{`&ProcessInfo{`,
   440  		`Pid:` + fmt.Sprintf("%v", this.Pid) + `,`,
   441  		`Info:` + strings.Replace(fmt.Sprintf("%v", this.Info), "Any", "types.Any", 1) + `,`,
   442  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
   443  		`}`,
   444  	}, "")
   445  	return s
   446  }
   447  func valueToStringTask(v interface{}) string {
   448  	rv := reflect.ValueOf(v)
   449  	if rv.IsNil() {
   450  		return "nil"
   451  	}
   452  	pv := reflect.Indirect(rv).Interface()
   453  	return fmt.Sprintf("*%v", pv)
   454  }
   455  func (m *Process) Unmarshal(dAtA []byte) error {
   456  	l := len(dAtA)
   457  	iNdEx := 0
   458  	for iNdEx < l {
   459  		preIndex := iNdEx
   460  		var wire uint64
   461  		for shift := uint(0); ; shift += 7 {
   462  			if shift >= 64 {
   463  				return ErrIntOverflowTask
   464  			}
   465  			if iNdEx >= l {
   466  				return io.ErrUnexpectedEOF
   467  			}
   468  			b := dAtA[iNdEx]
   469  			iNdEx++
   470  			wire |= uint64(b&0x7F) << shift
   471  			if b < 0x80 {
   472  				break
   473  			}
   474  		}
   475  		fieldNum := int32(wire >> 3)
   476  		wireType := int(wire & 0x7)
   477  		if wireType == 4 {
   478  			return fmt.Errorf("proto: Process: wiretype end group for non-group")
   479  		}
   480  		if fieldNum <= 0 {
   481  			return fmt.Errorf("proto: Process: illegal tag %d (wire type %d)", fieldNum, wire)
   482  		}
   483  		switch fieldNum {
   484  		case 1:
   485  			if wireType != 2 {
   486  				return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType)
   487  			}
   488  			var stringLen uint64
   489  			for shift := uint(0); ; shift += 7 {
   490  				if shift >= 64 {
   491  					return ErrIntOverflowTask
   492  				}
   493  				if iNdEx >= l {
   494  					return io.ErrUnexpectedEOF
   495  				}
   496  				b := dAtA[iNdEx]
   497  				iNdEx++
   498  				stringLen |= uint64(b&0x7F) << shift
   499  				if b < 0x80 {
   500  					break
   501  				}
   502  			}
   503  			intStringLen := int(stringLen)
   504  			if intStringLen < 0 {
   505  				return ErrInvalidLengthTask
   506  			}
   507  			postIndex := iNdEx + intStringLen
   508  			if postIndex < 0 {
   509  				return ErrInvalidLengthTask
   510  			}
   511  			if postIndex > l {
   512  				return io.ErrUnexpectedEOF
   513  			}
   514  			m.ContainerID = string(dAtA[iNdEx:postIndex])
   515  			iNdEx = postIndex
   516  		case 2:
   517  			if wireType != 2 {
   518  				return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
   519  			}
   520  			var stringLen uint64
   521  			for shift := uint(0); ; shift += 7 {
   522  				if shift >= 64 {
   523  					return ErrIntOverflowTask
   524  				}
   525  				if iNdEx >= l {
   526  					return io.ErrUnexpectedEOF
   527  				}
   528  				b := dAtA[iNdEx]
   529  				iNdEx++
   530  				stringLen |= uint64(b&0x7F) << shift
   531  				if b < 0x80 {
   532  					break
   533  				}
   534  			}
   535  			intStringLen := int(stringLen)
   536  			if intStringLen < 0 {
   537  				return ErrInvalidLengthTask
   538  			}
   539  			postIndex := iNdEx + intStringLen
   540  			if postIndex < 0 {
   541  				return ErrInvalidLengthTask
   542  			}
   543  			if postIndex > l {
   544  				return io.ErrUnexpectedEOF
   545  			}
   546  			m.ID = string(dAtA[iNdEx:postIndex])
   547  			iNdEx = postIndex
   548  		case 3:
   549  			if wireType != 0 {
   550  				return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
   551  			}
   552  			m.Pid = 0
   553  			for shift := uint(0); ; shift += 7 {
   554  				if shift >= 64 {
   555  					return ErrIntOverflowTask
   556  				}
   557  				if iNdEx >= l {
   558  					return io.ErrUnexpectedEOF
   559  				}
   560  				b := dAtA[iNdEx]
   561  				iNdEx++
   562  				m.Pid |= uint32(b&0x7F) << shift
   563  				if b < 0x80 {
   564  					break
   565  				}
   566  			}
   567  		case 4:
   568  			if wireType != 0 {
   569  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
   570  			}
   571  			m.Status = 0
   572  			for shift := uint(0); ; shift += 7 {
   573  				if shift >= 64 {
   574  					return ErrIntOverflowTask
   575  				}
   576  				if iNdEx >= l {
   577  					return io.ErrUnexpectedEOF
   578  				}
   579  				b := dAtA[iNdEx]
   580  				iNdEx++
   581  				m.Status |= Status(b&0x7F) << shift
   582  				if b < 0x80 {
   583  					break
   584  				}
   585  			}
   586  		case 5:
   587  			if wireType != 2 {
   588  				return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType)
   589  			}
   590  			var stringLen uint64
   591  			for shift := uint(0); ; shift += 7 {
   592  				if shift >= 64 {
   593  					return ErrIntOverflowTask
   594  				}
   595  				if iNdEx >= l {
   596  					return io.ErrUnexpectedEOF
   597  				}
   598  				b := dAtA[iNdEx]
   599  				iNdEx++
   600  				stringLen |= uint64(b&0x7F) << shift
   601  				if b < 0x80 {
   602  					break
   603  				}
   604  			}
   605  			intStringLen := int(stringLen)
   606  			if intStringLen < 0 {
   607  				return ErrInvalidLengthTask
   608  			}
   609  			postIndex := iNdEx + intStringLen
   610  			if postIndex < 0 {
   611  				return ErrInvalidLengthTask
   612  			}
   613  			if postIndex > l {
   614  				return io.ErrUnexpectedEOF
   615  			}
   616  			m.Stdin = string(dAtA[iNdEx:postIndex])
   617  			iNdEx = postIndex
   618  		case 6:
   619  			if wireType != 2 {
   620  				return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType)
   621  			}
   622  			var stringLen uint64
   623  			for shift := uint(0); ; shift += 7 {
   624  				if shift >= 64 {
   625  					return ErrIntOverflowTask
   626  				}
   627  				if iNdEx >= l {
   628  					return io.ErrUnexpectedEOF
   629  				}
   630  				b := dAtA[iNdEx]
   631  				iNdEx++
   632  				stringLen |= uint64(b&0x7F) << shift
   633  				if b < 0x80 {
   634  					break
   635  				}
   636  			}
   637  			intStringLen := int(stringLen)
   638  			if intStringLen < 0 {
   639  				return ErrInvalidLengthTask
   640  			}
   641  			postIndex := iNdEx + intStringLen
   642  			if postIndex < 0 {
   643  				return ErrInvalidLengthTask
   644  			}
   645  			if postIndex > l {
   646  				return io.ErrUnexpectedEOF
   647  			}
   648  			m.Stdout = string(dAtA[iNdEx:postIndex])
   649  			iNdEx = postIndex
   650  		case 7:
   651  			if wireType != 2 {
   652  				return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType)
   653  			}
   654  			var stringLen uint64
   655  			for shift := uint(0); ; shift += 7 {
   656  				if shift >= 64 {
   657  					return ErrIntOverflowTask
   658  				}
   659  				if iNdEx >= l {
   660  					return io.ErrUnexpectedEOF
   661  				}
   662  				b := dAtA[iNdEx]
   663  				iNdEx++
   664  				stringLen |= uint64(b&0x7F) << shift
   665  				if b < 0x80 {
   666  					break
   667  				}
   668  			}
   669  			intStringLen := int(stringLen)
   670  			if intStringLen < 0 {
   671  				return ErrInvalidLengthTask
   672  			}
   673  			postIndex := iNdEx + intStringLen
   674  			if postIndex < 0 {
   675  				return ErrInvalidLengthTask
   676  			}
   677  			if postIndex > l {
   678  				return io.ErrUnexpectedEOF
   679  			}
   680  			m.Stderr = string(dAtA[iNdEx:postIndex])
   681  			iNdEx = postIndex
   682  		case 8:
   683  			if wireType != 0 {
   684  				return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType)
   685  			}
   686  			var v int
   687  			for shift := uint(0); ; shift += 7 {
   688  				if shift >= 64 {
   689  					return ErrIntOverflowTask
   690  				}
   691  				if iNdEx >= l {
   692  					return io.ErrUnexpectedEOF
   693  				}
   694  				b := dAtA[iNdEx]
   695  				iNdEx++
   696  				v |= int(b&0x7F) << shift
   697  				if b < 0x80 {
   698  					break
   699  				}
   700  			}
   701  			m.Terminal = bool(v != 0)
   702  		case 9:
   703  			if wireType != 0 {
   704  				return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType)
   705  			}
   706  			m.ExitStatus = 0
   707  			for shift := uint(0); ; shift += 7 {
   708  				if shift >= 64 {
   709  					return ErrIntOverflowTask
   710  				}
   711  				if iNdEx >= l {
   712  					return io.ErrUnexpectedEOF
   713  				}
   714  				b := dAtA[iNdEx]
   715  				iNdEx++
   716  				m.ExitStatus |= uint32(b&0x7F) << shift
   717  				if b < 0x80 {
   718  					break
   719  				}
   720  			}
   721  		case 10:
   722  			if wireType != 2 {
   723  				return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType)
   724  			}
   725  			var msglen int
   726  			for shift := uint(0); ; shift += 7 {
   727  				if shift >= 64 {
   728  					return ErrIntOverflowTask
   729  				}
   730  				if iNdEx >= l {
   731  					return io.ErrUnexpectedEOF
   732  				}
   733  				b := dAtA[iNdEx]
   734  				iNdEx++
   735  				msglen |= int(b&0x7F) << shift
   736  				if b < 0x80 {
   737  					break
   738  				}
   739  			}
   740  			if msglen < 0 {
   741  				return ErrInvalidLengthTask
   742  			}
   743  			postIndex := iNdEx + msglen
   744  			if postIndex < 0 {
   745  				return ErrInvalidLengthTask
   746  			}
   747  			if postIndex > l {
   748  				return io.ErrUnexpectedEOF
   749  			}
   750  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil {
   751  				return err
   752  			}
   753  			iNdEx = postIndex
   754  		default:
   755  			iNdEx = preIndex
   756  			skippy, err := skipTask(dAtA[iNdEx:])
   757  			if err != nil {
   758  				return err
   759  			}
   760  			if skippy < 0 {
   761  				return ErrInvalidLengthTask
   762  			}
   763  			if (iNdEx + skippy) < 0 {
   764  				return ErrInvalidLengthTask
   765  			}
   766  			if (iNdEx + skippy) > l {
   767  				return io.ErrUnexpectedEOF
   768  			}
   769  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   770  			iNdEx += skippy
   771  		}
   772  	}
   773  
   774  	if iNdEx > l {
   775  		return io.ErrUnexpectedEOF
   776  	}
   777  	return nil
   778  }
   779  func (m *ProcessInfo) Unmarshal(dAtA []byte) error {
   780  	l := len(dAtA)
   781  	iNdEx := 0
   782  	for iNdEx < l {
   783  		preIndex := iNdEx
   784  		var wire uint64
   785  		for shift := uint(0); ; shift += 7 {
   786  			if shift >= 64 {
   787  				return ErrIntOverflowTask
   788  			}
   789  			if iNdEx >= l {
   790  				return io.ErrUnexpectedEOF
   791  			}
   792  			b := dAtA[iNdEx]
   793  			iNdEx++
   794  			wire |= uint64(b&0x7F) << shift
   795  			if b < 0x80 {
   796  				break
   797  			}
   798  		}
   799  		fieldNum := int32(wire >> 3)
   800  		wireType := int(wire & 0x7)
   801  		if wireType == 4 {
   802  			return fmt.Errorf("proto: ProcessInfo: wiretype end group for non-group")
   803  		}
   804  		if fieldNum <= 0 {
   805  			return fmt.Errorf("proto: ProcessInfo: illegal tag %d (wire type %d)", fieldNum, wire)
   806  		}
   807  		switch fieldNum {
   808  		case 1:
   809  			if wireType != 0 {
   810  				return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType)
   811  			}
   812  			m.Pid = 0
   813  			for shift := uint(0); ; shift += 7 {
   814  				if shift >= 64 {
   815  					return ErrIntOverflowTask
   816  				}
   817  				if iNdEx >= l {
   818  					return io.ErrUnexpectedEOF
   819  				}
   820  				b := dAtA[iNdEx]
   821  				iNdEx++
   822  				m.Pid |= uint32(b&0x7F) << shift
   823  				if b < 0x80 {
   824  					break
   825  				}
   826  			}
   827  		case 2:
   828  			if wireType != 2 {
   829  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
   830  			}
   831  			var msglen int
   832  			for shift := uint(0); ; shift += 7 {
   833  				if shift >= 64 {
   834  					return ErrIntOverflowTask
   835  				}
   836  				if iNdEx >= l {
   837  					return io.ErrUnexpectedEOF
   838  				}
   839  				b := dAtA[iNdEx]
   840  				iNdEx++
   841  				msglen |= int(b&0x7F) << shift
   842  				if b < 0x80 {
   843  					break
   844  				}
   845  			}
   846  			if msglen < 0 {
   847  				return ErrInvalidLengthTask
   848  			}
   849  			postIndex := iNdEx + msglen
   850  			if postIndex < 0 {
   851  				return ErrInvalidLengthTask
   852  			}
   853  			if postIndex > l {
   854  				return io.ErrUnexpectedEOF
   855  			}
   856  			if m.Info == nil {
   857  				m.Info = &types.Any{}
   858  			}
   859  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   860  				return err
   861  			}
   862  			iNdEx = postIndex
   863  		default:
   864  			iNdEx = preIndex
   865  			skippy, err := skipTask(dAtA[iNdEx:])
   866  			if err != nil {
   867  				return err
   868  			}
   869  			if skippy < 0 {
   870  				return ErrInvalidLengthTask
   871  			}
   872  			if (iNdEx + skippy) < 0 {
   873  				return ErrInvalidLengthTask
   874  			}
   875  			if (iNdEx + skippy) > l {
   876  				return io.ErrUnexpectedEOF
   877  			}
   878  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   879  			iNdEx += skippy
   880  		}
   881  	}
   882  
   883  	if iNdEx > l {
   884  		return io.ErrUnexpectedEOF
   885  	}
   886  	return nil
   887  }
   888  func skipTask(dAtA []byte) (n int, err error) {
   889  	l := len(dAtA)
   890  	iNdEx := 0
   891  	for iNdEx < l {
   892  		var wire uint64
   893  		for shift := uint(0); ; shift += 7 {
   894  			if shift >= 64 {
   895  				return 0, ErrIntOverflowTask
   896  			}
   897  			if iNdEx >= l {
   898  				return 0, io.ErrUnexpectedEOF
   899  			}
   900  			b := dAtA[iNdEx]
   901  			iNdEx++
   902  			wire |= (uint64(b) & 0x7F) << shift
   903  			if b < 0x80 {
   904  				break
   905  			}
   906  		}
   907  		wireType := int(wire & 0x7)
   908  		switch wireType {
   909  		case 0:
   910  			for shift := uint(0); ; shift += 7 {
   911  				if shift >= 64 {
   912  					return 0, ErrIntOverflowTask
   913  				}
   914  				if iNdEx >= l {
   915  					return 0, io.ErrUnexpectedEOF
   916  				}
   917  				iNdEx++
   918  				if dAtA[iNdEx-1] < 0x80 {
   919  					break
   920  				}
   921  			}
   922  			return iNdEx, nil
   923  		case 1:
   924  			iNdEx += 8
   925  			return iNdEx, nil
   926  		case 2:
   927  			var length int
   928  			for shift := uint(0); ; shift += 7 {
   929  				if shift >= 64 {
   930  					return 0, ErrIntOverflowTask
   931  				}
   932  				if iNdEx >= l {
   933  					return 0, io.ErrUnexpectedEOF
   934  				}
   935  				b := dAtA[iNdEx]
   936  				iNdEx++
   937  				length |= (int(b) & 0x7F) << shift
   938  				if b < 0x80 {
   939  					break
   940  				}
   941  			}
   942  			if length < 0 {
   943  				return 0, ErrInvalidLengthTask
   944  			}
   945  			iNdEx += length
   946  			if iNdEx < 0 {
   947  				return 0, ErrInvalidLengthTask
   948  			}
   949  			return iNdEx, nil
   950  		case 3:
   951  			for {
   952  				var innerWire uint64
   953  				var start int = iNdEx
   954  				for shift := uint(0); ; shift += 7 {
   955  					if shift >= 64 {
   956  						return 0, ErrIntOverflowTask
   957  					}
   958  					if iNdEx >= l {
   959  						return 0, io.ErrUnexpectedEOF
   960  					}
   961  					b := dAtA[iNdEx]
   962  					iNdEx++
   963  					innerWire |= (uint64(b) & 0x7F) << shift
   964  					if b < 0x80 {
   965  						break
   966  					}
   967  				}
   968  				innerWireType := int(innerWire & 0x7)
   969  				if innerWireType == 4 {
   970  					break
   971  				}
   972  				next, err := skipTask(dAtA[start:])
   973  				if err != nil {
   974  					return 0, err
   975  				}
   976  				iNdEx = start + next
   977  				if iNdEx < 0 {
   978  					return 0, ErrInvalidLengthTask
   979  				}
   980  			}
   981  			return iNdEx, nil
   982  		case 4:
   983  			return iNdEx, nil
   984  		case 5:
   985  			iNdEx += 4
   986  			return iNdEx, nil
   987  		default:
   988  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   989  		}
   990  	}
   991  	panic("unreachable")
   992  }
   993  
   994  var (
   995  	ErrInvalidLengthTask = fmt.Errorf("proto: negative length found during unmarshaling")
   996  	ErrIntOverflowTask   = fmt.Errorf("proto: integer overflow")
   997  )