github.com/containerd/Containerd@v1.4.13/runtime/v2/runc/options/oci.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/containerd/containerd/runtime/v2/runc/options/oci.proto
     3  
     4  package options
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	io "io"
    10  	math "math"
    11  	math_bits "math/bits"
    12  	reflect "reflect"
    13  	strings "strings"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  type Options struct {
    28  	// disable pivot root when creating a container
    29  	NoPivotRoot bool `protobuf:"varint,1,opt,name=no_pivot_root,json=noPivotRoot,proto3" json:"no_pivot_root,omitempty"`
    30  	// create a new keyring for the container
    31  	NoNewKeyring bool `protobuf:"varint,2,opt,name=no_new_keyring,json=noNewKeyring,proto3" json:"no_new_keyring,omitempty"`
    32  	// place the shim in a cgroup
    33  	ShimCgroup string `protobuf:"bytes,3,opt,name=shim_cgroup,json=shimCgroup,proto3" json:"shim_cgroup,omitempty"`
    34  	// set the I/O's pipes uid
    35  	IoUid uint32 `protobuf:"varint,4,opt,name=io_uid,json=ioUid,proto3" json:"io_uid,omitempty"`
    36  	// set the I/O's pipes gid
    37  	IoGid uint32 `protobuf:"varint,5,opt,name=io_gid,json=ioGid,proto3" json:"io_gid,omitempty"`
    38  	// binary name of the runc binary
    39  	BinaryName string `protobuf:"bytes,6,opt,name=binary_name,json=binaryName,proto3" json:"binary_name,omitempty"`
    40  	// runc root directory
    41  	Root string `protobuf:"bytes,7,opt,name=root,proto3" json:"root,omitempty"`
    42  	// criu binary path
    43  	CriuPath string `protobuf:"bytes,8,opt,name=criu_path,json=criuPath,proto3" json:"criu_path,omitempty"`
    44  	// enable systemd cgroups
    45  	SystemdCgroup bool `protobuf:"varint,9,opt,name=systemd_cgroup,json=systemdCgroup,proto3" json:"systemd_cgroup,omitempty"`
    46  	// criu image path
    47  	CriuImagePath string `protobuf:"bytes,10,opt,name=criu_image_path,json=criuImagePath,proto3" json:"criu_image_path,omitempty"`
    48  	// criu work path
    49  	CriuWorkPath         string   `protobuf:"bytes,11,opt,name=criu_work_path,json=criuWorkPath,proto3" json:"criu_work_path,omitempty"`
    50  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    51  	XXX_unrecognized     []byte   `json:"-"`
    52  	XXX_sizecache        int32    `json:"-"`
    53  }
    54  
    55  func (m *Options) Reset()      { *m = Options{} }
    56  func (*Options) ProtoMessage() {}
    57  func (*Options) Descriptor() ([]byte, []int) {
    58  	return fileDescriptor_4e5440d739e9a863, []int{0}
    59  }
    60  func (m *Options) XXX_Unmarshal(b []byte) error {
    61  	return m.Unmarshal(b)
    62  }
    63  func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    64  	if deterministic {
    65  		return xxx_messageInfo_Options.Marshal(b, m, deterministic)
    66  	} else {
    67  		b = b[:cap(b)]
    68  		n, err := m.MarshalToSizedBuffer(b)
    69  		if err != nil {
    70  			return nil, err
    71  		}
    72  		return b[:n], nil
    73  	}
    74  }
    75  func (m *Options) XXX_Merge(src proto.Message) {
    76  	xxx_messageInfo_Options.Merge(m, src)
    77  }
    78  func (m *Options) XXX_Size() int {
    79  	return m.Size()
    80  }
    81  func (m *Options) XXX_DiscardUnknown() {
    82  	xxx_messageInfo_Options.DiscardUnknown(m)
    83  }
    84  
    85  var xxx_messageInfo_Options proto.InternalMessageInfo
    86  
    87  type CheckpointOptions struct {
    88  	// exit the container after a checkpoint
    89  	Exit bool `protobuf:"varint,1,opt,name=exit,proto3" json:"exit,omitempty"`
    90  	// checkpoint open tcp connections
    91  	OpenTcp bool `protobuf:"varint,2,opt,name=open_tcp,json=openTcp,proto3" json:"open_tcp,omitempty"`
    92  	// checkpoint external unix sockets
    93  	ExternalUnixSockets bool `protobuf:"varint,3,opt,name=external_unix_sockets,json=externalUnixSockets,proto3" json:"external_unix_sockets,omitempty"`
    94  	// checkpoint terminals (ptys)
    95  	Terminal bool `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"`
    96  	// allow checkpointing of file locks
    97  	FileLocks bool `protobuf:"varint,5,opt,name=file_locks,json=fileLocks,proto3" json:"file_locks,omitempty"`
    98  	// restore provided namespaces as empty namespaces
    99  	EmptyNamespaces []string `protobuf:"bytes,6,rep,name=empty_namespaces,json=emptyNamespaces,proto3" json:"empty_namespaces,omitempty"`
   100  	// set the cgroups mode, soft, full, strict
   101  	CgroupsMode string `protobuf:"bytes,7,opt,name=cgroups_mode,json=cgroupsMode,proto3" json:"cgroups_mode,omitempty"`
   102  	// checkpoint image path
   103  	ImagePath string `protobuf:"bytes,8,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"`
   104  	// checkpoint work path
   105  	WorkPath             string   `protobuf:"bytes,9,opt,name=work_path,json=workPath,proto3" json:"work_path,omitempty"`
   106  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   107  	XXX_unrecognized     []byte   `json:"-"`
   108  	XXX_sizecache        int32    `json:"-"`
   109  }
   110  
   111  func (m *CheckpointOptions) Reset()      { *m = CheckpointOptions{} }
   112  func (*CheckpointOptions) ProtoMessage() {}
   113  func (*CheckpointOptions) Descriptor() ([]byte, []int) {
   114  	return fileDescriptor_4e5440d739e9a863, []int{1}
   115  }
   116  func (m *CheckpointOptions) XXX_Unmarshal(b []byte) error {
   117  	return m.Unmarshal(b)
   118  }
   119  func (m *CheckpointOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   120  	if deterministic {
   121  		return xxx_messageInfo_CheckpointOptions.Marshal(b, m, deterministic)
   122  	} else {
   123  		b = b[:cap(b)]
   124  		n, err := m.MarshalToSizedBuffer(b)
   125  		if err != nil {
   126  			return nil, err
   127  		}
   128  		return b[:n], nil
   129  	}
   130  }
   131  func (m *CheckpointOptions) XXX_Merge(src proto.Message) {
   132  	xxx_messageInfo_CheckpointOptions.Merge(m, src)
   133  }
   134  func (m *CheckpointOptions) XXX_Size() int {
   135  	return m.Size()
   136  }
   137  func (m *CheckpointOptions) XXX_DiscardUnknown() {
   138  	xxx_messageInfo_CheckpointOptions.DiscardUnknown(m)
   139  }
   140  
   141  var xxx_messageInfo_CheckpointOptions proto.InternalMessageInfo
   142  
   143  type ProcessDetails struct {
   144  	// exec process id if the process is managed by a shim
   145  	ExecID               string   `protobuf:"bytes,1,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
   146  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   147  	XXX_unrecognized     []byte   `json:"-"`
   148  	XXX_sizecache        int32    `json:"-"`
   149  }
   150  
   151  func (m *ProcessDetails) Reset()      { *m = ProcessDetails{} }
   152  func (*ProcessDetails) ProtoMessage() {}
   153  func (*ProcessDetails) Descriptor() ([]byte, []int) {
   154  	return fileDescriptor_4e5440d739e9a863, []int{2}
   155  }
   156  func (m *ProcessDetails) XXX_Unmarshal(b []byte) error {
   157  	return m.Unmarshal(b)
   158  }
   159  func (m *ProcessDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   160  	if deterministic {
   161  		return xxx_messageInfo_ProcessDetails.Marshal(b, m, deterministic)
   162  	} else {
   163  		b = b[:cap(b)]
   164  		n, err := m.MarshalToSizedBuffer(b)
   165  		if err != nil {
   166  			return nil, err
   167  		}
   168  		return b[:n], nil
   169  	}
   170  }
   171  func (m *ProcessDetails) XXX_Merge(src proto.Message) {
   172  	xxx_messageInfo_ProcessDetails.Merge(m, src)
   173  }
   174  func (m *ProcessDetails) XXX_Size() int {
   175  	return m.Size()
   176  }
   177  func (m *ProcessDetails) XXX_DiscardUnknown() {
   178  	xxx_messageInfo_ProcessDetails.DiscardUnknown(m)
   179  }
   180  
   181  var xxx_messageInfo_ProcessDetails proto.InternalMessageInfo
   182  
   183  func init() {
   184  	proto.RegisterType((*Options)(nil), "containerd.runc.v1.Options")
   185  	proto.RegisterType((*CheckpointOptions)(nil), "containerd.runc.v1.CheckpointOptions")
   186  	proto.RegisterType((*ProcessDetails)(nil), "containerd.runc.v1.ProcessDetails")
   187  }
   188  
   189  func init() {
   190  	proto.RegisterFile("github.com/containerd/containerd/runtime/v2/runc/options/oci.proto", fileDescriptor_4e5440d739e9a863)
   191  }
   192  
   193  var fileDescriptor_4e5440d739e9a863 = []byte{
   194  	// 587 bytes of a gzipped FileDescriptorProto
   195  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6e, 0xd3, 0x40,
   196  	0x10, 0x87, 0xeb, 0xfe, 0x49, 0xec, 0x4d, 0x93, 0xc2, 0x42, 0x25, 0xd3, 0x8a, 0x34, 0x94, 0x82,
   197  	0xc2, 0x25, 0x11, 0x45, 0x9c, 0xb8, 0xa0, 0xb6, 0x08, 0x55, 0x40, 0xa9, 0x0c, 0x15, 0xa8, 0x97,
   198  	0x95, 0xbb, 0x1e, 0x9c, 0x51, 0xe2, 0x1d, 0xcb, 0xbb, 0x69, 0xd2, 0x1b, 0xef, 0xc5, 0x0b, 0xf4,
   199  	0xc8, 0x91, 0x13, 0xa2, 0xb9, 0xf1, 0x16, 0x68, 0xd7, 0x4e, 0xdb, 0x33, 0x27, 0xcf, 0x7e, 0xf3,
   200  	0xf3, 0x78, 0xfd, 0xad, 0x96, 0xed, 0xa5, 0x68, 0x06, 0xe3, 0xb3, 0x9e, 0xa4, 0xac, 0x2f, 0x49,
   201  	0x99, 0x18, 0x15, 0x14, 0xc9, 0xed, 0xb2, 0x18, 0x2b, 0x83, 0x19, 0xf4, 0xcf, 0x77, 0x6d, 0x29,
   202  	0xfb, 0x94, 0x1b, 0x24, 0xa5, 0xfb, 0x24, 0xb1, 0x97, 0x17, 0x64, 0x88, 0xf3, 0x9b, 0x74, 0xcf,
   203  	0x46, 0x7a, 0xe7, 0xcf, 0x37, 0xee, 0xa7, 0x94, 0x92, 0x6b, 0xf7, 0x6d, 0x55, 0x26, 0xb7, 0xff,
   204  	0x2e, 0xb2, 0xfa, 0xc7, 0xf2, 0x7d, 0xbe, 0xcd, 0x9a, 0x8a, 0x44, 0x8e, 0xe7, 0x64, 0x44, 0x41,
   205  	0x64, 0x42, 0xaf, 0xe3, 0x75, 0xfd, 0xa8, 0xa1, 0xe8, 0xd8, 0xb2, 0x88, 0xc8, 0xf0, 0x1d, 0xd6,
   206  	0x52, 0x24, 0x14, 0x4c, 0xc4, 0x10, 0x2e, 0x0a, 0x54, 0x69, 0xb8, 0xe8, 0x42, 0xab, 0x8a, 0x8e,
   207  	0x60, 0xf2, 0xae, 0x64, 0x7c, 0x8b, 0x35, 0xf4, 0x00, 0x33, 0x21, 0xd3, 0x82, 0xc6, 0x79, 0xb8,
   208  	0xd4, 0xf1, 0xba, 0x41, 0xc4, 0x2c, 0xda, 0x77, 0x84, 0xaf, 0xb3, 0x1a, 0x92, 0x18, 0x63, 0x12,
   209  	0x2e, 0x77, 0xbc, 0x6e, 0x33, 0x5a, 0x41, 0x3a, 0xc1, 0xa4, 0xc2, 0x29, 0x26, 0xe1, 0xca, 0x1c,
   210  	0xbf, 0xc5, 0xc4, 0x8e, 0x3b, 0x43, 0x15, 0x17, 0x17, 0x42, 0xc5, 0x19, 0x84, 0xb5, 0x72, 0x5c,
   211  	0x89, 0x8e, 0xe2, 0x0c, 0x38, 0x67, 0xcb, 0x6e, 0xc3, 0x75, 0xd7, 0x71, 0x35, 0xdf, 0x64, 0x81,
   212  	0x2c, 0x70, 0x2c, 0xf2, 0xd8, 0x0c, 0x42, 0xdf, 0x35, 0x7c, 0x0b, 0x8e, 0x63, 0x33, 0xe0, 0x4f,
   213  	0x58, 0x4b, 0x5f, 0x68, 0x03, 0x59, 0x32, 0xdf, 0x63, 0xe0, 0x7e, 0xa3, 0x59, 0xd1, 0x6a, 0x9b,
   214  	0x4f, 0xd9, 0x9a, 0x9b, 0x81, 0x59, 0x9c, 0x42, 0x39, 0x89, 0xb9, 0x49, 0x4d, 0x8b, 0x0f, 0x2d,
   215  	0x75, 0xe3, 0x76, 0x58, 0xcb, 0xe5, 0x26, 0x54, 0x0c, 0xcb, 0x58, 0xc3, 0xc5, 0x56, 0x2d, 0xfd,
   216  	0x42, 0xc5, 0xd0, 0xa6, 0xb6, 0x7f, 0x2c, 0xb2, 0xbb, 0xfb, 0x03, 0x90, 0xc3, 0x9c, 0x50, 0x99,
   217  	0xb9, 0x75, 0xce, 0x96, 0x61, 0x8a, 0x73, 0xd9, 0xae, 0xe6, 0x0f, 0x98, 0x4f, 0x39, 0x28, 0x61,
   218  	0x64, 0x5e, 0xf9, 0xad, 0xdb, 0xf5, 0x67, 0x99, 0xf3, 0x5d, 0xb6, 0x0e, 0x53, 0x03, 0x85, 0x8a,
   219  	0x47, 0x62, 0xac, 0x70, 0x2a, 0x34, 0xc9, 0x21, 0x18, 0xed, 0x24, 0xfb, 0xd1, 0xbd, 0x79, 0xf3,
   220  	0x44, 0xe1, 0xf4, 0x53, 0xd9, 0xe2, 0x1b, 0xcc, 0x37, 0x50, 0x64, 0xa8, 0xe2, 0x91, 0xf3, 0xed,
   221  	0x47, 0xd7, 0x6b, 0xfe, 0x90, 0xb1, 0x6f, 0x38, 0x02, 0x31, 0x22, 0x39, 0xd4, 0x4e, 0xbb, 0x1f,
   222  	0x05, 0x96, 0xbc, 0xb7, 0x80, 0x3f, 0x63, 0x77, 0x20, 0xcb, 0x4d, 0x69, 0x5e, 0xe7, 0xb1, 0x04,
   223  	0x1d, 0xd6, 0x3a, 0x4b, 0xdd, 0x20, 0x5a, 0x73, 0xfc, 0xe8, 0x1a, 0xf3, 0x47, 0x6c, 0xb5, 0x74,
   224  	0xa9, 0x45, 0x46, 0x09, 0x54, 0x87, 0xd1, 0xa8, 0xd8, 0x07, 0x4a, 0xc0, 0x7e, 0xec, 0x96, 0xca,
   225  	0xf2, 0x50, 0x02, 0xbc, 0xd6, 0xb8, 0xc9, 0x82, 0x1b, 0x83, 0x41, 0x79, 0x64, 0x93, 0xb9, 0xbd,
   226  	0x97, 0xac, 0x75, 0x5c, 0x90, 0x04, 0xad, 0x0f, 0xc0, 0xc4, 0x38, 0xd2, 0xfc, 0x31, 0xab, 0xc3,
   227  	0x14, 0xa4, 0xc0, 0xc4, 0xc9, 0x0b, 0xf6, 0xd8, 0xec, 0xf7, 0x56, 0xed, 0xcd, 0x14, 0xe4, 0xe1,
   228  	0x41, 0x54, 0xb3, 0xad, 0xc3, 0x64, 0xef, 0xf4, 0xf2, 0xaa, 0xbd, 0xf0, 0xeb, 0xaa, 0xbd, 0xf0,
   229  	0x7d, 0xd6, 0xf6, 0x2e, 0x67, 0x6d, 0xef, 0xe7, 0xac, 0xed, 0xfd, 0x99, 0xb5, 0xbd, 0xd3, 0xd7,
   230  	0xff, 0x7b, 0xd1, 0x5e, 0x55, 0xcf, 0xaf, 0x0b, 0x67, 0x35, 0x77, 0x8b, 0x5e, 0xfc, 0x0b, 0x00,
   231  	0x00, 0xff, 0xff, 0x90, 0x50, 0x79, 0xf2, 0xb5, 0x03, 0x00, 0x00,
   232  }
   233  
   234  func (m *Options) Marshal() (dAtA []byte, err error) {
   235  	size := m.Size()
   236  	dAtA = make([]byte, size)
   237  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   238  	if err != nil {
   239  		return nil, err
   240  	}
   241  	return dAtA[:n], nil
   242  }
   243  
   244  func (m *Options) MarshalTo(dAtA []byte) (int, error) {
   245  	size := m.Size()
   246  	return m.MarshalToSizedBuffer(dAtA[:size])
   247  }
   248  
   249  func (m *Options) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   250  	i := len(dAtA)
   251  	_ = i
   252  	var l int
   253  	_ = l
   254  	if m.XXX_unrecognized != nil {
   255  		i -= len(m.XXX_unrecognized)
   256  		copy(dAtA[i:], m.XXX_unrecognized)
   257  	}
   258  	if len(m.CriuWorkPath) > 0 {
   259  		i -= len(m.CriuWorkPath)
   260  		copy(dAtA[i:], m.CriuWorkPath)
   261  		i = encodeVarintOci(dAtA, i, uint64(len(m.CriuWorkPath)))
   262  		i--
   263  		dAtA[i] = 0x5a
   264  	}
   265  	if len(m.CriuImagePath) > 0 {
   266  		i -= len(m.CriuImagePath)
   267  		copy(dAtA[i:], m.CriuImagePath)
   268  		i = encodeVarintOci(dAtA, i, uint64(len(m.CriuImagePath)))
   269  		i--
   270  		dAtA[i] = 0x52
   271  	}
   272  	if m.SystemdCgroup {
   273  		i--
   274  		if m.SystemdCgroup {
   275  			dAtA[i] = 1
   276  		} else {
   277  			dAtA[i] = 0
   278  		}
   279  		i--
   280  		dAtA[i] = 0x48
   281  	}
   282  	if len(m.CriuPath) > 0 {
   283  		i -= len(m.CriuPath)
   284  		copy(dAtA[i:], m.CriuPath)
   285  		i = encodeVarintOci(dAtA, i, uint64(len(m.CriuPath)))
   286  		i--
   287  		dAtA[i] = 0x42
   288  	}
   289  	if len(m.Root) > 0 {
   290  		i -= len(m.Root)
   291  		copy(dAtA[i:], m.Root)
   292  		i = encodeVarintOci(dAtA, i, uint64(len(m.Root)))
   293  		i--
   294  		dAtA[i] = 0x3a
   295  	}
   296  	if len(m.BinaryName) > 0 {
   297  		i -= len(m.BinaryName)
   298  		copy(dAtA[i:], m.BinaryName)
   299  		i = encodeVarintOci(dAtA, i, uint64(len(m.BinaryName)))
   300  		i--
   301  		dAtA[i] = 0x32
   302  	}
   303  	if m.IoGid != 0 {
   304  		i = encodeVarintOci(dAtA, i, uint64(m.IoGid))
   305  		i--
   306  		dAtA[i] = 0x28
   307  	}
   308  	if m.IoUid != 0 {
   309  		i = encodeVarintOci(dAtA, i, uint64(m.IoUid))
   310  		i--
   311  		dAtA[i] = 0x20
   312  	}
   313  	if len(m.ShimCgroup) > 0 {
   314  		i -= len(m.ShimCgroup)
   315  		copy(dAtA[i:], m.ShimCgroup)
   316  		i = encodeVarintOci(dAtA, i, uint64(len(m.ShimCgroup)))
   317  		i--
   318  		dAtA[i] = 0x1a
   319  	}
   320  	if m.NoNewKeyring {
   321  		i--
   322  		if m.NoNewKeyring {
   323  			dAtA[i] = 1
   324  		} else {
   325  			dAtA[i] = 0
   326  		}
   327  		i--
   328  		dAtA[i] = 0x10
   329  	}
   330  	if m.NoPivotRoot {
   331  		i--
   332  		if m.NoPivotRoot {
   333  			dAtA[i] = 1
   334  		} else {
   335  			dAtA[i] = 0
   336  		}
   337  		i--
   338  		dAtA[i] = 0x8
   339  	}
   340  	return len(dAtA) - i, nil
   341  }
   342  
   343  func (m *CheckpointOptions) Marshal() (dAtA []byte, err error) {
   344  	size := m.Size()
   345  	dAtA = make([]byte, size)
   346  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   347  	if err != nil {
   348  		return nil, err
   349  	}
   350  	return dAtA[:n], nil
   351  }
   352  
   353  func (m *CheckpointOptions) MarshalTo(dAtA []byte) (int, error) {
   354  	size := m.Size()
   355  	return m.MarshalToSizedBuffer(dAtA[:size])
   356  }
   357  
   358  func (m *CheckpointOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   359  	i := len(dAtA)
   360  	_ = i
   361  	var l int
   362  	_ = l
   363  	if m.XXX_unrecognized != nil {
   364  		i -= len(m.XXX_unrecognized)
   365  		copy(dAtA[i:], m.XXX_unrecognized)
   366  	}
   367  	if len(m.WorkPath) > 0 {
   368  		i -= len(m.WorkPath)
   369  		copy(dAtA[i:], m.WorkPath)
   370  		i = encodeVarintOci(dAtA, i, uint64(len(m.WorkPath)))
   371  		i--
   372  		dAtA[i] = 0x4a
   373  	}
   374  	if len(m.ImagePath) > 0 {
   375  		i -= len(m.ImagePath)
   376  		copy(dAtA[i:], m.ImagePath)
   377  		i = encodeVarintOci(dAtA, i, uint64(len(m.ImagePath)))
   378  		i--
   379  		dAtA[i] = 0x42
   380  	}
   381  	if len(m.CgroupsMode) > 0 {
   382  		i -= len(m.CgroupsMode)
   383  		copy(dAtA[i:], m.CgroupsMode)
   384  		i = encodeVarintOci(dAtA, i, uint64(len(m.CgroupsMode)))
   385  		i--
   386  		dAtA[i] = 0x3a
   387  	}
   388  	if len(m.EmptyNamespaces) > 0 {
   389  		for iNdEx := len(m.EmptyNamespaces) - 1; iNdEx >= 0; iNdEx-- {
   390  			i -= len(m.EmptyNamespaces[iNdEx])
   391  			copy(dAtA[i:], m.EmptyNamespaces[iNdEx])
   392  			i = encodeVarintOci(dAtA, i, uint64(len(m.EmptyNamespaces[iNdEx])))
   393  			i--
   394  			dAtA[i] = 0x32
   395  		}
   396  	}
   397  	if m.FileLocks {
   398  		i--
   399  		if m.FileLocks {
   400  			dAtA[i] = 1
   401  		} else {
   402  			dAtA[i] = 0
   403  		}
   404  		i--
   405  		dAtA[i] = 0x28
   406  	}
   407  	if m.Terminal {
   408  		i--
   409  		if m.Terminal {
   410  			dAtA[i] = 1
   411  		} else {
   412  			dAtA[i] = 0
   413  		}
   414  		i--
   415  		dAtA[i] = 0x20
   416  	}
   417  	if m.ExternalUnixSockets {
   418  		i--
   419  		if m.ExternalUnixSockets {
   420  			dAtA[i] = 1
   421  		} else {
   422  			dAtA[i] = 0
   423  		}
   424  		i--
   425  		dAtA[i] = 0x18
   426  	}
   427  	if m.OpenTcp {
   428  		i--
   429  		if m.OpenTcp {
   430  			dAtA[i] = 1
   431  		} else {
   432  			dAtA[i] = 0
   433  		}
   434  		i--
   435  		dAtA[i] = 0x10
   436  	}
   437  	if m.Exit {
   438  		i--
   439  		if m.Exit {
   440  			dAtA[i] = 1
   441  		} else {
   442  			dAtA[i] = 0
   443  		}
   444  		i--
   445  		dAtA[i] = 0x8
   446  	}
   447  	return len(dAtA) - i, nil
   448  }
   449  
   450  func (m *ProcessDetails) Marshal() (dAtA []byte, err error) {
   451  	size := m.Size()
   452  	dAtA = make([]byte, size)
   453  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   454  	if err != nil {
   455  		return nil, err
   456  	}
   457  	return dAtA[:n], nil
   458  }
   459  
   460  func (m *ProcessDetails) MarshalTo(dAtA []byte) (int, error) {
   461  	size := m.Size()
   462  	return m.MarshalToSizedBuffer(dAtA[:size])
   463  }
   464  
   465  func (m *ProcessDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   466  	i := len(dAtA)
   467  	_ = i
   468  	var l int
   469  	_ = l
   470  	if m.XXX_unrecognized != nil {
   471  		i -= len(m.XXX_unrecognized)
   472  		copy(dAtA[i:], m.XXX_unrecognized)
   473  	}
   474  	if len(m.ExecID) > 0 {
   475  		i -= len(m.ExecID)
   476  		copy(dAtA[i:], m.ExecID)
   477  		i = encodeVarintOci(dAtA, i, uint64(len(m.ExecID)))
   478  		i--
   479  		dAtA[i] = 0xa
   480  	}
   481  	return len(dAtA) - i, nil
   482  }
   483  
   484  func encodeVarintOci(dAtA []byte, offset int, v uint64) int {
   485  	offset -= sovOci(v)
   486  	base := offset
   487  	for v >= 1<<7 {
   488  		dAtA[offset] = uint8(v&0x7f | 0x80)
   489  		v >>= 7
   490  		offset++
   491  	}
   492  	dAtA[offset] = uint8(v)
   493  	return base
   494  }
   495  func (m *Options) Size() (n int) {
   496  	if m == nil {
   497  		return 0
   498  	}
   499  	var l int
   500  	_ = l
   501  	if m.NoPivotRoot {
   502  		n += 2
   503  	}
   504  	if m.NoNewKeyring {
   505  		n += 2
   506  	}
   507  	l = len(m.ShimCgroup)
   508  	if l > 0 {
   509  		n += 1 + l + sovOci(uint64(l))
   510  	}
   511  	if m.IoUid != 0 {
   512  		n += 1 + sovOci(uint64(m.IoUid))
   513  	}
   514  	if m.IoGid != 0 {
   515  		n += 1 + sovOci(uint64(m.IoGid))
   516  	}
   517  	l = len(m.BinaryName)
   518  	if l > 0 {
   519  		n += 1 + l + sovOci(uint64(l))
   520  	}
   521  	l = len(m.Root)
   522  	if l > 0 {
   523  		n += 1 + l + sovOci(uint64(l))
   524  	}
   525  	l = len(m.CriuPath)
   526  	if l > 0 {
   527  		n += 1 + l + sovOci(uint64(l))
   528  	}
   529  	if m.SystemdCgroup {
   530  		n += 2
   531  	}
   532  	l = len(m.CriuImagePath)
   533  	if l > 0 {
   534  		n += 1 + l + sovOci(uint64(l))
   535  	}
   536  	l = len(m.CriuWorkPath)
   537  	if l > 0 {
   538  		n += 1 + l + sovOci(uint64(l))
   539  	}
   540  	if m.XXX_unrecognized != nil {
   541  		n += len(m.XXX_unrecognized)
   542  	}
   543  	return n
   544  }
   545  
   546  func (m *CheckpointOptions) Size() (n int) {
   547  	if m == nil {
   548  		return 0
   549  	}
   550  	var l int
   551  	_ = l
   552  	if m.Exit {
   553  		n += 2
   554  	}
   555  	if m.OpenTcp {
   556  		n += 2
   557  	}
   558  	if m.ExternalUnixSockets {
   559  		n += 2
   560  	}
   561  	if m.Terminal {
   562  		n += 2
   563  	}
   564  	if m.FileLocks {
   565  		n += 2
   566  	}
   567  	if len(m.EmptyNamespaces) > 0 {
   568  		for _, s := range m.EmptyNamespaces {
   569  			l = len(s)
   570  			n += 1 + l + sovOci(uint64(l))
   571  		}
   572  	}
   573  	l = len(m.CgroupsMode)
   574  	if l > 0 {
   575  		n += 1 + l + sovOci(uint64(l))
   576  	}
   577  	l = len(m.ImagePath)
   578  	if l > 0 {
   579  		n += 1 + l + sovOci(uint64(l))
   580  	}
   581  	l = len(m.WorkPath)
   582  	if l > 0 {
   583  		n += 1 + l + sovOci(uint64(l))
   584  	}
   585  	if m.XXX_unrecognized != nil {
   586  		n += len(m.XXX_unrecognized)
   587  	}
   588  	return n
   589  }
   590  
   591  func (m *ProcessDetails) Size() (n int) {
   592  	if m == nil {
   593  		return 0
   594  	}
   595  	var l int
   596  	_ = l
   597  	l = len(m.ExecID)
   598  	if l > 0 {
   599  		n += 1 + l + sovOci(uint64(l))
   600  	}
   601  	if m.XXX_unrecognized != nil {
   602  		n += len(m.XXX_unrecognized)
   603  	}
   604  	return n
   605  }
   606  
   607  func sovOci(x uint64) (n int) {
   608  	return (math_bits.Len64(x|1) + 6) / 7
   609  }
   610  func sozOci(x uint64) (n int) {
   611  	return sovOci(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   612  }
   613  func (this *Options) String() string {
   614  	if this == nil {
   615  		return "nil"
   616  	}
   617  	s := strings.Join([]string{`&Options{`,
   618  		`NoPivotRoot:` + fmt.Sprintf("%v", this.NoPivotRoot) + `,`,
   619  		`NoNewKeyring:` + fmt.Sprintf("%v", this.NoNewKeyring) + `,`,
   620  		`ShimCgroup:` + fmt.Sprintf("%v", this.ShimCgroup) + `,`,
   621  		`IoUid:` + fmt.Sprintf("%v", this.IoUid) + `,`,
   622  		`IoGid:` + fmt.Sprintf("%v", this.IoGid) + `,`,
   623  		`BinaryName:` + fmt.Sprintf("%v", this.BinaryName) + `,`,
   624  		`Root:` + fmt.Sprintf("%v", this.Root) + `,`,
   625  		`CriuPath:` + fmt.Sprintf("%v", this.CriuPath) + `,`,
   626  		`SystemdCgroup:` + fmt.Sprintf("%v", this.SystemdCgroup) + `,`,
   627  		`CriuImagePath:` + fmt.Sprintf("%v", this.CriuImagePath) + `,`,
   628  		`CriuWorkPath:` + fmt.Sprintf("%v", this.CriuWorkPath) + `,`,
   629  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
   630  		`}`,
   631  	}, "")
   632  	return s
   633  }
   634  func (this *CheckpointOptions) String() string {
   635  	if this == nil {
   636  		return "nil"
   637  	}
   638  	s := strings.Join([]string{`&CheckpointOptions{`,
   639  		`Exit:` + fmt.Sprintf("%v", this.Exit) + `,`,
   640  		`OpenTcp:` + fmt.Sprintf("%v", this.OpenTcp) + `,`,
   641  		`ExternalUnixSockets:` + fmt.Sprintf("%v", this.ExternalUnixSockets) + `,`,
   642  		`Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`,
   643  		`FileLocks:` + fmt.Sprintf("%v", this.FileLocks) + `,`,
   644  		`EmptyNamespaces:` + fmt.Sprintf("%v", this.EmptyNamespaces) + `,`,
   645  		`CgroupsMode:` + fmt.Sprintf("%v", this.CgroupsMode) + `,`,
   646  		`ImagePath:` + fmt.Sprintf("%v", this.ImagePath) + `,`,
   647  		`WorkPath:` + fmt.Sprintf("%v", this.WorkPath) + `,`,
   648  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
   649  		`}`,
   650  	}, "")
   651  	return s
   652  }
   653  func (this *ProcessDetails) String() string {
   654  	if this == nil {
   655  		return "nil"
   656  	}
   657  	s := strings.Join([]string{`&ProcessDetails{`,
   658  		`ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
   659  		`XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
   660  		`}`,
   661  	}, "")
   662  	return s
   663  }
   664  func valueToStringOci(v interface{}) string {
   665  	rv := reflect.ValueOf(v)
   666  	if rv.IsNil() {
   667  		return "nil"
   668  	}
   669  	pv := reflect.Indirect(rv).Interface()
   670  	return fmt.Sprintf("*%v", pv)
   671  }
   672  func (m *Options) Unmarshal(dAtA []byte) error {
   673  	l := len(dAtA)
   674  	iNdEx := 0
   675  	for iNdEx < l {
   676  		preIndex := iNdEx
   677  		var wire uint64
   678  		for shift := uint(0); ; shift += 7 {
   679  			if shift >= 64 {
   680  				return ErrIntOverflowOci
   681  			}
   682  			if iNdEx >= l {
   683  				return io.ErrUnexpectedEOF
   684  			}
   685  			b := dAtA[iNdEx]
   686  			iNdEx++
   687  			wire |= uint64(b&0x7F) << shift
   688  			if b < 0x80 {
   689  				break
   690  			}
   691  		}
   692  		fieldNum := int32(wire >> 3)
   693  		wireType := int(wire & 0x7)
   694  		if wireType == 4 {
   695  			return fmt.Errorf("proto: Options: wiretype end group for non-group")
   696  		}
   697  		if fieldNum <= 0 {
   698  			return fmt.Errorf("proto: Options: illegal tag %d (wire type %d)", fieldNum, wire)
   699  		}
   700  		switch fieldNum {
   701  		case 1:
   702  			if wireType != 0 {
   703  				return fmt.Errorf("proto: wrong wireType = %d for field NoPivotRoot", wireType)
   704  			}
   705  			var v int
   706  			for shift := uint(0); ; shift += 7 {
   707  				if shift >= 64 {
   708  					return ErrIntOverflowOci
   709  				}
   710  				if iNdEx >= l {
   711  					return io.ErrUnexpectedEOF
   712  				}
   713  				b := dAtA[iNdEx]
   714  				iNdEx++
   715  				v |= int(b&0x7F) << shift
   716  				if b < 0x80 {
   717  					break
   718  				}
   719  			}
   720  			m.NoPivotRoot = bool(v != 0)
   721  		case 2:
   722  			if wireType != 0 {
   723  				return fmt.Errorf("proto: wrong wireType = %d for field NoNewKeyring", wireType)
   724  			}
   725  			var v int
   726  			for shift := uint(0); ; shift += 7 {
   727  				if shift >= 64 {
   728  					return ErrIntOverflowOci
   729  				}
   730  				if iNdEx >= l {
   731  					return io.ErrUnexpectedEOF
   732  				}
   733  				b := dAtA[iNdEx]
   734  				iNdEx++
   735  				v |= int(b&0x7F) << shift
   736  				if b < 0x80 {
   737  					break
   738  				}
   739  			}
   740  			m.NoNewKeyring = bool(v != 0)
   741  		case 3:
   742  			if wireType != 2 {
   743  				return fmt.Errorf("proto: wrong wireType = %d for field ShimCgroup", wireType)
   744  			}
   745  			var stringLen uint64
   746  			for shift := uint(0); ; shift += 7 {
   747  				if shift >= 64 {
   748  					return ErrIntOverflowOci
   749  				}
   750  				if iNdEx >= l {
   751  					return io.ErrUnexpectedEOF
   752  				}
   753  				b := dAtA[iNdEx]
   754  				iNdEx++
   755  				stringLen |= uint64(b&0x7F) << shift
   756  				if b < 0x80 {
   757  					break
   758  				}
   759  			}
   760  			intStringLen := int(stringLen)
   761  			if intStringLen < 0 {
   762  				return ErrInvalidLengthOci
   763  			}
   764  			postIndex := iNdEx + intStringLen
   765  			if postIndex < 0 {
   766  				return ErrInvalidLengthOci
   767  			}
   768  			if postIndex > l {
   769  				return io.ErrUnexpectedEOF
   770  			}
   771  			m.ShimCgroup = string(dAtA[iNdEx:postIndex])
   772  			iNdEx = postIndex
   773  		case 4:
   774  			if wireType != 0 {
   775  				return fmt.Errorf("proto: wrong wireType = %d for field IoUid", wireType)
   776  			}
   777  			m.IoUid = 0
   778  			for shift := uint(0); ; shift += 7 {
   779  				if shift >= 64 {
   780  					return ErrIntOverflowOci
   781  				}
   782  				if iNdEx >= l {
   783  					return io.ErrUnexpectedEOF
   784  				}
   785  				b := dAtA[iNdEx]
   786  				iNdEx++
   787  				m.IoUid |= uint32(b&0x7F) << shift
   788  				if b < 0x80 {
   789  					break
   790  				}
   791  			}
   792  		case 5:
   793  			if wireType != 0 {
   794  				return fmt.Errorf("proto: wrong wireType = %d for field IoGid", wireType)
   795  			}
   796  			m.IoGid = 0
   797  			for shift := uint(0); ; shift += 7 {
   798  				if shift >= 64 {
   799  					return ErrIntOverflowOci
   800  				}
   801  				if iNdEx >= l {
   802  					return io.ErrUnexpectedEOF
   803  				}
   804  				b := dAtA[iNdEx]
   805  				iNdEx++
   806  				m.IoGid |= uint32(b&0x7F) << shift
   807  				if b < 0x80 {
   808  					break
   809  				}
   810  			}
   811  		case 6:
   812  			if wireType != 2 {
   813  				return fmt.Errorf("proto: wrong wireType = %d for field BinaryName", wireType)
   814  			}
   815  			var stringLen uint64
   816  			for shift := uint(0); ; shift += 7 {
   817  				if shift >= 64 {
   818  					return ErrIntOverflowOci
   819  				}
   820  				if iNdEx >= l {
   821  					return io.ErrUnexpectedEOF
   822  				}
   823  				b := dAtA[iNdEx]
   824  				iNdEx++
   825  				stringLen |= uint64(b&0x7F) << shift
   826  				if b < 0x80 {
   827  					break
   828  				}
   829  			}
   830  			intStringLen := int(stringLen)
   831  			if intStringLen < 0 {
   832  				return ErrInvalidLengthOci
   833  			}
   834  			postIndex := iNdEx + intStringLen
   835  			if postIndex < 0 {
   836  				return ErrInvalidLengthOci
   837  			}
   838  			if postIndex > l {
   839  				return io.ErrUnexpectedEOF
   840  			}
   841  			m.BinaryName = string(dAtA[iNdEx:postIndex])
   842  			iNdEx = postIndex
   843  		case 7:
   844  			if wireType != 2 {
   845  				return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType)
   846  			}
   847  			var stringLen uint64
   848  			for shift := uint(0); ; shift += 7 {
   849  				if shift >= 64 {
   850  					return ErrIntOverflowOci
   851  				}
   852  				if iNdEx >= l {
   853  					return io.ErrUnexpectedEOF
   854  				}
   855  				b := dAtA[iNdEx]
   856  				iNdEx++
   857  				stringLen |= uint64(b&0x7F) << shift
   858  				if b < 0x80 {
   859  					break
   860  				}
   861  			}
   862  			intStringLen := int(stringLen)
   863  			if intStringLen < 0 {
   864  				return ErrInvalidLengthOci
   865  			}
   866  			postIndex := iNdEx + intStringLen
   867  			if postIndex < 0 {
   868  				return ErrInvalidLengthOci
   869  			}
   870  			if postIndex > l {
   871  				return io.ErrUnexpectedEOF
   872  			}
   873  			m.Root = string(dAtA[iNdEx:postIndex])
   874  			iNdEx = postIndex
   875  		case 8:
   876  			if wireType != 2 {
   877  				return fmt.Errorf("proto: wrong wireType = %d for field CriuPath", wireType)
   878  			}
   879  			var stringLen uint64
   880  			for shift := uint(0); ; shift += 7 {
   881  				if shift >= 64 {
   882  					return ErrIntOverflowOci
   883  				}
   884  				if iNdEx >= l {
   885  					return io.ErrUnexpectedEOF
   886  				}
   887  				b := dAtA[iNdEx]
   888  				iNdEx++
   889  				stringLen |= uint64(b&0x7F) << shift
   890  				if b < 0x80 {
   891  					break
   892  				}
   893  			}
   894  			intStringLen := int(stringLen)
   895  			if intStringLen < 0 {
   896  				return ErrInvalidLengthOci
   897  			}
   898  			postIndex := iNdEx + intStringLen
   899  			if postIndex < 0 {
   900  				return ErrInvalidLengthOci
   901  			}
   902  			if postIndex > l {
   903  				return io.ErrUnexpectedEOF
   904  			}
   905  			m.CriuPath = string(dAtA[iNdEx:postIndex])
   906  			iNdEx = postIndex
   907  		case 9:
   908  			if wireType != 0 {
   909  				return fmt.Errorf("proto: wrong wireType = %d for field SystemdCgroup", wireType)
   910  			}
   911  			var v int
   912  			for shift := uint(0); ; shift += 7 {
   913  				if shift >= 64 {
   914  					return ErrIntOverflowOci
   915  				}
   916  				if iNdEx >= l {
   917  					return io.ErrUnexpectedEOF
   918  				}
   919  				b := dAtA[iNdEx]
   920  				iNdEx++
   921  				v |= int(b&0x7F) << shift
   922  				if b < 0x80 {
   923  					break
   924  				}
   925  			}
   926  			m.SystemdCgroup = bool(v != 0)
   927  		case 10:
   928  			if wireType != 2 {
   929  				return fmt.Errorf("proto: wrong wireType = %d for field CriuImagePath", wireType)
   930  			}
   931  			var stringLen uint64
   932  			for shift := uint(0); ; shift += 7 {
   933  				if shift >= 64 {
   934  					return ErrIntOverflowOci
   935  				}
   936  				if iNdEx >= l {
   937  					return io.ErrUnexpectedEOF
   938  				}
   939  				b := dAtA[iNdEx]
   940  				iNdEx++
   941  				stringLen |= uint64(b&0x7F) << shift
   942  				if b < 0x80 {
   943  					break
   944  				}
   945  			}
   946  			intStringLen := int(stringLen)
   947  			if intStringLen < 0 {
   948  				return ErrInvalidLengthOci
   949  			}
   950  			postIndex := iNdEx + intStringLen
   951  			if postIndex < 0 {
   952  				return ErrInvalidLengthOci
   953  			}
   954  			if postIndex > l {
   955  				return io.ErrUnexpectedEOF
   956  			}
   957  			m.CriuImagePath = string(dAtA[iNdEx:postIndex])
   958  			iNdEx = postIndex
   959  		case 11:
   960  			if wireType != 2 {
   961  				return fmt.Errorf("proto: wrong wireType = %d for field CriuWorkPath", wireType)
   962  			}
   963  			var stringLen uint64
   964  			for shift := uint(0); ; shift += 7 {
   965  				if shift >= 64 {
   966  					return ErrIntOverflowOci
   967  				}
   968  				if iNdEx >= l {
   969  					return io.ErrUnexpectedEOF
   970  				}
   971  				b := dAtA[iNdEx]
   972  				iNdEx++
   973  				stringLen |= uint64(b&0x7F) << shift
   974  				if b < 0x80 {
   975  					break
   976  				}
   977  			}
   978  			intStringLen := int(stringLen)
   979  			if intStringLen < 0 {
   980  				return ErrInvalidLengthOci
   981  			}
   982  			postIndex := iNdEx + intStringLen
   983  			if postIndex < 0 {
   984  				return ErrInvalidLengthOci
   985  			}
   986  			if postIndex > l {
   987  				return io.ErrUnexpectedEOF
   988  			}
   989  			m.CriuWorkPath = string(dAtA[iNdEx:postIndex])
   990  			iNdEx = postIndex
   991  		default:
   992  			iNdEx = preIndex
   993  			skippy, err := skipOci(dAtA[iNdEx:])
   994  			if err != nil {
   995  				return err
   996  			}
   997  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   998  				return ErrInvalidLengthOci
   999  			}
  1000  			if (iNdEx + skippy) > l {
  1001  				return io.ErrUnexpectedEOF
  1002  			}
  1003  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1004  			iNdEx += skippy
  1005  		}
  1006  	}
  1007  
  1008  	if iNdEx > l {
  1009  		return io.ErrUnexpectedEOF
  1010  	}
  1011  	return nil
  1012  }
  1013  func (m *CheckpointOptions) Unmarshal(dAtA []byte) error {
  1014  	l := len(dAtA)
  1015  	iNdEx := 0
  1016  	for iNdEx < l {
  1017  		preIndex := iNdEx
  1018  		var wire uint64
  1019  		for shift := uint(0); ; shift += 7 {
  1020  			if shift >= 64 {
  1021  				return ErrIntOverflowOci
  1022  			}
  1023  			if iNdEx >= l {
  1024  				return io.ErrUnexpectedEOF
  1025  			}
  1026  			b := dAtA[iNdEx]
  1027  			iNdEx++
  1028  			wire |= uint64(b&0x7F) << shift
  1029  			if b < 0x80 {
  1030  				break
  1031  			}
  1032  		}
  1033  		fieldNum := int32(wire >> 3)
  1034  		wireType := int(wire & 0x7)
  1035  		if wireType == 4 {
  1036  			return fmt.Errorf("proto: CheckpointOptions: wiretype end group for non-group")
  1037  		}
  1038  		if fieldNum <= 0 {
  1039  			return fmt.Errorf("proto: CheckpointOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  1040  		}
  1041  		switch fieldNum {
  1042  		case 1:
  1043  			if wireType != 0 {
  1044  				return fmt.Errorf("proto: wrong wireType = %d for field Exit", wireType)
  1045  			}
  1046  			var v int
  1047  			for shift := uint(0); ; shift += 7 {
  1048  				if shift >= 64 {
  1049  					return ErrIntOverflowOci
  1050  				}
  1051  				if iNdEx >= l {
  1052  					return io.ErrUnexpectedEOF
  1053  				}
  1054  				b := dAtA[iNdEx]
  1055  				iNdEx++
  1056  				v |= int(b&0x7F) << shift
  1057  				if b < 0x80 {
  1058  					break
  1059  				}
  1060  			}
  1061  			m.Exit = bool(v != 0)
  1062  		case 2:
  1063  			if wireType != 0 {
  1064  				return fmt.Errorf("proto: wrong wireType = %d for field OpenTcp", wireType)
  1065  			}
  1066  			var v int
  1067  			for shift := uint(0); ; shift += 7 {
  1068  				if shift >= 64 {
  1069  					return ErrIntOverflowOci
  1070  				}
  1071  				if iNdEx >= l {
  1072  					return io.ErrUnexpectedEOF
  1073  				}
  1074  				b := dAtA[iNdEx]
  1075  				iNdEx++
  1076  				v |= int(b&0x7F) << shift
  1077  				if b < 0x80 {
  1078  					break
  1079  				}
  1080  			}
  1081  			m.OpenTcp = bool(v != 0)
  1082  		case 3:
  1083  			if wireType != 0 {
  1084  				return fmt.Errorf("proto: wrong wireType = %d for field ExternalUnixSockets", wireType)
  1085  			}
  1086  			var v int
  1087  			for shift := uint(0); ; shift += 7 {
  1088  				if shift >= 64 {
  1089  					return ErrIntOverflowOci
  1090  				}
  1091  				if iNdEx >= l {
  1092  					return io.ErrUnexpectedEOF
  1093  				}
  1094  				b := dAtA[iNdEx]
  1095  				iNdEx++
  1096  				v |= int(b&0x7F) << shift
  1097  				if b < 0x80 {
  1098  					break
  1099  				}
  1100  			}
  1101  			m.ExternalUnixSockets = bool(v != 0)
  1102  		case 4:
  1103  			if wireType != 0 {
  1104  				return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType)
  1105  			}
  1106  			var v int
  1107  			for shift := uint(0); ; shift += 7 {
  1108  				if shift >= 64 {
  1109  					return ErrIntOverflowOci
  1110  				}
  1111  				if iNdEx >= l {
  1112  					return io.ErrUnexpectedEOF
  1113  				}
  1114  				b := dAtA[iNdEx]
  1115  				iNdEx++
  1116  				v |= int(b&0x7F) << shift
  1117  				if b < 0x80 {
  1118  					break
  1119  				}
  1120  			}
  1121  			m.Terminal = bool(v != 0)
  1122  		case 5:
  1123  			if wireType != 0 {
  1124  				return fmt.Errorf("proto: wrong wireType = %d for field FileLocks", wireType)
  1125  			}
  1126  			var v int
  1127  			for shift := uint(0); ; shift += 7 {
  1128  				if shift >= 64 {
  1129  					return ErrIntOverflowOci
  1130  				}
  1131  				if iNdEx >= l {
  1132  					return io.ErrUnexpectedEOF
  1133  				}
  1134  				b := dAtA[iNdEx]
  1135  				iNdEx++
  1136  				v |= int(b&0x7F) << shift
  1137  				if b < 0x80 {
  1138  					break
  1139  				}
  1140  			}
  1141  			m.FileLocks = bool(v != 0)
  1142  		case 6:
  1143  			if wireType != 2 {
  1144  				return fmt.Errorf("proto: wrong wireType = %d for field EmptyNamespaces", wireType)
  1145  			}
  1146  			var stringLen uint64
  1147  			for shift := uint(0); ; shift += 7 {
  1148  				if shift >= 64 {
  1149  					return ErrIntOverflowOci
  1150  				}
  1151  				if iNdEx >= l {
  1152  					return io.ErrUnexpectedEOF
  1153  				}
  1154  				b := dAtA[iNdEx]
  1155  				iNdEx++
  1156  				stringLen |= uint64(b&0x7F) << shift
  1157  				if b < 0x80 {
  1158  					break
  1159  				}
  1160  			}
  1161  			intStringLen := int(stringLen)
  1162  			if intStringLen < 0 {
  1163  				return ErrInvalidLengthOci
  1164  			}
  1165  			postIndex := iNdEx + intStringLen
  1166  			if postIndex < 0 {
  1167  				return ErrInvalidLengthOci
  1168  			}
  1169  			if postIndex > l {
  1170  				return io.ErrUnexpectedEOF
  1171  			}
  1172  			m.EmptyNamespaces = append(m.EmptyNamespaces, string(dAtA[iNdEx:postIndex]))
  1173  			iNdEx = postIndex
  1174  		case 7:
  1175  			if wireType != 2 {
  1176  				return fmt.Errorf("proto: wrong wireType = %d for field CgroupsMode", wireType)
  1177  			}
  1178  			var stringLen uint64
  1179  			for shift := uint(0); ; shift += 7 {
  1180  				if shift >= 64 {
  1181  					return ErrIntOverflowOci
  1182  				}
  1183  				if iNdEx >= l {
  1184  					return io.ErrUnexpectedEOF
  1185  				}
  1186  				b := dAtA[iNdEx]
  1187  				iNdEx++
  1188  				stringLen |= uint64(b&0x7F) << shift
  1189  				if b < 0x80 {
  1190  					break
  1191  				}
  1192  			}
  1193  			intStringLen := int(stringLen)
  1194  			if intStringLen < 0 {
  1195  				return ErrInvalidLengthOci
  1196  			}
  1197  			postIndex := iNdEx + intStringLen
  1198  			if postIndex < 0 {
  1199  				return ErrInvalidLengthOci
  1200  			}
  1201  			if postIndex > l {
  1202  				return io.ErrUnexpectedEOF
  1203  			}
  1204  			m.CgroupsMode = string(dAtA[iNdEx:postIndex])
  1205  			iNdEx = postIndex
  1206  		case 8:
  1207  			if wireType != 2 {
  1208  				return fmt.Errorf("proto: wrong wireType = %d for field ImagePath", wireType)
  1209  			}
  1210  			var stringLen uint64
  1211  			for shift := uint(0); ; shift += 7 {
  1212  				if shift >= 64 {
  1213  					return ErrIntOverflowOci
  1214  				}
  1215  				if iNdEx >= l {
  1216  					return io.ErrUnexpectedEOF
  1217  				}
  1218  				b := dAtA[iNdEx]
  1219  				iNdEx++
  1220  				stringLen |= uint64(b&0x7F) << shift
  1221  				if b < 0x80 {
  1222  					break
  1223  				}
  1224  			}
  1225  			intStringLen := int(stringLen)
  1226  			if intStringLen < 0 {
  1227  				return ErrInvalidLengthOci
  1228  			}
  1229  			postIndex := iNdEx + intStringLen
  1230  			if postIndex < 0 {
  1231  				return ErrInvalidLengthOci
  1232  			}
  1233  			if postIndex > l {
  1234  				return io.ErrUnexpectedEOF
  1235  			}
  1236  			m.ImagePath = string(dAtA[iNdEx:postIndex])
  1237  			iNdEx = postIndex
  1238  		case 9:
  1239  			if wireType != 2 {
  1240  				return fmt.Errorf("proto: wrong wireType = %d for field WorkPath", wireType)
  1241  			}
  1242  			var stringLen uint64
  1243  			for shift := uint(0); ; shift += 7 {
  1244  				if shift >= 64 {
  1245  					return ErrIntOverflowOci
  1246  				}
  1247  				if iNdEx >= l {
  1248  					return io.ErrUnexpectedEOF
  1249  				}
  1250  				b := dAtA[iNdEx]
  1251  				iNdEx++
  1252  				stringLen |= uint64(b&0x7F) << shift
  1253  				if b < 0x80 {
  1254  					break
  1255  				}
  1256  			}
  1257  			intStringLen := int(stringLen)
  1258  			if intStringLen < 0 {
  1259  				return ErrInvalidLengthOci
  1260  			}
  1261  			postIndex := iNdEx + intStringLen
  1262  			if postIndex < 0 {
  1263  				return ErrInvalidLengthOci
  1264  			}
  1265  			if postIndex > l {
  1266  				return io.ErrUnexpectedEOF
  1267  			}
  1268  			m.WorkPath = string(dAtA[iNdEx:postIndex])
  1269  			iNdEx = postIndex
  1270  		default:
  1271  			iNdEx = preIndex
  1272  			skippy, err := skipOci(dAtA[iNdEx:])
  1273  			if err != nil {
  1274  				return err
  1275  			}
  1276  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1277  				return ErrInvalidLengthOci
  1278  			}
  1279  			if (iNdEx + skippy) > l {
  1280  				return io.ErrUnexpectedEOF
  1281  			}
  1282  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1283  			iNdEx += skippy
  1284  		}
  1285  	}
  1286  
  1287  	if iNdEx > l {
  1288  		return io.ErrUnexpectedEOF
  1289  	}
  1290  	return nil
  1291  }
  1292  func (m *ProcessDetails) Unmarshal(dAtA []byte) error {
  1293  	l := len(dAtA)
  1294  	iNdEx := 0
  1295  	for iNdEx < l {
  1296  		preIndex := iNdEx
  1297  		var wire uint64
  1298  		for shift := uint(0); ; shift += 7 {
  1299  			if shift >= 64 {
  1300  				return ErrIntOverflowOci
  1301  			}
  1302  			if iNdEx >= l {
  1303  				return io.ErrUnexpectedEOF
  1304  			}
  1305  			b := dAtA[iNdEx]
  1306  			iNdEx++
  1307  			wire |= uint64(b&0x7F) << shift
  1308  			if b < 0x80 {
  1309  				break
  1310  			}
  1311  		}
  1312  		fieldNum := int32(wire >> 3)
  1313  		wireType := int(wire & 0x7)
  1314  		if wireType == 4 {
  1315  			return fmt.Errorf("proto: ProcessDetails: wiretype end group for non-group")
  1316  		}
  1317  		if fieldNum <= 0 {
  1318  			return fmt.Errorf("proto: ProcessDetails: illegal tag %d (wire type %d)", fieldNum, wire)
  1319  		}
  1320  		switch fieldNum {
  1321  		case 1:
  1322  			if wireType != 2 {
  1323  				return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  1324  			}
  1325  			var stringLen uint64
  1326  			for shift := uint(0); ; shift += 7 {
  1327  				if shift >= 64 {
  1328  					return ErrIntOverflowOci
  1329  				}
  1330  				if iNdEx >= l {
  1331  					return io.ErrUnexpectedEOF
  1332  				}
  1333  				b := dAtA[iNdEx]
  1334  				iNdEx++
  1335  				stringLen |= uint64(b&0x7F) << shift
  1336  				if b < 0x80 {
  1337  					break
  1338  				}
  1339  			}
  1340  			intStringLen := int(stringLen)
  1341  			if intStringLen < 0 {
  1342  				return ErrInvalidLengthOci
  1343  			}
  1344  			postIndex := iNdEx + intStringLen
  1345  			if postIndex < 0 {
  1346  				return ErrInvalidLengthOci
  1347  			}
  1348  			if postIndex > l {
  1349  				return io.ErrUnexpectedEOF
  1350  			}
  1351  			m.ExecID = string(dAtA[iNdEx:postIndex])
  1352  			iNdEx = postIndex
  1353  		default:
  1354  			iNdEx = preIndex
  1355  			skippy, err := skipOci(dAtA[iNdEx:])
  1356  			if err != nil {
  1357  				return err
  1358  			}
  1359  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1360  				return ErrInvalidLengthOci
  1361  			}
  1362  			if (iNdEx + skippy) > l {
  1363  				return io.ErrUnexpectedEOF
  1364  			}
  1365  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1366  			iNdEx += skippy
  1367  		}
  1368  	}
  1369  
  1370  	if iNdEx > l {
  1371  		return io.ErrUnexpectedEOF
  1372  	}
  1373  	return nil
  1374  }
  1375  func skipOci(dAtA []byte) (n int, err error) {
  1376  	l := len(dAtA)
  1377  	iNdEx := 0
  1378  	depth := 0
  1379  	for iNdEx < l {
  1380  		var wire uint64
  1381  		for shift := uint(0); ; shift += 7 {
  1382  			if shift >= 64 {
  1383  				return 0, ErrIntOverflowOci
  1384  			}
  1385  			if iNdEx >= l {
  1386  				return 0, io.ErrUnexpectedEOF
  1387  			}
  1388  			b := dAtA[iNdEx]
  1389  			iNdEx++
  1390  			wire |= (uint64(b) & 0x7F) << shift
  1391  			if b < 0x80 {
  1392  				break
  1393  			}
  1394  		}
  1395  		wireType := int(wire & 0x7)
  1396  		switch wireType {
  1397  		case 0:
  1398  			for shift := uint(0); ; shift += 7 {
  1399  				if shift >= 64 {
  1400  					return 0, ErrIntOverflowOci
  1401  				}
  1402  				if iNdEx >= l {
  1403  					return 0, io.ErrUnexpectedEOF
  1404  				}
  1405  				iNdEx++
  1406  				if dAtA[iNdEx-1] < 0x80 {
  1407  					break
  1408  				}
  1409  			}
  1410  		case 1:
  1411  			iNdEx += 8
  1412  		case 2:
  1413  			var length int
  1414  			for shift := uint(0); ; shift += 7 {
  1415  				if shift >= 64 {
  1416  					return 0, ErrIntOverflowOci
  1417  				}
  1418  				if iNdEx >= l {
  1419  					return 0, io.ErrUnexpectedEOF
  1420  				}
  1421  				b := dAtA[iNdEx]
  1422  				iNdEx++
  1423  				length |= (int(b) & 0x7F) << shift
  1424  				if b < 0x80 {
  1425  					break
  1426  				}
  1427  			}
  1428  			if length < 0 {
  1429  				return 0, ErrInvalidLengthOci
  1430  			}
  1431  			iNdEx += length
  1432  		case 3:
  1433  			depth++
  1434  		case 4:
  1435  			if depth == 0 {
  1436  				return 0, ErrUnexpectedEndOfGroupOci
  1437  			}
  1438  			depth--
  1439  		case 5:
  1440  			iNdEx += 4
  1441  		default:
  1442  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1443  		}
  1444  		if iNdEx < 0 {
  1445  			return 0, ErrInvalidLengthOci
  1446  		}
  1447  		if depth == 0 {
  1448  			return iNdEx, nil
  1449  		}
  1450  	}
  1451  	return 0, io.ErrUnexpectedEOF
  1452  }
  1453  
  1454  var (
  1455  	ErrInvalidLengthOci        = fmt.Errorf("proto: negative length found during unmarshaling")
  1456  	ErrIntOverflowOci          = fmt.Errorf("proto: integer overflow")
  1457  	ErrUnexpectedEndOfGroupOci = fmt.Errorf("proto: unexpected end of group")
  1458  )