runhcs.pb.go 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options/runhcs.proto
  3. package options
  4. import (
  5. fmt "fmt"
  6. proto "github.com/gogo/protobuf/proto"
  7. github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  8. _ "github.com/gogo/protobuf/types"
  9. github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
  10. io "io"
  11. math "math"
  12. math_bits "math/bits"
  13. reflect "reflect"
  14. strings "strings"
  15. time "time"
  16. )
  17. // Reference imports to suppress errors if they are not otherwise used.
  18. var _ = proto.Marshal
  19. var _ = fmt.Errorf
  20. var _ = math.Inf
  21. var _ = time.Kitchen
  22. // This is a compile-time assertion to ensure that this generated file
  23. // is compatible with the proto package it is being compiled against.
  24. // A compilation error at this line likely means your copy of the
  25. // proto package needs to be updated.
  26. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  27. type Options_DebugType int32
  28. const (
  29. Options_NPIPE Options_DebugType = 0
  30. Options_FILE Options_DebugType = 1
  31. Options_ETW Options_DebugType = 2
  32. )
  33. var Options_DebugType_name = map[int32]string{
  34. 0: "NPIPE",
  35. 1: "FILE",
  36. 2: "ETW",
  37. }
  38. var Options_DebugType_value = map[string]int32{
  39. "NPIPE": 0,
  40. "FILE": 1,
  41. "ETW": 2,
  42. }
  43. func (x Options_DebugType) String() string {
  44. return proto.EnumName(Options_DebugType_name, int32(x))
  45. }
  46. func (Options_DebugType) EnumDescriptor() ([]byte, []int) {
  47. return fileDescriptor_b643df6839c75082, []int{0, 0}
  48. }
  49. type Options_SandboxIsolation int32
  50. const (
  51. Options_PROCESS Options_SandboxIsolation = 0
  52. Options_HYPERVISOR Options_SandboxIsolation = 1
  53. )
  54. var Options_SandboxIsolation_name = map[int32]string{
  55. 0: "PROCESS",
  56. 1: "HYPERVISOR",
  57. }
  58. var Options_SandboxIsolation_value = map[string]int32{
  59. "PROCESS": 0,
  60. "HYPERVISOR": 1,
  61. }
  62. func (x Options_SandboxIsolation) String() string {
  63. return proto.EnumName(Options_SandboxIsolation_name, int32(x))
  64. }
  65. func (Options_SandboxIsolation) EnumDescriptor() ([]byte, []int) {
  66. return fileDescriptor_b643df6839c75082, []int{0, 1}
  67. }
  68. // Options are the set of customizations that can be passed at Create time.
  69. type Options struct {
  70. // Enable debug tracing (sets the logrus log level to debug). This may be deprecated in the future, prefer
  71. // log_level as this will override debug if both of them are set.
  72. Debug bool `protobuf:"varint,1,opt,name=debug,proto3" json:"debug,omitempty"`
  73. // debug tracing output type
  74. DebugType Options_DebugType `protobuf:"varint,2,opt,name=debug_type,json=debugType,proto3,enum=containerd.runhcs.v1.Options_DebugType" json:"debug_type,omitempty"`
  75. // registry key root for storage of the runhcs container state
  76. RegistryRoot string `protobuf:"bytes,3,opt,name=registry_root,json=registryRoot,proto3" json:"registry_root,omitempty"`
  77. // sandbox_image is the image to use for the sandbox that matches the
  78. // sandbox_platform.
  79. SandboxImage string `protobuf:"bytes,4,opt,name=sandbox_image,json=sandboxImage,proto3" json:"sandbox_image,omitempty"`
  80. // sandbox_platform is a CRI setting that specifies the platform
  81. // architecture for all sandbox's in this runtime. Values are
  82. // 'windows/amd64' and 'linux/amd64'.
  83. SandboxPlatform string `protobuf:"bytes,5,opt,name=sandbox_platform,json=sandboxPlatform,proto3" json:"sandbox_platform,omitempty"`
  84. // sandbox_isolation is a CRI setting that specifies the isolation level of
  85. // the sandbox. For Windows runtime PROCESS and HYPERVISOR are valid. For
  86. // LCOW only HYPERVISOR is valid and default if omitted.
  87. SandboxIsolation Options_SandboxIsolation `protobuf:"varint,6,opt,name=sandbox_isolation,json=sandboxIsolation,proto3,enum=containerd.runhcs.v1.Options_SandboxIsolation" json:"sandbox_isolation,omitempty"`
  88. // boot_files_root_path is the path to the directory containing the LCOW
  89. // kernel and root FS files.
  90. BootFilesRootPath string `protobuf:"bytes,7,opt,name=boot_files_root_path,json=bootFilesRootPath,proto3" json:"boot_files_root_path,omitempty"`
  91. // vm_processor_count is the default number of processors to create for the
  92. // hypervisor isolated utility vm.
  93. //
  94. // The platform default if omitted is 2, unless the host only has a single
  95. // core in which case it is 1.
  96. VmProcessorCount int32 `protobuf:"varint,8,opt,name=vm_processor_count,json=vmProcessorCount,proto3" json:"vm_processor_count,omitempty"`
  97. // vm_memory_size_in_mb is the default amount of memory to assign to the
  98. // hypervisor isolated utility vm.
  99. //
  100. // The platform default is 1024MB if omitted.
  101. VmMemorySizeInMb int32 `protobuf:"varint,9,opt,name=vm_memory_size_in_mb,json=vmMemorySizeInMb,proto3" json:"vm_memory_size_in_mb,omitempty"`
  102. // GPUVHDPath is the path to the gpu vhd to add to the uvm
  103. // when a container requests a gpu
  104. GPUVHDPath string `protobuf:"bytes,10,opt,name=GPUVHDPath,proto3" json:"GPUVHDPath,omitempty"`
  105. // scale_cpu_limits_to_sandbox indicates that container CPU limits should
  106. // be adjusted to account for the difference in number of cores between the
  107. // host and UVM.
  108. ScaleCpuLimitsToSandbox bool `protobuf:"varint,11,opt,name=scale_cpu_limits_to_sandbox,json=scaleCpuLimitsToSandbox,proto3" json:"scale_cpu_limits_to_sandbox,omitempty"`
  109. // default_container_scratch_size_in_gb is the default scratch size (sandbox.vhdx)
  110. // to be used for containers. Every container will get a sandbox of `size_in_gb` assigned
  111. // instead of the default of 20GB.
  112. DefaultContainerScratchSizeInGb int32 `protobuf:"varint,12,opt,name=default_container_scratch_size_in_gb,json=defaultContainerScratchSizeInGb,proto3" json:"default_container_scratch_size_in_gb,omitempty"`
  113. // default_vm_scratch_size_in_gb is the default scratch size (sandbox.vhdx)
  114. // to be used for the UVM. This only applies to WCOW as LCOW doesn't mount a scratch
  115. // specifically for the UVM.
  116. DefaultVmScratchSizeInGb int32 `protobuf:"varint,13,opt,name=default_vm_scratch_size_in_gb,json=defaultVmScratchSizeInGb,proto3" json:"default_vm_scratch_size_in_gb,omitempty"`
  117. // share_scratch specifies if we'd like to reuse scratch space between multiple containers.
  118. // This currently only affects LCOW. The sandbox containers scratch space is re-used for all
  119. // subsequent containers launched in the pod.
  120. ShareScratch bool `protobuf:"varint,14,opt,name=share_scratch,json=shareScratch,proto3" json:"share_scratch,omitempty"`
  121. // NCProxyAddr is the address of the network configuration proxy service. If omitted
  122. // the network is setup locally.
  123. NCProxyAddr string `protobuf:"bytes,15,opt,name=NCProxyAddr,proto3" json:"NCProxyAddr,omitempty"`
  124. // log_level specifies the logrus log level for the shim. Supported values are a string representation of the
  125. // logrus log levels: "trace", "debug", "info", "warn", "error", "fatal", "panic". This setting will override
  126. // the `debug` field if both are specified, unless the level specified is also "debug", as these are equivalent.
  127. LogLevel string `protobuf:"bytes,16,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
  128. // io_retry_timeout_in_sec is the timeout in seconds for how long to try and reconnect to an upstream IO provider if a connection is lost.
  129. // The typical example is if Containerd has restarted but is expected to come back online. A 0 for this field is interpreted as an infinite
  130. // timeout.
  131. IoRetryTimeoutInSec int32 `protobuf:"varint,17,opt,name=io_retry_timeout_in_sec,json=ioRetryTimeoutInSec,proto3" json:"io_retry_timeout_in_sec,omitempty"`
  132. // default_container_annotations specifies a set of annotations that should be set for every workload container
  133. DefaultContainerAnnotations map[string]string `protobuf:"bytes,18,rep,name=default_container_annotations,json=defaultContainerAnnotations,proto3" json:"default_container_annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  134. // no_inherit_host_timezone specifies to skip inheriting the hosts time zone for WCOW UVMs and instead default to
  135. // UTC.
  136. NoInheritHostTimezone bool `protobuf:"varint,19,opt,name=no_inherit_host_timezone,json=noInheritHostTimezone,proto3" json:"no_inherit_host_timezone,omitempty"`
  137. // scrub_logs enables removing environment variables and other potentially sensitive information from logs
  138. ScrubLogs bool `protobuf:"varint,20,opt,name=scrub_logs,json=scrubLogs,proto3" json:"scrub_logs,omitempty"`
  139. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  140. XXX_unrecognized []byte `json:"-"`
  141. XXX_sizecache int32 `json:"-"`
  142. }
  143. func (m *Options) Reset() { *m = Options{} }
  144. func (*Options) ProtoMessage() {}
  145. func (*Options) Descriptor() ([]byte, []int) {
  146. return fileDescriptor_b643df6839c75082, []int{0}
  147. }
  148. func (m *Options) XXX_Unmarshal(b []byte) error {
  149. return m.Unmarshal(b)
  150. }
  151. func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  152. if deterministic {
  153. return xxx_messageInfo_Options.Marshal(b, m, deterministic)
  154. } else {
  155. b = b[:cap(b)]
  156. n, err := m.MarshalToSizedBuffer(b)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return b[:n], nil
  161. }
  162. }
  163. func (m *Options) XXX_Merge(src proto.Message) {
  164. xxx_messageInfo_Options.Merge(m, src)
  165. }
  166. func (m *Options) XXX_Size() int {
  167. return m.Size()
  168. }
  169. func (m *Options) XXX_DiscardUnknown() {
  170. xxx_messageInfo_Options.DiscardUnknown(m)
  171. }
  172. var xxx_messageInfo_Options proto.InternalMessageInfo
  173. // ProcessDetails contains additional information about a process. This is the additional
  174. // info returned in the Pids query.
  175. type ProcessDetails struct {
  176. ImageName string `protobuf:"bytes,1,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"`
  177. CreatedAt time.Time `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"`
  178. KernelTime_100Ns uint64 `protobuf:"varint,3,opt,name=kernel_time_100_ns,json=kernelTime100Ns,proto3" json:"kernel_time_100_ns,omitempty"`
  179. MemoryCommitBytes uint64 `protobuf:"varint,4,opt,name=memory_commit_bytes,json=memoryCommitBytes,proto3" json:"memory_commit_bytes,omitempty"`
  180. MemoryWorkingSetPrivateBytes uint64 `protobuf:"varint,5,opt,name=memory_working_set_private_bytes,json=memoryWorkingSetPrivateBytes,proto3" json:"memory_working_set_private_bytes,omitempty"`
  181. MemoryWorkingSetSharedBytes uint64 `protobuf:"varint,6,opt,name=memory_working_set_shared_bytes,json=memoryWorkingSetSharedBytes,proto3" json:"memory_working_set_shared_bytes,omitempty"`
  182. ProcessID uint32 `protobuf:"varint,7,opt,name=process_id,json=processId,proto3" json:"process_id,omitempty"`
  183. UserTime_100Ns uint64 `protobuf:"varint,8,opt,name=user_time_100_ns,json=userTime100Ns,proto3" json:"user_time_100_ns,omitempty"`
  184. ExecID string `protobuf:"bytes,9,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"`
  185. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  186. XXX_unrecognized []byte `json:"-"`
  187. XXX_sizecache int32 `json:"-"`
  188. }
  189. func (m *ProcessDetails) Reset() { *m = ProcessDetails{} }
  190. func (*ProcessDetails) ProtoMessage() {}
  191. func (*ProcessDetails) Descriptor() ([]byte, []int) {
  192. return fileDescriptor_b643df6839c75082, []int{1}
  193. }
  194. func (m *ProcessDetails) XXX_Unmarshal(b []byte) error {
  195. return m.Unmarshal(b)
  196. }
  197. func (m *ProcessDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  198. if deterministic {
  199. return xxx_messageInfo_ProcessDetails.Marshal(b, m, deterministic)
  200. } else {
  201. b = b[:cap(b)]
  202. n, err := m.MarshalToSizedBuffer(b)
  203. if err != nil {
  204. return nil, err
  205. }
  206. return b[:n], nil
  207. }
  208. }
  209. func (m *ProcessDetails) XXX_Merge(src proto.Message) {
  210. xxx_messageInfo_ProcessDetails.Merge(m, src)
  211. }
  212. func (m *ProcessDetails) XXX_Size() int {
  213. return m.Size()
  214. }
  215. func (m *ProcessDetails) XXX_DiscardUnknown() {
  216. xxx_messageInfo_ProcessDetails.DiscardUnknown(m)
  217. }
  218. var xxx_messageInfo_ProcessDetails proto.InternalMessageInfo
  219. func init() {
  220. proto.RegisterEnum("containerd.runhcs.v1.Options_DebugType", Options_DebugType_name, Options_DebugType_value)
  221. proto.RegisterEnum("containerd.runhcs.v1.Options_SandboxIsolation", Options_SandboxIsolation_name, Options_SandboxIsolation_value)
  222. proto.RegisterType((*Options)(nil), "containerd.runhcs.v1.Options")
  223. proto.RegisterMapType((map[string]string)(nil), "containerd.runhcs.v1.Options.DefaultContainerAnnotationsEntry")
  224. proto.RegisterType((*ProcessDetails)(nil), "containerd.runhcs.v1.ProcessDetails")
  225. }
  226. func init() {
  227. proto.RegisterFile("github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options/runhcs.proto", fileDescriptor_b643df6839c75082)
  228. }
  229. var fileDescriptor_b643df6839c75082 = []byte{
  230. // 1072 bytes of a gzipped FileDescriptorProto
  231. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4b, 0x6f, 0xe3, 0x36,
  232. 0x17, 0xb5, 0xf2, 0xb4, 0x98, 0x97, 0xc3, 0xf8, 0xc3, 0x08, 0xc9, 0x37, 0xb6, 0x91, 0x29, 0x30,
  233. 0x19, 0x74, 0x22, 0x27, 0x69, 0x81, 0x16, 0x6d, 0xd1, 0x22, 0xb1, 0x9d, 0x89, 0x8b, 0x3c, 0x0c,
  234. 0xd9, 0xcd, 0xf4, 0xb1, 0x20, 0xf4, 0x60, 0x64, 0x22, 0x92, 0x28, 0x90, 0x94, 0x1b, 0x67, 0x55,
  235. 0xf4, 0x17, 0xf4, 0x67, 0x65, 0xd9, 0x65, 0x8b, 0x02, 0x69, 0xc7, 0xbf, 0xa4, 0x20, 0x45, 0x25,
  236. 0x33, 0x41, 0xda, 0x59, 0x74, 0x65, 0xf2, 0x9c, 0xc3, 0xc3, 0x7b, 0xaf, 0x78, 0xaf, 0xc1, 0x59,
  237. 0x48, 0xc4, 0x30, 0xf3, 0x6c, 0x9f, 0xc6, 0xcd, 0x13, 0xe2, 0x33, 0xca, 0xe9, 0x85, 0x68, 0x0e,
  238. 0x7d, 0xce, 0x87, 0x24, 0x6e, 0xfa, 0x71, 0xd0, 0xf4, 0x69, 0x22, 0x5c, 0x92, 0x60, 0x16, 0x6c,
  239. 0x4b, 0x6c, 0x9b, 0x65, 0xc9, 0xd0, 0xe7, 0xdb, 0xa3, 0xdd, 0x26, 0x4d, 0x05, 0xa1, 0x09, 0x6f,
  240. 0xe6, 0x88, 0x9d, 0x32, 0x2a, 0x28, 0xac, 0xde, 0xeb, 0x6d, 0x4d, 0x8c, 0x76, 0xd7, 0xab, 0x21,
  241. 0x0d, 0xa9, 0x12, 0x34, 0xe5, 0x2a, 0xd7, 0xae, 0xd7, 0x43, 0x4a, 0xc3, 0x08, 0x37, 0xd5, 0xce,
  242. 0xcb, 0x2e, 0x9a, 0x82, 0xc4, 0x98, 0x0b, 0x37, 0x4e, 0x73, 0xc1, 0xe6, 0xef, 0x26, 0x98, 0x3f,
  243. 0xcb, 0x6f, 0x81, 0x55, 0x30, 0x1b, 0x60, 0x2f, 0x0b, 0x2d, 0xa3, 0x61, 0x6c, 0x95, 0x9d, 0x7c,
  244. 0x03, 0x0f, 0x01, 0x50, 0x0b, 0x24, 0xc6, 0x29, 0xb6, 0xa6, 0x1a, 0xc6, 0xd6, 0xf2, 0xde, 0x73,
  245. 0xfb, 0xb1, 0x18, 0x6c, 0x6d, 0x64, 0xb7, 0xa5, 0x7e, 0x30, 0x4e, 0xb1, 0x63, 0x06, 0xc5, 0x12,
  246. 0x3e, 0x03, 0x4b, 0x0c, 0x87, 0x84, 0x0b, 0x36, 0x46, 0x8c, 0x52, 0x61, 0x4d, 0x37, 0x8c, 0x2d,
  247. 0xd3, 0x59, 0x2c, 0x40, 0x87, 0x52, 0x21, 0x45, 0xdc, 0x4d, 0x02, 0x8f, 0x5e, 0x21, 0x12, 0xbb,
  248. 0x21, 0xb6, 0x66, 0x72, 0x91, 0x06, 0xbb, 0x12, 0x83, 0x2f, 0x40, 0xa5, 0x10, 0xa5, 0x91, 0x2b,
  249. 0x2e, 0x28, 0x8b, 0xad, 0x59, 0xa5, 0x5b, 0xd1, 0x78, 0x4f, 0xc3, 0xf0, 0x07, 0xb0, 0x7a, 0xe7,
  250. 0xc7, 0x69, 0xe4, 0xca, 0xf8, 0xac, 0x39, 0x95, 0x83, 0xfd, 0xef, 0x39, 0xf4, 0xf5, 0x8d, 0xc5,
  251. 0x29, 0xa7, 0xb8, 0xf3, 0x0e, 0x81, 0x4d, 0x50, 0xf5, 0x28, 0x15, 0xe8, 0x82, 0x44, 0x98, 0xab,
  252. 0x9c, 0x50, 0xea, 0x8a, 0xa1, 0x35, 0xaf, 0x62, 0x59, 0x95, 0xdc, 0xa1, 0xa4, 0x64, 0x66, 0x3d,
  253. 0x57, 0x0c, 0xe1, 0x4b, 0x00, 0x47, 0x31, 0x4a, 0x19, 0xf5, 0x31, 0xe7, 0x94, 0x21, 0x9f, 0x66,
  254. 0x89, 0xb0, 0xca, 0x0d, 0x63, 0x6b, 0xd6, 0xa9, 0x8c, 0xe2, 0x5e, 0x41, 0xb4, 0x24, 0x0e, 0x6d,
  255. 0x50, 0x1d, 0xc5, 0x28, 0xc6, 0x31, 0x65, 0x63, 0xc4, 0xc9, 0x35, 0x46, 0x24, 0x41, 0xb1, 0x67,
  256. 0x99, 0x85, 0xfe, 0x44, 0x51, 0x7d, 0x72, 0x8d, 0xbb, 0xc9, 0x89, 0x07, 0x6b, 0x00, 0xbc, 0xea,
  257. 0x7d, 0x73, 0x7e, 0xd4, 0x96, 0x77, 0x59, 0x40, 0x05, 0xf1, 0x16, 0x02, 0xbf, 0x00, 0x1b, 0xdc,
  258. 0x77, 0x23, 0x8c, 0xfc, 0x34, 0x43, 0x11, 0x89, 0x89, 0xe0, 0x48, 0x50, 0xa4, 0xd3, 0xb2, 0x16,
  259. 0xd4, 0x47, 0x7f, 0xa2, 0x24, 0xad, 0x34, 0x3b, 0x56, 0x82, 0x01, 0xd5, 0x75, 0x80, 0x27, 0xe0,
  260. 0x83, 0x00, 0x5f, 0xb8, 0x59, 0x24, 0xd0, 0x5d, 0xdd, 0x10, 0xf7, 0x99, 0x2b, 0xfc, 0xe1, 0x5d,
  261. 0x74, 0xa1, 0x67, 0x2d, 0xaa, 0xe8, 0xea, 0x5a, 0xdb, 0x2a, 0xa4, 0xfd, 0x5c, 0x99, 0x07, 0xfb,
  262. 0xca, 0x83, 0x5f, 0x81, 0xa7, 0x85, 0xdd, 0x28, 0x7e, 0xcc, 0x67, 0x49, 0xf9, 0x58, 0x5a, 0x74,
  263. 0x1e, 0x3f, 0x34, 0x90, 0x2f, 0x65, 0xe8, 0x32, 0x5c, 0x9c, 0xb5, 0x96, 0x55, 0xfc, 0x8b, 0x0a,
  264. 0xd4, 0x62, 0xd8, 0x00, 0x0b, 0xa7, 0xad, 0x1e, 0xa3, 0x57, 0xe3, 0xfd, 0x20, 0x60, 0xd6, 0x8a,
  265. 0xaa, 0xc9, 0xdb, 0x10, 0xdc, 0x00, 0x66, 0x44, 0x43, 0x14, 0xe1, 0x11, 0x8e, 0xac, 0x8a, 0xe2,
  266. 0xcb, 0x11, 0x0d, 0x8f, 0xe5, 0x1e, 0x7e, 0x0c, 0x9e, 0x10, 0x8a, 0x18, 0x96, 0x4f, 0x56, 0x36,
  267. 0x0e, 0xcd, 0x84, 0x8c, 0x8e, 0x63, 0xdf, 0x5a, 0x55, 0xe1, 0xad, 0x11, 0xea, 0x48, 0x76, 0x90,
  268. 0x93, 0xdd, 0xa4, 0x8f, 0x7d, 0xf8, 0xb3, 0x71, 0x9f, 0xdb, 0x7d, 0xa9, 0xdc, 0x24, 0xa1, 0x42,
  269. 0xbd, 0x1b, 0x6e, 0xc1, 0xc6, 0xf4, 0xd6, 0xc2, 0xde, 0x97, 0xef, 0x6b, 0xa2, 0x77, 0x2b, 0xb8,
  270. 0x7f, 0x6f, 0xd0, 0x49, 0x64, 0xbf, 0x6c, 0x04, 0xff, 0xac, 0x80, 0x9f, 0x00, 0x2b, 0xa1, 0x88,
  271. 0x24, 0x43, 0xcc, 0x88, 0x40, 0x43, 0xca, 0x85, 0xca, 0xe0, 0x9a, 0x26, 0xd8, 0x5a, 0x53, 0x95,
  272. 0xfa, 0x5f, 0x42, 0xbb, 0x39, 0x7d, 0x44, 0xb9, 0x18, 0x68, 0x12, 0x3e, 0x05, 0x80, 0xfb, 0x2c,
  273. 0xf3, 0x50, 0x44, 0x43, 0x6e, 0x55, 0x95, 0xd4, 0x54, 0xc8, 0x31, 0x0d, 0xf9, 0xfa, 0x29, 0x68,
  274. 0xbc, 0x2f, 0x30, 0x58, 0x01, 0xd3, 0x97, 0x78, 0xac, 0xa6, 0x88, 0xe9, 0xc8, 0xa5, 0x9c, 0x2c,
  275. 0x23, 0x37, 0xca, 0xf2, 0xf1, 0x61, 0x3a, 0xf9, 0xe6, 0xb3, 0xa9, 0x4f, 0x8d, 0xcd, 0x17, 0xc0,
  276. 0xbc, 0x9b, 0x16, 0xd0, 0x04, 0xb3, 0xa7, 0xbd, 0x6e, 0xaf, 0x53, 0x29, 0xc1, 0x32, 0x98, 0x39,
  277. 0xec, 0x1e, 0x77, 0x2a, 0x06, 0x9c, 0x07, 0xd3, 0x9d, 0xc1, 0xeb, 0xca, 0xd4, 0x66, 0x13, 0x54,
  278. 0x1e, 0x36, 0x25, 0x5c, 0x00, 0xf3, 0x3d, 0xe7, 0xac, 0xd5, 0xe9, 0xf7, 0x2b, 0x25, 0xb8, 0x0c,
  279. 0xc0, 0xd1, 0x77, 0xbd, 0x8e, 0x73, 0xde, 0xed, 0x9f, 0x39, 0x15, 0x63, 0xf3, 0x8f, 0x69, 0xb0,
  280. 0xac, 0x7b, 0xaa, 0x8d, 0x85, 0x4b, 0x22, 0x2e, 0xb3, 0x53, 0x73, 0x05, 0x25, 0x6e, 0x8c, 0x75,
  281. 0x84, 0xa6, 0x42, 0x4e, 0xdd, 0x18, 0xc3, 0x16, 0x00, 0x3e, 0xc3, 0xae, 0xc0, 0x01, 0x72, 0x85,
  282. 0x0a, 0x76, 0x61, 0x6f, 0xdd, 0xce, 0x67, 0xa8, 0x5d, 0xcc, 0x50, 0x7b, 0x50, 0xcc, 0xd0, 0x83,
  283. 0xf2, 0xcd, 0x6d, 0xbd, 0xf4, 0xcb, 0x9f, 0x75, 0xc3, 0x31, 0xf5, 0xb9, 0x7d, 0x01, 0x3f, 0x04,
  284. 0xf0, 0x12, 0xb3, 0x04, 0x47, 0xaa, 0xe2, 0x68, 0x77, 0x67, 0x07, 0x25, 0x5c, 0x4d, 0xbb, 0x19,
  285. 0x67, 0x25, 0x67, 0xa4, 0xc3, 0xee, 0xce, 0xce, 0x29, 0x87, 0x36, 0x58, 0xd3, 0x1d, 0xee, 0xd3,
  286. 0x38, 0x26, 0x02, 0x79, 0x63, 0x81, 0xb9, 0x1a, 0x7b, 0x33, 0xce, 0x6a, 0x4e, 0xb5, 0x14, 0x73,
  287. 0x20, 0x09, 0x78, 0x08, 0x1a, 0x5a, 0xff, 0x23, 0x65, 0x97, 0x24, 0x09, 0x11, 0xc7, 0x02, 0xa5,
  288. 0x8c, 0x8c, 0x5c, 0x81, 0xf5, 0xe1, 0x59, 0x75, 0xf8, 0xff, 0xb9, 0xee, 0x75, 0x2e, 0xeb, 0x63,
  289. 0xd1, 0xcb, 0x45, 0xb9, 0x4f, 0x1b, 0xd4, 0x1f, 0xf1, 0x51, 0xcd, 0x13, 0x68, 0x9b, 0x39, 0x65,
  290. 0xb3, 0xf1, 0xd0, 0xa6, 0xaf, 0x34, 0xb9, 0xcb, 0x4b, 0x00, 0xf4, 0x34, 0x43, 0x24, 0x50, 0x73,
  291. 0x6f, 0xe9, 0x60, 0x69, 0x72, 0x5b, 0x37, 0x75, 0xd9, 0xbb, 0x6d, 0xc7, 0xd4, 0x82, 0x6e, 0x00,
  292. 0x9f, 0x83, 0x4a, 0xc6, 0x31, 0x7b, 0xa7, 0x2c, 0x65, 0x75, 0xc9, 0x92, 0xc4, 0xef, 0x8b, 0xf2,
  293. 0x0c, 0xcc, 0xe3, 0x2b, 0xec, 0x4b, 0x4f, 0x39, 0xec, 0xcc, 0x03, 0x30, 0xb9, 0xad, 0xcf, 0x75,
  294. 0xae, 0xb0, 0xdf, 0x6d, 0x3b, 0x73, 0x92, 0xea, 0x06, 0x07, 0xc1, 0xcd, 0x9b, 0x5a, 0xe9, 0xb7,
  295. 0x37, 0xb5, 0xd2, 0x4f, 0x93, 0x9a, 0x71, 0x33, 0xa9, 0x19, 0xbf, 0x4e, 0x6a, 0xc6, 0x5f, 0x93,
  296. 0x9a, 0xf1, 0xfd, 0xd7, 0xff, 0xfd, 0x1f, 0xf7, 0x73, 0xfd, 0xfb, 0x6d, 0xc9, 0x9b, 0x53, 0xdf,
  297. 0xfd, 0xa3, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xba, 0x6d, 0x7b, 0x04, 0xc8, 0x07, 0x00, 0x00,
  298. }
  299. func (m *Options) Marshal() (dAtA []byte, err error) {
  300. size := m.Size()
  301. dAtA = make([]byte, size)
  302. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  303. if err != nil {
  304. return nil, err
  305. }
  306. return dAtA[:n], nil
  307. }
  308. func (m *Options) MarshalTo(dAtA []byte) (int, error) {
  309. size := m.Size()
  310. return m.MarshalToSizedBuffer(dAtA[:size])
  311. }
  312. func (m *Options) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  313. i := len(dAtA)
  314. _ = i
  315. var l int
  316. _ = l
  317. if m.XXX_unrecognized != nil {
  318. i -= len(m.XXX_unrecognized)
  319. copy(dAtA[i:], m.XXX_unrecognized)
  320. }
  321. if m.ScrubLogs {
  322. i--
  323. if m.ScrubLogs {
  324. dAtA[i] = 1
  325. } else {
  326. dAtA[i] = 0
  327. }
  328. i--
  329. dAtA[i] = 0x1
  330. i--
  331. dAtA[i] = 0xa0
  332. }
  333. if m.NoInheritHostTimezone {
  334. i--
  335. if m.NoInheritHostTimezone {
  336. dAtA[i] = 1
  337. } else {
  338. dAtA[i] = 0
  339. }
  340. i--
  341. dAtA[i] = 0x1
  342. i--
  343. dAtA[i] = 0x98
  344. }
  345. if len(m.DefaultContainerAnnotations) > 0 {
  346. for k := range m.DefaultContainerAnnotations {
  347. v := m.DefaultContainerAnnotations[k]
  348. baseI := i
  349. i -= len(v)
  350. copy(dAtA[i:], v)
  351. i = encodeVarintRunhcs(dAtA, i, uint64(len(v)))
  352. i--
  353. dAtA[i] = 0x12
  354. i -= len(k)
  355. copy(dAtA[i:], k)
  356. i = encodeVarintRunhcs(dAtA, i, uint64(len(k)))
  357. i--
  358. dAtA[i] = 0xa
  359. i = encodeVarintRunhcs(dAtA, i, uint64(baseI-i))
  360. i--
  361. dAtA[i] = 0x1
  362. i--
  363. dAtA[i] = 0x92
  364. }
  365. }
  366. if m.IoRetryTimeoutInSec != 0 {
  367. i = encodeVarintRunhcs(dAtA, i, uint64(m.IoRetryTimeoutInSec))
  368. i--
  369. dAtA[i] = 0x1
  370. i--
  371. dAtA[i] = 0x88
  372. }
  373. if len(m.LogLevel) > 0 {
  374. i -= len(m.LogLevel)
  375. copy(dAtA[i:], m.LogLevel)
  376. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.LogLevel)))
  377. i--
  378. dAtA[i] = 0x1
  379. i--
  380. dAtA[i] = 0x82
  381. }
  382. if len(m.NCProxyAddr) > 0 {
  383. i -= len(m.NCProxyAddr)
  384. copy(dAtA[i:], m.NCProxyAddr)
  385. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.NCProxyAddr)))
  386. i--
  387. dAtA[i] = 0x7a
  388. }
  389. if m.ShareScratch {
  390. i--
  391. if m.ShareScratch {
  392. dAtA[i] = 1
  393. } else {
  394. dAtA[i] = 0
  395. }
  396. i--
  397. dAtA[i] = 0x70
  398. }
  399. if m.DefaultVmScratchSizeInGb != 0 {
  400. i = encodeVarintRunhcs(dAtA, i, uint64(m.DefaultVmScratchSizeInGb))
  401. i--
  402. dAtA[i] = 0x68
  403. }
  404. if m.DefaultContainerScratchSizeInGb != 0 {
  405. i = encodeVarintRunhcs(dAtA, i, uint64(m.DefaultContainerScratchSizeInGb))
  406. i--
  407. dAtA[i] = 0x60
  408. }
  409. if m.ScaleCpuLimitsToSandbox {
  410. i--
  411. if m.ScaleCpuLimitsToSandbox {
  412. dAtA[i] = 1
  413. } else {
  414. dAtA[i] = 0
  415. }
  416. i--
  417. dAtA[i] = 0x58
  418. }
  419. if len(m.GPUVHDPath) > 0 {
  420. i -= len(m.GPUVHDPath)
  421. copy(dAtA[i:], m.GPUVHDPath)
  422. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.GPUVHDPath)))
  423. i--
  424. dAtA[i] = 0x52
  425. }
  426. if m.VmMemorySizeInMb != 0 {
  427. i = encodeVarintRunhcs(dAtA, i, uint64(m.VmMemorySizeInMb))
  428. i--
  429. dAtA[i] = 0x48
  430. }
  431. if m.VmProcessorCount != 0 {
  432. i = encodeVarintRunhcs(dAtA, i, uint64(m.VmProcessorCount))
  433. i--
  434. dAtA[i] = 0x40
  435. }
  436. if len(m.BootFilesRootPath) > 0 {
  437. i -= len(m.BootFilesRootPath)
  438. copy(dAtA[i:], m.BootFilesRootPath)
  439. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.BootFilesRootPath)))
  440. i--
  441. dAtA[i] = 0x3a
  442. }
  443. if m.SandboxIsolation != 0 {
  444. i = encodeVarintRunhcs(dAtA, i, uint64(m.SandboxIsolation))
  445. i--
  446. dAtA[i] = 0x30
  447. }
  448. if len(m.SandboxPlatform) > 0 {
  449. i -= len(m.SandboxPlatform)
  450. copy(dAtA[i:], m.SandboxPlatform)
  451. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.SandboxPlatform)))
  452. i--
  453. dAtA[i] = 0x2a
  454. }
  455. if len(m.SandboxImage) > 0 {
  456. i -= len(m.SandboxImage)
  457. copy(dAtA[i:], m.SandboxImage)
  458. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.SandboxImage)))
  459. i--
  460. dAtA[i] = 0x22
  461. }
  462. if len(m.RegistryRoot) > 0 {
  463. i -= len(m.RegistryRoot)
  464. copy(dAtA[i:], m.RegistryRoot)
  465. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.RegistryRoot)))
  466. i--
  467. dAtA[i] = 0x1a
  468. }
  469. if m.DebugType != 0 {
  470. i = encodeVarintRunhcs(dAtA, i, uint64(m.DebugType))
  471. i--
  472. dAtA[i] = 0x10
  473. }
  474. if m.Debug {
  475. i--
  476. if m.Debug {
  477. dAtA[i] = 1
  478. } else {
  479. dAtA[i] = 0
  480. }
  481. i--
  482. dAtA[i] = 0x8
  483. }
  484. return len(dAtA) - i, nil
  485. }
  486. func (m *ProcessDetails) Marshal() (dAtA []byte, err error) {
  487. size := m.Size()
  488. dAtA = make([]byte, size)
  489. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  490. if err != nil {
  491. return nil, err
  492. }
  493. return dAtA[:n], nil
  494. }
  495. func (m *ProcessDetails) MarshalTo(dAtA []byte) (int, error) {
  496. size := m.Size()
  497. return m.MarshalToSizedBuffer(dAtA[:size])
  498. }
  499. func (m *ProcessDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  500. i := len(dAtA)
  501. _ = i
  502. var l int
  503. _ = l
  504. if m.XXX_unrecognized != nil {
  505. i -= len(m.XXX_unrecognized)
  506. copy(dAtA[i:], m.XXX_unrecognized)
  507. }
  508. if len(m.ExecID) > 0 {
  509. i -= len(m.ExecID)
  510. copy(dAtA[i:], m.ExecID)
  511. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.ExecID)))
  512. i--
  513. dAtA[i] = 0x4a
  514. }
  515. if m.UserTime_100Ns != 0 {
  516. i = encodeVarintRunhcs(dAtA, i, uint64(m.UserTime_100Ns))
  517. i--
  518. dAtA[i] = 0x40
  519. }
  520. if m.ProcessID != 0 {
  521. i = encodeVarintRunhcs(dAtA, i, uint64(m.ProcessID))
  522. i--
  523. dAtA[i] = 0x38
  524. }
  525. if m.MemoryWorkingSetSharedBytes != 0 {
  526. i = encodeVarintRunhcs(dAtA, i, uint64(m.MemoryWorkingSetSharedBytes))
  527. i--
  528. dAtA[i] = 0x30
  529. }
  530. if m.MemoryWorkingSetPrivateBytes != 0 {
  531. i = encodeVarintRunhcs(dAtA, i, uint64(m.MemoryWorkingSetPrivateBytes))
  532. i--
  533. dAtA[i] = 0x28
  534. }
  535. if m.MemoryCommitBytes != 0 {
  536. i = encodeVarintRunhcs(dAtA, i, uint64(m.MemoryCommitBytes))
  537. i--
  538. dAtA[i] = 0x20
  539. }
  540. if m.KernelTime_100Ns != 0 {
  541. i = encodeVarintRunhcs(dAtA, i, uint64(m.KernelTime_100Ns))
  542. i--
  543. dAtA[i] = 0x18
  544. }
  545. n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt):])
  546. if err1 != nil {
  547. return 0, err1
  548. }
  549. i -= n1
  550. i = encodeVarintRunhcs(dAtA, i, uint64(n1))
  551. i--
  552. dAtA[i] = 0x12
  553. if len(m.ImageName) > 0 {
  554. i -= len(m.ImageName)
  555. copy(dAtA[i:], m.ImageName)
  556. i = encodeVarintRunhcs(dAtA, i, uint64(len(m.ImageName)))
  557. i--
  558. dAtA[i] = 0xa
  559. }
  560. return len(dAtA) - i, nil
  561. }
  562. func encodeVarintRunhcs(dAtA []byte, offset int, v uint64) int {
  563. offset -= sovRunhcs(v)
  564. base := offset
  565. for v >= 1<<7 {
  566. dAtA[offset] = uint8(v&0x7f | 0x80)
  567. v >>= 7
  568. offset++
  569. }
  570. dAtA[offset] = uint8(v)
  571. return base
  572. }
  573. func (m *Options) Size() (n int) {
  574. if m == nil {
  575. return 0
  576. }
  577. var l int
  578. _ = l
  579. if m.Debug {
  580. n += 2
  581. }
  582. if m.DebugType != 0 {
  583. n += 1 + sovRunhcs(uint64(m.DebugType))
  584. }
  585. l = len(m.RegistryRoot)
  586. if l > 0 {
  587. n += 1 + l + sovRunhcs(uint64(l))
  588. }
  589. l = len(m.SandboxImage)
  590. if l > 0 {
  591. n += 1 + l + sovRunhcs(uint64(l))
  592. }
  593. l = len(m.SandboxPlatform)
  594. if l > 0 {
  595. n += 1 + l + sovRunhcs(uint64(l))
  596. }
  597. if m.SandboxIsolation != 0 {
  598. n += 1 + sovRunhcs(uint64(m.SandboxIsolation))
  599. }
  600. l = len(m.BootFilesRootPath)
  601. if l > 0 {
  602. n += 1 + l + sovRunhcs(uint64(l))
  603. }
  604. if m.VmProcessorCount != 0 {
  605. n += 1 + sovRunhcs(uint64(m.VmProcessorCount))
  606. }
  607. if m.VmMemorySizeInMb != 0 {
  608. n += 1 + sovRunhcs(uint64(m.VmMemorySizeInMb))
  609. }
  610. l = len(m.GPUVHDPath)
  611. if l > 0 {
  612. n += 1 + l + sovRunhcs(uint64(l))
  613. }
  614. if m.ScaleCpuLimitsToSandbox {
  615. n += 2
  616. }
  617. if m.DefaultContainerScratchSizeInGb != 0 {
  618. n += 1 + sovRunhcs(uint64(m.DefaultContainerScratchSizeInGb))
  619. }
  620. if m.DefaultVmScratchSizeInGb != 0 {
  621. n += 1 + sovRunhcs(uint64(m.DefaultVmScratchSizeInGb))
  622. }
  623. if m.ShareScratch {
  624. n += 2
  625. }
  626. l = len(m.NCProxyAddr)
  627. if l > 0 {
  628. n += 1 + l + sovRunhcs(uint64(l))
  629. }
  630. l = len(m.LogLevel)
  631. if l > 0 {
  632. n += 2 + l + sovRunhcs(uint64(l))
  633. }
  634. if m.IoRetryTimeoutInSec != 0 {
  635. n += 2 + sovRunhcs(uint64(m.IoRetryTimeoutInSec))
  636. }
  637. if len(m.DefaultContainerAnnotations) > 0 {
  638. for k, v := range m.DefaultContainerAnnotations {
  639. _ = k
  640. _ = v
  641. mapEntrySize := 1 + len(k) + sovRunhcs(uint64(len(k))) + 1 + len(v) + sovRunhcs(uint64(len(v)))
  642. n += mapEntrySize + 2 + sovRunhcs(uint64(mapEntrySize))
  643. }
  644. }
  645. if m.NoInheritHostTimezone {
  646. n += 3
  647. }
  648. if m.ScrubLogs {
  649. n += 3
  650. }
  651. if m.XXX_unrecognized != nil {
  652. n += len(m.XXX_unrecognized)
  653. }
  654. return n
  655. }
  656. func (m *ProcessDetails) Size() (n int) {
  657. if m == nil {
  658. return 0
  659. }
  660. var l int
  661. _ = l
  662. l = len(m.ImageName)
  663. if l > 0 {
  664. n += 1 + l + sovRunhcs(uint64(l))
  665. }
  666. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt)
  667. n += 1 + l + sovRunhcs(uint64(l))
  668. if m.KernelTime_100Ns != 0 {
  669. n += 1 + sovRunhcs(uint64(m.KernelTime_100Ns))
  670. }
  671. if m.MemoryCommitBytes != 0 {
  672. n += 1 + sovRunhcs(uint64(m.MemoryCommitBytes))
  673. }
  674. if m.MemoryWorkingSetPrivateBytes != 0 {
  675. n += 1 + sovRunhcs(uint64(m.MemoryWorkingSetPrivateBytes))
  676. }
  677. if m.MemoryWorkingSetSharedBytes != 0 {
  678. n += 1 + sovRunhcs(uint64(m.MemoryWorkingSetSharedBytes))
  679. }
  680. if m.ProcessID != 0 {
  681. n += 1 + sovRunhcs(uint64(m.ProcessID))
  682. }
  683. if m.UserTime_100Ns != 0 {
  684. n += 1 + sovRunhcs(uint64(m.UserTime_100Ns))
  685. }
  686. l = len(m.ExecID)
  687. if l > 0 {
  688. n += 1 + l + sovRunhcs(uint64(l))
  689. }
  690. if m.XXX_unrecognized != nil {
  691. n += len(m.XXX_unrecognized)
  692. }
  693. return n
  694. }
  695. func sovRunhcs(x uint64) (n int) {
  696. return (math_bits.Len64(x|1) + 6) / 7
  697. }
  698. func sozRunhcs(x uint64) (n int) {
  699. return sovRunhcs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  700. }
  701. func (this *Options) String() string {
  702. if this == nil {
  703. return "nil"
  704. }
  705. keysForDefaultContainerAnnotations := make([]string, 0, len(this.DefaultContainerAnnotations))
  706. for k, _ := range this.DefaultContainerAnnotations {
  707. keysForDefaultContainerAnnotations = append(keysForDefaultContainerAnnotations, k)
  708. }
  709. github_com_gogo_protobuf_sortkeys.Strings(keysForDefaultContainerAnnotations)
  710. mapStringForDefaultContainerAnnotations := "map[string]string{"
  711. for _, k := range keysForDefaultContainerAnnotations {
  712. mapStringForDefaultContainerAnnotations += fmt.Sprintf("%v: %v,", k, this.DefaultContainerAnnotations[k])
  713. }
  714. mapStringForDefaultContainerAnnotations += "}"
  715. s := strings.Join([]string{`&Options{`,
  716. `Debug:` + fmt.Sprintf("%v", this.Debug) + `,`,
  717. `DebugType:` + fmt.Sprintf("%v", this.DebugType) + `,`,
  718. `RegistryRoot:` + fmt.Sprintf("%v", this.RegistryRoot) + `,`,
  719. `SandboxImage:` + fmt.Sprintf("%v", this.SandboxImage) + `,`,
  720. `SandboxPlatform:` + fmt.Sprintf("%v", this.SandboxPlatform) + `,`,
  721. `SandboxIsolation:` + fmt.Sprintf("%v", this.SandboxIsolation) + `,`,
  722. `BootFilesRootPath:` + fmt.Sprintf("%v", this.BootFilesRootPath) + `,`,
  723. `VmProcessorCount:` + fmt.Sprintf("%v", this.VmProcessorCount) + `,`,
  724. `VmMemorySizeInMb:` + fmt.Sprintf("%v", this.VmMemorySizeInMb) + `,`,
  725. `GPUVHDPath:` + fmt.Sprintf("%v", this.GPUVHDPath) + `,`,
  726. `ScaleCpuLimitsToSandbox:` + fmt.Sprintf("%v", this.ScaleCpuLimitsToSandbox) + `,`,
  727. `DefaultContainerScratchSizeInGb:` + fmt.Sprintf("%v", this.DefaultContainerScratchSizeInGb) + `,`,
  728. `DefaultVmScratchSizeInGb:` + fmt.Sprintf("%v", this.DefaultVmScratchSizeInGb) + `,`,
  729. `ShareScratch:` + fmt.Sprintf("%v", this.ShareScratch) + `,`,
  730. `NCProxyAddr:` + fmt.Sprintf("%v", this.NCProxyAddr) + `,`,
  731. `LogLevel:` + fmt.Sprintf("%v", this.LogLevel) + `,`,
  732. `IoRetryTimeoutInSec:` + fmt.Sprintf("%v", this.IoRetryTimeoutInSec) + `,`,
  733. `DefaultContainerAnnotations:` + mapStringForDefaultContainerAnnotations + `,`,
  734. `NoInheritHostTimezone:` + fmt.Sprintf("%v", this.NoInheritHostTimezone) + `,`,
  735. `ScrubLogs:` + fmt.Sprintf("%v", this.ScrubLogs) + `,`,
  736. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  737. `}`,
  738. }, "")
  739. return s
  740. }
  741. func (this *ProcessDetails) String() string {
  742. if this == nil {
  743. return "nil"
  744. }
  745. s := strings.Join([]string{`&ProcessDetails{`,
  746. `ImageName:` + fmt.Sprintf("%v", this.ImageName) + `,`,
  747. `CreatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreatedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  748. `KernelTime_100Ns:` + fmt.Sprintf("%v", this.KernelTime_100Ns) + `,`,
  749. `MemoryCommitBytes:` + fmt.Sprintf("%v", this.MemoryCommitBytes) + `,`,
  750. `MemoryWorkingSetPrivateBytes:` + fmt.Sprintf("%v", this.MemoryWorkingSetPrivateBytes) + `,`,
  751. `MemoryWorkingSetSharedBytes:` + fmt.Sprintf("%v", this.MemoryWorkingSetSharedBytes) + `,`,
  752. `ProcessID:` + fmt.Sprintf("%v", this.ProcessID) + `,`,
  753. `UserTime_100Ns:` + fmt.Sprintf("%v", this.UserTime_100Ns) + `,`,
  754. `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`,
  755. `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`,
  756. `}`,
  757. }, "")
  758. return s
  759. }
  760. func valueToStringRunhcs(v interface{}) string {
  761. rv := reflect.ValueOf(v)
  762. if rv.IsNil() {
  763. return "nil"
  764. }
  765. pv := reflect.Indirect(rv).Interface()
  766. return fmt.Sprintf("*%v", pv)
  767. }
  768. func (m *Options) Unmarshal(dAtA []byte) error {
  769. l := len(dAtA)
  770. iNdEx := 0
  771. for iNdEx < l {
  772. preIndex := iNdEx
  773. var wire uint64
  774. for shift := uint(0); ; shift += 7 {
  775. if shift >= 64 {
  776. return ErrIntOverflowRunhcs
  777. }
  778. if iNdEx >= l {
  779. return io.ErrUnexpectedEOF
  780. }
  781. b := dAtA[iNdEx]
  782. iNdEx++
  783. wire |= uint64(b&0x7F) << shift
  784. if b < 0x80 {
  785. break
  786. }
  787. }
  788. fieldNum := int32(wire >> 3)
  789. wireType := int(wire & 0x7)
  790. if wireType == 4 {
  791. return fmt.Errorf("proto: Options: wiretype end group for non-group")
  792. }
  793. if fieldNum <= 0 {
  794. return fmt.Errorf("proto: Options: illegal tag %d (wire type %d)", fieldNum, wire)
  795. }
  796. switch fieldNum {
  797. case 1:
  798. if wireType != 0 {
  799. return fmt.Errorf("proto: wrong wireType = %d for field Debug", wireType)
  800. }
  801. var v int
  802. for shift := uint(0); ; shift += 7 {
  803. if shift >= 64 {
  804. return ErrIntOverflowRunhcs
  805. }
  806. if iNdEx >= l {
  807. return io.ErrUnexpectedEOF
  808. }
  809. b := dAtA[iNdEx]
  810. iNdEx++
  811. v |= int(b&0x7F) << shift
  812. if b < 0x80 {
  813. break
  814. }
  815. }
  816. m.Debug = bool(v != 0)
  817. case 2:
  818. if wireType != 0 {
  819. return fmt.Errorf("proto: wrong wireType = %d for field DebugType", wireType)
  820. }
  821. m.DebugType = 0
  822. for shift := uint(0); ; shift += 7 {
  823. if shift >= 64 {
  824. return ErrIntOverflowRunhcs
  825. }
  826. if iNdEx >= l {
  827. return io.ErrUnexpectedEOF
  828. }
  829. b := dAtA[iNdEx]
  830. iNdEx++
  831. m.DebugType |= Options_DebugType(b&0x7F) << shift
  832. if b < 0x80 {
  833. break
  834. }
  835. }
  836. case 3:
  837. if wireType != 2 {
  838. return fmt.Errorf("proto: wrong wireType = %d for field RegistryRoot", wireType)
  839. }
  840. var stringLen uint64
  841. for shift := uint(0); ; shift += 7 {
  842. if shift >= 64 {
  843. return ErrIntOverflowRunhcs
  844. }
  845. if iNdEx >= l {
  846. return io.ErrUnexpectedEOF
  847. }
  848. b := dAtA[iNdEx]
  849. iNdEx++
  850. stringLen |= uint64(b&0x7F) << shift
  851. if b < 0x80 {
  852. break
  853. }
  854. }
  855. intStringLen := int(stringLen)
  856. if intStringLen < 0 {
  857. return ErrInvalidLengthRunhcs
  858. }
  859. postIndex := iNdEx + intStringLen
  860. if postIndex < 0 {
  861. return ErrInvalidLengthRunhcs
  862. }
  863. if postIndex > l {
  864. return io.ErrUnexpectedEOF
  865. }
  866. m.RegistryRoot = string(dAtA[iNdEx:postIndex])
  867. iNdEx = postIndex
  868. case 4:
  869. if wireType != 2 {
  870. return fmt.Errorf("proto: wrong wireType = %d for field SandboxImage", wireType)
  871. }
  872. var stringLen uint64
  873. for shift := uint(0); ; shift += 7 {
  874. if shift >= 64 {
  875. return ErrIntOverflowRunhcs
  876. }
  877. if iNdEx >= l {
  878. return io.ErrUnexpectedEOF
  879. }
  880. b := dAtA[iNdEx]
  881. iNdEx++
  882. stringLen |= uint64(b&0x7F) << shift
  883. if b < 0x80 {
  884. break
  885. }
  886. }
  887. intStringLen := int(stringLen)
  888. if intStringLen < 0 {
  889. return ErrInvalidLengthRunhcs
  890. }
  891. postIndex := iNdEx + intStringLen
  892. if postIndex < 0 {
  893. return ErrInvalidLengthRunhcs
  894. }
  895. if postIndex > l {
  896. return io.ErrUnexpectedEOF
  897. }
  898. m.SandboxImage = string(dAtA[iNdEx:postIndex])
  899. iNdEx = postIndex
  900. case 5:
  901. if wireType != 2 {
  902. return fmt.Errorf("proto: wrong wireType = %d for field SandboxPlatform", wireType)
  903. }
  904. var stringLen uint64
  905. for shift := uint(0); ; shift += 7 {
  906. if shift >= 64 {
  907. return ErrIntOverflowRunhcs
  908. }
  909. if iNdEx >= l {
  910. return io.ErrUnexpectedEOF
  911. }
  912. b := dAtA[iNdEx]
  913. iNdEx++
  914. stringLen |= uint64(b&0x7F) << shift
  915. if b < 0x80 {
  916. break
  917. }
  918. }
  919. intStringLen := int(stringLen)
  920. if intStringLen < 0 {
  921. return ErrInvalidLengthRunhcs
  922. }
  923. postIndex := iNdEx + intStringLen
  924. if postIndex < 0 {
  925. return ErrInvalidLengthRunhcs
  926. }
  927. if postIndex > l {
  928. return io.ErrUnexpectedEOF
  929. }
  930. m.SandboxPlatform = string(dAtA[iNdEx:postIndex])
  931. iNdEx = postIndex
  932. case 6:
  933. if wireType != 0 {
  934. return fmt.Errorf("proto: wrong wireType = %d for field SandboxIsolation", wireType)
  935. }
  936. m.SandboxIsolation = 0
  937. for shift := uint(0); ; shift += 7 {
  938. if shift >= 64 {
  939. return ErrIntOverflowRunhcs
  940. }
  941. if iNdEx >= l {
  942. return io.ErrUnexpectedEOF
  943. }
  944. b := dAtA[iNdEx]
  945. iNdEx++
  946. m.SandboxIsolation |= Options_SandboxIsolation(b&0x7F) << shift
  947. if b < 0x80 {
  948. break
  949. }
  950. }
  951. case 7:
  952. if wireType != 2 {
  953. return fmt.Errorf("proto: wrong wireType = %d for field BootFilesRootPath", wireType)
  954. }
  955. var stringLen uint64
  956. for shift := uint(0); ; shift += 7 {
  957. if shift >= 64 {
  958. return ErrIntOverflowRunhcs
  959. }
  960. if iNdEx >= l {
  961. return io.ErrUnexpectedEOF
  962. }
  963. b := dAtA[iNdEx]
  964. iNdEx++
  965. stringLen |= uint64(b&0x7F) << shift
  966. if b < 0x80 {
  967. break
  968. }
  969. }
  970. intStringLen := int(stringLen)
  971. if intStringLen < 0 {
  972. return ErrInvalidLengthRunhcs
  973. }
  974. postIndex := iNdEx + intStringLen
  975. if postIndex < 0 {
  976. return ErrInvalidLengthRunhcs
  977. }
  978. if postIndex > l {
  979. return io.ErrUnexpectedEOF
  980. }
  981. m.BootFilesRootPath = string(dAtA[iNdEx:postIndex])
  982. iNdEx = postIndex
  983. case 8:
  984. if wireType != 0 {
  985. return fmt.Errorf("proto: wrong wireType = %d for field VmProcessorCount", wireType)
  986. }
  987. m.VmProcessorCount = 0
  988. for shift := uint(0); ; shift += 7 {
  989. if shift >= 64 {
  990. return ErrIntOverflowRunhcs
  991. }
  992. if iNdEx >= l {
  993. return io.ErrUnexpectedEOF
  994. }
  995. b := dAtA[iNdEx]
  996. iNdEx++
  997. m.VmProcessorCount |= int32(b&0x7F) << shift
  998. if b < 0x80 {
  999. break
  1000. }
  1001. }
  1002. case 9:
  1003. if wireType != 0 {
  1004. return fmt.Errorf("proto: wrong wireType = %d for field VmMemorySizeInMb", wireType)
  1005. }
  1006. m.VmMemorySizeInMb = 0
  1007. for shift := uint(0); ; shift += 7 {
  1008. if shift >= 64 {
  1009. return ErrIntOverflowRunhcs
  1010. }
  1011. if iNdEx >= l {
  1012. return io.ErrUnexpectedEOF
  1013. }
  1014. b := dAtA[iNdEx]
  1015. iNdEx++
  1016. m.VmMemorySizeInMb |= int32(b&0x7F) << shift
  1017. if b < 0x80 {
  1018. break
  1019. }
  1020. }
  1021. case 10:
  1022. if wireType != 2 {
  1023. return fmt.Errorf("proto: wrong wireType = %d for field GPUVHDPath", wireType)
  1024. }
  1025. var stringLen uint64
  1026. for shift := uint(0); ; shift += 7 {
  1027. if shift >= 64 {
  1028. return ErrIntOverflowRunhcs
  1029. }
  1030. if iNdEx >= l {
  1031. return io.ErrUnexpectedEOF
  1032. }
  1033. b := dAtA[iNdEx]
  1034. iNdEx++
  1035. stringLen |= uint64(b&0x7F) << shift
  1036. if b < 0x80 {
  1037. break
  1038. }
  1039. }
  1040. intStringLen := int(stringLen)
  1041. if intStringLen < 0 {
  1042. return ErrInvalidLengthRunhcs
  1043. }
  1044. postIndex := iNdEx + intStringLen
  1045. if postIndex < 0 {
  1046. return ErrInvalidLengthRunhcs
  1047. }
  1048. if postIndex > l {
  1049. return io.ErrUnexpectedEOF
  1050. }
  1051. m.GPUVHDPath = string(dAtA[iNdEx:postIndex])
  1052. iNdEx = postIndex
  1053. case 11:
  1054. if wireType != 0 {
  1055. return fmt.Errorf("proto: wrong wireType = %d for field ScaleCpuLimitsToSandbox", wireType)
  1056. }
  1057. var v int
  1058. for shift := uint(0); ; shift += 7 {
  1059. if shift >= 64 {
  1060. return ErrIntOverflowRunhcs
  1061. }
  1062. if iNdEx >= l {
  1063. return io.ErrUnexpectedEOF
  1064. }
  1065. b := dAtA[iNdEx]
  1066. iNdEx++
  1067. v |= int(b&0x7F) << shift
  1068. if b < 0x80 {
  1069. break
  1070. }
  1071. }
  1072. m.ScaleCpuLimitsToSandbox = bool(v != 0)
  1073. case 12:
  1074. if wireType != 0 {
  1075. return fmt.Errorf("proto: wrong wireType = %d for field DefaultContainerScratchSizeInGb", wireType)
  1076. }
  1077. m.DefaultContainerScratchSizeInGb = 0
  1078. for shift := uint(0); ; shift += 7 {
  1079. if shift >= 64 {
  1080. return ErrIntOverflowRunhcs
  1081. }
  1082. if iNdEx >= l {
  1083. return io.ErrUnexpectedEOF
  1084. }
  1085. b := dAtA[iNdEx]
  1086. iNdEx++
  1087. m.DefaultContainerScratchSizeInGb |= int32(b&0x7F) << shift
  1088. if b < 0x80 {
  1089. break
  1090. }
  1091. }
  1092. case 13:
  1093. if wireType != 0 {
  1094. return fmt.Errorf("proto: wrong wireType = %d for field DefaultVmScratchSizeInGb", wireType)
  1095. }
  1096. m.DefaultVmScratchSizeInGb = 0
  1097. for shift := uint(0); ; shift += 7 {
  1098. if shift >= 64 {
  1099. return ErrIntOverflowRunhcs
  1100. }
  1101. if iNdEx >= l {
  1102. return io.ErrUnexpectedEOF
  1103. }
  1104. b := dAtA[iNdEx]
  1105. iNdEx++
  1106. m.DefaultVmScratchSizeInGb |= int32(b&0x7F) << shift
  1107. if b < 0x80 {
  1108. break
  1109. }
  1110. }
  1111. case 14:
  1112. if wireType != 0 {
  1113. return fmt.Errorf("proto: wrong wireType = %d for field ShareScratch", wireType)
  1114. }
  1115. var v int
  1116. for shift := uint(0); ; shift += 7 {
  1117. if shift >= 64 {
  1118. return ErrIntOverflowRunhcs
  1119. }
  1120. if iNdEx >= l {
  1121. return io.ErrUnexpectedEOF
  1122. }
  1123. b := dAtA[iNdEx]
  1124. iNdEx++
  1125. v |= int(b&0x7F) << shift
  1126. if b < 0x80 {
  1127. break
  1128. }
  1129. }
  1130. m.ShareScratch = bool(v != 0)
  1131. case 15:
  1132. if wireType != 2 {
  1133. return fmt.Errorf("proto: wrong wireType = %d for field NCProxyAddr", wireType)
  1134. }
  1135. var stringLen uint64
  1136. for shift := uint(0); ; shift += 7 {
  1137. if shift >= 64 {
  1138. return ErrIntOverflowRunhcs
  1139. }
  1140. if iNdEx >= l {
  1141. return io.ErrUnexpectedEOF
  1142. }
  1143. b := dAtA[iNdEx]
  1144. iNdEx++
  1145. stringLen |= uint64(b&0x7F) << shift
  1146. if b < 0x80 {
  1147. break
  1148. }
  1149. }
  1150. intStringLen := int(stringLen)
  1151. if intStringLen < 0 {
  1152. return ErrInvalidLengthRunhcs
  1153. }
  1154. postIndex := iNdEx + intStringLen
  1155. if postIndex < 0 {
  1156. return ErrInvalidLengthRunhcs
  1157. }
  1158. if postIndex > l {
  1159. return io.ErrUnexpectedEOF
  1160. }
  1161. m.NCProxyAddr = string(dAtA[iNdEx:postIndex])
  1162. iNdEx = postIndex
  1163. case 16:
  1164. if wireType != 2 {
  1165. return fmt.Errorf("proto: wrong wireType = %d for field LogLevel", wireType)
  1166. }
  1167. var stringLen uint64
  1168. for shift := uint(0); ; shift += 7 {
  1169. if shift >= 64 {
  1170. return ErrIntOverflowRunhcs
  1171. }
  1172. if iNdEx >= l {
  1173. return io.ErrUnexpectedEOF
  1174. }
  1175. b := dAtA[iNdEx]
  1176. iNdEx++
  1177. stringLen |= uint64(b&0x7F) << shift
  1178. if b < 0x80 {
  1179. break
  1180. }
  1181. }
  1182. intStringLen := int(stringLen)
  1183. if intStringLen < 0 {
  1184. return ErrInvalidLengthRunhcs
  1185. }
  1186. postIndex := iNdEx + intStringLen
  1187. if postIndex < 0 {
  1188. return ErrInvalidLengthRunhcs
  1189. }
  1190. if postIndex > l {
  1191. return io.ErrUnexpectedEOF
  1192. }
  1193. m.LogLevel = string(dAtA[iNdEx:postIndex])
  1194. iNdEx = postIndex
  1195. case 17:
  1196. if wireType != 0 {
  1197. return fmt.Errorf("proto: wrong wireType = %d for field IoRetryTimeoutInSec", wireType)
  1198. }
  1199. m.IoRetryTimeoutInSec = 0
  1200. for shift := uint(0); ; shift += 7 {
  1201. if shift >= 64 {
  1202. return ErrIntOverflowRunhcs
  1203. }
  1204. if iNdEx >= l {
  1205. return io.ErrUnexpectedEOF
  1206. }
  1207. b := dAtA[iNdEx]
  1208. iNdEx++
  1209. m.IoRetryTimeoutInSec |= int32(b&0x7F) << shift
  1210. if b < 0x80 {
  1211. break
  1212. }
  1213. }
  1214. case 18:
  1215. if wireType != 2 {
  1216. return fmt.Errorf("proto: wrong wireType = %d for field DefaultContainerAnnotations", wireType)
  1217. }
  1218. var msglen int
  1219. for shift := uint(0); ; shift += 7 {
  1220. if shift >= 64 {
  1221. return ErrIntOverflowRunhcs
  1222. }
  1223. if iNdEx >= l {
  1224. return io.ErrUnexpectedEOF
  1225. }
  1226. b := dAtA[iNdEx]
  1227. iNdEx++
  1228. msglen |= int(b&0x7F) << shift
  1229. if b < 0x80 {
  1230. break
  1231. }
  1232. }
  1233. if msglen < 0 {
  1234. return ErrInvalidLengthRunhcs
  1235. }
  1236. postIndex := iNdEx + msglen
  1237. if postIndex < 0 {
  1238. return ErrInvalidLengthRunhcs
  1239. }
  1240. if postIndex > l {
  1241. return io.ErrUnexpectedEOF
  1242. }
  1243. if m.DefaultContainerAnnotations == nil {
  1244. m.DefaultContainerAnnotations = make(map[string]string)
  1245. }
  1246. var mapkey string
  1247. var mapvalue string
  1248. for iNdEx < postIndex {
  1249. entryPreIndex := iNdEx
  1250. var wire uint64
  1251. for shift := uint(0); ; shift += 7 {
  1252. if shift >= 64 {
  1253. return ErrIntOverflowRunhcs
  1254. }
  1255. if iNdEx >= l {
  1256. return io.ErrUnexpectedEOF
  1257. }
  1258. b := dAtA[iNdEx]
  1259. iNdEx++
  1260. wire |= uint64(b&0x7F) << shift
  1261. if b < 0x80 {
  1262. break
  1263. }
  1264. }
  1265. fieldNum := int32(wire >> 3)
  1266. if fieldNum == 1 {
  1267. var stringLenmapkey uint64
  1268. for shift := uint(0); ; shift += 7 {
  1269. if shift >= 64 {
  1270. return ErrIntOverflowRunhcs
  1271. }
  1272. if iNdEx >= l {
  1273. return io.ErrUnexpectedEOF
  1274. }
  1275. b := dAtA[iNdEx]
  1276. iNdEx++
  1277. stringLenmapkey |= uint64(b&0x7F) << shift
  1278. if b < 0x80 {
  1279. break
  1280. }
  1281. }
  1282. intStringLenmapkey := int(stringLenmapkey)
  1283. if intStringLenmapkey < 0 {
  1284. return ErrInvalidLengthRunhcs
  1285. }
  1286. postStringIndexmapkey := iNdEx + intStringLenmapkey
  1287. if postStringIndexmapkey < 0 {
  1288. return ErrInvalidLengthRunhcs
  1289. }
  1290. if postStringIndexmapkey > l {
  1291. return io.ErrUnexpectedEOF
  1292. }
  1293. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  1294. iNdEx = postStringIndexmapkey
  1295. } else if fieldNum == 2 {
  1296. var stringLenmapvalue uint64
  1297. for shift := uint(0); ; shift += 7 {
  1298. if shift >= 64 {
  1299. return ErrIntOverflowRunhcs
  1300. }
  1301. if iNdEx >= l {
  1302. return io.ErrUnexpectedEOF
  1303. }
  1304. b := dAtA[iNdEx]
  1305. iNdEx++
  1306. stringLenmapvalue |= uint64(b&0x7F) << shift
  1307. if b < 0x80 {
  1308. break
  1309. }
  1310. }
  1311. intStringLenmapvalue := int(stringLenmapvalue)
  1312. if intStringLenmapvalue < 0 {
  1313. return ErrInvalidLengthRunhcs
  1314. }
  1315. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  1316. if postStringIndexmapvalue < 0 {
  1317. return ErrInvalidLengthRunhcs
  1318. }
  1319. if postStringIndexmapvalue > l {
  1320. return io.ErrUnexpectedEOF
  1321. }
  1322. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  1323. iNdEx = postStringIndexmapvalue
  1324. } else {
  1325. iNdEx = entryPreIndex
  1326. skippy, err := skipRunhcs(dAtA[iNdEx:])
  1327. if err != nil {
  1328. return err
  1329. }
  1330. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1331. return ErrInvalidLengthRunhcs
  1332. }
  1333. if (iNdEx + skippy) > postIndex {
  1334. return io.ErrUnexpectedEOF
  1335. }
  1336. iNdEx += skippy
  1337. }
  1338. }
  1339. m.DefaultContainerAnnotations[mapkey] = mapvalue
  1340. iNdEx = postIndex
  1341. case 19:
  1342. if wireType != 0 {
  1343. return fmt.Errorf("proto: wrong wireType = %d for field NoInheritHostTimezone", wireType)
  1344. }
  1345. var v int
  1346. for shift := uint(0); ; shift += 7 {
  1347. if shift >= 64 {
  1348. return ErrIntOverflowRunhcs
  1349. }
  1350. if iNdEx >= l {
  1351. return io.ErrUnexpectedEOF
  1352. }
  1353. b := dAtA[iNdEx]
  1354. iNdEx++
  1355. v |= int(b&0x7F) << shift
  1356. if b < 0x80 {
  1357. break
  1358. }
  1359. }
  1360. m.NoInheritHostTimezone = bool(v != 0)
  1361. case 20:
  1362. if wireType != 0 {
  1363. return fmt.Errorf("proto: wrong wireType = %d for field ScrubLogs", wireType)
  1364. }
  1365. var v int
  1366. for shift := uint(0); ; shift += 7 {
  1367. if shift >= 64 {
  1368. return ErrIntOverflowRunhcs
  1369. }
  1370. if iNdEx >= l {
  1371. return io.ErrUnexpectedEOF
  1372. }
  1373. b := dAtA[iNdEx]
  1374. iNdEx++
  1375. v |= int(b&0x7F) << shift
  1376. if b < 0x80 {
  1377. break
  1378. }
  1379. }
  1380. m.ScrubLogs = bool(v != 0)
  1381. default:
  1382. iNdEx = preIndex
  1383. skippy, err := skipRunhcs(dAtA[iNdEx:])
  1384. if err != nil {
  1385. return err
  1386. }
  1387. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1388. return ErrInvalidLengthRunhcs
  1389. }
  1390. if (iNdEx + skippy) > l {
  1391. return io.ErrUnexpectedEOF
  1392. }
  1393. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1394. iNdEx += skippy
  1395. }
  1396. }
  1397. if iNdEx > l {
  1398. return io.ErrUnexpectedEOF
  1399. }
  1400. return nil
  1401. }
  1402. func (m *ProcessDetails) Unmarshal(dAtA []byte) error {
  1403. l := len(dAtA)
  1404. iNdEx := 0
  1405. for iNdEx < l {
  1406. preIndex := iNdEx
  1407. var wire uint64
  1408. for shift := uint(0); ; shift += 7 {
  1409. if shift >= 64 {
  1410. return ErrIntOverflowRunhcs
  1411. }
  1412. if iNdEx >= l {
  1413. return io.ErrUnexpectedEOF
  1414. }
  1415. b := dAtA[iNdEx]
  1416. iNdEx++
  1417. wire |= uint64(b&0x7F) << shift
  1418. if b < 0x80 {
  1419. break
  1420. }
  1421. }
  1422. fieldNum := int32(wire >> 3)
  1423. wireType := int(wire & 0x7)
  1424. if wireType == 4 {
  1425. return fmt.Errorf("proto: ProcessDetails: wiretype end group for non-group")
  1426. }
  1427. if fieldNum <= 0 {
  1428. return fmt.Errorf("proto: ProcessDetails: illegal tag %d (wire type %d)", fieldNum, wire)
  1429. }
  1430. switch fieldNum {
  1431. case 1:
  1432. if wireType != 2 {
  1433. return fmt.Errorf("proto: wrong wireType = %d for field ImageName", wireType)
  1434. }
  1435. var stringLen uint64
  1436. for shift := uint(0); ; shift += 7 {
  1437. if shift >= 64 {
  1438. return ErrIntOverflowRunhcs
  1439. }
  1440. if iNdEx >= l {
  1441. return io.ErrUnexpectedEOF
  1442. }
  1443. b := dAtA[iNdEx]
  1444. iNdEx++
  1445. stringLen |= uint64(b&0x7F) << shift
  1446. if b < 0x80 {
  1447. break
  1448. }
  1449. }
  1450. intStringLen := int(stringLen)
  1451. if intStringLen < 0 {
  1452. return ErrInvalidLengthRunhcs
  1453. }
  1454. postIndex := iNdEx + intStringLen
  1455. if postIndex < 0 {
  1456. return ErrInvalidLengthRunhcs
  1457. }
  1458. if postIndex > l {
  1459. return io.ErrUnexpectedEOF
  1460. }
  1461. m.ImageName = string(dAtA[iNdEx:postIndex])
  1462. iNdEx = postIndex
  1463. case 2:
  1464. if wireType != 2 {
  1465. return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType)
  1466. }
  1467. var msglen int
  1468. for shift := uint(0); ; shift += 7 {
  1469. if shift >= 64 {
  1470. return ErrIntOverflowRunhcs
  1471. }
  1472. if iNdEx >= l {
  1473. return io.ErrUnexpectedEOF
  1474. }
  1475. b := dAtA[iNdEx]
  1476. iNdEx++
  1477. msglen |= int(b&0x7F) << shift
  1478. if b < 0x80 {
  1479. break
  1480. }
  1481. }
  1482. if msglen < 0 {
  1483. return ErrInvalidLengthRunhcs
  1484. }
  1485. postIndex := iNdEx + msglen
  1486. if postIndex < 0 {
  1487. return ErrInvalidLengthRunhcs
  1488. }
  1489. if postIndex > l {
  1490. return io.ErrUnexpectedEOF
  1491. }
  1492. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil {
  1493. return err
  1494. }
  1495. iNdEx = postIndex
  1496. case 3:
  1497. if wireType != 0 {
  1498. return fmt.Errorf("proto: wrong wireType = %d for field KernelTime_100Ns", wireType)
  1499. }
  1500. m.KernelTime_100Ns = 0
  1501. for shift := uint(0); ; shift += 7 {
  1502. if shift >= 64 {
  1503. return ErrIntOverflowRunhcs
  1504. }
  1505. if iNdEx >= l {
  1506. return io.ErrUnexpectedEOF
  1507. }
  1508. b := dAtA[iNdEx]
  1509. iNdEx++
  1510. m.KernelTime_100Ns |= uint64(b&0x7F) << shift
  1511. if b < 0x80 {
  1512. break
  1513. }
  1514. }
  1515. case 4:
  1516. if wireType != 0 {
  1517. return fmt.Errorf("proto: wrong wireType = %d for field MemoryCommitBytes", wireType)
  1518. }
  1519. m.MemoryCommitBytes = 0
  1520. for shift := uint(0); ; shift += 7 {
  1521. if shift >= 64 {
  1522. return ErrIntOverflowRunhcs
  1523. }
  1524. if iNdEx >= l {
  1525. return io.ErrUnexpectedEOF
  1526. }
  1527. b := dAtA[iNdEx]
  1528. iNdEx++
  1529. m.MemoryCommitBytes |= uint64(b&0x7F) << shift
  1530. if b < 0x80 {
  1531. break
  1532. }
  1533. }
  1534. case 5:
  1535. if wireType != 0 {
  1536. return fmt.Errorf("proto: wrong wireType = %d for field MemoryWorkingSetPrivateBytes", wireType)
  1537. }
  1538. m.MemoryWorkingSetPrivateBytes = 0
  1539. for shift := uint(0); ; shift += 7 {
  1540. if shift >= 64 {
  1541. return ErrIntOverflowRunhcs
  1542. }
  1543. if iNdEx >= l {
  1544. return io.ErrUnexpectedEOF
  1545. }
  1546. b := dAtA[iNdEx]
  1547. iNdEx++
  1548. m.MemoryWorkingSetPrivateBytes |= uint64(b&0x7F) << shift
  1549. if b < 0x80 {
  1550. break
  1551. }
  1552. }
  1553. case 6:
  1554. if wireType != 0 {
  1555. return fmt.Errorf("proto: wrong wireType = %d for field MemoryWorkingSetSharedBytes", wireType)
  1556. }
  1557. m.MemoryWorkingSetSharedBytes = 0
  1558. for shift := uint(0); ; shift += 7 {
  1559. if shift >= 64 {
  1560. return ErrIntOverflowRunhcs
  1561. }
  1562. if iNdEx >= l {
  1563. return io.ErrUnexpectedEOF
  1564. }
  1565. b := dAtA[iNdEx]
  1566. iNdEx++
  1567. m.MemoryWorkingSetSharedBytes |= uint64(b&0x7F) << shift
  1568. if b < 0x80 {
  1569. break
  1570. }
  1571. }
  1572. case 7:
  1573. if wireType != 0 {
  1574. return fmt.Errorf("proto: wrong wireType = %d for field ProcessID", wireType)
  1575. }
  1576. m.ProcessID = 0
  1577. for shift := uint(0); ; shift += 7 {
  1578. if shift >= 64 {
  1579. return ErrIntOverflowRunhcs
  1580. }
  1581. if iNdEx >= l {
  1582. return io.ErrUnexpectedEOF
  1583. }
  1584. b := dAtA[iNdEx]
  1585. iNdEx++
  1586. m.ProcessID |= uint32(b&0x7F) << shift
  1587. if b < 0x80 {
  1588. break
  1589. }
  1590. }
  1591. case 8:
  1592. if wireType != 0 {
  1593. return fmt.Errorf("proto: wrong wireType = %d for field UserTime_100Ns", wireType)
  1594. }
  1595. m.UserTime_100Ns = 0
  1596. for shift := uint(0); ; shift += 7 {
  1597. if shift >= 64 {
  1598. return ErrIntOverflowRunhcs
  1599. }
  1600. if iNdEx >= l {
  1601. return io.ErrUnexpectedEOF
  1602. }
  1603. b := dAtA[iNdEx]
  1604. iNdEx++
  1605. m.UserTime_100Ns |= uint64(b&0x7F) << shift
  1606. if b < 0x80 {
  1607. break
  1608. }
  1609. }
  1610. case 9:
  1611. if wireType != 2 {
  1612. return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType)
  1613. }
  1614. var stringLen uint64
  1615. for shift := uint(0); ; shift += 7 {
  1616. if shift >= 64 {
  1617. return ErrIntOverflowRunhcs
  1618. }
  1619. if iNdEx >= l {
  1620. return io.ErrUnexpectedEOF
  1621. }
  1622. b := dAtA[iNdEx]
  1623. iNdEx++
  1624. stringLen |= uint64(b&0x7F) << shift
  1625. if b < 0x80 {
  1626. break
  1627. }
  1628. }
  1629. intStringLen := int(stringLen)
  1630. if intStringLen < 0 {
  1631. return ErrInvalidLengthRunhcs
  1632. }
  1633. postIndex := iNdEx + intStringLen
  1634. if postIndex < 0 {
  1635. return ErrInvalidLengthRunhcs
  1636. }
  1637. if postIndex > l {
  1638. return io.ErrUnexpectedEOF
  1639. }
  1640. m.ExecID = string(dAtA[iNdEx:postIndex])
  1641. iNdEx = postIndex
  1642. default:
  1643. iNdEx = preIndex
  1644. skippy, err := skipRunhcs(dAtA[iNdEx:])
  1645. if err != nil {
  1646. return err
  1647. }
  1648. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1649. return ErrInvalidLengthRunhcs
  1650. }
  1651. if (iNdEx + skippy) > l {
  1652. return io.ErrUnexpectedEOF
  1653. }
  1654. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1655. iNdEx += skippy
  1656. }
  1657. }
  1658. if iNdEx > l {
  1659. return io.ErrUnexpectedEOF
  1660. }
  1661. return nil
  1662. }
  1663. func skipRunhcs(dAtA []byte) (n int, err error) {
  1664. l := len(dAtA)
  1665. iNdEx := 0
  1666. depth := 0
  1667. for iNdEx < l {
  1668. var wire uint64
  1669. for shift := uint(0); ; shift += 7 {
  1670. if shift >= 64 {
  1671. return 0, ErrIntOverflowRunhcs
  1672. }
  1673. if iNdEx >= l {
  1674. return 0, io.ErrUnexpectedEOF
  1675. }
  1676. b := dAtA[iNdEx]
  1677. iNdEx++
  1678. wire |= (uint64(b) & 0x7F) << shift
  1679. if b < 0x80 {
  1680. break
  1681. }
  1682. }
  1683. wireType := int(wire & 0x7)
  1684. switch wireType {
  1685. case 0:
  1686. for shift := uint(0); ; shift += 7 {
  1687. if shift >= 64 {
  1688. return 0, ErrIntOverflowRunhcs
  1689. }
  1690. if iNdEx >= l {
  1691. return 0, io.ErrUnexpectedEOF
  1692. }
  1693. iNdEx++
  1694. if dAtA[iNdEx-1] < 0x80 {
  1695. break
  1696. }
  1697. }
  1698. case 1:
  1699. iNdEx += 8
  1700. case 2:
  1701. var length int
  1702. for shift := uint(0); ; shift += 7 {
  1703. if shift >= 64 {
  1704. return 0, ErrIntOverflowRunhcs
  1705. }
  1706. if iNdEx >= l {
  1707. return 0, io.ErrUnexpectedEOF
  1708. }
  1709. b := dAtA[iNdEx]
  1710. iNdEx++
  1711. length |= (int(b) & 0x7F) << shift
  1712. if b < 0x80 {
  1713. break
  1714. }
  1715. }
  1716. if length < 0 {
  1717. return 0, ErrInvalidLengthRunhcs
  1718. }
  1719. iNdEx += length
  1720. case 3:
  1721. depth++
  1722. case 4:
  1723. if depth == 0 {
  1724. return 0, ErrUnexpectedEndOfGroupRunhcs
  1725. }
  1726. depth--
  1727. case 5:
  1728. iNdEx += 4
  1729. default:
  1730. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1731. }
  1732. if iNdEx < 0 {
  1733. return 0, ErrInvalidLengthRunhcs
  1734. }
  1735. if depth == 0 {
  1736. return iNdEx, nil
  1737. }
  1738. }
  1739. return 0, io.ErrUnexpectedEOF
  1740. }
  1741. var (
  1742. ErrInvalidLengthRunhcs = fmt.Errorf("proto: negative length found during unmarshaling")
  1743. ErrIntOverflowRunhcs = fmt.Errorf("proto: integer overflow")
  1744. ErrUnexpectedEndOfGroupRunhcs = fmt.Errorf("proto: unexpected end of group")
  1745. )