From fdc33fb7bf62b01b193080e16eb76eb24f6cdff5 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Thu, 22 Oct 2020 14:21:34 +0800 Subject: [PATCH 1/5] agent/protocols: Generate proto files programmatically Build proto with build.rs Fixes: #1019 Signed-off-by: Tim Zhang --- src/agent/Cargo.lock | 523 +++++++++++++++++++------ src/agent/protocols/Cargo.toml | 3 + src/agent/protocols/build.rs | 55 +++ src/agent/protocols/protos/agent.proto | 4 +- 4 files changed, 471 insertions(+), 114 deletions(-) create mode 100644 src/agent/protocols/build.rs diff --git a/src/agent/Cargo.lock b/src/agent/Cargo.lock index c1f2fb3fb..c2c16f388 100644 --- a/src/agent/Cargo.lock +++ b/src/agent/Cargo.lock @@ -1,31 +1,46 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. [[package]] -name = "adler32" -version = "1.0.4" +name = "addr2line" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d2e7343e7fc9de883d1b0341e0b13970f764c14101234857d2ddafa1cb1cac2" +checksum = "1b6a2d3371669ab3ca9797670853d61402b03d0b4b9ebf33d677dfa720203072" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e" + +[[package]] +name = "adler32" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" [[package]] name = "aho-corasick" -version = "0.7.10" +version = "0.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8716408b8bc624ed7f65d223ddb9ac2d044c0547b6fa4b0d554f3a9540496ada" +checksum = "b476ce7103678b0c6d3d395dbbae31d48ff910bd28be979ba5d48c6351131d0d" dependencies = [ "memchr", ] [[package]] name = "anyhow" -version = "1.0.32" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b602bfe940d21c130f3895acd65221e8a61270debe89d628b9cb4e3ccb8569b" +checksum = "a1fd36ffbb1fb7c834eac128ea8d0e310c5aeb635548f9d58861e1308d46e71c" [[package]] name = "arc-swap" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b585a98a234c46fc563103e9278c9391fde1f4e6850334da895d27edb9580f62" +checksum = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034" [[package]] name = "arrayref" @@ -41,15 +56,29 @@ checksum = "cff77d8686867eceff3105329d4698d96c2391c176d5d03adc90c7389162b5b8" [[package]] name = "autocfg" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d" +checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" + +[[package]] +name = "backtrace" +version = "0.3.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "707b586e0e2f247cbde68cdd2c3ce69ea7b7be43e1c5b426e37c9319c4b9838e" +dependencies = [ + "addr2line", + "cfg-if 1.0.0", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", +] [[package]] name = "base64" -version = "0.11.0" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" [[package]] name = "bitflags" @@ -74,6 +103,16 @@ version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" +[[package]] +name = "bytes" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" +dependencies = [ + "byteorder", + "iovec", +] + [[package]] name = "caps" version = "0.3.4" @@ -87,9 +126,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.54" +version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bbb73db36c1246e9034e307d0fba23f9a2e251faa47ade70c1bd252220c8311" +checksum = "ed67cbde08356238e75fc4656be4749481eeffb09e19f320a25237d5221c985d" [[package]] name = "cfg-if" @@ -97,6 +136,12 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + [[package]] name = "cgroups" version = "0.1.1-alpha.0" @@ -110,13 +155,15 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.11" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80094f509cf8b5ae86a4966a39b3ff66cd7e2a3e594accec3743ff3fabeab5b2" +checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" dependencies = [ + "libc", "num-integer", "num-traits", "time", + "winapi", ] [[package]] @@ -140,14 +187,14 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1" dependencies = [ - "cfg-if", + "cfg-if 0.1.10", ] [[package]] name = "crossbeam-channel" -version = "0.4.2" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cced8691919c02aac3cb0a1bc2e9b73d89e832bf9a06fc579d4e71b68a2da061" +checksum = "b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87" dependencies = [ "crossbeam-utils", "maybe-uninit", @@ -160,10 +207,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" dependencies = [ "autocfg", - "cfg-if", + "cfg-if 0.1.10", "lazy_static", ] +[[package]] +name = "derive-new" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71f31892cd5c62e414316f2963c5689242c43d8e7bbcaaeca97e5e28c95d91d9" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.45", +] + [[package]] name = "dirs" version = "3.0.1" @@ -185,10 +243,16 @@ dependencies = [ ] [[package]] -name = "errno" -version = "0.2.5" +name = "either" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b480f641ccf0faf324e20c1d3e53d81b7484c698b42ea677f6907ae4db195371" +checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" + +[[package]] +name = "errno" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eab5ee3df98a279d9b316b1af6ac95422127b1290317e6d18c1743c99418b01" dependencies = [ "errno-dragonfly", "libc", @@ -207,13 +271,28 @@ dependencies = [ [[package]] name = "error-chain" -version = "0.12.2" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d371106cc88ffdfb1eabd7111e432da544f16f3e2d7bf1dfe8bf575f1df045cd" +checksum = "2d2f06b9cac1506ece98fe3231e3cc9c4410ec3d5b1f24ae1c8946f0742cdefc" dependencies = [ "version_check", ] +[[package]] +name = "failure" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86" +dependencies = [ + "backtrace", +] + +[[package]] +name = "fixedbitset" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86d4de0081402f5e88cdac65c8dcdcc73118c1a7a465e2a05f0da05843a8ea33" + [[package]] name = "fnv" version = "1.0.7" @@ -222,9 +301,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "futures" -version = "0.1.29" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b980f2816d6ee8673b6517b52cb0e808a180efc92e5c19d02cdda79066703ef" +checksum = "4c7e4c2612746b0df8fed4ce0c69156021b704c9aefa360311c04e6e9e002eed" [[package]] name = "gcc" @@ -234,13 +313,28 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "getrandom" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb" +checksum = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6" dependencies = [ - "cfg-if", + "cfg-if 0.1.10", "libc", - "wasi", + "wasi 0.9.0+wasi-snapshot-preview1", +] + +[[package]] +name = "gimli" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724" + +[[package]] +name = "heck" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20564e78d53d2bb135c343b3f47714a56af2061f1c928fdb541dc7b9fdd94205" +dependencies = [ + "unicode-segmentation", ] [[package]] @@ -250,10 +344,28 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" [[package]] -name = "itoa" -version = "0.4.5" +name = "iovec" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8b7a7c0c47db5545ed3fef7468ee7bb5b74691498139e4b3f6a20685dc6dd8e" +checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" +dependencies = [ + "libc", +] + +[[package]] +name = "itertools" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f56a2d0bc861f9165be4eb3442afd3c236d8a98afd426f65d92324ae1091a484" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6" [[package]] name = "kata-agent" @@ -292,15 +404,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.77" +version = "0.2.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235" +checksum = "2448f6066e80e3bfc792e9c98bf705b4b0fc6e8ef5b43e5889aff0eaa9c58743" [[package]] name = "libflate" -version = "1.0.0" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1fbe6b967a94346446d37ace319ae85be7eca261bb8149325811ac435d35d64" +checksum = "e9bac9023e1db29c084f9f8cd9d3852e5e8fddf98fb47c4964a0ea4663d95949" dependencies = [ "adler32", "crc32fast", @@ -325,11 +437,11 @@ dependencies = [ [[package]] name = "log" -version = "0.4.8" +version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" +checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" dependencies = [ - "cfg-if", + "cfg-if 0.1.10", ] [[package]] @@ -355,6 +467,22 @@ version = "2.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" +[[package]] +name = "miniz_oxide" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d" +dependencies = [ + "adler", + "autocfg", +] + +[[package]] +name = "multimap" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2eb04b9f127583ed176e163fb9ec6f3e793b87e21deedd5734a69386a18a0151" + [[package]] name = "netlink" version = "0.1.0" @@ -375,7 +503,7 @@ checksum = "dd0eaf8df8bab402257e0a5c17a254e4cc1f72a93588a1ddfb5d356c801aa7cb" dependencies = [ "bitflags", "cc", - "cfg-if", + "cfg-if 0.1.10", "libc", "void", ] @@ -388,7 +516,7 @@ checksum = "50e4785f2c3b7589a0d0c1dd60285e1188adac4006e8abd6dd578e1567027363" dependencies = [ "bitflags", "cc", - "cfg-if", + "cfg-if 0.1.10", "libc", "void", ] @@ -401,15 +529,27 @@ checksum = "83450fe6a6142ddd95fb064b746083fc4ef1705fe81f64a64e1d4b39f54a1055" dependencies = [ "bitflags", "cc", - "cfg-if", + "cfg-if 0.1.10", + "libc", +] + +[[package]] +name = "nix" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85db2feff6bf70ebc3a4793191517d5f0331100a2f10f9bf93b5e5214f32b7b7" +dependencies = [ + "bitflags", + "cc", + "cfg-if 0.1.10", "libc", ] [[package]] name = "num-integer" -version = "0.1.42" +version = "0.1.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f6ea62e9d81a77cd3ee9a2a5b9b609447857f3d358704331e4ef39eb247fcba" +checksum = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b" dependencies = [ "autocfg", "num-traits", @@ -417,13 +557,19 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c62be47e61d1842b9170f0fdeec8eba98e60e90e5446449a0545e5152acd7096" +checksum = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611" dependencies = [ "autocfg", ] +[[package]] +name = "object" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693" + [[package]] name = "oci" version = "0.1.0" @@ -450,7 +596,7 @@ version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3" dependencies = [ - "cfg-if", + "cfg-if 0.1.10", "cloudabi", "libc", "redox_syscall", @@ -478,10 +624,19 @@ dependencies = [ ] [[package]] -name = "ppv-lite86" -version = "0.2.8" +name = "petgraph" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "237a5ed80e274dbc66f86bd59c1e25edc039660be53194b5fe0a482e0f2612ea" +checksum = "9c3659d1ee90221741f65dd128d9998311b0e40c5d3c23a62445938214abce4f" +dependencies = [ + "fixedbitset", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c36fa947111f5c62a733b652544dd0016a43ce89619538a8ef92724a6f501a20" [[package]] name = "prctl" @@ -490,16 +645,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "059a34f111a9dee2ce1ac2826a68b24601c4298cfeb1a587c3cb493d5ab46f52" dependencies = [ "libc", - "nix 0.18.0", + "nix 0.19.0", ] [[package]] name = "proc-macro2" -version = "1.0.17" +version = "0.4.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1502d12e458c49a4c9cbff560d0fe0060c252bc29799ed94ca2ed4bb665a0101" +checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" dependencies = [ - "unicode-xid", + "unicode-xid 0.1.0", +] + +[[package]] +name = "proc-macro2" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" +dependencies = [ + "unicode-xid 0.2.1", ] [[package]] @@ -523,7 +687,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd0ced56dee39a6e960c15c74dc48849d614586db2eaada6497477af7c7811cd" dependencies = [ - "cfg-if", + "cfg-if 0.1.10", "fnv", "lazy_static", "libc", @@ -533,6 +697,58 @@ dependencies = [ "thiserror", ] +[[package]] +name = "prost" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96d14b1c185652833d24aaad41c5832b0be5616a590227c1fbff57c616754b23" +dependencies = [ + "byteorder", + "bytes", + "prost-derive", +] + +[[package]] +name = "prost-build" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb788126ea840817128183f8f603dce02cb7aea25c2a0b764359d8e20010702e" +dependencies = [ + "bytes", + "heck", + "itertools", + "log", + "multimap", + "petgraph", + "prost", + "prost-types", + "tempfile", + "which", +] + +[[package]] +name = "prost-derive" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e7dc378b94ac374644181a2247cebf59a6ec1c88b49ac77f3a94b86b79d0e11" +dependencies = [ + "failure", + "itertools", + "proc-macro2 0.4.30", + "quote 0.6.13", + "syn 0.15.44", +] + +[[package]] +name = "prost-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de482a366941c8d56d19b650fac09ca08508f2a696119ee7513ad590c8bac6f" +dependencies = [ + "bytes", + "prost", +] + [[package]] name = "protobuf" version = "2.14.0" @@ -565,15 +781,25 @@ dependencies = [ "futures", "protobuf", "ttrpc", + "ttrpc-codegen", ] [[package]] name = "quote" -version = "1.0.6" +version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54a21852a652ad6f610c9510194f398ff6f8692e334fd1145fed931f7fbe44ea" +checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" dependencies = [ - "proc-macro2", + "proc-macro2 0.4.30", +] + +[[package]] +name = "quote" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" +dependencies = [ + "proc-macro2 1.0.24", ] [[package]] @@ -619,15 +845,15 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.1.56" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" +checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" [[package]] name = "redox_users" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09b23093265f8d200fa7b4c2c76297f47e681c655f6f1285a8780d6a022f7431" +checksum = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d" dependencies = [ "getrandom", "redox_syscall", @@ -636,9 +862,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.3.7" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6020f034922e3194c711b82a627453881bc4682166cabb07134a10c26ba7692" +checksum = "8963b85b8ce3074fecffde43b4b0dded83ce2f367dc8d363afc56679f3ee820b" dependencies = [ "aho-corasick", "memchr", @@ -648,15 +874,15 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.17" +version = "0.6.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fe5bd57d1d7414c6b5ed48563a2c855d995ff777729dcd91c369ec7fea395ae" +checksum = "8cab7a364d15cde1e505267766a2d3c4e22a843e1a601f0fa7564c0f82ced11c" [[package]] name = "remove_dir_all" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a83fa3702a688b9359eccba92d153ac33fd2e8462f9e0e3fdf155239ea7792e" +checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" dependencies = [ "winapi", ] @@ -669,9 +895,9 @@ checksum = "cabe4fa914dec5870285fa7f71f602645da47c486e68486d2b4ceb4a343e90ac" [[package]] name = "rust-argon2" -version = "0.7.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bc8af4bda8e1ff4932523b94d3dd20ee30a87232323eda55903ffd71d2fb017" +checksum = "9dab61250775933275e84053ac235621dfb739556d5c54a2f2e9313b7cf43a19" dependencies = [ "base64", "blake2b_simd", @@ -679,6 +905,12 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "rustc-demangle" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232" + [[package]] name = "rustjail" version = "0.1.0" @@ -709,9 +941,9 @@ dependencies = [ [[package]] name = "ryu" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed3d612bc64430efeb3f7ee6ef26d590dce0c43249217bddc62112540c7941e1" +checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" [[package]] name = "scan_fmt" @@ -730,26 +962,26 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "serde" -version = "1.0.110" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99e7b308464d16b56eba9964e4972a3eee817760ab60d88c3f86e1fecb08204c" +checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" [[package]] name = "serde_derive" -version = "1.0.110" +version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "818fbf6bfa9a42d3bfcaca148547aa00c7b915bec71d1757aa2d44ca68771984" +checksum = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.45", ] [[package]] name = "serde_json" -version = "1.0.53" +version = "1.0.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "993948e75b189211a9b31a7528f950c6adc21f9720b6438ff80a7fa2f864cea2" +checksum = "dcac07dbffa1c65e7f816ab9eba78eb142c6d44410f4eeba1e26e4f5dfa56b95" dependencies = [ "itoa", "ryu", @@ -773,16 +1005,16 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65f59259be9fc1bf677d06cc1456e97756004a1a5a577480f71430bd7c17ba33" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.45", ] [[package]] name = "signal-hook" -version = "0.1.15" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ff2db2112d6c761e12522c65f7768548bd6e8cd23d2a9dae162520626629bd6" +checksum = "604508c1418b99dfe1925ca9224829bb2a8a9a04dda655cc01fcad46f4ab05ed" dependencies = [ "libc", "signal-hook-registry", @@ -790,9 +1022,9 @@ dependencies = [ [[package]] name = "signal-hook-registry" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94f478ede9f64724c5d173d7bb56099ec3e2d9fc2774aac65d34b8b890405f41" +checksum = "a3e12110bc539e657a646068aaf5eb5b63af9d0c1f7b29c97113fad80e15f035" dependencies = [ "arc-swap", "libc", @@ -859,13 +1091,24 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "syn" -version = "1.0.25" +version = "0.15.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f14a640819f79b72a710c0be059dce779f9339ae046c8bef12c361d56702146f" +checksum = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" dependencies = [ - "proc-macro2", - "quote", - "unicode-xid", + "proc-macro2 0.4.30", + "quote 0.6.13", + "unicode-xid 0.1.0", +] + +[[package]] +name = "syn" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea9c5432ff16d6152371f808fb5a871cd67368171b09bb21b43df8e4a47a3556" +dependencies = [ + "proc-macro2 1.0.24", + "quote 1.0.7", + "unicode-xid 0.2.1", ] [[package]] @@ -880,7 +1123,7 @@ version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" dependencies = [ - "cfg-if", + "cfg-if 0.1.10", "libc", "rand", "redox_syscall", @@ -890,22 +1133,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.19" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b13f926965ad00595dd129fa12823b04bbf866e9085ab0a5f2b05b850fbfc344" +checksum = "318234ffa22e0920fe9a40d7b8369b5f649d490980cf7aadcf1eb91594869b42" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.19" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "893582086c2f98cde18f906265a65b5030a074b1046c674ae898be6519a7f479" +checksum = "cae2447b6282786c3493999f40a9be2a6ad20cb8bd268b0a0dbf5a065535c0ab" dependencies = [ - "proc-macro2", - "quote", - "syn", + "proc-macro2 1.0.24", + "quote 1.0.7", + "syn 1.0.45", ] [[package]] @@ -919,11 +1162,12 @@ dependencies = [ [[package]] name = "time" -version = "0.1.43" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" +checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" dependencies = [ "libc", + "wasi 0.10.0+wasi-snapshot-preview1", "winapi", ] @@ -941,10 +1185,49 @@ dependencies = [ ] [[package]] -name = "unicode-xid" -version = "0.2.0" +name = "ttrpc-codegen" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" +checksum = "12e8844d7a8351fa833bea811f826401bec020b233e60a7c0a8f313f764ce5a5" +dependencies = [ + "protobuf", + "protobuf-codegen", + "protobuf-codegen-pure", + "ttrpc-compiler", +] + +[[package]] +name = "ttrpc-compiler" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d290e64bdb994926d102f2983cc6550ece0778c8430253dc2de4e71cbf5285d9" +dependencies = [ + "derive-new", + "prost", + "prost-build", + "prost-types", + "protobuf", + "protobuf-codegen", + "tempfile", +] + +[[package]] +name = "unicode-segmentation" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e83e153d1053cbb5a118eeff7fd5be06ed99153f00dbcd8ae310c5fb2b22edc0" + +[[package]] +name = "unicode-xid" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" + +[[package]] +name = "unicode-xid" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" [[package]] name = "version_check" @@ -965,10 +1248,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" [[package]] -name = "winapi" -version = "0.3.8" +name = "wasi" +version = "0.10.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" +checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" + +[[package]] +name = "which" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b57acb10231b9493c8472b20cb57317d0679a49e0bdbee44b3b803a6473af164" +dependencies = [ + "failure", + "libc", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" dependencies = [ "winapi-i686-pc-windows-gnu", "winapi-x86_64-pc-windows-gnu", diff --git a/src/agent/protocols/Cargo.toml b/src/agent/protocols/Cargo.toml index d102ff464..7b383a217 100644 --- a/src/agent/protocols/Cargo.toml +++ b/src/agent/protocols/Cargo.toml @@ -8,3 +8,6 @@ edition = "2018" ttrpc = { git = "https://github.com/containerd/ttrpc-rust.git", branch="0.3.0" } protobuf = "=2.14.0" futures = "0.1.27" + +[build-dependencies] +ttrpc-codegen = "0.1.2" diff --git a/src/agent/protocols/build.rs b/src/agent/protocols/build.rs new file mode 100644 index 000000000..c60aa9ba7 --- /dev/null +++ b/src/agent/protocols/build.rs @@ -0,0 +1,55 @@ +// Copyright (c) 2020 Ant Group +// +// SPDX-License-Identifier: Apache-2.0 +// + +use std::fs::File; +use std::io::{Read, Write}; + +fn main() { + let protos = vec![ + "protos/github.com/kata-containers/agent/pkg/types/types.proto", + "protos/agent.proto", + "protos/health.proto", + "protos/google/protobuf/empty.proto", + "protos/oci.proto", + ]; + + // Tell Cargo that if the .proto files changed, to rerun this build script. + protos + .iter() + .for_each(|p| println!("cargo:rerun-if-changed={}", &p)); + + ttrpc_codegen::Codegen::new() + .out_dir("src") + .inputs(&protos) + .include("protos") + .rust_protobuf() + .run() + .expect("Gen codes failed."); + + // There is a message named 'Box' in oci.proto + // so there is a struct named 'Box', we should replace Box to ::std::boxed::Box + // to avoid the conflict. + replace_text_in_file( + "src/oci.rs", + "self: Box", + "self: ::std::boxed::Box", + ) + .unwrap(); +} + +fn replace_text_in_file(file_name: &str, from: &str, to: &str) -> Result<(), std::io::Error> { + let mut src = File::open(file_name)?; + let mut contents = String::new(); + src.read_to_string(&mut contents).unwrap(); + drop(src); + + let new_contents = contents.replace(from, to); + + let mut dst = File::create(&file_name)?; + dst.write_all(new_contents.as_bytes())?; + + Ok(()) +} + diff --git a/src/agent/protocols/protos/agent.proto b/src/agent/protocols/protos/agent.proto index dde04822a..52f253394 100644 --- a/src/agent/protocols/protos/agent.proto +++ b/src/agent/protocols/protos/agent.proto @@ -11,8 +11,8 @@ option go_package = "github.com/kata-containers/kata-containers/src/runtime/virt package grpc; -import "github.com/kata-containers/kata-containers/src/agent/protocols/protos/oci.proto"; -import "github.com/kata-containers/kata-containers/src/agent/protocols/protos/github.com/kata-containers/agent/pkg/types/types.proto"; +import "oci.proto"; +import "github.com/kata-containers/agent/pkg/types/types.proto"; import "google/protobuf/empty.proto"; From 7559382b15eca32d3d6573df997cd11b44dd7512 Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Thu, 22 Oct 2020 14:23:43 +0800 Subject: [PATCH 2/5] agent/protocols: Ignore generated files and remove these files from repo Files generated by build.rs does not need to be stored in repo. Signed-off-by: Tim Zhang --- .gitignore | 3 + src/agent/protocols/src/agent.rs | 14494 ---------------------- src/agent/protocols/src/agent_ttrpc.rs | 808 -- src/agent/protocols/src/empty.rs | 242 - src/agent/protocols/src/health.rs | 672 - src/agent/protocols/src/health_ttrpc.rs | 90 - src/agent/protocols/src/oci.rs | 10293 --------------- src/agent/protocols/src/types.rs | 1556 --- 8 files changed, 3 insertions(+), 28155 deletions(-) delete mode 100644 src/agent/protocols/src/agent.rs delete mode 100644 src/agent/protocols/src/agent_ttrpc.rs delete mode 100644 src/agent/protocols/src/empty.rs delete mode 100644 src/agent/protocols/src/health.rs delete mode 100644 src/agent/protocols/src/health_ttrpc.rs delete mode 100644 src/agent/protocols/src/oci.rs delete mode 100644 src/agent/protocols/src/types.rs diff --git a/.gitignore b/.gitignore index 1abf5ef3b..76e0fbe59 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ **/.vscode src/agent/src/version.rs src/agent/kata-agent.service +src/agent/protocols/src/*.rs +!src/agent/protocols/src/lib.rs + diff --git a/src/agent/protocols/src/agent.rs b/src/agent/protocols/src/agent.rs deleted file mode 100644 index 86eac73c9..000000000 --- a/src/agent/protocols/src/agent.rs +++ /dev/null @@ -1,14494 +0,0 @@ -// Copyright (c) 2020 Ant Financial -// -// SPDX-License-Identifier: Apache-2.0 -// - -// This file is generated by rust-protobuf 2.14.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![cfg_attr(rustfmt, rustfmt_skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `github.com/kata-containers/kata-containers/src/agent/protocols/protos/agent.proto` - -use protobuf::Message as Message_imported_for_functions; -use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; - -#[derive(PartialEq,Clone,Default)] -pub struct CreateContainerRequest { - // message fields - pub container_id: ::std::string::String, - pub exec_id: ::std::string::String, - pub string_user: ::protobuf::SingularPtrField, - pub devices: ::protobuf::RepeatedField, - pub storages: ::protobuf::RepeatedField, - pub OCI: ::protobuf::SingularPtrField, - pub sandbox_pidns: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateContainerRequest { - fn default() -> &'a CreateContainerRequest { - ::default_instance() - } -} - -impl CreateContainerRequest { - pub fn new() -> CreateContainerRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string exec_id = 2; - - - pub fn get_exec_id(&self) -> &str { - &self.exec_id - } - pub fn clear_exec_id(&mut self) { - self.exec_id.clear(); - } - - // Param is passed by value, moved - pub fn set_exec_id(&mut self, v: ::std::string::String) { - self.exec_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_id(&mut self) -> &mut ::std::string::String { - &mut self.exec_id - } - - // Take field - pub fn take_exec_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exec_id, ::std::string::String::new()) - } - - // .grpc.StringUser string_user = 3; - - - pub fn get_string_user(&self) -> &StringUser { - self.string_user.as_ref().unwrap_or_else(|| StringUser::default_instance()) - } - pub fn clear_string_user(&mut self) { - self.string_user.clear(); - } - - pub fn has_string_user(&self) -> bool { - self.string_user.is_some() - } - - // Param is passed by value, moved - pub fn set_string_user(&mut self, v: StringUser) { - self.string_user = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_string_user(&mut self) -> &mut StringUser { - if self.string_user.is_none() { - self.string_user.set_default(); - } - self.string_user.as_mut().unwrap() - } - - // Take field - pub fn take_string_user(&mut self) -> StringUser { - self.string_user.take().unwrap_or_else(|| StringUser::new()) - } - - // repeated .grpc.Device devices = 4; - - - pub fn get_devices(&self) -> &[Device] { - &self.devices - } - pub fn clear_devices(&mut self) { - self.devices.clear(); - } - - // Param is passed by value, moved - pub fn set_devices(&mut self, v: ::protobuf::RepeatedField) { - self.devices = v; - } - - // Mutable pointer to the field. - pub fn mut_devices(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.devices - } - - // Take field - pub fn take_devices(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.devices, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.Storage storages = 5; - - - pub fn get_storages(&self) -> &[Storage] { - &self.storages - } - pub fn clear_storages(&mut self) { - self.storages.clear(); - } - - // Param is passed by value, moved - pub fn set_storages(&mut self, v: ::protobuf::RepeatedField) { - self.storages = v; - } - - // Mutable pointer to the field. - pub fn mut_storages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.storages - } - - // Take field - pub fn take_storages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.storages, ::protobuf::RepeatedField::new()) - } - - // .grpc.Spec OCI = 6; - - - pub fn get_OCI(&self) -> &super::oci::Spec { - self.OCI.as_ref().unwrap_or_else(|| super::oci::Spec::default_instance()) - } - pub fn clear_OCI(&mut self) { - self.OCI.clear(); - } - - pub fn has_OCI(&self) -> bool { - self.OCI.is_some() - } - - // Param is passed by value, moved - pub fn set_OCI(&mut self, v: super::oci::Spec) { - self.OCI = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_OCI(&mut self) -> &mut super::oci::Spec { - if self.OCI.is_none() { - self.OCI.set_default(); - } - self.OCI.as_mut().unwrap() - } - - // Take field - pub fn take_OCI(&mut self) -> super::oci::Spec { - self.OCI.take().unwrap_or_else(|| super::oci::Spec::new()) - } - - // bool sandbox_pidns = 7; - - - pub fn get_sandbox_pidns(&self) -> bool { - self.sandbox_pidns - } - pub fn clear_sandbox_pidns(&mut self) { - self.sandbox_pidns = false; - } - - // Param is passed by value, moved - pub fn set_sandbox_pidns(&mut self, v: bool) { - self.sandbox_pidns = v; - } -} - -impl ::protobuf::Message for CreateContainerRequest { - fn is_initialized(&self) -> bool { - for v in &self.string_user { - if !v.is_initialized() { - return false; - } - }; - for v in &self.devices { - if !v.is_initialized() { - return false; - } - }; - for v in &self.storages { - if !v.is_initialized() { - return false; - } - }; - for v in &self.OCI { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exec_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.string_user)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.devices)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.storages)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.OCI)?; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.sandbox_pidns = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.exec_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.exec_id); - } - if let Some(ref v) = self.string_user.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.devices { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.storages { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.OCI.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.sandbox_pidns != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.exec_id.is_empty() { - os.write_string(2, &self.exec_id)?; - } - if let Some(ref v) = self.string_user.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.devices { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.storages { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.OCI.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.sandbox_pidns != false { - os.write_bool(7, self.sandbox_pidns)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateContainerRequest { - CreateContainerRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &CreateContainerRequest| { &m.container_id }, - |m: &mut CreateContainerRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exec_id", - |m: &CreateContainerRequest| { &m.exec_id }, - |m: &mut CreateContainerRequest| { &mut m.exec_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "string_user", - |m: &CreateContainerRequest| { &m.string_user }, - |m: &mut CreateContainerRequest| { &mut m.string_user }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "devices", - |m: &CreateContainerRequest| { &m.devices }, - |m: &mut CreateContainerRequest| { &mut m.devices }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "storages", - |m: &CreateContainerRequest| { &m.storages }, - |m: &mut CreateContainerRequest| { &mut m.storages }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "OCI", - |m: &CreateContainerRequest| { &m.OCI }, - |m: &mut CreateContainerRequest| { &mut m.OCI }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "sandbox_pidns", - |m: &CreateContainerRequest| { &m.sandbox_pidns }, - |m: &mut CreateContainerRequest| { &mut m.sandbox_pidns }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateContainerRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static CreateContainerRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(CreateContainerRequest::new) - } - } -} - -impl ::protobuf::Clear for CreateContainerRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.exec_id.clear(); - self.string_user.clear(); - self.devices.clear(); - self.storages.clear(); - self.OCI.clear(); - self.sandbox_pidns = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateContainerRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateContainerRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StartContainerRequest { - // message fields - pub container_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StartContainerRequest { - fn default() -> &'a StartContainerRequest { - ::default_instance() - } -} - -impl StartContainerRequest { - pub fn new() -> StartContainerRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for StartContainerRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StartContainerRequest { - StartContainerRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &StartContainerRequest| { &m.container_id }, - |m: &mut StartContainerRequest| { &mut m.container_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StartContainerRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static StartContainerRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(StartContainerRequest::new) - } - } -} - -impl ::protobuf::Clear for StartContainerRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StartContainerRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StartContainerRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct RemoveContainerRequest { - // message fields - pub container_id: ::std::string::String, - pub timeout: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a RemoveContainerRequest { - fn default() -> &'a RemoveContainerRequest { - ::default_instance() - } -} - -impl RemoveContainerRequest { - pub fn new() -> RemoveContainerRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // uint32 timeout = 2; - - - pub fn get_timeout(&self) -> u32 { - self.timeout - } - pub fn clear_timeout(&mut self) { - self.timeout = 0; - } - - // Param is passed by value, moved - pub fn set_timeout(&mut self, v: u32) { - self.timeout = v; - } -} - -impl ::protobuf::Message for RemoveContainerRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.timeout = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if self.timeout != 0 { - my_size += ::protobuf::rt::value_size(2, self.timeout, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if self.timeout != 0 { - os.write_uint32(2, self.timeout)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> RemoveContainerRequest { - RemoveContainerRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &RemoveContainerRequest| { &m.container_id }, - |m: &mut RemoveContainerRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "timeout", - |m: &RemoveContainerRequest| { &m.timeout }, - |m: &mut RemoveContainerRequest| { &mut m.timeout }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "RemoveContainerRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static RemoveContainerRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(RemoveContainerRequest::new) - } - } -} - -impl ::protobuf::Clear for RemoveContainerRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.timeout = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for RemoveContainerRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for RemoveContainerRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ExecProcessRequest { - // message fields - pub container_id: ::std::string::String, - pub exec_id: ::std::string::String, - pub string_user: ::protobuf::SingularPtrField, - pub process: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ExecProcessRequest { - fn default() -> &'a ExecProcessRequest { - ::default_instance() - } -} - -impl ExecProcessRequest { - pub fn new() -> ExecProcessRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string exec_id = 2; - - - pub fn get_exec_id(&self) -> &str { - &self.exec_id - } - pub fn clear_exec_id(&mut self) { - self.exec_id.clear(); - } - - // Param is passed by value, moved - pub fn set_exec_id(&mut self, v: ::std::string::String) { - self.exec_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_id(&mut self) -> &mut ::std::string::String { - &mut self.exec_id - } - - // Take field - pub fn take_exec_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exec_id, ::std::string::String::new()) - } - - // .grpc.StringUser string_user = 3; - - - pub fn get_string_user(&self) -> &StringUser { - self.string_user.as_ref().unwrap_or_else(|| StringUser::default_instance()) - } - pub fn clear_string_user(&mut self) { - self.string_user.clear(); - } - - pub fn has_string_user(&self) -> bool { - self.string_user.is_some() - } - - // Param is passed by value, moved - pub fn set_string_user(&mut self, v: StringUser) { - self.string_user = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_string_user(&mut self) -> &mut StringUser { - if self.string_user.is_none() { - self.string_user.set_default(); - } - self.string_user.as_mut().unwrap() - } - - // Take field - pub fn take_string_user(&mut self) -> StringUser { - self.string_user.take().unwrap_or_else(|| StringUser::new()) - } - - // .grpc.Process process = 4; - - - pub fn get_process(&self) -> &super::oci::Process { - self.process.as_ref().unwrap_or_else(|| super::oci::Process::default_instance()) - } - pub fn clear_process(&mut self) { - self.process.clear(); - } - - pub fn has_process(&self) -> bool { - self.process.is_some() - } - - // Param is passed by value, moved - pub fn set_process(&mut self, v: super::oci::Process) { - self.process = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_process(&mut self) -> &mut super::oci::Process { - if self.process.is_none() { - self.process.set_default(); - } - self.process.as_mut().unwrap() - } - - // Take field - pub fn take_process(&mut self) -> super::oci::Process { - self.process.take().unwrap_or_else(|| super::oci::Process::new()) - } -} - -impl ::protobuf::Message for ExecProcessRequest { - fn is_initialized(&self) -> bool { - for v in &self.string_user { - if !v.is_initialized() { - return false; - } - }; - for v in &self.process { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exec_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.string_user)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.process)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.exec_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.exec_id); - } - if let Some(ref v) = self.string_user.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.process.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.exec_id.is_empty() { - os.write_string(2, &self.exec_id)?; - } - if let Some(ref v) = self.string_user.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.process.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ExecProcessRequest { - ExecProcessRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &ExecProcessRequest| { &m.container_id }, - |m: &mut ExecProcessRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exec_id", - |m: &ExecProcessRequest| { &m.exec_id }, - |m: &mut ExecProcessRequest| { &mut m.exec_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "string_user", - |m: &ExecProcessRequest| { &m.string_user }, - |m: &mut ExecProcessRequest| { &mut m.string_user }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "process", - |m: &ExecProcessRequest| { &m.process }, - |m: &mut ExecProcessRequest| { &mut m.process }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ExecProcessRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ExecProcessRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ExecProcessRequest::new) - } - } -} - -impl ::protobuf::Clear for ExecProcessRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.exec_id.clear(); - self.string_user.clear(); - self.process.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ExecProcessRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ExecProcessRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SignalProcessRequest { - // message fields - pub container_id: ::std::string::String, - pub exec_id: ::std::string::String, - pub signal: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SignalProcessRequest { - fn default() -> &'a SignalProcessRequest { - ::default_instance() - } -} - -impl SignalProcessRequest { - pub fn new() -> SignalProcessRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string exec_id = 2; - - - pub fn get_exec_id(&self) -> &str { - &self.exec_id - } - pub fn clear_exec_id(&mut self) { - self.exec_id.clear(); - } - - // Param is passed by value, moved - pub fn set_exec_id(&mut self, v: ::std::string::String) { - self.exec_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_id(&mut self) -> &mut ::std::string::String { - &mut self.exec_id - } - - // Take field - pub fn take_exec_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exec_id, ::std::string::String::new()) - } - - // uint32 signal = 3; - - - pub fn get_signal(&self) -> u32 { - self.signal - } - pub fn clear_signal(&mut self) { - self.signal = 0; - } - - // Param is passed by value, moved - pub fn set_signal(&mut self, v: u32) { - self.signal = v; - } -} - -impl ::protobuf::Message for SignalProcessRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exec_id)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.signal = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.exec_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.exec_id); - } - if self.signal != 0 { - my_size += ::protobuf::rt::value_size(3, self.signal, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.exec_id.is_empty() { - os.write_string(2, &self.exec_id)?; - } - if self.signal != 0 { - os.write_uint32(3, self.signal)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SignalProcessRequest { - SignalProcessRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &SignalProcessRequest| { &m.container_id }, - |m: &mut SignalProcessRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exec_id", - |m: &SignalProcessRequest| { &m.exec_id }, - |m: &mut SignalProcessRequest| { &mut m.exec_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "signal", - |m: &SignalProcessRequest| { &m.signal }, - |m: &mut SignalProcessRequest| { &mut m.signal }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SignalProcessRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static SignalProcessRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(SignalProcessRequest::new) - } - } -} - -impl ::protobuf::Clear for SignalProcessRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.exec_id.clear(); - self.signal = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SignalProcessRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SignalProcessRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WaitProcessRequest { - // message fields - pub container_id: ::std::string::String, - pub exec_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WaitProcessRequest { - fn default() -> &'a WaitProcessRequest { - ::default_instance() - } -} - -impl WaitProcessRequest { - pub fn new() -> WaitProcessRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string exec_id = 2; - - - pub fn get_exec_id(&self) -> &str { - &self.exec_id - } - pub fn clear_exec_id(&mut self) { - self.exec_id.clear(); - } - - // Param is passed by value, moved - pub fn set_exec_id(&mut self, v: ::std::string::String) { - self.exec_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_id(&mut self) -> &mut ::std::string::String { - &mut self.exec_id - } - - // Take field - pub fn take_exec_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exec_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for WaitProcessRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exec_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.exec_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.exec_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.exec_id.is_empty() { - os.write_string(2, &self.exec_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WaitProcessRequest { - WaitProcessRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &WaitProcessRequest| { &m.container_id }, - |m: &mut WaitProcessRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exec_id", - |m: &WaitProcessRequest| { &m.exec_id }, - |m: &mut WaitProcessRequest| { &mut m.exec_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WaitProcessRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static WaitProcessRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(WaitProcessRequest::new) - } - } -} - -impl ::protobuf::Clear for WaitProcessRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.exec_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WaitProcessRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WaitProcessRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WaitProcessResponse { - // message fields - pub status: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WaitProcessResponse { - fn default() -> &'a WaitProcessResponse { - ::default_instance() - } -} - -impl WaitProcessResponse { - pub fn new() -> WaitProcessResponse { - ::std::default::Default::default() - } - - // int32 status = 1; - - - pub fn get_status(&self) -> i32 { - self.status - } - pub fn clear_status(&mut self) { - self.status = 0; - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: i32) { - self.status = v; - } -} - -impl ::protobuf::Message for WaitProcessResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.status = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.status != 0 { - my_size += ::protobuf::rt::value_size(1, self.status, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.status != 0 { - os.write_int32(1, self.status)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WaitProcessResponse { - WaitProcessResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "status", - |m: &WaitProcessResponse| { &m.status }, - |m: &mut WaitProcessResponse| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WaitProcessResponse", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static WaitProcessResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(WaitProcessResponse::new) - } - } -} - -impl ::protobuf::Clear for WaitProcessResponse { - fn clear(&mut self) { - self.status = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WaitProcessResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WaitProcessResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListProcessesRequest { - // message fields - pub container_id: ::std::string::String, - pub format: ::std::string::String, - pub args: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListProcessesRequest { - fn default() -> &'a ListProcessesRequest { - ::default_instance() - } -} - -impl ListProcessesRequest { - pub fn new() -> ListProcessesRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string format = 2; - - - pub fn get_format(&self) -> &str { - &self.format - } - pub fn clear_format(&mut self) { - self.format.clear(); - } - - // Param is passed by value, moved - pub fn set_format(&mut self, v: ::std::string::String) { - self.format = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_format(&mut self) -> &mut ::std::string::String { - &mut self.format - } - - // Take field - pub fn take_format(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.format, ::std::string::String::new()) - } - - // repeated string args = 3; - - - pub fn get_args(&self) -> &[::std::string::String] { - &self.args - } - pub fn clear_args(&mut self) { - self.args.clear(); - } - - // Param is passed by value, moved - pub fn set_args(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.args = v; - } - - // Mutable pointer to the field. - pub fn mut_args(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.args - } - - // Take field - pub fn take_args(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.args, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ListProcessesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.format)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.args)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.format.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.format); - } - for value in &self.args { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.format.is_empty() { - os.write_string(2, &self.format)?; - } - for v in &self.args { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListProcessesRequest { - ListProcessesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &ListProcessesRequest| { &m.container_id }, - |m: &mut ListProcessesRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "format", - |m: &ListProcessesRequest| { &m.format }, - |m: &mut ListProcessesRequest| { &mut m.format }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "args", - |m: &ListProcessesRequest| { &m.args }, - |m: &mut ListProcessesRequest| { &mut m.args }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListProcessesRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ListProcessesRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ListProcessesRequest::new) - } - } -} - -impl ::protobuf::Clear for ListProcessesRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.format.clear(); - self.args.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListProcessesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListProcessesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListProcessesResponse { - // message fields - pub process_list: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListProcessesResponse { - fn default() -> &'a ListProcessesResponse { - ::default_instance() - } -} - -impl ListProcessesResponse { - pub fn new() -> ListProcessesResponse { - ::std::default::Default::default() - } - - // bytes process_list = 1; - - - pub fn get_process_list(&self) -> &[u8] { - &self.process_list - } - pub fn clear_process_list(&mut self) { - self.process_list.clear(); - } - - // Param is passed by value, moved - pub fn set_process_list(&mut self, v: ::std::vec::Vec) { - self.process_list = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_process_list(&mut self) -> &mut ::std::vec::Vec { - &mut self.process_list - } - - // Take field - pub fn take_process_list(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.process_list, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for ListProcessesResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.process_list)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.process_list.is_empty() { - my_size += ::protobuf::rt::bytes_size(1, &self.process_list); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.process_list.is_empty() { - os.write_bytes(1, &self.process_list)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListProcessesResponse { - ListProcessesResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "process_list", - |m: &ListProcessesResponse| { &m.process_list }, - |m: &mut ListProcessesResponse| { &mut m.process_list }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListProcessesResponse", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ListProcessesResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ListProcessesResponse::new) - } - } -} - -impl ::protobuf::Clear for ListProcessesResponse { - fn clear(&mut self) { - self.process_list.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListProcessesResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListProcessesResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateContainerRequest { - // message fields - pub container_id: ::std::string::String, - pub resources: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateContainerRequest { - fn default() -> &'a UpdateContainerRequest { - ::default_instance() - } -} - -impl UpdateContainerRequest { - pub fn new() -> UpdateContainerRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // .grpc.LinuxResources resources = 2; - - - pub fn get_resources(&self) -> &super::oci::LinuxResources { - self.resources.as_ref().unwrap_or_else(|| super::oci::LinuxResources::default_instance()) - } - pub fn clear_resources(&mut self) { - self.resources.clear(); - } - - pub fn has_resources(&self) -> bool { - self.resources.is_some() - } - - // Param is passed by value, moved - pub fn set_resources(&mut self, v: super::oci::LinuxResources) { - self.resources = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_resources(&mut self) -> &mut super::oci::LinuxResources { - if self.resources.is_none() { - self.resources.set_default(); - } - self.resources.as_mut().unwrap() - } - - // Take field - pub fn take_resources(&mut self) -> super::oci::LinuxResources { - self.resources.take().unwrap_or_else(|| super::oci::LinuxResources::new()) - } -} - -impl ::protobuf::Message for UpdateContainerRequest { - fn is_initialized(&self) -> bool { - for v in &self.resources { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.resources)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if let Some(ref v) = self.resources.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if let Some(ref v) = self.resources.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateContainerRequest { - UpdateContainerRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &UpdateContainerRequest| { &m.container_id }, - |m: &mut UpdateContainerRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "resources", - |m: &UpdateContainerRequest| { &m.resources }, - |m: &mut UpdateContainerRequest| { &mut m.resources }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateContainerRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static UpdateContainerRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(UpdateContainerRequest::new) - } - } -} - -impl ::protobuf::Clear for UpdateContainerRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.resources.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateContainerRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateContainerRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StatsContainerRequest { - // message fields - pub container_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StatsContainerRequest { - fn default() -> &'a StatsContainerRequest { - ::default_instance() - } -} - -impl StatsContainerRequest { - pub fn new() -> StatsContainerRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for StatsContainerRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StatsContainerRequest { - StatsContainerRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &StatsContainerRequest| { &m.container_id }, - |m: &mut StatsContainerRequest| { &mut m.container_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StatsContainerRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static StatsContainerRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(StatsContainerRequest::new) - } - } -} - -impl ::protobuf::Clear for StatsContainerRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StatsContainerRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StatsContainerRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PauseContainerRequest { - // message fields - pub container_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PauseContainerRequest { - fn default() -> &'a PauseContainerRequest { - ::default_instance() - } -} - -impl PauseContainerRequest { - pub fn new() -> PauseContainerRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for PauseContainerRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PauseContainerRequest { - PauseContainerRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &PauseContainerRequest| { &m.container_id }, - |m: &mut PauseContainerRequest| { &mut m.container_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PauseContainerRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static PauseContainerRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(PauseContainerRequest::new) - } - } -} - -impl ::protobuf::Clear for PauseContainerRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PauseContainerRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PauseContainerRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ResumeContainerRequest { - // message fields - pub container_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ResumeContainerRequest { - fn default() -> &'a ResumeContainerRequest { - ::default_instance() - } -} - -impl ResumeContainerRequest { - pub fn new() -> ResumeContainerRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for ResumeContainerRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ResumeContainerRequest { - ResumeContainerRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &ResumeContainerRequest| { &m.container_id }, - |m: &mut ResumeContainerRequest| { &mut m.container_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ResumeContainerRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ResumeContainerRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ResumeContainerRequest::new) - } - } -} - -impl ::protobuf::Clear for ResumeContainerRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ResumeContainerRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ResumeContainerRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CpuUsage { - // message fields - pub total_usage: u64, - pub percpu_usage: ::std::vec::Vec, - pub usage_in_kernelmode: u64, - pub usage_in_usermode: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CpuUsage { - fn default() -> &'a CpuUsage { - ::default_instance() - } -} - -impl CpuUsage { - pub fn new() -> CpuUsage { - ::std::default::Default::default() - } - - // uint64 total_usage = 1; - - - pub fn get_total_usage(&self) -> u64 { - self.total_usage - } - pub fn clear_total_usage(&mut self) { - self.total_usage = 0; - } - - // Param is passed by value, moved - pub fn set_total_usage(&mut self, v: u64) { - self.total_usage = v; - } - - // repeated uint64 percpu_usage = 2; - - - pub fn get_percpu_usage(&self) -> &[u64] { - &self.percpu_usage - } - pub fn clear_percpu_usage(&mut self) { - self.percpu_usage.clear(); - } - - // Param is passed by value, moved - pub fn set_percpu_usage(&mut self, v: ::std::vec::Vec) { - self.percpu_usage = v; - } - - // Mutable pointer to the field. - pub fn mut_percpu_usage(&mut self) -> &mut ::std::vec::Vec { - &mut self.percpu_usage - } - - // Take field - pub fn take_percpu_usage(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.percpu_usage, ::std::vec::Vec::new()) - } - - // uint64 usage_in_kernelmode = 3; - - - pub fn get_usage_in_kernelmode(&self) -> u64 { - self.usage_in_kernelmode - } - pub fn clear_usage_in_kernelmode(&mut self) { - self.usage_in_kernelmode = 0; - } - - // Param is passed by value, moved - pub fn set_usage_in_kernelmode(&mut self, v: u64) { - self.usage_in_kernelmode = v; - } - - // uint64 usage_in_usermode = 4; - - - pub fn get_usage_in_usermode(&self) -> u64 { - self.usage_in_usermode - } - pub fn clear_usage_in_usermode(&mut self) { - self.usage_in_usermode = 0; - } - - // Param is passed by value, moved - pub fn set_usage_in_usermode(&mut self, v: u64) { - self.usage_in_usermode = v; - } -} - -impl ::protobuf::Message for CpuUsage { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.total_usage = tmp; - }, - 2 => { - ::protobuf::rt::read_repeated_uint64_into(wire_type, is, &mut self.percpu_usage)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.usage_in_kernelmode = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.usage_in_usermode = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.total_usage != 0 { - my_size += ::protobuf::rt::value_size(1, self.total_usage, ::protobuf::wire_format::WireTypeVarint); - } - for value in &self.percpu_usage { - my_size += ::protobuf::rt::value_size(2, *value, ::protobuf::wire_format::WireTypeVarint); - }; - if self.usage_in_kernelmode != 0 { - my_size += ::protobuf::rt::value_size(3, self.usage_in_kernelmode, ::protobuf::wire_format::WireTypeVarint); - } - if self.usage_in_usermode != 0 { - my_size += ::protobuf::rt::value_size(4, self.usage_in_usermode, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.total_usage != 0 { - os.write_uint64(1, self.total_usage)?; - } - for v in &self.percpu_usage { - os.write_uint64(2, *v)?; - }; - if self.usage_in_kernelmode != 0 { - os.write_uint64(3, self.usage_in_kernelmode)?; - } - if self.usage_in_usermode != 0 { - os.write_uint64(4, self.usage_in_usermode)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CpuUsage { - CpuUsage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "total_usage", - |m: &CpuUsage| { &m.total_usage }, - |m: &mut CpuUsage| { &mut m.total_usage }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "percpu_usage", - |m: &CpuUsage| { &m.percpu_usage }, - |m: &mut CpuUsage| { &mut m.percpu_usage }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "usage_in_kernelmode", - |m: &CpuUsage| { &m.usage_in_kernelmode }, - |m: &mut CpuUsage| { &mut m.usage_in_kernelmode }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "usage_in_usermode", - |m: &CpuUsage| { &m.usage_in_usermode }, - |m: &mut CpuUsage| { &mut m.usage_in_usermode }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CpuUsage", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static CpuUsage { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(CpuUsage::new) - } - } -} - -impl ::protobuf::Clear for CpuUsage { - fn clear(&mut self) { - self.total_usage = 0; - self.percpu_usage.clear(); - self.usage_in_kernelmode = 0; - self.usage_in_usermode = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CpuUsage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CpuUsage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ThrottlingData { - // message fields - pub periods: u64, - pub throttled_periods: u64, - pub throttled_time: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ThrottlingData { - fn default() -> &'a ThrottlingData { - ::default_instance() - } -} - -impl ThrottlingData { - pub fn new() -> ThrottlingData { - ::std::default::Default::default() - } - - // uint64 periods = 1; - - - pub fn get_periods(&self) -> u64 { - self.periods - } - pub fn clear_periods(&mut self) { - self.periods = 0; - } - - // Param is passed by value, moved - pub fn set_periods(&mut self, v: u64) { - self.periods = v; - } - - // uint64 throttled_periods = 2; - - - pub fn get_throttled_periods(&self) -> u64 { - self.throttled_periods - } - pub fn clear_throttled_periods(&mut self) { - self.throttled_periods = 0; - } - - // Param is passed by value, moved - pub fn set_throttled_periods(&mut self, v: u64) { - self.throttled_periods = v; - } - - // uint64 throttled_time = 3; - - - pub fn get_throttled_time(&self) -> u64 { - self.throttled_time - } - pub fn clear_throttled_time(&mut self) { - self.throttled_time = 0; - } - - // Param is passed by value, moved - pub fn set_throttled_time(&mut self, v: u64) { - self.throttled_time = v; - } -} - -impl ::protobuf::Message for ThrottlingData { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.periods = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.throttled_periods = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.throttled_time = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.periods != 0 { - my_size += ::protobuf::rt::value_size(1, self.periods, ::protobuf::wire_format::WireTypeVarint); - } - if self.throttled_periods != 0 { - my_size += ::protobuf::rt::value_size(2, self.throttled_periods, ::protobuf::wire_format::WireTypeVarint); - } - if self.throttled_time != 0 { - my_size += ::protobuf::rt::value_size(3, self.throttled_time, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.periods != 0 { - os.write_uint64(1, self.periods)?; - } - if self.throttled_periods != 0 { - os.write_uint64(2, self.throttled_periods)?; - } - if self.throttled_time != 0 { - os.write_uint64(3, self.throttled_time)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ThrottlingData { - ThrottlingData::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "periods", - |m: &ThrottlingData| { &m.periods }, - |m: &mut ThrottlingData| { &mut m.periods }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "throttled_periods", - |m: &ThrottlingData| { &m.throttled_periods }, - |m: &mut ThrottlingData| { &mut m.throttled_periods }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "throttled_time", - |m: &ThrottlingData| { &m.throttled_time }, - |m: &mut ThrottlingData| { &mut m.throttled_time }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ThrottlingData", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ThrottlingData { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ThrottlingData::new) - } - } -} - -impl ::protobuf::Clear for ThrottlingData { - fn clear(&mut self) { - self.periods = 0; - self.throttled_periods = 0; - self.throttled_time = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ThrottlingData { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ThrottlingData { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CpuStats { - // message fields - pub cpu_usage: ::protobuf::SingularPtrField, - pub throttling_data: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CpuStats { - fn default() -> &'a CpuStats { - ::default_instance() - } -} - -impl CpuStats { - pub fn new() -> CpuStats { - ::std::default::Default::default() - } - - // .grpc.CpuUsage cpu_usage = 1; - - - pub fn get_cpu_usage(&self) -> &CpuUsage { - self.cpu_usage.as_ref().unwrap_or_else(|| CpuUsage::default_instance()) - } - pub fn clear_cpu_usage(&mut self) { - self.cpu_usage.clear(); - } - - pub fn has_cpu_usage(&self) -> bool { - self.cpu_usage.is_some() - } - - // Param is passed by value, moved - pub fn set_cpu_usage(&mut self, v: CpuUsage) { - self.cpu_usage = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cpu_usage(&mut self) -> &mut CpuUsage { - if self.cpu_usage.is_none() { - self.cpu_usage.set_default(); - } - self.cpu_usage.as_mut().unwrap() - } - - // Take field - pub fn take_cpu_usage(&mut self) -> CpuUsage { - self.cpu_usage.take().unwrap_or_else(|| CpuUsage::new()) - } - - // .grpc.ThrottlingData throttling_data = 2; - - - pub fn get_throttling_data(&self) -> &ThrottlingData { - self.throttling_data.as_ref().unwrap_or_else(|| ThrottlingData::default_instance()) - } - pub fn clear_throttling_data(&mut self) { - self.throttling_data.clear(); - } - - pub fn has_throttling_data(&self) -> bool { - self.throttling_data.is_some() - } - - // Param is passed by value, moved - pub fn set_throttling_data(&mut self, v: ThrottlingData) { - self.throttling_data = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_throttling_data(&mut self) -> &mut ThrottlingData { - if self.throttling_data.is_none() { - self.throttling_data.set_default(); - } - self.throttling_data.as_mut().unwrap() - } - - // Take field - pub fn take_throttling_data(&mut self) -> ThrottlingData { - self.throttling_data.take().unwrap_or_else(|| ThrottlingData::new()) - } -} - -impl ::protobuf::Message for CpuStats { - fn is_initialized(&self) -> bool { - for v in &self.cpu_usage { - if !v.is_initialized() { - return false; - } - }; - for v in &self.throttling_data { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cpu_usage)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.throttling_data)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.cpu_usage.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.throttling_data.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.cpu_usage.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.throttling_data.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CpuStats { - CpuStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cpu_usage", - |m: &CpuStats| { &m.cpu_usage }, - |m: &mut CpuStats| { &mut m.cpu_usage }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "throttling_data", - |m: &CpuStats| { &m.throttling_data }, - |m: &mut CpuStats| { &mut m.throttling_data }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CpuStats", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static CpuStats { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(CpuStats::new) - } - } -} - -impl ::protobuf::Clear for CpuStats { - fn clear(&mut self) { - self.cpu_usage.clear(); - self.throttling_data.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CpuStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CpuStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct PidsStats { - // message fields - pub current: u64, - pub limit: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a PidsStats { - fn default() -> &'a PidsStats { - ::default_instance() - } -} - -impl PidsStats { - pub fn new() -> PidsStats { - ::std::default::Default::default() - } - - // uint64 current = 1; - - - pub fn get_current(&self) -> u64 { - self.current - } - pub fn clear_current(&mut self) { - self.current = 0; - } - - // Param is passed by value, moved - pub fn set_current(&mut self, v: u64) { - self.current = v; - } - - // uint64 limit = 2; - - - pub fn get_limit(&self) -> u64 { - self.limit - } - pub fn clear_limit(&mut self) { - self.limit = 0; - } - - // Param is passed by value, moved - pub fn set_limit(&mut self, v: u64) { - self.limit = v; - } -} - -impl ::protobuf::Message for PidsStats { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.current = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.limit = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.current != 0 { - my_size += ::protobuf::rt::value_size(1, self.current, ::protobuf::wire_format::WireTypeVarint); - } - if self.limit != 0 { - my_size += ::protobuf::rt::value_size(2, self.limit, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.current != 0 { - os.write_uint64(1, self.current)?; - } - if self.limit != 0 { - os.write_uint64(2, self.limit)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> PidsStats { - PidsStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "current", - |m: &PidsStats| { &m.current }, - |m: &mut PidsStats| { &mut m.current }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "limit", - |m: &PidsStats| { &m.limit }, - |m: &mut PidsStats| { &mut m.limit }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "PidsStats", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static PidsStats { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(PidsStats::new) - } - } -} - -impl ::protobuf::Clear for PidsStats { - fn clear(&mut self) { - self.current = 0; - self.limit = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for PidsStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for PidsStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MemoryData { - // message fields - pub usage: u64, - pub max_usage: u64, - pub failcnt: u64, - pub limit: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MemoryData { - fn default() -> &'a MemoryData { - ::default_instance() - } -} - -impl MemoryData { - pub fn new() -> MemoryData { - ::std::default::Default::default() - } - - // uint64 usage = 1; - - - pub fn get_usage(&self) -> u64 { - self.usage - } - pub fn clear_usage(&mut self) { - self.usage = 0; - } - - // Param is passed by value, moved - pub fn set_usage(&mut self, v: u64) { - self.usage = v; - } - - // uint64 max_usage = 2; - - - pub fn get_max_usage(&self) -> u64 { - self.max_usage - } - pub fn clear_max_usage(&mut self) { - self.max_usage = 0; - } - - // Param is passed by value, moved - pub fn set_max_usage(&mut self, v: u64) { - self.max_usage = v; - } - - // uint64 failcnt = 3; - - - pub fn get_failcnt(&self) -> u64 { - self.failcnt - } - pub fn clear_failcnt(&mut self) { - self.failcnt = 0; - } - - // Param is passed by value, moved - pub fn set_failcnt(&mut self, v: u64) { - self.failcnt = v; - } - - // uint64 limit = 4; - - - pub fn get_limit(&self) -> u64 { - self.limit - } - pub fn clear_limit(&mut self) { - self.limit = 0; - } - - // Param is passed by value, moved - pub fn set_limit(&mut self, v: u64) { - self.limit = v; - } -} - -impl ::protobuf::Message for MemoryData { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.usage = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.max_usage = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.failcnt = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.limit = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.usage != 0 { - my_size += ::protobuf::rt::value_size(1, self.usage, ::protobuf::wire_format::WireTypeVarint); - } - if self.max_usage != 0 { - my_size += ::protobuf::rt::value_size(2, self.max_usage, ::protobuf::wire_format::WireTypeVarint); - } - if self.failcnt != 0 { - my_size += ::protobuf::rt::value_size(3, self.failcnt, ::protobuf::wire_format::WireTypeVarint); - } - if self.limit != 0 { - my_size += ::protobuf::rt::value_size(4, self.limit, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.usage != 0 { - os.write_uint64(1, self.usage)?; - } - if self.max_usage != 0 { - os.write_uint64(2, self.max_usage)?; - } - if self.failcnt != 0 { - os.write_uint64(3, self.failcnt)?; - } - if self.limit != 0 { - os.write_uint64(4, self.limit)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MemoryData { - MemoryData::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "usage", - |m: &MemoryData| { &m.usage }, - |m: &mut MemoryData| { &mut m.usage }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "max_usage", - |m: &MemoryData| { &m.max_usage }, - |m: &mut MemoryData| { &mut m.max_usage }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "failcnt", - |m: &MemoryData| { &m.failcnt }, - |m: &mut MemoryData| { &mut m.failcnt }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "limit", - |m: &MemoryData| { &m.limit }, - |m: &mut MemoryData| { &mut m.limit }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MemoryData", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static MemoryData { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(MemoryData::new) - } - } -} - -impl ::protobuf::Clear for MemoryData { - fn clear(&mut self) { - self.usage = 0; - self.max_usage = 0; - self.failcnt = 0; - self.limit = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MemoryData { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MemoryData { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MemoryStats { - // message fields - pub cache: u64, - pub usage: ::protobuf::SingularPtrField, - pub swap_usage: ::protobuf::SingularPtrField, - pub kernel_usage: ::protobuf::SingularPtrField, - pub use_hierarchy: bool, - pub stats: ::std::collections::HashMap<::std::string::String, u64>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MemoryStats { - fn default() -> &'a MemoryStats { - ::default_instance() - } -} - -impl MemoryStats { - pub fn new() -> MemoryStats { - ::std::default::Default::default() - } - - // uint64 cache = 1; - - - pub fn get_cache(&self) -> u64 { - self.cache - } - pub fn clear_cache(&mut self) { - self.cache = 0; - } - - // Param is passed by value, moved - pub fn set_cache(&mut self, v: u64) { - self.cache = v; - } - - // .grpc.MemoryData usage = 2; - - - pub fn get_usage(&self) -> &MemoryData { - self.usage.as_ref().unwrap_or_else(|| MemoryData::default_instance()) - } - pub fn clear_usage(&mut self) { - self.usage.clear(); - } - - pub fn has_usage(&self) -> bool { - self.usage.is_some() - } - - // Param is passed by value, moved - pub fn set_usage(&mut self, v: MemoryData) { - self.usage = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_usage(&mut self) -> &mut MemoryData { - if self.usage.is_none() { - self.usage.set_default(); - } - self.usage.as_mut().unwrap() - } - - // Take field - pub fn take_usage(&mut self) -> MemoryData { - self.usage.take().unwrap_or_else(|| MemoryData::new()) - } - - // .grpc.MemoryData swap_usage = 3; - - - pub fn get_swap_usage(&self) -> &MemoryData { - self.swap_usage.as_ref().unwrap_or_else(|| MemoryData::default_instance()) - } - pub fn clear_swap_usage(&mut self) { - self.swap_usage.clear(); - } - - pub fn has_swap_usage(&self) -> bool { - self.swap_usage.is_some() - } - - // Param is passed by value, moved - pub fn set_swap_usage(&mut self, v: MemoryData) { - self.swap_usage = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_swap_usage(&mut self) -> &mut MemoryData { - if self.swap_usage.is_none() { - self.swap_usage.set_default(); - } - self.swap_usage.as_mut().unwrap() - } - - // Take field - pub fn take_swap_usage(&mut self) -> MemoryData { - self.swap_usage.take().unwrap_or_else(|| MemoryData::new()) - } - - // .grpc.MemoryData kernel_usage = 4; - - - pub fn get_kernel_usage(&self) -> &MemoryData { - self.kernel_usage.as_ref().unwrap_or_else(|| MemoryData::default_instance()) - } - pub fn clear_kernel_usage(&mut self) { - self.kernel_usage.clear(); - } - - pub fn has_kernel_usage(&self) -> bool { - self.kernel_usage.is_some() - } - - // Param is passed by value, moved - pub fn set_kernel_usage(&mut self, v: MemoryData) { - self.kernel_usage = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_kernel_usage(&mut self) -> &mut MemoryData { - if self.kernel_usage.is_none() { - self.kernel_usage.set_default(); - } - self.kernel_usage.as_mut().unwrap() - } - - // Take field - pub fn take_kernel_usage(&mut self) -> MemoryData { - self.kernel_usage.take().unwrap_or_else(|| MemoryData::new()) - } - - // bool use_hierarchy = 5; - - - pub fn get_use_hierarchy(&self) -> bool { - self.use_hierarchy - } - pub fn clear_use_hierarchy(&mut self) { - self.use_hierarchy = false; - } - - // Param is passed by value, moved - pub fn set_use_hierarchy(&mut self, v: bool) { - self.use_hierarchy = v; - } - - // repeated .grpc.MemoryStats.StatsEntry stats = 6; - - - pub fn get_stats(&self) -> &::std::collections::HashMap<::std::string::String, u64> { - &self.stats - } - pub fn clear_stats(&mut self) { - self.stats.clear(); - } - - // Param is passed by value, moved - pub fn set_stats(&mut self, v: ::std::collections::HashMap<::std::string::String, u64>) { - self.stats = v; - } - - // Mutable pointer to the field. - pub fn mut_stats(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, u64> { - &mut self.stats - } - - // Take field - pub fn take_stats(&mut self) -> ::std::collections::HashMap<::std::string::String, u64> { - ::std::mem::replace(&mut self.stats, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for MemoryStats { - fn is_initialized(&self) -> bool { - for v in &self.usage { - if !v.is_initialized() { - return false; - } - }; - for v in &self.swap_usage { - if !v.is_initialized() { - return false; - } - }; - for v in &self.kernel_usage { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.cache = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.usage)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.swap_usage)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.kernel_usage)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.use_hierarchy = tmp; - }, - 6 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeUint64>(wire_type, is, &mut self.stats)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.cache != 0 { - my_size += ::protobuf::rt::value_size(1, self.cache, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.usage.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.swap_usage.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.kernel_usage.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.use_hierarchy != false { - my_size += 2; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeUint64>(6, &self.stats); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.cache != 0 { - os.write_uint64(1, self.cache)?; - } - if let Some(ref v) = self.usage.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.swap_usage.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.kernel_usage.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.use_hierarchy != false { - os.write_bool(5, self.use_hierarchy)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeUint64>(6, &self.stats, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MemoryStats { - MemoryStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "cache", - |m: &MemoryStats| { &m.cache }, - |m: &mut MemoryStats| { &mut m.cache }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "usage", - |m: &MemoryStats| { &m.usage }, - |m: &mut MemoryStats| { &mut m.usage }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "swap_usage", - |m: &MemoryStats| { &m.swap_usage }, - |m: &mut MemoryStats| { &mut m.swap_usage }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "kernel_usage", - |m: &MemoryStats| { &m.kernel_usage }, - |m: &mut MemoryStats| { &mut m.kernel_usage }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "use_hierarchy", - |m: &MemoryStats| { &m.use_hierarchy }, - |m: &mut MemoryStats| { &mut m.use_hierarchy }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeUint64>( - "stats", - |m: &MemoryStats| { &m.stats }, - |m: &mut MemoryStats| { &mut m.stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MemoryStats", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static MemoryStats { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(MemoryStats::new) - } - } -} - -impl ::protobuf::Clear for MemoryStats { - fn clear(&mut self) { - self.cache = 0; - self.usage.clear(); - self.swap_usage.clear(); - self.kernel_usage.clear(); - self.use_hierarchy = false; - self.stats.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MemoryStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MemoryStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BlkioStatsEntry { - // message fields - pub major: u64, - pub minor: u64, - pub op: ::std::string::String, - pub value: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BlkioStatsEntry { - fn default() -> &'a BlkioStatsEntry { - ::default_instance() - } -} - -impl BlkioStatsEntry { - pub fn new() -> BlkioStatsEntry { - ::std::default::Default::default() - } - - // uint64 major = 1; - - - pub fn get_major(&self) -> u64 { - self.major - } - pub fn clear_major(&mut self) { - self.major = 0; - } - - // Param is passed by value, moved - pub fn set_major(&mut self, v: u64) { - self.major = v; - } - - // uint64 minor = 2; - - - pub fn get_minor(&self) -> u64 { - self.minor - } - pub fn clear_minor(&mut self) { - self.minor = 0; - } - - // Param is passed by value, moved - pub fn set_minor(&mut self, v: u64) { - self.minor = v; - } - - // string op = 3; - - - pub fn get_op(&self) -> &str { - &self.op - } - pub fn clear_op(&mut self) { - self.op.clear(); - } - - // Param is passed by value, moved - pub fn set_op(&mut self, v: ::std::string::String) { - self.op = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_op(&mut self) -> &mut ::std::string::String { - &mut self.op - } - - // Take field - pub fn take_op(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.op, ::std::string::String::new()) - } - - // uint64 value = 4; - - - pub fn get_value(&self) -> u64 { - self.value - } - pub fn clear_value(&mut self) { - self.value = 0; - } - - // Param is passed by value, moved - pub fn set_value(&mut self, v: u64) { - self.value = v; - } -} - -impl ::protobuf::Message for BlkioStatsEntry { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.major = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.minor = tmp; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.op)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.value = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.major != 0 { - my_size += ::protobuf::rt::value_size(1, self.major, ::protobuf::wire_format::WireTypeVarint); - } - if self.minor != 0 { - my_size += ::protobuf::rt::value_size(2, self.minor, ::protobuf::wire_format::WireTypeVarint); - } - if !self.op.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.op); - } - if self.value != 0 { - my_size += ::protobuf::rt::value_size(4, self.value, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.major != 0 { - os.write_uint64(1, self.major)?; - } - if self.minor != 0 { - os.write_uint64(2, self.minor)?; - } - if !self.op.is_empty() { - os.write_string(3, &self.op)?; - } - if self.value != 0 { - os.write_uint64(4, self.value)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BlkioStatsEntry { - BlkioStatsEntry::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "major", - |m: &BlkioStatsEntry| { &m.major }, - |m: &mut BlkioStatsEntry| { &mut m.major }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "minor", - |m: &BlkioStatsEntry| { &m.minor }, - |m: &mut BlkioStatsEntry| { &mut m.minor }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "op", - |m: &BlkioStatsEntry| { &m.op }, - |m: &mut BlkioStatsEntry| { &mut m.op }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "value", - |m: &BlkioStatsEntry| { &m.value }, - |m: &mut BlkioStatsEntry| { &mut m.value }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BlkioStatsEntry", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static BlkioStatsEntry { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(BlkioStatsEntry::new) - } - } -} - -impl ::protobuf::Clear for BlkioStatsEntry { - fn clear(&mut self) { - self.major = 0; - self.minor = 0; - self.op.clear(); - self.value = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BlkioStatsEntry { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BlkioStatsEntry { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct BlkioStats { - // message fields - pub io_service_bytes_recursive: ::protobuf::RepeatedField, - pub io_serviced_recursive: ::protobuf::RepeatedField, - pub io_queued_recursive: ::protobuf::RepeatedField, - pub io_service_time_recursive: ::protobuf::RepeatedField, - pub io_wait_time_recursive: ::protobuf::RepeatedField, - pub io_merged_recursive: ::protobuf::RepeatedField, - pub io_time_recursive: ::protobuf::RepeatedField, - pub sectors_recursive: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a BlkioStats { - fn default() -> &'a BlkioStats { - ::default_instance() - } -} - -impl BlkioStats { - pub fn new() -> BlkioStats { - ::std::default::Default::default() - } - - // repeated .grpc.BlkioStatsEntry io_service_bytes_recursive = 1; - - - pub fn get_io_service_bytes_recursive(&self) -> &[BlkioStatsEntry] { - &self.io_service_bytes_recursive - } - pub fn clear_io_service_bytes_recursive(&mut self) { - self.io_service_bytes_recursive.clear(); - } - - // Param is passed by value, moved - pub fn set_io_service_bytes_recursive(&mut self, v: ::protobuf::RepeatedField) { - self.io_service_bytes_recursive = v; - } - - // Mutable pointer to the field. - pub fn mut_io_service_bytes_recursive(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.io_service_bytes_recursive - } - - // Take field - pub fn take_io_service_bytes_recursive(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.io_service_bytes_recursive, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.BlkioStatsEntry io_serviced_recursive = 2; - - - pub fn get_io_serviced_recursive(&self) -> &[BlkioStatsEntry] { - &self.io_serviced_recursive - } - pub fn clear_io_serviced_recursive(&mut self) { - self.io_serviced_recursive.clear(); - } - - // Param is passed by value, moved - pub fn set_io_serviced_recursive(&mut self, v: ::protobuf::RepeatedField) { - self.io_serviced_recursive = v; - } - - // Mutable pointer to the field. - pub fn mut_io_serviced_recursive(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.io_serviced_recursive - } - - // Take field - pub fn take_io_serviced_recursive(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.io_serviced_recursive, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.BlkioStatsEntry io_queued_recursive = 3; - - - pub fn get_io_queued_recursive(&self) -> &[BlkioStatsEntry] { - &self.io_queued_recursive - } - pub fn clear_io_queued_recursive(&mut self) { - self.io_queued_recursive.clear(); - } - - // Param is passed by value, moved - pub fn set_io_queued_recursive(&mut self, v: ::protobuf::RepeatedField) { - self.io_queued_recursive = v; - } - - // Mutable pointer to the field. - pub fn mut_io_queued_recursive(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.io_queued_recursive - } - - // Take field - pub fn take_io_queued_recursive(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.io_queued_recursive, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.BlkioStatsEntry io_service_time_recursive = 4; - - - pub fn get_io_service_time_recursive(&self) -> &[BlkioStatsEntry] { - &self.io_service_time_recursive - } - pub fn clear_io_service_time_recursive(&mut self) { - self.io_service_time_recursive.clear(); - } - - // Param is passed by value, moved - pub fn set_io_service_time_recursive(&mut self, v: ::protobuf::RepeatedField) { - self.io_service_time_recursive = v; - } - - // Mutable pointer to the field. - pub fn mut_io_service_time_recursive(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.io_service_time_recursive - } - - // Take field - pub fn take_io_service_time_recursive(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.io_service_time_recursive, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.BlkioStatsEntry io_wait_time_recursive = 5; - - - pub fn get_io_wait_time_recursive(&self) -> &[BlkioStatsEntry] { - &self.io_wait_time_recursive - } - pub fn clear_io_wait_time_recursive(&mut self) { - self.io_wait_time_recursive.clear(); - } - - // Param is passed by value, moved - pub fn set_io_wait_time_recursive(&mut self, v: ::protobuf::RepeatedField) { - self.io_wait_time_recursive = v; - } - - // Mutable pointer to the field. - pub fn mut_io_wait_time_recursive(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.io_wait_time_recursive - } - - // Take field - pub fn take_io_wait_time_recursive(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.io_wait_time_recursive, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.BlkioStatsEntry io_merged_recursive = 6; - - - pub fn get_io_merged_recursive(&self) -> &[BlkioStatsEntry] { - &self.io_merged_recursive - } - pub fn clear_io_merged_recursive(&mut self) { - self.io_merged_recursive.clear(); - } - - // Param is passed by value, moved - pub fn set_io_merged_recursive(&mut self, v: ::protobuf::RepeatedField) { - self.io_merged_recursive = v; - } - - // Mutable pointer to the field. - pub fn mut_io_merged_recursive(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.io_merged_recursive - } - - // Take field - pub fn take_io_merged_recursive(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.io_merged_recursive, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.BlkioStatsEntry io_time_recursive = 7; - - - pub fn get_io_time_recursive(&self) -> &[BlkioStatsEntry] { - &self.io_time_recursive - } - pub fn clear_io_time_recursive(&mut self) { - self.io_time_recursive.clear(); - } - - // Param is passed by value, moved - pub fn set_io_time_recursive(&mut self, v: ::protobuf::RepeatedField) { - self.io_time_recursive = v; - } - - // Mutable pointer to the field. - pub fn mut_io_time_recursive(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.io_time_recursive - } - - // Take field - pub fn take_io_time_recursive(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.io_time_recursive, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.BlkioStatsEntry sectors_recursive = 8; - - - pub fn get_sectors_recursive(&self) -> &[BlkioStatsEntry] { - &self.sectors_recursive - } - pub fn clear_sectors_recursive(&mut self) { - self.sectors_recursive.clear(); - } - - // Param is passed by value, moved - pub fn set_sectors_recursive(&mut self, v: ::protobuf::RepeatedField) { - self.sectors_recursive = v; - } - - // Mutable pointer to the field. - pub fn mut_sectors_recursive(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.sectors_recursive - } - - // Take field - pub fn take_sectors_recursive(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.sectors_recursive, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for BlkioStats { - fn is_initialized(&self) -> bool { - for v in &self.io_service_bytes_recursive { - if !v.is_initialized() { - return false; - } - }; - for v in &self.io_serviced_recursive { - if !v.is_initialized() { - return false; - } - }; - for v in &self.io_queued_recursive { - if !v.is_initialized() { - return false; - } - }; - for v in &self.io_service_time_recursive { - if !v.is_initialized() { - return false; - } - }; - for v in &self.io_wait_time_recursive { - if !v.is_initialized() { - return false; - } - }; - for v in &self.io_merged_recursive { - if !v.is_initialized() { - return false; - } - }; - for v in &self.io_time_recursive { - if !v.is_initialized() { - return false; - } - }; - for v in &self.sectors_recursive { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.io_service_bytes_recursive)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.io_serviced_recursive)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.io_queued_recursive)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.io_service_time_recursive)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.io_wait_time_recursive)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.io_merged_recursive)?; - }, - 7 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.io_time_recursive)?; - }, - 8 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.sectors_recursive)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.io_service_bytes_recursive { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.io_serviced_recursive { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.io_queued_recursive { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.io_service_time_recursive { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.io_wait_time_recursive { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.io_merged_recursive { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.io_time_recursive { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.sectors_recursive { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.io_service_bytes_recursive { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.io_serviced_recursive { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.io_queued_recursive { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.io_service_time_recursive { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.io_wait_time_recursive { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.io_merged_recursive { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.io_time_recursive { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.sectors_recursive { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> BlkioStats { - BlkioStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "io_service_bytes_recursive", - |m: &BlkioStats| { &m.io_service_bytes_recursive }, - |m: &mut BlkioStats| { &mut m.io_service_bytes_recursive }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "io_serviced_recursive", - |m: &BlkioStats| { &m.io_serviced_recursive }, - |m: &mut BlkioStats| { &mut m.io_serviced_recursive }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "io_queued_recursive", - |m: &BlkioStats| { &m.io_queued_recursive }, - |m: &mut BlkioStats| { &mut m.io_queued_recursive }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "io_service_time_recursive", - |m: &BlkioStats| { &m.io_service_time_recursive }, - |m: &mut BlkioStats| { &mut m.io_service_time_recursive }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "io_wait_time_recursive", - |m: &BlkioStats| { &m.io_wait_time_recursive }, - |m: &mut BlkioStats| { &mut m.io_wait_time_recursive }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "io_merged_recursive", - |m: &BlkioStats| { &m.io_merged_recursive }, - |m: &mut BlkioStats| { &mut m.io_merged_recursive }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "io_time_recursive", - |m: &BlkioStats| { &m.io_time_recursive }, - |m: &mut BlkioStats| { &mut m.io_time_recursive }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "sectors_recursive", - |m: &BlkioStats| { &m.sectors_recursive }, - |m: &mut BlkioStats| { &mut m.sectors_recursive }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "BlkioStats", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static BlkioStats { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(BlkioStats::new) - } - } -} - -impl ::protobuf::Clear for BlkioStats { - fn clear(&mut self) { - self.io_service_bytes_recursive.clear(); - self.io_serviced_recursive.clear(); - self.io_queued_recursive.clear(); - self.io_service_time_recursive.clear(); - self.io_wait_time_recursive.clear(); - self.io_merged_recursive.clear(); - self.io_time_recursive.clear(); - self.sectors_recursive.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for BlkioStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for BlkioStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct HugetlbStats { - // message fields - pub usage: u64, - pub max_usage: u64, - pub failcnt: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a HugetlbStats { - fn default() -> &'a HugetlbStats { - ::default_instance() - } -} - -impl HugetlbStats { - pub fn new() -> HugetlbStats { - ::std::default::Default::default() - } - - // uint64 usage = 1; - - - pub fn get_usage(&self) -> u64 { - self.usage - } - pub fn clear_usage(&mut self) { - self.usage = 0; - } - - // Param is passed by value, moved - pub fn set_usage(&mut self, v: u64) { - self.usage = v; - } - - // uint64 max_usage = 2; - - - pub fn get_max_usage(&self) -> u64 { - self.max_usage - } - pub fn clear_max_usage(&mut self) { - self.max_usage = 0; - } - - // Param is passed by value, moved - pub fn set_max_usage(&mut self, v: u64) { - self.max_usage = v; - } - - // uint64 failcnt = 3; - - - pub fn get_failcnt(&self) -> u64 { - self.failcnt - } - pub fn clear_failcnt(&mut self) { - self.failcnt = 0; - } - - // Param is passed by value, moved - pub fn set_failcnt(&mut self, v: u64) { - self.failcnt = v; - } -} - -impl ::protobuf::Message for HugetlbStats { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.usage = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.max_usage = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.failcnt = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.usage != 0 { - my_size += ::protobuf::rt::value_size(1, self.usage, ::protobuf::wire_format::WireTypeVarint); - } - if self.max_usage != 0 { - my_size += ::protobuf::rt::value_size(2, self.max_usage, ::protobuf::wire_format::WireTypeVarint); - } - if self.failcnt != 0 { - my_size += ::protobuf::rt::value_size(3, self.failcnt, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.usage != 0 { - os.write_uint64(1, self.usage)?; - } - if self.max_usage != 0 { - os.write_uint64(2, self.max_usage)?; - } - if self.failcnt != 0 { - os.write_uint64(3, self.failcnt)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> HugetlbStats { - HugetlbStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "usage", - |m: &HugetlbStats| { &m.usage }, - |m: &mut HugetlbStats| { &mut m.usage }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "max_usage", - |m: &HugetlbStats| { &m.max_usage }, - |m: &mut HugetlbStats| { &mut m.max_usage }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "failcnt", - |m: &HugetlbStats| { &m.failcnt }, - |m: &mut HugetlbStats| { &mut m.failcnt }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HugetlbStats", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static HugetlbStats { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(HugetlbStats::new) - } - } -} - -impl ::protobuf::Clear for HugetlbStats { - fn clear(&mut self) { - self.usage = 0; - self.max_usage = 0; - self.failcnt = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for HugetlbStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for HugetlbStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CgroupStats { - // message fields - pub cpu_stats: ::protobuf::SingularPtrField, - pub memory_stats: ::protobuf::SingularPtrField, - pub pids_stats: ::protobuf::SingularPtrField, - pub blkio_stats: ::protobuf::SingularPtrField, - pub hugetlb_stats: ::std::collections::HashMap<::std::string::String, HugetlbStats>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CgroupStats { - fn default() -> &'a CgroupStats { - ::default_instance() - } -} - -impl CgroupStats { - pub fn new() -> CgroupStats { - ::std::default::Default::default() - } - - // .grpc.CpuStats cpu_stats = 1; - - - pub fn get_cpu_stats(&self) -> &CpuStats { - self.cpu_stats.as_ref().unwrap_or_else(|| CpuStats::default_instance()) - } - pub fn clear_cpu_stats(&mut self) { - self.cpu_stats.clear(); - } - - pub fn has_cpu_stats(&self) -> bool { - self.cpu_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_cpu_stats(&mut self, v: CpuStats) { - self.cpu_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cpu_stats(&mut self) -> &mut CpuStats { - if self.cpu_stats.is_none() { - self.cpu_stats.set_default(); - } - self.cpu_stats.as_mut().unwrap() - } - - // Take field - pub fn take_cpu_stats(&mut self) -> CpuStats { - self.cpu_stats.take().unwrap_or_else(|| CpuStats::new()) - } - - // .grpc.MemoryStats memory_stats = 2; - - - pub fn get_memory_stats(&self) -> &MemoryStats { - self.memory_stats.as_ref().unwrap_or_else(|| MemoryStats::default_instance()) - } - pub fn clear_memory_stats(&mut self) { - self.memory_stats.clear(); - } - - pub fn has_memory_stats(&self) -> bool { - self.memory_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_memory_stats(&mut self, v: MemoryStats) { - self.memory_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_memory_stats(&mut self) -> &mut MemoryStats { - if self.memory_stats.is_none() { - self.memory_stats.set_default(); - } - self.memory_stats.as_mut().unwrap() - } - - // Take field - pub fn take_memory_stats(&mut self) -> MemoryStats { - self.memory_stats.take().unwrap_or_else(|| MemoryStats::new()) - } - - // .grpc.PidsStats pids_stats = 3; - - - pub fn get_pids_stats(&self) -> &PidsStats { - self.pids_stats.as_ref().unwrap_or_else(|| PidsStats::default_instance()) - } - pub fn clear_pids_stats(&mut self) { - self.pids_stats.clear(); - } - - pub fn has_pids_stats(&self) -> bool { - self.pids_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_pids_stats(&mut self, v: PidsStats) { - self.pids_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_pids_stats(&mut self) -> &mut PidsStats { - if self.pids_stats.is_none() { - self.pids_stats.set_default(); - } - self.pids_stats.as_mut().unwrap() - } - - // Take field - pub fn take_pids_stats(&mut self) -> PidsStats { - self.pids_stats.take().unwrap_or_else(|| PidsStats::new()) - } - - // .grpc.BlkioStats blkio_stats = 4; - - - pub fn get_blkio_stats(&self) -> &BlkioStats { - self.blkio_stats.as_ref().unwrap_or_else(|| BlkioStats::default_instance()) - } - pub fn clear_blkio_stats(&mut self) { - self.blkio_stats.clear(); - } - - pub fn has_blkio_stats(&self) -> bool { - self.blkio_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_blkio_stats(&mut self, v: BlkioStats) { - self.blkio_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_blkio_stats(&mut self) -> &mut BlkioStats { - if self.blkio_stats.is_none() { - self.blkio_stats.set_default(); - } - self.blkio_stats.as_mut().unwrap() - } - - // Take field - pub fn take_blkio_stats(&mut self) -> BlkioStats { - self.blkio_stats.take().unwrap_or_else(|| BlkioStats::new()) - } - - // repeated .grpc.CgroupStats.HugetlbStatsEntry hugetlb_stats = 5; - - - pub fn get_hugetlb_stats(&self) -> &::std::collections::HashMap<::std::string::String, HugetlbStats> { - &self.hugetlb_stats - } - pub fn clear_hugetlb_stats(&mut self) { - self.hugetlb_stats.clear(); - } - - // Param is passed by value, moved - pub fn set_hugetlb_stats(&mut self, v: ::std::collections::HashMap<::std::string::String, HugetlbStats>) { - self.hugetlb_stats = v; - } - - // Mutable pointer to the field. - pub fn mut_hugetlb_stats(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, HugetlbStats> { - &mut self.hugetlb_stats - } - - // Take field - pub fn take_hugetlb_stats(&mut self) -> ::std::collections::HashMap<::std::string::String, HugetlbStats> { - ::std::mem::replace(&mut self.hugetlb_stats, ::std::collections::HashMap::new()) - } -} - -impl ::protobuf::Message for CgroupStats { - fn is_initialized(&self) -> bool { - for v in &self.cpu_stats { - if !v.is_initialized() { - return false; - } - }; - for v in &self.memory_stats { - if !v.is_initialized() { - return false; - } - }; - for v in &self.pids_stats { - if !v.is_initialized() { - return false; - } - }; - for v in &self.blkio_stats { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cpu_stats)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.memory_stats)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.pids_stats)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.blkio_stats)?; - }, - 5 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(wire_type, is, &mut self.hugetlb_stats)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.cpu_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.memory_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.pids_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.blkio_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(5, &self.hugetlb_stats); - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.cpu_stats.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.memory_stats.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.pids_stats.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.blkio_stats.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>(5, &self.hugetlb_stats, os)?; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CgroupStats { - CgroupStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cpu_stats", - |m: &CgroupStats| { &m.cpu_stats }, - |m: &mut CgroupStats| { &mut m.cpu_stats }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "memory_stats", - |m: &CgroupStats| { &m.memory_stats }, - |m: &mut CgroupStats| { &mut m.memory_stats }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "pids_stats", - |m: &CgroupStats| { &m.pids_stats }, - |m: &mut CgroupStats| { &mut m.pids_stats }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "blkio_stats", - |m: &CgroupStats| { &m.blkio_stats }, - |m: &mut CgroupStats| { &mut m.blkio_stats }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeMessage>( - "hugetlb_stats", - |m: &CgroupStats| { &m.hugetlb_stats }, - |m: &mut CgroupStats| { &mut m.hugetlb_stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CgroupStats", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static CgroupStats { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(CgroupStats::new) - } - } -} - -impl ::protobuf::Clear for CgroupStats { - fn clear(&mut self) { - self.cpu_stats.clear(); - self.memory_stats.clear(); - self.pids_stats.clear(); - self.blkio_stats.clear(); - self.hugetlb_stats.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CgroupStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CgroupStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct NetworkStats { - // message fields - pub name: ::std::string::String, - pub rx_bytes: u64, - pub rx_packets: u64, - pub rx_errors: u64, - pub rx_dropped: u64, - pub tx_bytes: u64, - pub tx_packets: u64, - pub tx_errors: u64, - pub tx_dropped: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a NetworkStats { - fn default() -> &'a NetworkStats { - ::default_instance() - } -} - -impl NetworkStats { - pub fn new() -> NetworkStats { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // uint64 rx_bytes = 2; - - - pub fn get_rx_bytes(&self) -> u64 { - self.rx_bytes - } - pub fn clear_rx_bytes(&mut self) { - self.rx_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_rx_bytes(&mut self, v: u64) { - self.rx_bytes = v; - } - - // uint64 rx_packets = 3; - - - pub fn get_rx_packets(&self) -> u64 { - self.rx_packets - } - pub fn clear_rx_packets(&mut self) { - self.rx_packets = 0; - } - - // Param is passed by value, moved - pub fn set_rx_packets(&mut self, v: u64) { - self.rx_packets = v; - } - - // uint64 rx_errors = 4; - - - pub fn get_rx_errors(&self) -> u64 { - self.rx_errors - } - pub fn clear_rx_errors(&mut self) { - self.rx_errors = 0; - } - - // Param is passed by value, moved - pub fn set_rx_errors(&mut self, v: u64) { - self.rx_errors = v; - } - - // uint64 rx_dropped = 5; - - - pub fn get_rx_dropped(&self) -> u64 { - self.rx_dropped - } - pub fn clear_rx_dropped(&mut self) { - self.rx_dropped = 0; - } - - // Param is passed by value, moved - pub fn set_rx_dropped(&mut self, v: u64) { - self.rx_dropped = v; - } - - // uint64 tx_bytes = 6; - - - pub fn get_tx_bytes(&self) -> u64 { - self.tx_bytes - } - pub fn clear_tx_bytes(&mut self) { - self.tx_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_tx_bytes(&mut self, v: u64) { - self.tx_bytes = v; - } - - // uint64 tx_packets = 7; - - - pub fn get_tx_packets(&self) -> u64 { - self.tx_packets - } - pub fn clear_tx_packets(&mut self) { - self.tx_packets = 0; - } - - // Param is passed by value, moved - pub fn set_tx_packets(&mut self, v: u64) { - self.tx_packets = v; - } - - // uint64 tx_errors = 8; - - - pub fn get_tx_errors(&self) -> u64 { - self.tx_errors - } - pub fn clear_tx_errors(&mut self) { - self.tx_errors = 0; - } - - // Param is passed by value, moved - pub fn set_tx_errors(&mut self, v: u64) { - self.tx_errors = v; - } - - // uint64 tx_dropped = 9; - - - pub fn get_tx_dropped(&self) -> u64 { - self.tx_dropped - } - pub fn clear_tx_dropped(&mut self) { - self.tx_dropped = 0; - } - - // Param is passed by value, moved - pub fn set_tx_dropped(&mut self, v: u64) { - self.tx_dropped = v; - } -} - -impl ::protobuf::Message for NetworkStats { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.rx_bytes = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.rx_packets = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.rx_errors = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.rx_dropped = tmp; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.tx_bytes = tmp; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.tx_packets = tmp; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.tx_errors = tmp; - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.tx_dropped = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - if self.rx_bytes != 0 { - my_size += ::protobuf::rt::value_size(2, self.rx_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if self.rx_packets != 0 { - my_size += ::protobuf::rt::value_size(3, self.rx_packets, ::protobuf::wire_format::WireTypeVarint); - } - if self.rx_errors != 0 { - my_size += ::protobuf::rt::value_size(4, self.rx_errors, ::protobuf::wire_format::WireTypeVarint); - } - if self.rx_dropped != 0 { - my_size += ::protobuf::rt::value_size(5, self.rx_dropped, ::protobuf::wire_format::WireTypeVarint); - } - if self.tx_bytes != 0 { - my_size += ::protobuf::rt::value_size(6, self.tx_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if self.tx_packets != 0 { - my_size += ::protobuf::rt::value_size(7, self.tx_packets, ::protobuf::wire_format::WireTypeVarint); - } - if self.tx_errors != 0 { - my_size += ::protobuf::rt::value_size(8, self.tx_errors, ::protobuf::wire_format::WireTypeVarint); - } - if self.tx_dropped != 0 { - my_size += ::protobuf::rt::value_size(9, self.tx_dropped, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - if self.rx_bytes != 0 { - os.write_uint64(2, self.rx_bytes)?; - } - if self.rx_packets != 0 { - os.write_uint64(3, self.rx_packets)?; - } - if self.rx_errors != 0 { - os.write_uint64(4, self.rx_errors)?; - } - if self.rx_dropped != 0 { - os.write_uint64(5, self.rx_dropped)?; - } - if self.tx_bytes != 0 { - os.write_uint64(6, self.tx_bytes)?; - } - if self.tx_packets != 0 { - os.write_uint64(7, self.tx_packets)?; - } - if self.tx_errors != 0 { - os.write_uint64(8, self.tx_errors)?; - } - if self.tx_dropped != 0 { - os.write_uint64(9, self.tx_dropped)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> NetworkStats { - NetworkStats::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &NetworkStats| { &m.name }, - |m: &mut NetworkStats| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "rx_bytes", - |m: &NetworkStats| { &m.rx_bytes }, - |m: &mut NetworkStats| { &mut m.rx_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "rx_packets", - |m: &NetworkStats| { &m.rx_packets }, - |m: &mut NetworkStats| { &mut m.rx_packets }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "rx_errors", - |m: &NetworkStats| { &m.rx_errors }, - |m: &mut NetworkStats| { &mut m.rx_errors }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "rx_dropped", - |m: &NetworkStats| { &m.rx_dropped }, - |m: &mut NetworkStats| { &mut m.rx_dropped }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "tx_bytes", - |m: &NetworkStats| { &m.tx_bytes }, - |m: &mut NetworkStats| { &mut m.tx_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "tx_packets", - |m: &NetworkStats| { &m.tx_packets }, - |m: &mut NetworkStats| { &mut m.tx_packets }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "tx_errors", - |m: &NetworkStats| { &m.tx_errors }, - |m: &mut NetworkStats| { &mut m.tx_errors }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "tx_dropped", - |m: &NetworkStats| { &m.tx_dropped }, - |m: &mut NetworkStats| { &mut m.tx_dropped }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "NetworkStats", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static NetworkStats { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(NetworkStats::new) - } - } -} - -impl ::protobuf::Clear for NetworkStats { - fn clear(&mut self) { - self.name.clear(); - self.rx_bytes = 0; - self.rx_packets = 0; - self.rx_errors = 0; - self.rx_dropped = 0; - self.tx_bytes = 0; - self.tx_packets = 0; - self.tx_errors = 0; - self.tx_dropped = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for NetworkStats { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for NetworkStats { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StatsContainerResponse { - // message fields - pub cgroup_stats: ::protobuf::SingularPtrField, - pub network_stats: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StatsContainerResponse { - fn default() -> &'a StatsContainerResponse { - ::default_instance() - } -} - -impl StatsContainerResponse { - pub fn new() -> StatsContainerResponse { - ::std::default::Default::default() - } - - // .grpc.CgroupStats cgroup_stats = 1; - - - pub fn get_cgroup_stats(&self) -> &CgroupStats { - self.cgroup_stats.as_ref().unwrap_or_else(|| CgroupStats::default_instance()) - } - pub fn clear_cgroup_stats(&mut self) { - self.cgroup_stats.clear(); - } - - pub fn has_cgroup_stats(&self) -> bool { - self.cgroup_stats.is_some() - } - - // Param is passed by value, moved - pub fn set_cgroup_stats(&mut self, v: CgroupStats) { - self.cgroup_stats = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_cgroup_stats(&mut self) -> &mut CgroupStats { - if self.cgroup_stats.is_none() { - self.cgroup_stats.set_default(); - } - self.cgroup_stats.as_mut().unwrap() - } - - // Take field - pub fn take_cgroup_stats(&mut self) -> CgroupStats { - self.cgroup_stats.take().unwrap_or_else(|| CgroupStats::new()) - } - - // repeated .grpc.NetworkStats network_stats = 2; - - - pub fn get_network_stats(&self) -> &[NetworkStats] { - &self.network_stats - } - pub fn clear_network_stats(&mut self) { - self.network_stats.clear(); - } - - // Param is passed by value, moved - pub fn set_network_stats(&mut self, v: ::protobuf::RepeatedField) { - self.network_stats = v; - } - - // Mutable pointer to the field. - pub fn mut_network_stats(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.network_stats - } - - // Take field - pub fn take_network_stats(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.network_stats, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for StatsContainerResponse { - fn is_initialized(&self) -> bool { - for v in &self.cgroup_stats { - if !v.is_initialized() { - return false; - } - }; - for v in &self.network_stats { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.cgroup_stats)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.network_stats)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.cgroup_stats.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.network_stats { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.cgroup_stats.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.network_stats { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StatsContainerResponse { - StatsContainerResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "cgroup_stats", - |m: &StatsContainerResponse| { &m.cgroup_stats }, - |m: &mut StatsContainerResponse| { &mut m.cgroup_stats }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "network_stats", - |m: &StatsContainerResponse| { &m.network_stats }, - |m: &mut StatsContainerResponse| { &mut m.network_stats }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StatsContainerResponse", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static StatsContainerResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(StatsContainerResponse::new) - } - } -} - -impl ::protobuf::Clear for StatsContainerResponse { - fn clear(&mut self) { - self.cgroup_stats.clear(); - self.network_stats.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StatsContainerResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StatsContainerResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WriteStreamRequest { - // message fields - pub container_id: ::std::string::String, - pub exec_id: ::std::string::String, - pub data: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WriteStreamRequest { - fn default() -> &'a WriteStreamRequest { - ::default_instance() - } -} - -impl WriteStreamRequest { - pub fn new() -> WriteStreamRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string exec_id = 2; - - - pub fn get_exec_id(&self) -> &str { - &self.exec_id - } - pub fn clear_exec_id(&mut self) { - self.exec_id.clear(); - } - - // Param is passed by value, moved - pub fn set_exec_id(&mut self, v: ::std::string::String) { - self.exec_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_id(&mut self) -> &mut ::std::string::String { - &mut self.exec_id - } - - // Take field - pub fn take_exec_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exec_id, ::std::string::String::new()) - } - - // bytes data = 3; - - - pub fn get_data(&self) -> &[u8] { - &self.data - } - pub fn clear_data(&mut self) { - self.data.clear(); - } - - // Param is passed by value, moved - pub fn set_data(&mut self, v: ::std::vec::Vec) { - self.data = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_data(&mut self) -> &mut ::std::vec::Vec { - &mut self.data - } - - // Take field - pub fn take_data(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.data, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for WriteStreamRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exec_id)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.exec_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.exec_id); - } - if !self.data.is_empty() { - my_size += ::protobuf::rt::bytes_size(3, &self.data); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.exec_id.is_empty() { - os.write_string(2, &self.exec_id)?; - } - if !self.data.is_empty() { - os.write_bytes(3, &self.data)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WriteStreamRequest { - WriteStreamRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &WriteStreamRequest| { &m.container_id }, - |m: &mut WriteStreamRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exec_id", - |m: &WriteStreamRequest| { &m.exec_id }, - |m: &mut WriteStreamRequest| { &mut m.exec_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "data", - |m: &WriteStreamRequest| { &m.data }, - |m: &mut WriteStreamRequest| { &mut m.data }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WriteStreamRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static WriteStreamRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(WriteStreamRequest::new) - } - } -} - -impl ::protobuf::Clear for WriteStreamRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.exec_id.clear(); - self.data.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WriteStreamRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WriteStreamRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct WriteStreamResponse { - // message fields - pub len: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a WriteStreamResponse { - fn default() -> &'a WriteStreamResponse { - ::default_instance() - } -} - -impl WriteStreamResponse { - pub fn new() -> WriteStreamResponse { - ::std::default::Default::default() - } - - // uint32 len = 1; - - - pub fn get_len(&self) -> u32 { - self.len - } - pub fn clear_len(&mut self) { - self.len = 0; - } - - // Param is passed by value, moved - pub fn set_len(&mut self, v: u32) { - self.len = v; - } -} - -impl ::protobuf::Message for WriteStreamResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.len = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.len != 0 { - my_size += ::protobuf::rt::value_size(1, self.len, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.len != 0 { - os.write_uint32(1, self.len)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> WriteStreamResponse { - WriteStreamResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "len", - |m: &WriteStreamResponse| { &m.len }, - |m: &mut WriteStreamResponse| { &mut m.len }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "WriteStreamResponse", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static WriteStreamResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(WriteStreamResponse::new) - } - } -} - -impl ::protobuf::Clear for WriteStreamResponse { - fn clear(&mut self) { - self.len = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for WriteStreamResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for WriteStreamResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadStreamRequest { - // message fields - pub container_id: ::std::string::String, - pub exec_id: ::std::string::String, - pub len: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadStreamRequest { - fn default() -> &'a ReadStreamRequest { - ::default_instance() - } -} - -impl ReadStreamRequest { - pub fn new() -> ReadStreamRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string exec_id = 2; - - - pub fn get_exec_id(&self) -> &str { - &self.exec_id - } - pub fn clear_exec_id(&mut self) { - self.exec_id.clear(); - } - - // Param is passed by value, moved - pub fn set_exec_id(&mut self, v: ::std::string::String) { - self.exec_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_id(&mut self) -> &mut ::std::string::String { - &mut self.exec_id - } - - // Take field - pub fn take_exec_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exec_id, ::std::string::String::new()) - } - - // uint32 len = 3; - - - pub fn get_len(&self) -> u32 { - self.len - } - pub fn clear_len(&mut self) { - self.len = 0; - } - - // Param is passed by value, moved - pub fn set_len(&mut self, v: u32) { - self.len = v; - } -} - -impl ::protobuf::Message for ReadStreamRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exec_id)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.len = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.exec_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.exec_id); - } - if self.len != 0 { - my_size += ::protobuf::rt::value_size(3, self.len, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.exec_id.is_empty() { - os.write_string(2, &self.exec_id)?; - } - if self.len != 0 { - os.write_uint32(3, self.len)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadStreamRequest { - ReadStreamRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &ReadStreamRequest| { &m.container_id }, - |m: &mut ReadStreamRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exec_id", - |m: &ReadStreamRequest| { &m.exec_id }, - |m: &mut ReadStreamRequest| { &mut m.exec_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "len", - |m: &ReadStreamRequest| { &m.len }, - |m: &mut ReadStreamRequest| { &mut m.len }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadStreamRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ReadStreamRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ReadStreamRequest::new) - } - } -} - -impl ::protobuf::Clear for ReadStreamRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.exec_id.clear(); - self.len = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadStreamRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadStreamRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReadStreamResponse { - // message fields - pub data: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReadStreamResponse { - fn default() -> &'a ReadStreamResponse { - ::default_instance() - } -} - -impl ReadStreamResponse { - pub fn new() -> ReadStreamResponse { - ::std::default::Default::default() - } - - // bytes data = 1; - - - pub fn get_data(&self) -> &[u8] { - &self.data - } - pub fn clear_data(&mut self) { - self.data.clear(); - } - - // Param is passed by value, moved - pub fn set_data(&mut self, v: ::std::vec::Vec) { - self.data = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_data(&mut self) -> &mut ::std::vec::Vec { - &mut self.data - } - - // Take field - pub fn take_data(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.data, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for ReadStreamResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.data.is_empty() { - my_size += ::protobuf::rt::bytes_size(1, &self.data); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.data.is_empty() { - os.write_bytes(1, &self.data)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReadStreamResponse { - ReadStreamResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "data", - |m: &ReadStreamResponse| { &m.data }, - |m: &mut ReadStreamResponse| { &mut m.data }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReadStreamResponse", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ReadStreamResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ReadStreamResponse::new) - } - } -} - -impl ::protobuf::Clear for ReadStreamResponse { - fn clear(&mut self) { - self.data.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReadStreamResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReadStreamResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CloseStdinRequest { - // message fields - pub container_id: ::std::string::String, - pub exec_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CloseStdinRequest { - fn default() -> &'a CloseStdinRequest { - ::default_instance() - } -} - -impl CloseStdinRequest { - pub fn new() -> CloseStdinRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string exec_id = 2; - - - pub fn get_exec_id(&self) -> &str { - &self.exec_id - } - pub fn clear_exec_id(&mut self) { - self.exec_id.clear(); - } - - // Param is passed by value, moved - pub fn set_exec_id(&mut self, v: ::std::string::String) { - self.exec_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_id(&mut self) -> &mut ::std::string::String { - &mut self.exec_id - } - - // Take field - pub fn take_exec_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exec_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CloseStdinRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exec_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.exec_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.exec_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.exec_id.is_empty() { - os.write_string(2, &self.exec_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CloseStdinRequest { - CloseStdinRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &CloseStdinRequest| { &m.container_id }, - |m: &mut CloseStdinRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exec_id", - |m: &CloseStdinRequest| { &m.exec_id }, - |m: &mut CloseStdinRequest| { &mut m.exec_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CloseStdinRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static CloseStdinRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(CloseStdinRequest::new) - } - } -} - -impl ::protobuf::Clear for CloseStdinRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.exec_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CloseStdinRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CloseStdinRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct TtyWinResizeRequest { - // message fields - pub container_id: ::std::string::String, - pub exec_id: ::std::string::String, - pub row: u32, - pub column: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a TtyWinResizeRequest { - fn default() -> &'a TtyWinResizeRequest { - ::default_instance() - } -} - -impl TtyWinResizeRequest { - pub fn new() -> TtyWinResizeRequest { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } - - // string exec_id = 2; - - - pub fn get_exec_id(&self) -> &str { - &self.exec_id - } - pub fn clear_exec_id(&mut self) { - self.exec_id.clear(); - } - - // Param is passed by value, moved - pub fn set_exec_id(&mut self, v: ::std::string::String) { - self.exec_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_exec_id(&mut self) -> &mut ::std::string::String { - &mut self.exec_id - } - - // Take field - pub fn take_exec_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.exec_id, ::std::string::String::new()) - } - - // uint32 row = 3; - - - pub fn get_row(&self) -> u32 { - self.row - } - pub fn clear_row(&mut self) { - self.row = 0; - } - - // Param is passed by value, moved - pub fn set_row(&mut self, v: u32) { - self.row = v; - } - - // uint32 column = 4; - - - pub fn get_column(&self) -> u32 { - self.column - } - pub fn clear_column(&mut self) { - self.column = 0; - } - - // Param is passed by value, moved - pub fn set_column(&mut self, v: u32) { - self.column = v; - } -} - -impl ::protobuf::Message for TtyWinResizeRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.exec_id)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.row = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.column = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - if !self.exec_id.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.exec_id); - } - if self.row != 0 { - my_size += ::protobuf::rt::value_size(3, self.row, ::protobuf::wire_format::WireTypeVarint); - } - if self.column != 0 { - my_size += ::protobuf::rt::value_size(4, self.column, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - if !self.exec_id.is_empty() { - os.write_string(2, &self.exec_id)?; - } - if self.row != 0 { - os.write_uint32(3, self.row)?; - } - if self.column != 0 { - os.write_uint32(4, self.column)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> TtyWinResizeRequest { - TtyWinResizeRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &TtyWinResizeRequest| { &m.container_id }, - |m: &mut TtyWinResizeRequest| { &mut m.container_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "exec_id", - |m: &TtyWinResizeRequest| { &m.exec_id }, - |m: &mut TtyWinResizeRequest| { &mut m.exec_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "row", - |m: &TtyWinResizeRequest| { &m.row }, - |m: &mut TtyWinResizeRequest| { &mut m.row }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "column", - |m: &TtyWinResizeRequest| { &m.column }, - |m: &mut TtyWinResizeRequest| { &mut m.column }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "TtyWinResizeRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static TtyWinResizeRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(TtyWinResizeRequest::new) - } - } -} - -impl ::protobuf::Clear for TtyWinResizeRequest { - fn clear(&mut self) { - self.container_id.clear(); - self.exec_id.clear(); - self.row = 0; - self.column = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for TtyWinResizeRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for TtyWinResizeRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct KernelModule { - // message fields - pub name: ::std::string::String, - pub parameters: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a KernelModule { - fn default() -> &'a KernelModule { - ::default_instance() - } -} - -impl KernelModule { - pub fn new() -> KernelModule { - ::std::default::Default::default() - } - - // string name = 1; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated string parameters = 2; - - - pub fn get_parameters(&self) -> &[::std::string::String] { - &self.parameters - } - pub fn clear_parameters(&mut self) { - self.parameters.clear(); - } - - // Param is passed by value, moved - pub fn set_parameters(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.parameters = v; - } - - // Mutable pointer to the field. - pub fn mut_parameters(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.parameters - } - - // Take field - pub fn take_parameters(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.parameters, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for KernelModule { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.parameters)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.name); - } - for value in &self.parameters { - my_size += ::protobuf::rt::string_size(2, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.name.is_empty() { - os.write_string(1, &self.name)?; - } - for v in &self.parameters { - os.write_string(2, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> KernelModule { - KernelModule::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &KernelModule| { &m.name }, - |m: &mut KernelModule| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "parameters", - |m: &KernelModule| { &m.parameters }, - |m: &mut KernelModule| { &mut m.parameters }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "KernelModule", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static KernelModule { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(KernelModule::new) - } - } -} - -impl ::protobuf::Clear for KernelModule { - fn clear(&mut self) { - self.name.clear(); - self.parameters.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for KernelModule { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for KernelModule { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CreateSandboxRequest { - // message fields - pub hostname: ::std::string::String, - pub dns: ::protobuf::RepeatedField<::std::string::String>, - pub storages: ::protobuf::RepeatedField, - pub sandbox_pidns: bool, - pub sandbox_id: ::std::string::String, - pub guest_hook_path: ::std::string::String, - pub kernel_modules: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CreateSandboxRequest { - fn default() -> &'a CreateSandboxRequest { - ::default_instance() - } -} - -impl CreateSandboxRequest { - pub fn new() -> CreateSandboxRequest { - ::std::default::Default::default() - } - - // string hostname = 1; - - - pub fn get_hostname(&self) -> &str { - &self.hostname - } - pub fn clear_hostname(&mut self) { - self.hostname.clear(); - } - - // Param is passed by value, moved - pub fn set_hostname(&mut self, v: ::std::string::String) { - self.hostname = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_hostname(&mut self) -> &mut ::std::string::String { - &mut self.hostname - } - - // Take field - pub fn take_hostname(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.hostname, ::std::string::String::new()) - } - - // repeated string dns = 2; - - - pub fn get_dns(&self) -> &[::std::string::String] { - &self.dns - } - pub fn clear_dns(&mut self) { - self.dns.clear(); - } - - // Param is passed by value, moved - pub fn set_dns(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.dns = v; - } - - // Mutable pointer to the field. - pub fn mut_dns(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.dns - } - - // Take field - pub fn take_dns(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.dns, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.Storage storages = 3; - - - pub fn get_storages(&self) -> &[Storage] { - &self.storages - } - pub fn clear_storages(&mut self) { - self.storages.clear(); - } - - // Param is passed by value, moved - pub fn set_storages(&mut self, v: ::protobuf::RepeatedField) { - self.storages = v; - } - - // Mutable pointer to the field. - pub fn mut_storages(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.storages - } - - // Take field - pub fn take_storages(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.storages, ::protobuf::RepeatedField::new()) - } - - // bool sandbox_pidns = 4; - - - pub fn get_sandbox_pidns(&self) -> bool { - self.sandbox_pidns - } - pub fn clear_sandbox_pidns(&mut self) { - self.sandbox_pidns = false; - } - - // Param is passed by value, moved - pub fn set_sandbox_pidns(&mut self, v: bool) { - self.sandbox_pidns = v; - } - - // string sandbox_id = 5; - - - pub fn get_sandbox_id(&self) -> &str { - &self.sandbox_id - } - pub fn clear_sandbox_id(&mut self) { - self.sandbox_id.clear(); - } - - // Param is passed by value, moved - pub fn set_sandbox_id(&mut self, v: ::std::string::String) { - self.sandbox_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_sandbox_id(&mut self) -> &mut ::std::string::String { - &mut self.sandbox_id - } - - // Take field - pub fn take_sandbox_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.sandbox_id, ::std::string::String::new()) - } - - // string guest_hook_path = 6; - - - pub fn get_guest_hook_path(&self) -> &str { - &self.guest_hook_path - } - pub fn clear_guest_hook_path(&mut self) { - self.guest_hook_path.clear(); - } - - // Param is passed by value, moved - pub fn set_guest_hook_path(&mut self, v: ::std::string::String) { - self.guest_hook_path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_guest_hook_path(&mut self) -> &mut ::std::string::String { - &mut self.guest_hook_path - } - - // Take field - pub fn take_guest_hook_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.guest_hook_path, ::std::string::String::new()) - } - - // repeated .grpc.KernelModule kernel_modules = 7; - - - pub fn get_kernel_modules(&self) -> &[KernelModule] { - &self.kernel_modules - } - pub fn clear_kernel_modules(&mut self) { - self.kernel_modules.clear(); - } - - // Param is passed by value, moved - pub fn set_kernel_modules(&mut self, v: ::protobuf::RepeatedField) { - self.kernel_modules = v; - } - - // Mutable pointer to the field. - pub fn mut_kernel_modules(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.kernel_modules - } - - // Take field - pub fn take_kernel_modules(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.kernel_modules, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for CreateSandboxRequest { - fn is_initialized(&self) -> bool { - for v in &self.storages { - if !v.is_initialized() { - return false; - } - }; - for v in &self.kernel_modules { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.hostname)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.dns)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.storages)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.sandbox_pidns = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.sandbox_id)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.guest_hook_path)?; - }, - 7 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.kernel_modules)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.hostname.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.hostname); - } - for value in &self.dns { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.storages { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.sandbox_pidns != false { - my_size += 2; - } - if !self.sandbox_id.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.sandbox_id); - } - if !self.guest_hook_path.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.guest_hook_path); - } - for value in &self.kernel_modules { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.hostname.is_empty() { - os.write_string(1, &self.hostname)?; - } - for v in &self.dns { - os.write_string(2, &v)?; - }; - for v in &self.storages { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.sandbox_pidns != false { - os.write_bool(4, self.sandbox_pidns)?; - } - if !self.sandbox_id.is_empty() { - os.write_string(5, &self.sandbox_id)?; - } - if !self.guest_hook_path.is_empty() { - os.write_string(6, &self.guest_hook_path)?; - } - for v in &self.kernel_modules { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CreateSandboxRequest { - CreateSandboxRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "hostname", - |m: &CreateSandboxRequest| { &m.hostname }, - |m: &mut CreateSandboxRequest| { &mut m.hostname }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "dns", - |m: &CreateSandboxRequest| { &m.dns }, - |m: &mut CreateSandboxRequest| { &mut m.dns }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "storages", - |m: &CreateSandboxRequest| { &m.storages }, - |m: &mut CreateSandboxRequest| { &mut m.storages }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "sandbox_pidns", - |m: &CreateSandboxRequest| { &m.sandbox_pidns }, - |m: &mut CreateSandboxRequest| { &mut m.sandbox_pidns }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "sandbox_id", - |m: &CreateSandboxRequest| { &m.sandbox_id }, - |m: &mut CreateSandboxRequest| { &mut m.sandbox_id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "guest_hook_path", - |m: &CreateSandboxRequest| { &m.guest_hook_path }, - |m: &mut CreateSandboxRequest| { &mut m.guest_hook_path }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "kernel_modules", - |m: &CreateSandboxRequest| { &m.kernel_modules }, - |m: &mut CreateSandboxRequest| { &mut m.kernel_modules }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CreateSandboxRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static CreateSandboxRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(CreateSandboxRequest::new) - } - } -} - -impl ::protobuf::Clear for CreateSandboxRequest { - fn clear(&mut self) { - self.hostname.clear(); - self.dns.clear(); - self.storages.clear(); - self.sandbox_pidns = false; - self.sandbox_id.clear(); - self.guest_hook_path.clear(); - self.kernel_modules.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CreateSandboxRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CreateSandboxRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct DestroySandboxRequest { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a DestroySandboxRequest { - fn default() -> &'a DestroySandboxRequest { - ::default_instance() - } -} - -impl DestroySandboxRequest { - pub fn new() -> DestroySandboxRequest { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for DestroySandboxRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> DestroySandboxRequest { - DestroySandboxRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "DestroySandboxRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static DestroySandboxRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(DestroySandboxRequest::new) - } - } -} - -impl ::protobuf::Clear for DestroySandboxRequest { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for DestroySandboxRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for DestroySandboxRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Interfaces { - // message fields - pub Interfaces: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Interfaces { - fn default() -> &'a Interfaces { - ::default_instance() - } -} - -impl Interfaces { - pub fn new() -> Interfaces { - ::std::default::Default::default() - } - - // repeated .types.Interface Interfaces = 1; - - - pub fn get_Interfaces(&self) -> &[super::types::Interface] { - &self.Interfaces - } - pub fn clear_Interfaces(&mut self) { - self.Interfaces.clear(); - } - - // Param is passed by value, moved - pub fn set_Interfaces(&mut self, v: ::protobuf::RepeatedField) { - self.Interfaces = v; - } - - // Mutable pointer to the field. - pub fn mut_Interfaces(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Interfaces - } - - // Take field - pub fn take_Interfaces(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Interfaces, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Interfaces { - fn is_initialized(&self) -> bool { - for v in &self.Interfaces { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Interfaces)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.Interfaces { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.Interfaces { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Interfaces { - Interfaces::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Interfaces", - |m: &Interfaces| { &m.Interfaces }, - |m: &mut Interfaces| { &mut m.Interfaces }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Interfaces", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Interfaces { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Interfaces::new) - } - } -} - -impl ::protobuf::Clear for Interfaces { - fn clear(&mut self) { - self.Interfaces.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Interfaces { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Interfaces { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Routes { - // message fields - pub Routes: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Routes { - fn default() -> &'a Routes { - ::default_instance() - } -} - -impl Routes { - pub fn new() -> Routes { - ::std::default::Default::default() - } - - // repeated .types.Route Routes = 1; - - - pub fn get_Routes(&self) -> &[super::types::Route] { - &self.Routes - } - pub fn clear_Routes(&mut self) { - self.Routes.clear(); - } - - // Param is passed by value, moved - pub fn set_Routes(&mut self, v: ::protobuf::RepeatedField) { - self.Routes = v; - } - - // Mutable pointer to the field. - pub fn mut_Routes(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Routes - } - - // Take field - pub fn take_Routes(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Routes, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Routes { - fn is_initialized(&self) -> bool { - for v in &self.Routes { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Routes)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.Routes { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.Routes { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Routes { - Routes::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Routes", - |m: &Routes| { &m.Routes }, - |m: &mut Routes| { &mut m.Routes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Routes", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Routes { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Routes::new) - } - } -} - -impl ::protobuf::Clear for Routes { - fn clear(&mut self) { - self.Routes.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Routes { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Routes { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateInterfaceRequest { - // message fields - pub interface: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateInterfaceRequest { - fn default() -> &'a UpdateInterfaceRequest { - ::default_instance() - } -} - -impl UpdateInterfaceRequest { - pub fn new() -> UpdateInterfaceRequest { - ::std::default::Default::default() - } - - // .types.Interface interface = 1; - - - pub fn get_interface(&self) -> &super::types::Interface { - self.interface.as_ref().unwrap_or_else(|| super::types::Interface::default_instance()) - } - pub fn clear_interface(&mut self) { - self.interface.clear(); - } - - pub fn has_interface(&self) -> bool { - self.interface.is_some() - } - - // Param is passed by value, moved - pub fn set_interface(&mut self, v: super::types::Interface) { - self.interface = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_interface(&mut self) -> &mut super::types::Interface { - if self.interface.is_none() { - self.interface.set_default(); - } - self.interface.as_mut().unwrap() - } - - // Take field - pub fn take_interface(&mut self) -> super::types::Interface { - self.interface.take().unwrap_or_else(|| super::types::Interface::new()) - } -} - -impl ::protobuf::Message for UpdateInterfaceRequest { - fn is_initialized(&self) -> bool { - for v in &self.interface { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.interface)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.interface.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.interface.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateInterfaceRequest { - UpdateInterfaceRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "interface", - |m: &UpdateInterfaceRequest| { &m.interface }, - |m: &mut UpdateInterfaceRequest| { &mut m.interface }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateInterfaceRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static UpdateInterfaceRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(UpdateInterfaceRequest::new) - } - } -} - -impl ::protobuf::Clear for UpdateInterfaceRequest { - fn clear(&mut self) { - self.interface.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateInterfaceRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateInterfaceRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct UpdateRoutesRequest { - // message fields - pub routes: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a UpdateRoutesRequest { - fn default() -> &'a UpdateRoutesRequest { - ::default_instance() - } -} - -impl UpdateRoutesRequest { - pub fn new() -> UpdateRoutesRequest { - ::std::default::Default::default() - } - - // .grpc.Routes routes = 1; - - - pub fn get_routes(&self) -> &Routes { - self.routes.as_ref().unwrap_or_else(|| Routes::default_instance()) - } - pub fn clear_routes(&mut self) { - self.routes.clear(); - } - - pub fn has_routes(&self) -> bool { - self.routes.is_some() - } - - // Param is passed by value, moved - pub fn set_routes(&mut self, v: Routes) { - self.routes = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_routes(&mut self) -> &mut Routes { - if self.routes.is_none() { - self.routes.set_default(); - } - self.routes.as_mut().unwrap() - } - - // Take field - pub fn take_routes(&mut self) -> Routes { - self.routes.take().unwrap_or_else(|| Routes::new()) - } -} - -impl ::protobuf::Message for UpdateRoutesRequest { - fn is_initialized(&self) -> bool { - for v in &self.routes { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.routes)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.routes.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.routes.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> UpdateRoutesRequest { - UpdateRoutesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "routes", - |m: &UpdateRoutesRequest| { &m.routes }, - |m: &mut UpdateRoutesRequest| { &mut m.routes }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "UpdateRoutesRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static UpdateRoutesRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(UpdateRoutesRequest::new) - } - } -} - -impl ::protobuf::Clear for UpdateRoutesRequest { - fn clear(&mut self) { - self.routes.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for UpdateRoutesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for UpdateRoutesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListInterfacesRequest { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListInterfacesRequest { - fn default() -> &'a ListInterfacesRequest { - ::default_instance() - } -} - -impl ListInterfacesRequest { - pub fn new() -> ListInterfacesRequest { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for ListInterfacesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListInterfacesRequest { - ListInterfacesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListInterfacesRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ListInterfacesRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ListInterfacesRequest::new) - } - } -} - -impl ::protobuf::Clear for ListInterfacesRequest { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListInterfacesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListInterfacesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ListRoutesRequest { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ListRoutesRequest { - fn default() -> &'a ListRoutesRequest { - ::default_instance() - } -} - -impl ListRoutesRequest { - pub fn new() -> ListRoutesRequest { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for ListRoutesRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ListRoutesRequest { - ListRoutesRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ListRoutesRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ListRoutesRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ListRoutesRequest::new) - } - } -} - -impl ::protobuf::Clear for ListRoutesRequest { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ListRoutesRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ListRoutesRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ARPNeighbors { - // message fields - pub ARPNeighbors: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ARPNeighbors { - fn default() -> &'a ARPNeighbors { - ::default_instance() - } -} - -impl ARPNeighbors { - pub fn new() -> ARPNeighbors { - ::std::default::Default::default() - } - - // repeated .types.ARPNeighbor ARPNeighbors = 1; - - - pub fn get_ARPNeighbors(&self) -> &[super::types::ARPNeighbor] { - &self.ARPNeighbors - } - pub fn clear_ARPNeighbors(&mut self) { - self.ARPNeighbors.clear(); - } - - // Param is passed by value, moved - pub fn set_ARPNeighbors(&mut self, v: ::protobuf::RepeatedField) { - self.ARPNeighbors = v; - } - - // Mutable pointer to the field. - pub fn mut_ARPNeighbors(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.ARPNeighbors - } - - // Take field - pub fn take_ARPNeighbors(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.ARPNeighbors, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for ARPNeighbors { - fn is_initialized(&self) -> bool { - for v in &self.ARPNeighbors { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.ARPNeighbors)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.ARPNeighbors { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.ARPNeighbors { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ARPNeighbors { - ARPNeighbors::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ARPNeighbors", - |m: &ARPNeighbors| { &m.ARPNeighbors }, - |m: &mut ARPNeighbors| { &mut m.ARPNeighbors }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ARPNeighbors", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ARPNeighbors { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ARPNeighbors::new) - } - } -} - -impl ::protobuf::Clear for ARPNeighbors { - fn clear(&mut self) { - self.ARPNeighbors.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ARPNeighbors { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ARPNeighbors { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AddARPNeighborsRequest { - // message fields - pub neighbors: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AddARPNeighborsRequest { - fn default() -> &'a AddARPNeighborsRequest { - ::default_instance() - } -} - -impl AddARPNeighborsRequest { - pub fn new() -> AddARPNeighborsRequest { - ::std::default::Default::default() - } - - // .grpc.ARPNeighbors neighbors = 1; - - - pub fn get_neighbors(&self) -> &ARPNeighbors { - self.neighbors.as_ref().unwrap_or_else(|| ARPNeighbors::default_instance()) - } - pub fn clear_neighbors(&mut self) { - self.neighbors.clear(); - } - - pub fn has_neighbors(&self) -> bool { - self.neighbors.is_some() - } - - // Param is passed by value, moved - pub fn set_neighbors(&mut self, v: ARPNeighbors) { - self.neighbors = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_neighbors(&mut self) -> &mut ARPNeighbors { - if self.neighbors.is_none() { - self.neighbors.set_default(); - } - self.neighbors.as_mut().unwrap() - } - - // Take field - pub fn take_neighbors(&mut self) -> ARPNeighbors { - self.neighbors.take().unwrap_or_else(|| ARPNeighbors::new()) - } -} - -impl ::protobuf::Message for AddARPNeighborsRequest { - fn is_initialized(&self) -> bool { - for v in &self.neighbors { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.neighbors)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.neighbors.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.neighbors.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AddARPNeighborsRequest { - AddARPNeighborsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "neighbors", - |m: &AddARPNeighborsRequest| { &m.neighbors }, - |m: &mut AddARPNeighborsRequest| { &mut m.neighbors }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AddARPNeighborsRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static AddARPNeighborsRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(AddARPNeighborsRequest::new) - } - } -} - -impl ::protobuf::Clear for AddARPNeighborsRequest { - fn clear(&mut self) { - self.neighbors.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AddARPNeighborsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AddARPNeighborsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OnlineCPUMemRequest { - // message fields - pub wait: bool, - pub nb_cpus: u32, - pub cpu_only: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OnlineCPUMemRequest { - fn default() -> &'a OnlineCPUMemRequest { - ::default_instance() - } -} - -impl OnlineCPUMemRequest { - pub fn new() -> OnlineCPUMemRequest { - ::std::default::Default::default() - } - - // bool wait = 1; - - - pub fn get_wait(&self) -> bool { - self.wait - } - pub fn clear_wait(&mut self) { - self.wait = false; - } - - // Param is passed by value, moved - pub fn set_wait(&mut self, v: bool) { - self.wait = v; - } - - // uint32 nb_cpus = 2; - - - pub fn get_nb_cpus(&self) -> u32 { - self.nb_cpus - } - pub fn clear_nb_cpus(&mut self) { - self.nb_cpus = 0; - } - - // Param is passed by value, moved - pub fn set_nb_cpus(&mut self, v: u32) { - self.nb_cpus = v; - } - - // bool cpu_only = 3; - - - pub fn get_cpu_only(&self) -> bool { - self.cpu_only - } - pub fn clear_cpu_only(&mut self) { - self.cpu_only = false; - } - - // Param is passed by value, moved - pub fn set_cpu_only(&mut self, v: bool) { - self.cpu_only = v; - } -} - -impl ::protobuf::Message for OnlineCPUMemRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.wait = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.nb_cpus = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.cpu_only = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.wait != false { - my_size += 2; - } - if self.nb_cpus != 0 { - my_size += ::protobuf::rt::value_size(2, self.nb_cpus, ::protobuf::wire_format::WireTypeVarint); - } - if self.cpu_only != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.wait != false { - os.write_bool(1, self.wait)?; - } - if self.nb_cpus != 0 { - os.write_uint32(2, self.nb_cpus)?; - } - if self.cpu_only != false { - os.write_bool(3, self.cpu_only)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OnlineCPUMemRequest { - OnlineCPUMemRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "wait", - |m: &OnlineCPUMemRequest| { &m.wait }, - |m: &mut OnlineCPUMemRequest| { &mut m.wait }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "nb_cpus", - |m: &OnlineCPUMemRequest| { &m.nb_cpus }, - |m: &mut OnlineCPUMemRequest| { &mut m.nb_cpus }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "cpu_only", - |m: &OnlineCPUMemRequest| { &m.cpu_only }, - |m: &mut OnlineCPUMemRequest| { &mut m.cpu_only }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OnlineCPUMemRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static OnlineCPUMemRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(OnlineCPUMemRequest::new) - } - } -} - -impl ::protobuf::Clear for OnlineCPUMemRequest { - fn clear(&mut self) { - self.wait = false; - self.nb_cpus = 0; - self.cpu_only = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OnlineCPUMemRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OnlineCPUMemRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ReseedRandomDevRequest { - // message fields - pub data: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ReseedRandomDevRequest { - fn default() -> &'a ReseedRandomDevRequest { - ::default_instance() - } -} - -impl ReseedRandomDevRequest { - pub fn new() -> ReseedRandomDevRequest { - ::std::default::Default::default() - } - - // bytes data = 2; - - - pub fn get_data(&self) -> &[u8] { - &self.data - } - pub fn clear_data(&mut self) { - self.data.clear(); - } - - // Param is passed by value, moved - pub fn set_data(&mut self, v: ::std::vec::Vec) { - self.data = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_data(&mut self) -> &mut ::std::vec::Vec { - &mut self.data - } - - // Take field - pub fn take_data(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.data, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for ReseedRandomDevRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 2 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.data.is_empty() { - my_size += ::protobuf::rt::bytes_size(2, &self.data); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.data.is_empty() { - os.write_bytes(2, &self.data)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ReseedRandomDevRequest { - ReseedRandomDevRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "data", - |m: &ReseedRandomDevRequest| { &m.data }, - |m: &mut ReseedRandomDevRequest| { &mut m.data }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ReseedRandomDevRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ReseedRandomDevRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ReseedRandomDevRequest::new) - } - } -} - -impl ::protobuf::Clear for ReseedRandomDevRequest { - fn clear(&mut self) { - self.data.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ReseedRandomDevRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ReseedRandomDevRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct AgentDetails { - // message fields - pub version: ::std::string::String, - pub init_daemon: bool, - pub device_handlers: ::protobuf::RepeatedField<::std::string::String>, - pub storage_handlers: ::protobuf::RepeatedField<::std::string::String>, - pub supports_seccomp: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a AgentDetails { - fn default() -> &'a AgentDetails { - ::default_instance() - } -} - -impl AgentDetails { - pub fn new() -> AgentDetails { - ::std::default::Default::default() - } - - // string version = 1; - - - pub fn get_version(&self) -> &str { - &self.version - } - pub fn clear_version(&mut self) { - self.version.clear(); - } - - // Param is passed by value, moved - pub fn set_version(&mut self, v: ::std::string::String) { - self.version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_version(&mut self) -> &mut ::std::string::String { - &mut self.version - } - - // Take field - pub fn take_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.version, ::std::string::String::new()) - } - - // bool init_daemon = 2; - - - pub fn get_init_daemon(&self) -> bool { - self.init_daemon - } - pub fn clear_init_daemon(&mut self) { - self.init_daemon = false; - } - - // Param is passed by value, moved - pub fn set_init_daemon(&mut self, v: bool) { - self.init_daemon = v; - } - - // repeated string device_handlers = 3; - - - pub fn get_device_handlers(&self) -> &[::std::string::String] { - &self.device_handlers - } - pub fn clear_device_handlers(&mut self) { - self.device_handlers.clear(); - } - - // Param is passed by value, moved - pub fn set_device_handlers(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.device_handlers = v; - } - - // Mutable pointer to the field. - pub fn mut_device_handlers(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.device_handlers - } - - // Take field - pub fn take_device_handlers(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.device_handlers, ::protobuf::RepeatedField::new()) - } - - // repeated string storage_handlers = 4; - - - pub fn get_storage_handlers(&self) -> &[::std::string::String] { - &self.storage_handlers - } - pub fn clear_storage_handlers(&mut self) { - self.storage_handlers.clear(); - } - - // Param is passed by value, moved - pub fn set_storage_handlers(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.storage_handlers = v; - } - - // Mutable pointer to the field. - pub fn mut_storage_handlers(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.storage_handlers - } - - // Take field - pub fn take_storage_handlers(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.storage_handlers, ::protobuf::RepeatedField::new()) - } - - // bool supports_seccomp = 5; - - - pub fn get_supports_seccomp(&self) -> bool { - self.supports_seccomp - } - pub fn clear_supports_seccomp(&mut self) { - self.supports_seccomp = false; - } - - // Param is passed by value, moved - pub fn set_supports_seccomp(&mut self, v: bool) { - self.supports_seccomp = v; - } -} - -impl ::protobuf::Message for AgentDetails { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.version)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.init_daemon = tmp; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.device_handlers)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.storage_handlers)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.supports_seccomp = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.version.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.version); - } - if self.init_daemon != false { - my_size += 2; - } - for value in &self.device_handlers { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.storage_handlers { - my_size += ::protobuf::rt::string_size(4, &value); - }; - if self.supports_seccomp != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.version.is_empty() { - os.write_string(1, &self.version)?; - } - if self.init_daemon != false { - os.write_bool(2, self.init_daemon)?; - } - for v in &self.device_handlers { - os.write_string(3, &v)?; - }; - for v in &self.storage_handlers { - os.write_string(4, &v)?; - }; - if self.supports_seccomp != false { - os.write_bool(5, self.supports_seccomp)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> AgentDetails { - AgentDetails::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "version", - |m: &AgentDetails| { &m.version }, - |m: &mut AgentDetails| { &mut m.version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "init_daemon", - |m: &AgentDetails| { &m.init_daemon }, - |m: &mut AgentDetails| { &mut m.init_daemon }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "device_handlers", - |m: &AgentDetails| { &m.device_handlers }, - |m: &mut AgentDetails| { &mut m.device_handlers }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "storage_handlers", - |m: &AgentDetails| { &m.storage_handlers }, - |m: &mut AgentDetails| { &mut m.storage_handlers }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "supports_seccomp", - |m: &AgentDetails| { &m.supports_seccomp }, - |m: &mut AgentDetails| { &mut m.supports_seccomp }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "AgentDetails", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static AgentDetails { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(AgentDetails::new) - } - } -} - -impl ::protobuf::Clear for AgentDetails { - fn clear(&mut self) { - self.version.clear(); - self.init_daemon = false; - self.device_handlers.clear(); - self.storage_handlers.clear(); - self.supports_seccomp = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for AgentDetails { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for AgentDetails { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GuestDetailsRequest { - // message fields - pub mem_block_size: bool, - pub mem_hotplug_probe: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GuestDetailsRequest { - fn default() -> &'a GuestDetailsRequest { - ::default_instance() - } -} - -impl GuestDetailsRequest { - pub fn new() -> GuestDetailsRequest { - ::std::default::Default::default() - } - - // bool mem_block_size = 1; - - - pub fn get_mem_block_size(&self) -> bool { - self.mem_block_size - } - pub fn clear_mem_block_size(&mut self) { - self.mem_block_size = false; - } - - // Param is passed by value, moved - pub fn set_mem_block_size(&mut self, v: bool) { - self.mem_block_size = v; - } - - // bool mem_hotplug_probe = 2; - - - pub fn get_mem_hotplug_probe(&self) -> bool { - self.mem_hotplug_probe - } - pub fn clear_mem_hotplug_probe(&mut self) { - self.mem_hotplug_probe = false; - } - - // Param is passed by value, moved - pub fn set_mem_hotplug_probe(&mut self, v: bool) { - self.mem_hotplug_probe = v; - } -} - -impl ::protobuf::Message for GuestDetailsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.mem_block_size = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.mem_hotplug_probe = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.mem_block_size != false { - my_size += 2; - } - if self.mem_hotplug_probe != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.mem_block_size != false { - os.write_bool(1, self.mem_block_size)?; - } - if self.mem_hotplug_probe != false { - os.write_bool(2, self.mem_hotplug_probe)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GuestDetailsRequest { - GuestDetailsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "mem_block_size", - |m: &GuestDetailsRequest| { &m.mem_block_size }, - |m: &mut GuestDetailsRequest| { &mut m.mem_block_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "mem_hotplug_probe", - |m: &GuestDetailsRequest| { &m.mem_hotplug_probe }, - |m: &mut GuestDetailsRequest| { &mut m.mem_hotplug_probe }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GuestDetailsRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static GuestDetailsRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(GuestDetailsRequest::new) - } - } -} - -impl ::protobuf::Clear for GuestDetailsRequest { - fn clear(&mut self) { - self.mem_block_size = false; - self.mem_hotplug_probe = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GuestDetailsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GuestDetailsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GuestDetailsResponse { - // message fields - pub mem_block_size_bytes: u64, - pub agent_details: ::protobuf::SingularPtrField, - pub support_mem_hotplug_probe: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GuestDetailsResponse { - fn default() -> &'a GuestDetailsResponse { - ::default_instance() - } -} - -impl GuestDetailsResponse { - pub fn new() -> GuestDetailsResponse { - ::std::default::Default::default() - } - - // uint64 mem_block_size_bytes = 1; - - - pub fn get_mem_block_size_bytes(&self) -> u64 { - self.mem_block_size_bytes - } - pub fn clear_mem_block_size_bytes(&mut self) { - self.mem_block_size_bytes = 0; - } - - // Param is passed by value, moved - pub fn set_mem_block_size_bytes(&mut self, v: u64) { - self.mem_block_size_bytes = v; - } - - // .grpc.AgentDetails agent_details = 2; - - - pub fn get_agent_details(&self) -> &AgentDetails { - self.agent_details.as_ref().unwrap_or_else(|| AgentDetails::default_instance()) - } - pub fn clear_agent_details(&mut self) { - self.agent_details.clear(); - } - - pub fn has_agent_details(&self) -> bool { - self.agent_details.is_some() - } - - // Param is passed by value, moved - pub fn set_agent_details(&mut self, v: AgentDetails) { - self.agent_details = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_agent_details(&mut self) -> &mut AgentDetails { - if self.agent_details.is_none() { - self.agent_details.set_default(); - } - self.agent_details.as_mut().unwrap() - } - - // Take field - pub fn take_agent_details(&mut self) -> AgentDetails { - self.agent_details.take().unwrap_or_else(|| AgentDetails::new()) - } - - // bool support_mem_hotplug_probe = 3; - - - pub fn get_support_mem_hotplug_probe(&self) -> bool { - self.support_mem_hotplug_probe - } - pub fn clear_support_mem_hotplug_probe(&mut self) { - self.support_mem_hotplug_probe = false; - } - - // Param is passed by value, moved - pub fn set_support_mem_hotplug_probe(&mut self, v: bool) { - self.support_mem_hotplug_probe = v; - } -} - -impl ::protobuf::Message for GuestDetailsResponse { - fn is_initialized(&self) -> bool { - for v in &self.agent_details { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.mem_block_size_bytes = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.agent_details)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.support_mem_hotplug_probe = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.mem_block_size_bytes != 0 { - my_size += ::protobuf::rt::value_size(1, self.mem_block_size_bytes, ::protobuf::wire_format::WireTypeVarint); - } - if let Some(ref v) = self.agent_details.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if self.support_mem_hotplug_probe != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.mem_block_size_bytes != 0 { - os.write_uint64(1, self.mem_block_size_bytes)?; - } - if let Some(ref v) = self.agent_details.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if self.support_mem_hotplug_probe != false { - os.write_bool(3, self.support_mem_hotplug_probe)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GuestDetailsResponse { - GuestDetailsResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "mem_block_size_bytes", - |m: &GuestDetailsResponse| { &m.mem_block_size_bytes }, - |m: &mut GuestDetailsResponse| { &mut m.mem_block_size_bytes }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "agent_details", - |m: &GuestDetailsResponse| { &m.agent_details }, - |m: &mut GuestDetailsResponse| { &mut m.agent_details }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "support_mem_hotplug_probe", - |m: &GuestDetailsResponse| { &m.support_mem_hotplug_probe }, - |m: &mut GuestDetailsResponse| { &mut m.support_mem_hotplug_probe }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GuestDetailsResponse", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static GuestDetailsResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(GuestDetailsResponse::new) - } - } -} - -impl ::protobuf::Clear for GuestDetailsResponse { - fn clear(&mut self) { - self.mem_block_size_bytes = 0; - self.agent_details.clear(); - self.support_mem_hotplug_probe = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GuestDetailsResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GuestDetailsResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct MemHotplugByProbeRequest { - // message fields - pub memHotplugProbeAddr: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a MemHotplugByProbeRequest { - fn default() -> &'a MemHotplugByProbeRequest { - ::default_instance() - } -} - -impl MemHotplugByProbeRequest { - pub fn new() -> MemHotplugByProbeRequest { - ::std::default::Default::default() - } - - // repeated uint64 memHotplugProbeAddr = 1; - - - pub fn get_memHotplugProbeAddr(&self) -> &[u64] { - &self.memHotplugProbeAddr - } - pub fn clear_memHotplugProbeAddr(&mut self) { - self.memHotplugProbeAddr.clear(); - } - - // Param is passed by value, moved - pub fn set_memHotplugProbeAddr(&mut self, v: ::std::vec::Vec) { - self.memHotplugProbeAddr = v; - } - - // Mutable pointer to the field. - pub fn mut_memHotplugProbeAddr(&mut self) -> &mut ::std::vec::Vec { - &mut self.memHotplugProbeAddr - } - - // Take field - pub fn take_memHotplugProbeAddr(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.memHotplugProbeAddr, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for MemHotplugByProbeRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_uint64_into(wire_type, is, &mut self.memHotplugProbeAddr)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.memHotplugProbeAddr { - my_size += ::protobuf::rt::value_size(1, *value, ::protobuf::wire_format::WireTypeVarint); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.memHotplugProbeAddr { - os.write_uint64(1, *v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> MemHotplugByProbeRequest { - MemHotplugByProbeRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "memHotplugProbeAddr", - |m: &MemHotplugByProbeRequest| { &m.memHotplugProbeAddr }, - |m: &mut MemHotplugByProbeRequest| { &mut m.memHotplugProbeAddr }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "MemHotplugByProbeRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static MemHotplugByProbeRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(MemHotplugByProbeRequest::new) - } - } -} - -impl ::protobuf::Clear for MemHotplugByProbeRequest { - fn clear(&mut self) { - self.memHotplugProbeAddr.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for MemHotplugByProbeRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for MemHotplugByProbeRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct SetGuestDateTimeRequest { - // message fields - pub Sec: i64, - pub Usec: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a SetGuestDateTimeRequest { - fn default() -> &'a SetGuestDateTimeRequest { - ::default_instance() - } -} - -impl SetGuestDateTimeRequest { - pub fn new() -> SetGuestDateTimeRequest { - ::std::default::Default::default() - } - - // int64 Sec = 1; - - - pub fn get_Sec(&self) -> i64 { - self.Sec - } - pub fn clear_Sec(&mut self) { - self.Sec = 0; - } - - // Param is passed by value, moved - pub fn set_Sec(&mut self, v: i64) { - self.Sec = v; - } - - // int64 Usec = 2; - - - pub fn get_Usec(&self) -> i64 { - self.Usec - } - pub fn clear_Usec(&mut self) { - self.Usec = 0; - } - - // Param is passed by value, moved - pub fn set_Usec(&mut self, v: i64) { - self.Usec = v; - } -} - -impl ::protobuf::Message for SetGuestDateTimeRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Sec = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Usec = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Sec != 0 { - my_size += ::protobuf::rt::value_size(1, self.Sec, ::protobuf::wire_format::WireTypeVarint); - } - if self.Usec != 0 { - my_size += ::protobuf::rt::value_size(2, self.Usec, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Sec != 0 { - os.write_int64(1, self.Sec)?; - } - if self.Usec != 0 { - os.write_int64(2, self.Usec)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> SetGuestDateTimeRequest { - SetGuestDateTimeRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Sec", - |m: &SetGuestDateTimeRequest| { &m.Sec }, - |m: &mut SetGuestDateTimeRequest| { &mut m.Sec }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Usec", - |m: &SetGuestDateTimeRequest| { &m.Usec }, - |m: &mut SetGuestDateTimeRequest| { &mut m.Usec }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "SetGuestDateTimeRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static SetGuestDateTimeRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(SetGuestDateTimeRequest::new) - } - } -} - -impl ::protobuf::Clear for SetGuestDateTimeRequest { - fn clear(&mut self) { - self.Sec = 0; - self.Usec = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for SetGuestDateTimeRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for SetGuestDateTimeRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Storage { - // message fields - pub driver: ::std::string::String, - pub driver_options: ::protobuf::RepeatedField<::std::string::String>, - pub source: ::std::string::String, - pub fstype: ::std::string::String, - pub options: ::protobuf::RepeatedField<::std::string::String>, - pub mount_point: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Storage { - fn default() -> &'a Storage { - ::default_instance() - } -} - -impl Storage { - pub fn new() -> Storage { - ::std::default::Default::default() - } - - // string driver = 1; - - - pub fn get_driver(&self) -> &str { - &self.driver - } - pub fn clear_driver(&mut self) { - self.driver.clear(); - } - - // Param is passed by value, moved - pub fn set_driver(&mut self, v: ::std::string::String) { - self.driver = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_driver(&mut self) -> &mut ::std::string::String { - &mut self.driver - } - - // Take field - pub fn take_driver(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.driver, ::std::string::String::new()) - } - - // repeated string driver_options = 2; - - - pub fn get_driver_options(&self) -> &[::std::string::String] { - &self.driver_options - } - pub fn clear_driver_options(&mut self) { - self.driver_options.clear(); - } - - // Param is passed by value, moved - pub fn set_driver_options(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.driver_options = v; - } - - // Mutable pointer to the field. - pub fn mut_driver_options(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.driver_options - } - - // Take field - pub fn take_driver_options(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.driver_options, ::protobuf::RepeatedField::new()) - } - - // string source = 3; - - - pub fn get_source(&self) -> &str { - &self.source - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: ::std::string::String) { - self.source = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut ::std::string::String { - &mut self.source - } - - // Take field - pub fn take_source(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source, ::std::string::String::new()) - } - - // string fstype = 4; - - - pub fn get_fstype(&self) -> &str { - &self.fstype - } - pub fn clear_fstype(&mut self) { - self.fstype.clear(); - } - - // Param is passed by value, moved - pub fn set_fstype(&mut self, v: ::std::string::String) { - self.fstype = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_fstype(&mut self) -> &mut ::std::string::String { - &mut self.fstype - } - - // Take field - pub fn take_fstype(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.fstype, ::std::string::String::new()) - } - - // repeated string options = 5; - - - pub fn get_options(&self) -> &[::std::string::String] { - &self.options - } - pub fn clear_options(&mut self) { - self.options.clear(); - } - - // Param is passed by value, moved - pub fn set_options(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.options = v; - } - - // Mutable pointer to the field. - pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.options - } - - // Take field - pub fn take_options(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new()) - } - - // string mount_point = 6; - - - pub fn get_mount_point(&self) -> &str { - &self.mount_point - } - pub fn clear_mount_point(&mut self) { - self.mount_point.clear(); - } - - // Param is passed by value, moved - pub fn set_mount_point(&mut self, v: ::std::string::String) { - self.mount_point = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_mount_point(&mut self) -> &mut ::std::string::String { - &mut self.mount_point - } - - // Take field - pub fn take_mount_point(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.mount_point, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Storage { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.driver)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.driver_options)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.fstype)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.options)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.mount_point)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.driver.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.driver); - } - for value in &self.driver_options { - my_size += ::protobuf::rt::string_size(2, &value); - }; - if !self.source.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.source); - } - if !self.fstype.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.fstype); - } - for value in &self.options { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if !self.mount_point.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.mount_point); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.driver.is_empty() { - os.write_string(1, &self.driver)?; - } - for v in &self.driver_options { - os.write_string(2, &v)?; - }; - if !self.source.is_empty() { - os.write_string(3, &self.source)?; - } - if !self.fstype.is_empty() { - os.write_string(4, &self.fstype)?; - } - for v in &self.options { - os.write_string(5, &v)?; - }; - if !self.mount_point.is_empty() { - os.write_string(6, &self.mount_point)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Storage { - Storage::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "driver", - |m: &Storage| { &m.driver }, - |m: &mut Storage| { &mut m.driver }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "driver_options", - |m: &Storage| { &m.driver_options }, - |m: &mut Storage| { &mut m.driver_options }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source", - |m: &Storage| { &m.source }, - |m: &mut Storage| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "fstype", - |m: &Storage| { &m.fstype }, - |m: &mut Storage| { &mut m.fstype }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "options", - |m: &Storage| { &m.options }, - |m: &mut Storage| { &mut m.options }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "mount_point", - |m: &Storage| { &m.mount_point }, - |m: &mut Storage| { &mut m.mount_point }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Storage", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Storage { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Storage::new) - } - } -} - -impl ::protobuf::Clear for Storage { - fn clear(&mut self) { - self.driver.clear(); - self.driver_options.clear(); - self.source.clear(); - self.fstype.clear(); - self.options.clear(); - self.mount_point.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Storage { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Storage { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Device { - // message fields - pub id: ::std::string::String, - pub field_type: ::std::string::String, - pub vm_path: ::std::string::String, - pub container_path: ::std::string::String, - pub options: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Device { - fn default() -> &'a Device { - ::default_instance() - } -} - -impl Device { - pub fn new() -> Device { - ::std::default::Default::default() - } - - // string id = 1; - - - pub fn get_id(&self) -> &str { - &self.id - } - pub fn clear_id(&mut self) { - self.id.clear(); - } - - // Param is passed by value, moved - pub fn set_id(&mut self, v: ::std::string::String) { - self.id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_id(&mut self) -> &mut ::std::string::String { - &mut self.id - } - - // Take field - pub fn take_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.id, ::std::string::String::new()) - } - - // string type = 2; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // string vm_path = 3; - - - pub fn get_vm_path(&self) -> &str { - &self.vm_path - } - pub fn clear_vm_path(&mut self) { - self.vm_path.clear(); - } - - // Param is passed by value, moved - pub fn set_vm_path(&mut self, v: ::std::string::String) { - self.vm_path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_vm_path(&mut self) -> &mut ::std::string::String { - &mut self.vm_path - } - - // Take field - pub fn take_vm_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.vm_path, ::std::string::String::new()) - } - - // string container_path = 4; - - - pub fn get_container_path(&self) -> &str { - &self.container_path - } - pub fn clear_container_path(&mut self) { - self.container_path.clear(); - } - - // Param is passed by value, moved - pub fn set_container_path(&mut self, v: ::std::string::String) { - self.container_path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_path(&mut self) -> &mut ::std::string::String { - &mut self.container_path - } - - // Take field - pub fn take_container_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_path, ::std::string::String::new()) - } - - // repeated string options = 5; - - - pub fn get_options(&self) -> &[::std::string::String] { - &self.options - } - pub fn clear_options(&mut self) { - self.options.clear(); - } - - // Param is passed by value, moved - pub fn set_options(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.options = v; - } - - // Mutable pointer to the field. - pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.options - } - - // Take field - pub fn take_options(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Device { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.vm_path)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_path)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.options)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.id); - } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.field_type); - } - if !self.vm_path.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.vm_path); - } - if !self.container_path.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.container_path); - } - for value in &self.options { - my_size += ::protobuf::rt::string_size(5, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.id.is_empty() { - os.write_string(1, &self.id)?; - } - if !self.field_type.is_empty() { - os.write_string(2, &self.field_type)?; - } - if !self.vm_path.is_empty() { - os.write_string(3, &self.vm_path)?; - } - if !self.container_path.is_empty() { - os.write_string(4, &self.container_path)?; - } - for v in &self.options { - os.write_string(5, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Device { - Device::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "id", - |m: &Device| { &m.id }, - |m: &mut Device| { &mut m.id }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &Device| { &m.field_type }, - |m: &mut Device| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "vm_path", - |m: &Device| { &m.vm_path }, - |m: &mut Device| { &mut m.vm_path }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_path", - |m: &Device| { &m.container_path }, - |m: &mut Device| { &mut m.container_path }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "options", - |m: &Device| { &m.options }, - |m: &mut Device| { &mut m.options }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Device", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Device { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Device::new) - } - } -} - -impl ::protobuf::Clear for Device { - fn clear(&mut self) { - self.id.clear(); - self.field_type.clear(); - self.vm_path.clear(); - self.container_path.clear(); - self.options.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Device { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Device { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StringUser { - // message fields - pub uid: ::std::string::String, - pub gid: ::std::string::String, - pub additionalGids: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StringUser { - fn default() -> &'a StringUser { - ::default_instance() - } -} - -impl StringUser { - pub fn new() -> StringUser { - ::std::default::Default::default() - } - - // string uid = 1; - - - pub fn get_uid(&self) -> &str { - &self.uid - } - pub fn clear_uid(&mut self) { - self.uid.clear(); - } - - // Param is passed by value, moved - pub fn set_uid(&mut self, v: ::std::string::String) { - self.uid = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_uid(&mut self) -> &mut ::std::string::String { - &mut self.uid - } - - // Take field - pub fn take_uid(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.uid, ::std::string::String::new()) - } - - // string gid = 2; - - - pub fn get_gid(&self) -> &str { - &self.gid - } - pub fn clear_gid(&mut self) { - self.gid.clear(); - } - - // Param is passed by value, moved - pub fn set_gid(&mut self, v: ::std::string::String) { - self.gid = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gid(&mut self) -> &mut ::std::string::String { - &mut self.gid - } - - // Take field - pub fn take_gid(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.gid, ::std::string::String::new()) - } - - // repeated string additionalGids = 3; - - - pub fn get_additionalGids(&self) -> &[::std::string::String] { - &self.additionalGids - } - pub fn clear_additionalGids(&mut self) { - self.additionalGids.clear(); - } - - // Param is passed by value, moved - pub fn set_additionalGids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.additionalGids = v; - } - - // Mutable pointer to the field. - pub fn mut_additionalGids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.additionalGids - } - - // Take field - pub fn take_additionalGids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.additionalGids, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for StringUser { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uid)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gid)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.additionalGids)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.uid.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.uid); - } - if !self.gid.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.gid); - } - for value in &self.additionalGids { - my_size += ::protobuf::rt::string_size(3, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.uid.is_empty() { - os.write_string(1, &self.uid)?; - } - if !self.gid.is_empty() { - os.write_string(2, &self.gid)?; - } - for v in &self.additionalGids { - os.write_string(3, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StringUser { - StringUser::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "uid", - |m: &StringUser| { &m.uid }, - |m: &mut StringUser| { &mut m.uid }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gid", - |m: &StringUser| { &m.gid }, - |m: &mut StringUser| { &mut m.gid }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "additionalGids", - |m: &StringUser| { &m.additionalGids }, - |m: &mut StringUser| { &mut m.additionalGids }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StringUser", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static StringUser { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(StringUser::new) - } - } -} - -impl ::protobuf::Clear for StringUser { - fn clear(&mut self) { - self.uid.clear(); - self.gid.clear(); - self.additionalGids.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StringUser { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StringUser { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct CopyFileRequest { - // message fields - pub path: ::std::string::String, - pub file_size: i64, - pub file_mode: u32, - pub dir_mode: u32, - pub uid: i32, - pub gid: i32, - pub offset: i64, - pub data: ::std::vec::Vec, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CopyFileRequest { - fn default() -> &'a CopyFileRequest { - ::default_instance() - } -} - -impl CopyFileRequest { - pub fn new() -> CopyFileRequest { - ::std::default::Default::default() - } - - // string path = 1; - - - pub fn get_path(&self) -> &str { - &self.path - } - pub fn clear_path(&mut self) { - self.path.clear(); - } - - // Param is passed by value, moved - pub fn set_path(&mut self, v: ::std::string::String) { - self.path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_path(&mut self) -> &mut ::std::string::String { - &mut self.path - } - - // Take field - pub fn take_path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.path, ::std::string::String::new()) - } - - // int64 file_size = 2; - - - pub fn get_file_size(&self) -> i64 { - self.file_size - } - pub fn clear_file_size(&mut self) { - self.file_size = 0; - } - - // Param is passed by value, moved - pub fn set_file_size(&mut self, v: i64) { - self.file_size = v; - } - - // uint32 file_mode = 3; - - - pub fn get_file_mode(&self) -> u32 { - self.file_mode - } - pub fn clear_file_mode(&mut self) { - self.file_mode = 0; - } - - // Param is passed by value, moved - pub fn set_file_mode(&mut self, v: u32) { - self.file_mode = v; - } - - // uint32 dir_mode = 4; - - - pub fn get_dir_mode(&self) -> u32 { - self.dir_mode - } - pub fn clear_dir_mode(&mut self) { - self.dir_mode = 0; - } - - // Param is passed by value, moved - pub fn set_dir_mode(&mut self, v: u32) { - self.dir_mode = v; - } - - // int32 uid = 5; - - - pub fn get_uid(&self) -> i32 { - self.uid - } - pub fn clear_uid(&mut self) { - self.uid = 0; - } - - // Param is passed by value, moved - pub fn set_uid(&mut self, v: i32) { - self.uid = v; - } - - // int32 gid = 6; - - - pub fn get_gid(&self) -> i32 { - self.gid - } - pub fn clear_gid(&mut self) { - self.gid = 0; - } - - // Param is passed by value, moved - pub fn set_gid(&mut self, v: i32) { - self.gid = v; - } - - // int64 offset = 7; - - - pub fn get_offset(&self) -> i64 { - self.offset - } - pub fn clear_offset(&mut self) { - self.offset = 0; - } - - // Param is passed by value, moved - pub fn set_offset(&mut self, v: i64) { - self.offset = v; - } - - // bytes data = 8; - - - pub fn get_data(&self) -> &[u8] { - &self.data - } - pub fn clear_data(&mut self) { - self.data.clear(); - } - - // Param is passed by value, moved - pub fn set_data(&mut self, v: ::std::vec::Vec) { - self.data = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_data(&mut self) -> &mut ::std::vec::Vec { - &mut self.data - } - - // Take field - pub fn take_data(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.data, ::std::vec::Vec::new()) - } -} - -impl ::protobuf::Message for CopyFileRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.path)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.file_size = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.file_mode = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.dir_mode = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.uid = tmp; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.gid = tmp; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.offset = tmp; - }, - 8 => { - ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.data)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.path.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.path); - } - if self.file_size != 0 { - my_size += ::protobuf::rt::value_size(2, self.file_size, ::protobuf::wire_format::WireTypeVarint); - } - if self.file_mode != 0 { - my_size += ::protobuf::rt::value_size(3, self.file_mode, ::protobuf::wire_format::WireTypeVarint); - } - if self.dir_mode != 0 { - my_size += ::protobuf::rt::value_size(4, self.dir_mode, ::protobuf::wire_format::WireTypeVarint); - } - if self.uid != 0 { - my_size += ::protobuf::rt::value_size(5, self.uid, ::protobuf::wire_format::WireTypeVarint); - } - if self.gid != 0 { - my_size += ::protobuf::rt::value_size(6, self.gid, ::protobuf::wire_format::WireTypeVarint); - } - if self.offset != 0 { - my_size += ::protobuf::rt::value_size(7, self.offset, ::protobuf::wire_format::WireTypeVarint); - } - if !self.data.is_empty() { - my_size += ::protobuf::rt::bytes_size(8, &self.data); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.path.is_empty() { - os.write_string(1, &self.path)?; - } - if self.file_size != 0 { - os.write_int64(2, self.file_size)?; - } - if self.file_mode != 0 { - os.write_uint32(3, self.file_mode)?; - } - if self.dir_mode != 0 { - os.write_uint32(4, self.dir_mode)?; - } - if self.uid != 0 { - os.write_int32(5, self.uid)?; - } - if self.gid != 0 { - os.write_int32(6, self.gid)?; - } - if self.offset != 0 { - os.write_int64(7, self.offset)?; - } - if !self.data.is_empty() { - os.write_bytes(8, &self.data)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CopyFileRequest { - CopyFileRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "path", - |m: &CopyFileRequest| { &m.path }, - |m: &mut CopyFileRequest| { &mut m.path }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "file_size", - |m: &CopyFileRequest| { &m.file_size }, - |m: &mut CopyFileRequest| { &mut m.file_size }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "file_mode", - |m: &CopyFileRequest| { &m.file_mode }, - |m: &mut CopyFileRequest| { &mut m.file_mode }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "dir_mode", - |m: &CopyFileRequest| { &m.dir_mode }, - |m: &mut CopyFileRequest| { &mut m.dir_mode }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "uid", - |m: &CopyFileRequest| { &m.uid }, - |m: &mut CopyFileRequest| { &mut m.uid }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "gid", - |m: &CopyFileRequest| { &m.gid }, - |m: &mut CopyFileRequest| { &mut m.gid }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "offset", - |m: &CopyFileRequest| { &m.offset }, - |m: &mut CopyFileRequest| { &mut m.offset }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>( - "data", - |m: &CopyFileRequest| { &m.data }, - |m: &mut CopyFileRequest| { &mut m.data }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CopyFileRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static CopyFileRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(CopyFileRequest::new) - } - } -} - -impl ::protobuf::Clear for CopyFileRequest { - fn clear(&mut self) { - self.path.clear(); - self.file_size = 0; - self.file_mode = 0; - self.dir_mode = 0; - self.uid = 0; - self.gid = 0; - self.offset = 0; - self.data.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CopyFileRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CopyFileRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StartTracingRequest { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StartTracingRequest { - fn default() -> &'a StartTracingRequest { - ::default_instance() - } -} - -impl StartTracingRequest { - pub fn new() -> StartTracingRequest { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for StartTracingRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StartTracingRequest { - StartTracingRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StartTracingRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static StartTracingRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(StartTracingRequest::new) - } - } -} - -impl ::protobuf::Clear for StartTracingRequest { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StartTracingRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StartTracingRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct StopTracingRequest { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a StopTracingRequest { - fn default() -> &'a StopTracingRequest { - ::default_instance() - } -} - -impl StopTracingRequest { - pub fn new() -> StopTracingRequest { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for StopTracingRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> StopTracingRequest { - StopTracingRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "StopTracingRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static StopTracingRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(StopTracingRequest::new) - } - } -} - -impl ::protobuf::Clear for StopTracingRequest { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for StopTracingRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for StopTracingRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetOOMEventRequest { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetOOMEventRequest { - fn default() -> &'a GetOOMEventRequest { - ::default_instance() - } -} - -impl GetOOMEventRequest { - pub fn new() -> GetOOMEventRequest { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for GetOOMEventRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetOOMEventRequest { - GetOOMEventRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetOOMEventRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static GetOOMEventRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(GetOOMEventRequest::new) - } - } -} - -impl ::protobuf::Clear for GetOOMEventRequest { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetOOMEventRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetOOMEventRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct OOMEvent { - // message fields - pub container_id: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a OOMEvent { - fn default() -> &'a OOMEvent { - ::default_instance() - } -} - -impl OOMEvent { - pub fn new() -> OOMEvent { - ::std::default::Default::default() - } - - // string container_id = 1; - - - pub fn get_container_id(&self) -> &str { - &self.container_id - } - pub fn clear_container_id(&mut self) { - self.container_id.clear(); - } - - // Param is passed by value, moved - pub fn set_container_id(&mut self, v: ::std::string::String) { - self.container_id = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_container_id(&mut self) -> &mut ::std::string::String { - &mut self.container_id - } - - // Take field - pub fn take_container_id(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.container_id, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for OOMEvent { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.container_id)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.container_id.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.container_id); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.container_id.is_empty() { - os.write_string(1, &self.container_id)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> OOMEvent { - OOMEvent::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "container_id", - |m: &OOMEvent| { &m.container_id }, - |m: &mut OOMEvent| { &mut m.container_id }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "OOMEvent", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static OOMEvent { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(OOMEvent::new) - } - } -} - -impl ::protobuf::Clear for OOMEvent { - fn clear(&mut self) { - self.container_id.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for OOMEvent { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for OOMEvent { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct GetMetricsRequest { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a GetMetricsRequest { - fn default() -> &'a GetMetricsRequest { - ::default_instance() - } -} - -impl GetMetricsRequest { - pub fn new() -> GetMetricsRequest { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for GetMetricsRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> GetMetricsRequest { - GetMetricsRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "GetMetricsRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static GetMetricsRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(GetMetricsRequest::new) - } - } -} - -impl ::protobuf::Clear for GetMetricsRequest { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for GetMetricsRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for GetMetricsRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Metrics { - // message fields - pub metrics: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Metrics { - fn default() -> &'a Metrics { - ::default_instance() - } -} - -impl Metrics { - pub fn new() -> Metrics { - ::std::default::Default::default() - } - - // string metrics = 1; - - - pub fn get_metrics(&self) -> &str { - &self.metrics - } - pub fn clear_metrics(&mut self) { - self.metrics.clear(); - } - - // Param is passed by value, moved - pub fn set_metrics(&mut self, v: ::std::string::String) { - self.metrics = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_metrics(&mut self) -> &mut ::std::string::String { - &mut self.metrics - } - - // Take field - pub fn take_metrics(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.metrics, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Metrics { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.metrics)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.metrics.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.metrics); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.metrics.is_empty() { - os.write_string(1, &self.metrics)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Metrics { - Metrics::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "metrics", - |m: &Metrics| { &m.metrics }, - |m: &mut Metrics| { &mut m.metrics }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Metrics", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Metrics { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Metrics::new) - } - } -} - -impl ::protobuf::Clear for Metrics { - fn clear(&mut self) { - self.metrics.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Metrics { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Metrics { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \nQgithub.com/kata-containers/kata-containers/src/agent/protocols/protos\ - /agent.proto\x12\x04grpc\x1aOgithub.com/kata-containers/kata-containers/\ - src/agent/protocols/protos/oci.proto\x1a|github.com/kata-containers/kata\ - -containers/src/agent/protocols/protos/github.com/kata-containers/agent/\ - pkg/types/types.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x9d\x02\n\x16\ - CreateContainerRequest\x12!\n\x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcon\ - tainerId\x12\x17\n\x07exec_id\x18\x02\x20\x01(\tR\x06execId\x121\n\x0bst\ - ring_user\x18\x03\x20\x01(\x0b2\x10.grpc.StringUserR\nstringUser\x12&\n\ - \x07devices\x18\x04\x20\x03(\x0b2\x0c.grpc.DeviceR\x07devices\x12)\n\x08\ - storages\x18\x05\x20\x03(\x0b2\r.grpc.StorageR\x08storages\x12\x1c\n\x03\ - OCI\x18\x06\x20\x01(\x0b2\n.grpc.SpecR\x03OCI\x12#\n\rsandbox_pidns\x18\ - \x07\x20\x01(\x08R\x0csandboxPidns\":\n\x15StartContainerRequest\x12!\n\ - \x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcontainerId\"U\n\x16RemoveContai\ - nerRequest\x12!\n\x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcontainerId\x12\ - \x18\n\x07timeout\x18\x02\x20\x01(\rR\x07timeout\"\xac\x01\n\x12ExecProc\ - essRequest\x12!\n\x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcontainerId\x12\ - \x17\n\x07exec_id\x18\x02\x20\x01(\tR\x06execId\x121\n\x0bstring_user\ - \x18\x03\x20\x01(\x0b2\x10.grpc.StringUserR\nstringUser\x12'\n\x07proces\ - s\x18\x04\x20\x01(\x0b2\r.grpc.ProcessR\x07process\"j\n\x14SignalProcess\ - Request\x12!\n\x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcontainerId\x12\ - \x17\n\x07exec_id\x18\x02\x20\x01(\tR\x06execId\x12\x16\n\x06signal\x18\ - \x03\x20\x01(\rR\x06signal\"P\n\x12WaitProcessRequest\x12!\n\x0ccontaine\ - r_id\x18\x01\x20\x01(\tR\x0bcontainerId\x12\x17\n\x07exec_id\x18\x02\x20\ - \x01(\tR\x06execId\"-\n\x13WaitProcessResponse\x12\x16\n\x06status\x18\ - \x01\x20\x01(\x05R\x06status\"e\n\x14ListProcessesRequest\x12!\n\x0ccont\ - ainer_id\x18\x01\x20\x01(\tR\x0bcontainerId\x12\x16\n\x06format\x18\x02\ - \x20\x01(\tR\x06format\x12\x12\n\x04args\x18\x03\x20\x03(\tR\x04args\":\ - \n\x15ListProcessesResponse\x12!\n\x0cprocess_list\x18\x01\x20\x01(\x0cR\ - \x0bprocessList\"o\n\x16UpdateContainerRequest\x12!\n\x0ccontainer_id\ - \x18\x01\x20\x01(\tR\x0bcontainerId\x122\n\tresources\x18\x02\x20\x01(\ - \x0b2\x14.grpc.LinuxResourcesR\tresources\":\n\x15StatsContainerRequest\ - \x12!\n\x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcontainerId\":\n\x15Pause\ - ContainerRequest\x12!\n\x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcontainer\ - Id\";\n\x16ResumeContainerRequest\x12!\n\x0ccontainer_id\x18\x01\x20\x01\ - (\tR\x0bcontainerId\"\xaa\x01\n\x08CpuUsage\x12\x1f\n\x0btotal_usage\x18\ - \x01\x20\x01(\x04R\ntotalUsage\x12!\n\x0cpercpu_usage\x18\x02\x20\x03(\ - \x04R\x0bpercpuUsage\x12.\n\x13usage_in_kernelmode\x18\x03\x20\x01(\x04R\ - \x11usageInKernelmode\x12*\n\x11usage_in_usermode\x18\x04\x20\x01(\x04R\ - \x0fusageInUsermode\"~\n\x0eThrottlingData\x12\x18\n\x07periods\x18\x01\ - \x20\x01(\x04R\x07periods\x12+\n\x11throttled_periods\x18\x02\x20\x01(\ - \x04R\x10throttledPeriods\x12%\n\x0ethrottled_time\x18\x03\x20\x01(\x04R\ - \rthrottledTime\"v\n\x08CpuStats\x12+\n\tcpu_usage\x18\x01\x20\x01(\x0b2\ - \x0e.grpc.CpuUsageR\x08cpuUsage\x12=\n\x0fthrottling_data\x18\x02\x20\ - \x01(\x0b2\x14.grpc.ThrottlingDataR\x0ethrottlingData\";\n\tPidsStats\ - \x12\x18\n\x07current\x18\x01\x20\x01(\x04R\x07current\x12\x14\n\x05limi\ - t\x18\x02\x20\x01(\x04R\x05limit\"o\n\nMemoryData\x12\x14\n\x05usage\x18\ - \x01\x20\x01(\x04R\x05usage\x12\x1b\n\tmax_usage\x18\x02\x20\x01(\x04R\ - \x08maxUsage\x12\x18\n\x07failcnt\x18\x03\x20\x01(\x04R\x07failcnt\x12\ - \x14\n\x05limit\x18\x04\x20\x01(\x04R\x05limit\"\xc4\x02\n\x0bMemoryStat\ - s\x12\x14\n\x05cache\x18\x01\x20\x01(\x04R\x05cache\x12&\n\x05usage\x18\ - \x02\x20\x01(\x0b2\x10.grpc.MemoryDataR\x05usage\x12/\n\nswap_usage\x18\ - \x03\x20\x01(\x0b2\x10.grpc.MemoryDataR\tswapUsage\x123\n\x0ckernel_usag\ - e\x18\x04\x20\x01(\x0b2\x10.grpc.MemoryDataR\x0bkernelUsage\x12#\n\ruse_\ - hierarchy\x18\x05\x20\x01(\x08R\x0cuseHierarchy\x122\n\x05stats\x18\x06\ - \x20\x03(\x0b2\x1c.grpc.MemoryStats.StatsEntryR\x05stats\x1a8\n\nStatsEn\ - try\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\ - \x02\x20\x01(\x04R\x05value:\x028\x01\"c\n\x0fBlkioStatsEntry\x12\x14\n\ - \x05major\x18\x01\x20\x01(\x04R\x05major\x12\x14\n\x05minor\x18\x02\x20\ - \x01(\x04R\x05minor\x12\x0e\n\x02op\x18\x03\x20\x01(\tR\x02op\x12\x14\n\ - \x05value\x18\x04\x20\x01(\x04R\x05value\"\xde\x04\n\nBlkioStats\x12R\n\ - \x1aio_service_bytes_recursive\x18\x01\x20\x03(\x0b2\x15.grpc.BlkioStats\ - EntryR\x17ioServiceBytesRecursive\x12I\n\x15io_serviced_recursive\x18\ - \x02\x20\x03(\x0b2\x15.grpc.BlkioStatsEntryR\x13ioServicedRecursive\x12E\ - \n\x13io_queued_recursive\x18\x03\x20\x03(\x0b2\x15.grpc.BlkioStatsEntry\ - R\x11ioQueuedRecursive\x12P\n\x19io_service_time_recursive\x18\x04\x20\ - \x03(\x0b2\x15.grpc.BlkioStatsEntryR\x16ioServiceTimeRecursive\x12J\n\ - \x16io_wait_time_recursive\x18\x05\x20\x03(\x0b2\x15.grpc.BlkioStatsEntr\ - yR\x13ioWaitTimeRecursive\x12E\n\x13io_merged_recursive\x18\x06\x20\x03(\ - \x0b2\x15.grpc.BlkioStatsEntryR\x11ioMergedRecursive\x12A\n\x11io_time_r\ - ecursive\x18\x07\x20\x03(\x0b2\x15.grpc.BlkioStatsEntryR\x0fioTimeRecurs\ - ive\x12B\n\x11sectors_recursive\x18\x08\x20\x03(\x0b2\x15.grpc.BlkioStat\ - sEntryR\x10sectorsRecursive\"[\n\x0cHugetlbStats\x12\x14\n\x05usage\x18\ - \x01\x20\x01(\x04R\x05usage\x12\x1b\n\tmax_usage\x18\x02\x20\x01(\x04R\ - \x08maxUsage\x12\x18\n\x07failcnt\x18\x03\x20\x01(\x04R\x07failcnt\"\xf2\ - \x02\n\x0bCgroupStats\x12+\n\tcpu_stats\x18\x01\x20\x01(\x0b2\x0e.grpc.C\ - puStatsR\x08cpuStats\x124\n\x0cmemory_stats\x18\x02\x20\x01(\x0b2\x11.gr\ - pc.MemoryStatsR\x0bmemoryStats\x12.\n\npids_stats\x18\x03\x20\x01(\x0b2\ - \x0f.grpc.PidsStatsR\tpidsStats\x121\n\x0bblkio_stats\x18\x04\x20\x01(\ - \x0b2\x10.grpc.BlkioStatsR\nblkioStats\x12H\n\rhugetlb_stats\x18\x05\x20\ - \x03(\x0b2#.grpc.CgroupStats.HugetlbStatsEntryR\x0chugetlbStats\x1aS\n\ - \x11HugetlbStatsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12(\n\ - \x05value\x18\x02\x20\x01(\x0b2\x12.grpc.HugetlbStatsR\x05value:\x028\ - \x01\"\x8e\x02\n\x0cNetworkStats\x12\x12\n\x04name\x18\x01\x20\x01(\tR\ - \x04name\x12\x19\n\x08rx_bytes\x18\x02\x20\x01(\x04R\x07rxBytes\x12\x1d\ - \n\nrx_packets\x18\x03\x20\x01(\x04R\trxPackets\x12\x1b\n\trx_errors\x18\ - \x04\x20\x01(\x04R\x08rxErrors\x12\x1d\n\nrx_dropped\x18\x05\x20\x01(\ - \x04R\trxDropped\x12\x19\n\x08tx_bytes\x18\x06\x20\x01(\x04R\x07txBytes\ - \x12\x1d\n\ntx_packets\x18\x07\x20\x01(\x04R\ttxPackets\x12\x1b\n\ttx_er\ - rors\x18\x08\x20\x01(\x04R\x08txErrors\x12\x1d\n\ntx_dropped\x18\t\x20\ - \x01(\x04R\ttxDropped\"\x87\x01\n\x16StatsContainerResponse\x124\n\x0ccg\ - roup_stats\x18\x01\x20\x01(\x0b2\x11.grpc.CgroupStatsR\x0bcgroupStats\ - \x127\n\rnetwork_stats\x18\x02\x20\x03(\x0b2\x12.grpc.NetworkStatsR\x0cn\ - etworkStats\"d\n\x12WriteStreamRequest\x12!\n\x0ccontainer_id\x18\x01\ - \x20\x01(\tR\x0bcontainerId\x12\x17\n\x07exec_id\x18\x02\x20\x01(\tR\x06\ - execId\x12\x12\n\x04data\x18\x03\x20\x01(\x0cR\x04data\"'\n\x13WriteStre\ - amResponse\x12\x10\n\x03len\x18\x01\x20\x01(\rR\x03len\"a\n\x11ReadStrea\ - mRequest\x12!\n\x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcontainerId\x12\ - \x17\n\x07exec_id\x18\x02\x20\x01(\tR\x06execId\x12\x10\n\x03len\x18\x03\ - \x20\x01(\rR\x03len\"(\n\x12ReadStreamResponse\x12\x12\n\x04data\x18\x01\ - \x20\x01(\x0cR\x04data\"O\n\x11CloseStdinRequest\x12!\n\x0ccontainer_id\ - \x18\x01\x20\x01(\tR\x0bcontainerId\x12\x17\n\x07exec_id\x18\x02\x20\x01\ - (\tR\x06execId\"{\n\x13TtyWinResizeRequest\x12!\n\x0ccontainer_id\x18\ - \x01\x20\x01(\tR\x0bcontainerId\x12\x17\n\x07exec_id\x18\x02\x20\x01(\tR\ - \x06execId\x12\x10\n\x03row\x18\x03\x20\x01(\rR\x03row\x12\x16\n\x06colu\ - mn\x18\x04\x20\x01(\rR\x06column\"B\n\x0cKernelModule\x12\x12\n\x04name\ - \x18\x01\x20\x01(\tR\x04name\x12\x1e\n\nparameters\x18\x02\x20\x03(\tR\n\ - parameters\"\x96\x02\n\x14CreateSandboxRequest\x12\x1a\n\x08hostname\x18\ - \x01\x20\x01(\tR\x08hostname\x12\x10\n\x03dns\x18\x02\x20\x03(\tR\x03dns\ - \x12)\n\x08storages\x18\x03\x20\x03(\x0b2\r.grpc.StorageR\x08storages\ - \x12#\n\rsandbox_pidns\x18\x04\x20\x01(\x08R\x0csandboxPidns\x12\x1d\n\n\ - sandbox_id\x18\x05\x20\x01(\tR\tsandboxId\x12&\n\x0fguest_hook_path\x18\ - \x06\x20\x01(\tR\rguestHookPath\x129\n\x0ekernel_modules\x18\x07\x20\x03\ - (\x0b2\x12.grpc.KernelModuleR\rkernelModules\"\x17\n\x15DestroySandboxRe\ - quest\">\n\nInterfaces\x120\n\nInterfaces\x18\x01\x20\x03(\x0b2\x10.type\ - s.InterfaceR\nInterfaces\".\n\x06Routes\x12$\n\x06Routes\x18\x01\x20\x03\ - (\x0b2\x0c.types.RouteR\x06Routes\"H\n\x16UpdateInterfaceRequest\x12.\n\ - \tinterface\x18\x01\x20\x01(\x0b2\x10.types.InterfaceR\tinterface\";\n\ - \x13UpdateRoutesRequest\x12$\n\x06routes\x18\x01\x20\x01(\x0b2\x0c.grpc.\ - RoutesR\x06routes\"\x17\n\x15ListInterfacesRequest\"\x13\n\x11ListRoutes\ - Request\"F\n\x0cARPNeighbors\x126\n\x0cARPNeighbors\x18\x01\x20\x03(\x0b\ - 2\x12.types.ARPNeighborR\x0cARPNeighbors\"J\n\x16AddARPNeighborsRequest\ - \x120\n\tneighbors\x18\x01\x20\x01(\x0b2\x12.grpc.ARPNeighborsR\tneighbo\ - rs\"]\n\x13OnlineCPUMemRequest\x12\x12\n\x04wait\x18\x01\x20\x01(\x08R\ - \x04wait\x12\x17\n\x07nb_cpus\x18\x02\x20\x01(\rR\x06nbCpus\x12\x19\n\ - \x08cpu_only\x18\x03\x20\x01(\x08R\x07cpuOnly\",\n\x16ReseedRandomDevReq\ - uest\x12\x12\n\x04data\x18\x02\x20\x01(\x0cR\x04data\"\xc8\x01\n\x0cAgen\ - tDetails\x12\x18\n\x07version\x18\x01\x20\x01(\tR\x07version\x12\x1f\n\ - \x0binit_daemon\x18\x02\x20\x01(\x08R\ninitDaemon\x12'\n\x0fdevice_handl\ - ers\x18\x03\x20\x03(\tR\x0edeviceHandlers\x12)\n\x10storage_handlers\x18\ - \x04\x20\x03(\tR\x0fstorageHandlers\x12)\n\x10supports_seccomp\x18\x05\ - \x20\x01(\x08R\x0fsupportsSeccomp\"g\n\x13GuestDetailsRequest\x12$\n\x0e\ - mem_block_size\x18\x01\x20\x01(\x08R\x0cmemBlockSize\x12*\n\x11mem_hotpl\ - ug_probe\x18\x02\x20\x01(\x08R\x0fmemHotplugProbe\"\xbb\x01\n\x14GuestDe\ - tailsResponse\x12/\n\x14mem_block_size_bytes\x18\x01\x20\x01(\x04R\x11me\ - mBlockSizeBytes\x127\n\ragent_details\x18\x02\x20\x01(\x0b2\x12.grpc.Age\ - ntDetailsR\x0cagentDetails\x129\n\x19support_mem_hotplug_probe\x18\x03\ - \x20\x01(\x08R\x16supportMemHotplugProbe\"L\n\x18MemHotplugByProbeReques\ - t\x120\n\x13memHotplugProbeAddr\x18\x01\x20\x03(\x04R\x13memHotplugProbe\ - Addr\"?\n\x17SetGuestDateTimeRequest\x12\x10\n\x03Sec\x18\x01\x20\x01(\ - \x03R\x03Sec\x12\x12\n\x04Usec\x18\x02\x20\x01(\x03R\x04Usec\"\xb3\x01\n\ - \x07Storage\x12\x16\n\x06driver\x18\x01\x20\x01(\tR\x06driver\x12%\n\x0e\ - driver_options\x18\x02\x20\x03(\tR\rdriverOptions\x12\x16\n\x06source\ - \x18\x03\x20\x01(\tR\x06source\x12\x16\n\x06fstype\x18\x04\x20\x01(\tR\ - \x06fstype\x12\x18\n\x07options\x18\x05\x20\x03(\tR\x07options\x12\x1f\n\ - \x0bmount_point\x18\x06\x20\x01(\tR\nmountPoint\"\x86\x01\n\x06Device\ - \x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\x12\x12\n\x04type\x18\x02\x20\ - \x01(\tR\x04type\x12\x17\n\x07vm_path\x18\x03\x20\x01(\tR\x06vmPath\x12%\ - \n\x0econtainer_path\x18\x04\x20\x01(\tR\rcontainerPath\x12\x18\n\x07opt\ - ions\x18\x05\x20\x03(\tR\x07options\"X\n\nStringUser\x12\x10\n\x03uid\ - \x18\x01\x20\x01(\tR\x03uid\x12\x10\n\x03gid\x18\x02\x20\x01(\tR\x03gid\ - \x12&\n\x0eadditionalGids\x18\x03\x20\x03(\tR\x0eadditionalGids\"\xca\ - \x01\n\x0fCopyFileRequest\x12\x12\n\x04path\x18\x01\x20\x01(\tR\x04path\ - \x12\x1b\n\tfile_size\x18\x02\x20\x01(\x03R\x08fileSize\x12\x1b\n\tfile_\ - mode\x18\x03\x20\x01(\rR\x08fileMode\x12\x19\n\x08dir_mode\x18\x04\x20\ - \x01(\rR\x07dirMode\x12\x10\n\x03uid\x18\x05\x20\x01(\x05R\x03uid\x12\ - \x10\n\x03gid\x18\x06\x20\x01(\x05R\x03gid\x12\x16\n\x06offset\x18\x07\ - \x20\x01(\x03R\x06offset\x12\x12\n\x04data\x18\x08\x20\x01(\x0cR\x04data\ - \"\x15\n\x13StartTracingRequest\"\x14\n\x12StopTracingRequest\"\x14\n\ - \x12GetOOMEventRequest\"-\n\x08OOMEvent\x12!\n\x0ccontainer_id\x18\x01\ - \x20\x01(\tR\x0bcontainerId\"\x13\n\x11GetMetricsRequest\"#\n\x07Metrics\ - \x12\x18\n\x07metrics\x18\x01\x20\x01(\tR\x07metrics2\xcb\x11\n\x0cAgent\ - Service\x12G\n\x0fCreateContainer\x12\x1c.grpc.CreateContainerRequest\ - \x1a\x16.google.protobuf.Empty\x12E\n\x0eStartContainer\x12\x1b.grpc.Sta\ - rtContainerRequest\x1a\x16.google.protobuf.Empty\x12G\n\x0fRemoveContain\ - er\x12\x1c.grpc.RemoveContainerRequest\x1a\x16.google.protobuf.Empty\x12\ - ?\n\x0bExecProcess\x12\x18.grpc.ExecProcessRequest\x1a\x16.google.protob\ - uf.Empty\x12C\n\rSignalProcess\x12\x1a.grpc.SignalProcessRequest\x1a\x16\ - .google.protobuf.Empty\x12B\n\x0bWaitProcess\x12\x18.grpc.WaitProcessReq\ - uest\x1a\x19.grpc.WaitProcessResponse\x12H\n\rListProcesses\x12\x1a.grpc\ - .ListProcessesRequest\x1a\x1b.grpc.ListProcessesResponse\x12G\n\x0fUpdat\ - eContainer\x12\x1c.grpc.UpdateContainerRequest\x1a\x16.google.protobuf.E\ - mpty\x12K\n\x0eStatsContainer\x12\x1b.grpc.StatsContainerRequest\x1a\x1c\ - .grpc.StatsContainerResponse\x12E\n\x0ePauseContainer\x12\x1b.grpc.Pause\ - ContainerRequest\x1a\x16.google.protobuf.Empty\x12G\n\x0fResumeContainer\ - \x12\x1c.grpc.ResumeContainerRequest\x1a\x16.google.protobuf.Empty\x12A\ - \n\nWriteStdin\x12\x18.grpc.WriteStreamRequest\x1a\x19.grpc.WriteStreamR\ - esponse\x12?\n\nReadStdout\x12\x17.grpc.ReadStreamRequest\x1a\x18.grpc.R\ - eadStreamResponse\x12?\n\nReadStderr\x12\x17.grpc.ReadStreamRequest\x1a\ - \x18.grpc.ReadStreamResponse\x12=\n\nCloseStdin\x12\x17.grpc.CloseStdinR\ - equest\x1a\x16.google.protobuf.Empty\x12A\n\x0cTtyWinResize\x12\x19.grpc\ - .TtyWinResizeRequest\x1a\x16.google.protobuf.Empty\x12A\n\x0fUpdateInter\ - face\x12\x1c.grpc.UpdateInterfaceRequest\x1a\x10.types.Interface\x127\n\ - \x0cUpdateRoutes\x12\x19.grpc.UpdateRoutesRequest\x1a\x0c.grpc.Routes\ - \x12?\n\x0eListInterfaces\x12\x1b.grpc.ListInterfacesRequest\x1a\x10.grp\ - c.Interfaces\x123\n\nListRoutes\x12\x17.grpc.ListRoutesRequest\x1a\x0c.g\ - rpc.Routes\x12G\n\x0fAddARPNeighbors\x12\x1c.grpc.AddARPNeighborsRequest\ - \x1a\x16.google.protobuf.Empty\x12A\n\x0cStartTracing\x12\x19.grpc.Start\ - TracingRequest\x1a\x16.google.protobuf.Empty\x12?\n\x0bStopTracing\x12\ - \x18.grpc.StopTracingRequest\x1a\x16.google.protobuf.Empty\x124\n\nGetMe\ - trics\x12\x17.grpc.GetMetricsRequest\x1a\r.grpc.Metrics\x12C\n\rCreateSa\ - ndbox\x12\x1a.grpc.CreateSandboxRequest\x1a\x16.google.protobuf.Empty\ - \x12E\n\x0eDestroySandbox\x12\x1b.grpc.DestroySandboxRequest\x1a\x16.goo\ - gle.protobuf.Empty\x12A\n\x0cOnlineCPUMem\x12\x19.grpc.OnlineCPUMemReque\ - st\x1a\x16.google.protobuf.Empty\x12G\n\x0fReseedRandomDev\x12\x1c.grpc.\ - ReseedRandomDevRequest\x1a\x16.google.protobuf.Empty\x12H\n\x0fGetGuestD\ - etails\x12\x19.grpc.GuestDetailsRequest\x1a\x1a.grpc.GuestDetailsRespons\ - e\x12K\n\x11MemHotplugByProbe\x12\x1e.grpc.MemHotplugByProbeRequest\x1a\ - \x16.google.protobuf.Empty\x12I\n\x10SetGuestDateTime\x12\x1d.grpc.SetGu\ - estDateTimeRequest\x1a\x16.google.protobuf.Empty\x129\n\x08CopyFile\x12\ - \x15.grpc.CopyFileRequest\x1a\x16.google.protobuf.Empty\x127\n\x0bGetOOM\ - Event\x12\x18.grpc.GetOOMEventRequest\x1a\x0e.grpc.OOMEventB`Z^github.co\ - m/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/agent/p\ - rotocols/grpcJ\x80\x9e\x01\n\x07\x12\x05\x07\0\x8a\x04\x01\nm\n\x01\x0c\ - \x12\x03\x07\0\x122c\n\x20Copyright\x202017\x20HyperHQ\x20Inc.\n\x20Copy\ - right\x202019\x20Ant\x20Financial\n\n\x20SPDX-License-Identifier:\x20Apa\ - che-2.0\n\n\n\x08\n\x01\x08\x12\x03\t\0u\n\t\n\x02\x08\x0b\x12\x03\t\0u\ - \n\x08\n\x01\x02\x12\x03\x0b\0\r\n\t\n\x02\x03\0\x12\x03\r\0Y\n\n\n\x02\ - \x03\x01\x12\x04\x0e\0\x86\x01\n\t\n\x02\x03\x02\x12\x03\x10\0%\n\x16\n\ - \x02\x06\0\x12\x04\x13\0E\x01\x1a\n\x20unstable\n\n\n\n\x03\x06\0\x01\ - \x12\x03\x13\x08\x14\n\x18\n\x04\x06\0\x02\0\x12\x03\x15\x08T\x1a\x0b\ - \x20execution\n\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03\x15\x0c\x1b\n\x0c\n\ - \x05\x06\0\x02\0\x02\x12\x03\x15\x1c2\n\x0c\n\x05\x06\0\x02\0\x03\x12\ - \x03\x15=R\n\x0b\n\x04\x06\0\x02\x01\x12\x03\x16\x08R\n\x0c\n\x05\x06\0\ - \x02\x01\x01\x12\x03\x16\x0c\x1a\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03\ - \x16\x1b0\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03\x16;P\n\x9c\x03\n\x04\ - \x06\0\x02\x02\x12\x03\x1e\x08T\x1a\x8e\x03\x20RemoveContainer\x20will\ - \x20tear\x20down\x20an\x20existing\x20container\x20by\x20forcibly\x20ter\ - minating\n\x20all\x20processes\x20running\x20inside\x20that\x20container\ - \x20and\x20releasing\x20all\x20internal\n\x20resources\x20associated\x20\ - with\x20it.\n\x20RemoveContainer\x20will\x20wait\x20for\x20all\x20proces\ - ses\x20termination\x20before\x20returning.\n\x20If\x20any\x20process\x20\ - can\x20not\x20be\x20killed\x20or\x20if\x20it\x20can\x20not\x20be\x20kill\ - ed\x20after\n\x20the\x20RemoveContainerRequest\x20timeout,\x20RemoveCont\ - ainer\x20will\x20return\x20an\x20error.\n\n\x0c\n\x05\x06\0\x02\x02\x01\ - \x12\x03\x1e\x0c\x1b\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03\x1e\x1c2\n\ - \x0c\n\x05\x06\0\x02\x02\x03\x12\x03\x1e=R\n\x0b\n\x04\x06\0\x02\x03\x12\ - \x03\x1f\x08L\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03\x1f\x0c\x17\n\x0c\n\ - \x05\x06\0\x02\x03\x02\x12\x03\x1f\x18*\n\x0c\n\x05\x06\0\x02\x03\x03\ - \x12\x03\x1f5J\n\x0b\n\x04\x06\0\x02\x04\x12\x03\x20\x08P\n\x0c\n\x05\ - \x06\0\x02\x04\x01\x12\x03\x20\x0c\x19\n\x0c\n\x05\x06\0\x02\x04\x02\x12\ - \x03\x20\x1a.\n\x0c\n\x05\x06\0\x02\x04\x03\x12\x03\x209N\n*\n\x04\x06\0\ - \x02\x05\x12\x03!\x08J\"\x1d\x20wait\x20&\x20reap\x20like\x20waitpid(2)\ - \n\n\x0c\n\x05\x06\0\x02\x05\x01\x12\x03!\x0c\x17\n\x0c\n\x05\x06\0\x02\ - \x05\x02\x12\x03!\x18*\n\x0c\n\x05\x06\0\x02\x05\x03\x12\x03!5H\n\x0b\n\ - \x04\x06\0\x02\x06\x12\x03\"\x08P\n\x0c\n\x05\x06\0\x02\x06\x01\x12\x03\ - \"\x0c\x19\n\x0c\n\x05\x06\0\x02\x06\x02\x12\x03\"\x1a.\n\x0c\n\x05\x06\ - \0\x02\x06\x03\x12\x03\"9N\n\x0b\n\x04\x06\0\x02\x07\x12\x03#\x08T\n\x0c\ - \n\x05\x06\0\x02\x07\x01\x12\x03#\x0c\x1b\n\x0c\n\x05\x06\0\x02\x07\x02\ - \x12\x03#\x1c2\n\x0c\n\x05\x06\0\x02\x07\x03\x12\x03#=R\n\x0b\n\x04\x06\ - \0\x02\x08\x12\x03$\x08S\n\x0c\n\x05\x06\0\x02\x08\x01\x12\x03$\x0c\x1a\ - \n\x0c\n\x05\x06\0\x02\x08\x02\x12\x03$\x1b0\n\x0c\n\x05\x06\0\x02\x08\ - \x03\x12\x03$;Q\n\x0b\n\x04\x06\0\x02\t\x12\x03%\x08R\n\x0c\n\x05\x06\0\ - \x02\t\x01\x12\x03%\x0c\x1a\n\x0c\n\x05\x06\0\x02\t\x02\x12\x03%\x1b0\n\ - \x0c\n\x05\x06\0\x02\t\x03\x12\x03%;P\n\x0b\n\x04\x06\0\x02\n\x12\x03&\ - \x08T\n\x0c\n\x05\x06\0\x02\n\x01\x12\x03&\x0c\x1b\n\x0c\n\x05\x06\0\x02\ - \n\x02\x12\x03&\x1c2\n\x0c\n\x05\x06\0\x02\n\x03\x12\x03&=R\n\x14\n\x04\ - \x06\0\x02\x0b\x12\x03)\x08I\x1a\x07\x20stdio\n\n\x0c\n\x05\x06\0\x02\ - \x0b\x01\x12\x03)\x0c\x16\n\x0c\n\x05\x06\0\x02\x0b\x02\x12\x03)\x17)\n\ - \x0c\n\x05\x06\0\x02\x0b\x03\x12\x03)4G\n\x0b\n\x04\x06\0\x02\x0c\x12\ - \x03*\x08G\n\x0c\n\x05\x06\0\x02\x0c\x01\x12\x03*\x0c\x16\n\x0c\n\x05\ - \x06\0\x02\x0c\x02\x12\x03*\x17(\n\x0c\n\x05\x06\0\x02\x0c\x03\x12\x03*3\ - E\n\x0b\n\x04\x06\0\x02\r\x12\x03+\x08G\n\x0c\n\x05\x06\0\x02\r\x01\x12\ - \x03+\x0c\x16\n\x0c\n\x05\x06\0\x02\r\x02\x12\x03+\x17(\n\x0c\n\x05\x06\ - \0\x02\r\x03\x12\x03+3E\n\x0b\n\x04\x06\0\x02\x0e\x12\x03,\x08J\n\x0c\n\ - \x05\x06\0\x02\x0e\x01\x12\x03,\x0c\x16\n\x0c\n\x05\x06\0\x02\x0e\x02\ - \x12\x03,\x17(\n\x0c\n\x05\x06\0\x02\x0e\x03\x12\x03,3H\n\x0b\n\x04\x06\ - \0\x02\x0f\x12\x03-\x08N\n\x0c\n\x05\x06\0\x02\x0f\x01\x12\x03-\x0c\x18\ - \n\x0c\n\x05\x06\0\x02\x0f\x02\x12\x03-\x19,\n\x0c\n\x05\x06\0\x02\x0f\ - \x03\x12\x03-7L\n\x19\n\x04\x06\0\x02\x10\x12\x030\x08N\x1a\x0c\x20netwo\ - rking\n\n\x0c\n\x05\x06\0\x02\x10\x01\x12\x030\x0c\x1b\n\x0c\n\x05\x06\0\ - \x02\x10\x02\x12\x030\x1c2\n\x0c\n\x05\x06\0\x02\x10\x03\x12\x030=L\n\ - \x0b\n\x04\x06\0\x02\x11\x12\x031\x08?\n\x0c\n\x05\x06\0\x02\x11\x01\x12\ - \x031\x0c\x18\n\x0c\n\x05\x06\0\x02\x11\x02\x12\x031\x19,\n\x0c\n\x05\ - \x06\0\x02\x11\x03\x12\x0317=\n\x0b\n\x04\x06\0\x02\x12\x12\x032\x08F\n\ - \x0c\n\x05\x06\0\x02\x12\x01\x12\x032\x0c\x1a\n\x0c\n\x05\x06\0\x02\x12\ - \x02\x12\x032\x1b0\n\x0c\n\x05\x06\0\x02\x12\x03\x12\x032:D\n\x0b\n\x04\ - \x06\0\x02\x13\x12\x033\x08;\n\x0c\n\x05\x06\0\x02\x13\x01\x12\x033\x0c\ - \x16\n\x0c\n\x05\x06\0\x02\x13\x02\x12\x033\x17(\n\x0c\n\x05\x06\0\x02\ - \x13\x03\x12\x03339\n\x0b\n\x04\x06\0\x02\x14\x12\x034\x08T\n\x0c\n\x05\ - \x06\0\x02\x14\x01\x12\x034\x0c\x1b\n\x0c\n\x05\x06\0\x02\x14\x02\x12\ - \x034\x1c2\n\x0c\n\x05\x06\0\x02\x14\x03\x12\x034=R\n\x1c\n\x04\x06\0\ - \x02\x15\x12\x037\x08N\x1a\x0f\x20observability\n\n\x0c\n\x05\x06\0\x02\ - \x15\x01\x12\x037\x0c\x18\n\x0c\n\x05\x06\0\x02\x15\x02\x12\x037\x19,\n\ - \x0c\n\x05\x06\0\x02\x15\x03\x12\x0377L\n\x0b\n\x04\x06\0\x02\x16\x12\ - \x038\x08L\n\x0c\n\x05\x06\0\x02\x16\x01\x12\x038\x0c\x17\n\x0c\n\x05\ - \x06\0\x02\x16\x02\x12\x038\x18*\n\x0c\n\x05\x06\0\x02\x16\x03\x12\x0385\ - J\n\x0b\n\x04\x06\0\x02\x17\x12\x039\x08<\n\x0c\n\x05\x06\0\x02\x17\x01\ - \x12\x039\x0c\x16\n\x0c\n\x05\x06\0\x02\x17\x02\x12\x039\x17(\n\x0c\n\ - \x05\x06\0\x02\x17\x03\x12\x0393:\nH\n\x04\x06\0\x02\x18\x12\x03<\x08P\ - \x1a;\x20misc\x20(TODO:\x20some\x20rpcs\x20can\x20be\x20replaced\x20by\ - \x20hyperstart-exec)\n\n\x0c\n\x05\x06\0\x02\x18\x01\x12\x03<\x0c\x19\n\ - \x0c\n\x05\x06\0\x02\x18\x02\x12\x03<\x1a.\n\x0c\n\x05\x06\0\x02\x18\x03\ - \x12\x03<9N\n\x0b\n\x04\x06\0\x02\x19\x12\x03=\x08R\n\x0c\n\x05\x06\0\ - \x02\x19\x01\x12\x03=\x0c\x1a\n\x0c\n\x05\x06\0\x02\x19\x02\x12\x03=\x1b\ - 0\n\x0c\n\x05\x06\0\x02\x19\x03\x12\x03=;P\n\x0b\n\x04\x06\0\x02\x1a\x12\ - \x03>\x08N\n\x0c\n\x05\x06\0\x02\x1a\x01\x12\x03>\x0c\x18\n\x0c\n\x05\ - \x06\0\x02\x1a\x02\x12\x03>\x19,\n\x0c\n\x05\x06\0\x02\x1a\x03\x12\x03>7\ - L\n\x0b\n\x04\x06\0\x02\x1b\x12\x03?\x08T\n\x0c\n\x05\x06\0\x02\x1b\x01\ - \x12\x03?\x0c\x1b\n\x0c\n\x05\x06\0\x02\x1b\x02\x12\x03?\x1c2\n\x0c\n\ - \x05\x06\0\x02\x1b\x03\x12\x03?=R\n\x0b\n\x04\x06\0\x02\x1c\x12\x03@\x08\ - P\n\x0c\n\x05\x06\0\x02\x1c\x01\x12\x03@\x0c\x1b\n\x0c\n\x05\x06\0\x02\ - \x1c\x02\x12\x03@\x1c/\n\x0c\n\x05\x06\0\x02\x1c\x03\x12\x03@:N\n\x0b\n\ - \x04\x06\0\x02\x1d\x12\x03A\x08X\n\x0c\n\x05\x06\0\x02\x1d\x01\x12\x03A\ - \x0c\x1d\n\x0c\n\x05\x06\0\x02\x1d\x02\x12\x03A\x1e6\n\x0c\n\x05\x06\0\ - \x02\x1d\x03\x12\x03AAV\n\x0b\n\x04\x06\0\x02\x1e\x12\x03B\x08V\n\x0c\n\ - \x05\x06\0\x02\x1e\x01\x12\x03B\x0c\x1c\n\x0c\n\x05\x06\0\x02\x1e\x02\ - \x12\x03B\x1d4\n\x0c\n\x05\x06\0\x02\x1e\x03\x12\x03B?T\n\x0b\n\x04\x06\ - \0\x02\x1f\x12\x03C\x08F\n\x0c\n\x05\x06\0\x02\x1f\x01\x12\x03C\x0c\x14\ - \n\x0c\n\x05\x06\0\x02\x1f\x02\x12\x03C\x15$\n\x0c\n\x05\x06\0\x02\x1f\ - \x03\x12\x03C/D\n\x0b\n\x04\x06\0\x02\x20\x12\x03D\x08?\n\x0c\n\x05\x06\ - \0\x02\x20\x01\x12\x03D\x0c\x17\n\x0c\n\x05\x06\0\x02\x20\x02\x12\x03D\ - \x18*\n\x0c\n\x05\x06\0\x02\x20\x03\x12\x03D5=\n\n\n\x02\x04\0\x12\x04G\ - \0U\x01\n\n\n\x03\x04\0\x01\x12\x03G\x08\x1e\n\x0b\n\x04\x04\0\x02\0\x12\ - \x03H\x08\x20\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03H\x08\x0e\n\x0c\n\x05\ - \x04\0\x02\0\x01\x12\x03H\x0f\x1b\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03H\ - \x1e\x1f\n\x0b\n\x04\x04\0\x02\x01\x12\x03I\x08\x1b\n\x0c\n\x05\x04\0\ - \x02\x01\x05\x12\x03I\x08\x0e\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03I\x0f\ - \x16\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03I\x19\x1a\n\x0b\n\x04\x04\0\ - \x02\x02\x12\x03J\x08#\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03J\x08\x12\n\ - \x0c\n\x05\x04\0\x02\x02\x01\x12\x03J\x13\x1e\n\x0c\n\x05\x04\0\x02\x02\ - \x03\x12\x03J!\"\n\x0b\n\x04\x04\0\x02\x03\x12\x03K\x08$\n\x0c\n\x05\x04\ - \0\x02\x03\x04\x12\x03K\x08\x10\n\x0c\n\x05\x04\0\x02\x03\x06\x12\x03K\ - \x11\x17\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03K\x18\x1f\n\x0c\n\x05\x04\ - \0\x02\x03\x03\x12\x03K\"#\n\x0b\n\x04\x04\0\x02\x04\x12\x03L\x08&\n\x0c\ - \n\x05\x04\0\x02\x04\x04\x12\x03L\x08\x10\n\x0c\n\x05\x04\0\x02\x04\x06\ - \x12\x03L\x11\x18\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03L\x19!\n\x0c\n\ - \x05\x04\0\x02\x04\x03\x12\x03L$%\n\x0b\n\x04\x04\0\x02\x05\x12\x03M\x08\ - \x15\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03M\x08\x0c\n\x0c\n\x05\x04\0\ - \x02\x05\x01\x12\x03M\r\x10\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03M\x13\ - \x14\n\xba\x02\n\x04\x04\0\x02\x06\x12\x03T\x08\x1f\x1a\xac\x02\x20This\ - \x20field\x20is\x20used\x20to\x20indicate\x20if\x20the\x20container\x20n\ - eeds\x20to\x20join\n\x20sandbox\x20shared\x20pid\x20ns\x20or\x20create\ - \x20a\x20new\x20namespace.\x20This\x20field\x20is\n\x20meant\x20to\x20ov\ - erride\x20the\x20NEWPID\x20config\x20settings\x20in\x20the\x20OCI\x20spe\ - c.\n\x20The\x20agent\x20would\x20receive\x20an\x20OCI\x20spec\x20with\ - \x20PID\x20namespace\x20cleared\n\x20out\x20altogether\x20and\x20not\x20\ - just\x20the\x20pid\x20ns\x20path.\n\n\x0c\n\x05\x04\0\x02\x06\x05\x12\ - \x03T\x08\x0c\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03T\r\x1a\n\x0c\n\x05\ - \x04\0\x02\x06\x03\x12\x03T\x1d\x1e\n\n\n\x02\x04\x01\x12\x04W\0Y\x01\n\ - \n\n\x03\x04\x01\x01\x12\x03W\x08\x1d\n\x0b\n\x04\x04\x01\x02\0\x12\x03X\ - \x08\x20\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03X\x08\x0e\n\x0c\n\x05\x04\ - \x01\x02\0\x01\x12\x03X\x0f\x1b\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03X\ - \x1e\x1f\n\n\n\x02\x04\x02\x12\x04[\0d\x01\n\n\n\x03\x04\x02\x01\x12\x03\ - [\x08\x1e\n\x0b\n\x04\x04\x02\x02\0\x12\x03\\\x08\x20\n\x0c\n\x05\x04\ - \x02\x02\0\x05\x12\x03\\\x08\x0e\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\\\ - \x0f\x1b\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\\\x1e\x1f\n\xbc\x01\n\x04\ - \x04\x02\x02\x01\x12\x03c\x08\x1b\x1a\xae\x01\x20RemoveContainer\x20will\ - \x20return\x20an\x20error\x20if\n\x20it\x20could\x20not\x20kill\x20some\ - \x20container\x20processes\n\x20after\x20timeout\x20seconds.\n\x20Settin\ - g\x20timeout\x20to\x200\x20means\x20RemoveContainer\x20will\n\x20wait\ - \x20for\x20ever.\n\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03c\x08\x0e\n\ - \x0c\n\x05\x04\x02\x02\x01\x01\x12\x03c\x0f\x16\n\x0c\n\x05\x04\x02\x02\ - \x01\x03\x12\x03c\x19\x1a\n\n\n\x02\x04\x03\x12\x04f\0k\x01\n\n\n\x03\ - \x04\x03\x01\x12\x03f\x08\x1a\n\x0b\n\x04\x04\x03\x02\0\x12\x03g\x08\x20\ - \n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03g\x08\x0e\n\x0c\n\x05\x04\x03\x02\ - \0\x01\x12\x03g\x0f\x1b\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03g\x1e\x1f\n\ - \x0b\n\x04\x04\x03\x02\x01\x12\x03h\x08\x1b\n\x0c\n\x05\x04\x03\x02\x01\ - \x05\x12\x03h\x08\x0e\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03h\x0f\x16\n\ - \x0c\n\x05\x04\x03\x02\x01\x03\x12\x03h\x19\x1a\n\x0b\n\x04\x04\x03\x02\ - \x02\x12\x03i\x08#\n\x0c\n\x05\x04\x03\x02\x02\x06\x12\x03i\x08\x12\n\ - \x0c\n\x05\x04\x03\x02\x02\x01\x12\x03i\x13\x1e\n\x0c\n\x05\x04\x03\x02\ - \x02\x03\x12\x03i!\"\n\x0b\n\x04\x04\x03\x02\x03\x12\x03j\x08\x1c\n\x0c\ - \n\x05\x04\x03\x02\x03\x06\x12\x03j\x08\x0f\n\x0c\n\x05\x04\x03\x02\x03\ - \x01\x12\x03j\x10\x17\n\x0c\n\x05\x04\x03\x02\x03\x03\x12\x03j\x1a\x1b\n\ - \n\n\x02\x04\x04\x12\x04m\0u\x01\n\n\n\x03\x04\x04\x01\x12\x03m\x08\x1c\ - \n\x0b\n\x04\x04\x04\x02\0\x12\x03n\x08\x20\n\x0c\n\x05\x04\x04\x02\0\ - \x05\x12\x03n\x08\x0e\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03n\x0f\x1b\n\ - \x0c\n\x05\x04\x04\x02\0\x03\x12\x03n\x1e\x1f\n\xe8\x01\n\x04\x04\x04\ - \x02\x01\x12\x03s\x08\x1b\x1a\xda\x01\x20Special\x20case\x20for\x20Signa\ - lProcess():\x20exec_id\x20can\x20be\x20empty(\"\"),\n\x20which\x20means\ - \x20to\x20send\x20the\x20signal\x20to\x20all\x20the\x20processes\x20incl\ - uding\x20their\x20descendants.\n\x20Other\x20APIs\x20with\x20exec_id\x20\ - should\x20treat\x20empty\x20exec_id\x20as\x20an\x20invalid\x20request.\n\ - \n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03s\x08\x0e\n\x0c\n\x05\x04\x04\ - \x02\x01\x01\x12\x03s\x0f\x16\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03s\ - \x19\x1a\n\x0b\n\x04\x04\x04\x02\x02\x12\x03t\x08\x1a\n\x0c\n\x05\x04\ - \x04\x02\x02\x05\x12\x03t\x08\x0e\n\x0c\n\x05\x04\x04\x02\x02\x01\x12\ - \x03t\x0f\x15\n\x0c\n\x05\x04\x04\x02\x02\x03\x12\x03t\x18\x19\n\n\n\x02\ - \x04\x05\x12\x04w\0z\x01\n\n\n\x03\x04\x05\x01\x12\x03w\x08\x1a\n\x0b\n\ - \x04\x04\x05\x02\0\x12\x03x\x08\x20\n\x0c\n\x05\x04\x05\x02\0\x05\x12\ - \x03x\x08\x0e\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03x\x0f\x1b\n\x0c\n\x05\ - \x04\x05\x02\0\x03\x12\x03x\x1e\x1f\n\x0b\n\x04\x04\x05\x02\x01\x12\x03y\ - \x08\x1b\n\x0c\n\x05\x04\x05\x02\x01\x05\x12\x03y\x08\x0e\n\x0c\n\x05\ - \x04\x05\x02\x01\x01\x12\x03y\x0f\x16\n\x0c\n\x05\x04\x05\x02\x01\x03\ - \x12\x03y\x19\x1a\n\n\n\x02\x04\x06\x12\x04|\0~\x01\n\n\n\x03\x04\x06\ - \x01\x12\x03|\x08\x1b\n\x0b\n\x04\x04\x06\x02\0\x12\x03}\x08\x19\n\x0c\n\ - \x05\x04\x06\x02\0\x05\x12\x03}\x08\r\n\x0c\n\x05\x04\x06\x02\0\x01\x12\ - \x03}\x0e\x14\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03}\x17\x18\nm\n\x02\ - \x04\x07\x12\x06\x81\x01\0\x85\x01\x01\x1a_\x20ListProcessesRequest\x20c\ - ontains\x20the\x20options\x20used\x20to\x20list\x20running\x20processes\ - \x20inside\x20the\x20container\n\n\x0b\n\x03\x04\x07\x01\x12\x04\x81\x01\ - \x08\x1c\n\x0c\n\x04\x04\x07\x02\0\x12\x04\x82\x01\x08\x20\n\r\n\x05\x04\ - \x07\x02\0\x05\x12\x04\x82\x01\x08\x0e\n\r\n\x05\x04\x07\x02\0\x01\x12\ - \x04\x82\x01\x0f\x1b\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x82\x01\x1e\x1f\ - \n\x0c\n\x04\x04\x07\x02\x01\x12\x04\x83\x01\x08\x1a\n\r\n\x05\x04\x07\ - \x02\x01\x05\x12\x04\x83\x01\x08\x0e\n\r\n\x05\x04\x07\x02\x01\x01\x12\ - \x04\x83\x01\x0f\x15\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\x83\x01\x18\ - \x19\n\x0c\n\x04\x04\x07\x02\x02\x12\x04\x84\x01\x08!\n\r\n\x05\x04\x07\ - \x02\x02\x04\x12\x04\x84\x01\x08\x10\n\r\n\x05\x04\x07\x02\x02\x05\x12\ - \x04\x84\x01\x11\x17\n\r\n\x05\x04\x07\x02\x02\x01\x12\x04\x84\x01\x18\ - \x1c\n\r\n\x05\x04\x07\x02\x02\x03\x12\x04\x84\x01\x1f\x20\nc\n\x02\x04\ - \x08\x12\x06\x88\x01\0\x8a\x01\x01\x1aU\x20ListProcessesResponse\x20repr\ - esents\x20the\x20list\x20of\x20running\x20processes\x20inside\x20the\x20\ - container\n\n\x0b\n\x03\x04\x08\x01\x12\x04\x88\x01\x08\x1d\n\x0c\n\x04\ - \x04\x08\x02\0\x12\x04\x89\x01\x08\x1f\n\r\n\x05\x04\x08\x02\0\x05\x12\ - \x04\x89\x01\x08\r\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\x89\x01\x0e\x1a\n\ - \r\n\x05\x04\x08\x02\0\x03\x12\x04\x89\x01\x1d\x1e\n\x0c\n\x02\x04\t\x12\ - \x06\x8c\x01\0\x8f\x01\x01\n\x0b\n\x03\x04\t\x01\x12\x04\x8c\x01\x08\x1e\ - \n\x0c\n\x04\x04\t\x02\0\x12\x04\x8d\x01\x08\x20\n\r\n\x05\x04\t\x02\0\ - \x05\x12\x04\x8d\x01\x08\x0e\n\r\n\x05\x04\t\x02\0\x01\x12\x04\x8d\x01\ - \x0f\x1b\n\r\n\x05\x04\t\x02\0\x03\x12\x04\x8d\x01\x1e\x1f\n\x0c\n\x04\ - \x04\t\x02\x01\x12\x04\x8e\x01\x08%\n\r\n\x05\x04\t\x02\x01\x06\x12\x04\ - \x8e\x01\x08\x16\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\x8e\x01\x17\x20\n\r\ - \n\x05\x04\t\x02\x01\x03\x12\x04\x8e\x01#$\n\x0c\n\x02\x04\n\x12\x06\x91\ - \x01\0\x93\x01\x01\n\x0b\n\x03\x04\n\x01\x12\x04\x91\x01\x08\x1d\n\x0c\n\ - \x04\x04\n\x02\0\x12\x04\x92\x01\x04\x1c\n\r\n\x05\x04\n\x02\0\x05\x12\ - \x04\x92\x01\x04\n\n\r\n\x05\x04\n\x02\0\x01\x12\x04\x92\x01\x0b\x17\n\r\ - \n\x05\x04\n\x02\0\x03\x12\x04\x92\x01\x1a\x1b\n\x0c\n\x02\x04\x0b\x12\ - \x06\x95\x01\0\x97\x01\x01\n\x0b\n\x03\x04\x0b\x01\x12\x04\x95\x01\x08\ - \x1d\n\x0c\n\x04\x04\x0b\x02\0\x12\x04\x96\x01\x04\x1c\n\r\n\x05\x04\x0b\ - \x02\0\x05\x12\x04\x96\x01\x04\n\n\r\n\x05\x04\x0b\x02\0\x01\x12\x04\x96\ - \x01\x0b\x17\n\r\n\x05\x04\x0b\x02\0\x03\x12\x04\x96\x01\x1a\x1b\n\x0c\n\ - \x02\x04\x0c\x12\x06\x99\x01\0\x9b\x01\x01\n\x0b\n\x03\x04\x0c\x01\x12\ - \x04\x99\x01\x08\x1e\n\x0c\n\x04\x04\x0c\x02\0\x12\x04\x9a\x01\x04\x1c\n\ - \r\n\x05\x04\x0c\x02\0\x05\x12\x04\x9a\x01\x04\n\n\r\n\x05\x04\x0c\x02\0\ - \x01\x12\x04\x9a\x01\x0b\x17\n\r\n\x05\x04\x0c\x02\0\x03\x12\x04\x9a\x01\ - \x1a\x1b\n\x0c\n\x02\x04\r\x12\x06\x9d\x01\0\xa2\x01\x01\n\x0b\n\x03\x04\ - \r\x01\x12\x04\x9d\x01\x08\x10\n\x0c\n\x04\x04\r\x02\0\x12\x04\x9e\x01\ - \x08\x1f\n\r\n\x05\x04\r\x02\0\x05\x12\x04\x9e\x01\x08\x0e\n\r\n\x05\x04\ - \r\x02\0\x01\x12\x04\x9e\x01\x0f\x1a\n\r\n\x05\x04\r\x02\0\x03\x12\x04\ - \x9e\x01\x1d\x1e\n\x0c\n\x04\x04\r\x02\x01\x12\x04\x9f\x01\x08)\n\r\n\ - \x05\x04\r\x02\x01\x04\x12\x04\x9f\x01\x08\x10\n\r\n\x05\x04\r\x02\x01\ - \x05\x12\x04\x9f\x01\x11\x17\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\x9f\x01\ - \x18$\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\x9f\x01'(\n\x0c\n\x04\x04\r\ - \x02\x02\x12\x04\xa0\x01\x08'\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xa0\ - \x01\x08\x0e\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xa0\x01\x0f\"\n\r\n\x05\ - \x04\r\x02\x02\x03\x12\x04\xa0\x01%&\n\x0c\n\x04\x04\r\x02\x03\x12\x04\ - \xa1\x01\x08%\n\r\n\x05\x04\r\x02\x03\x05\x12\x04\xa1\x01\x08\x0e\n\r\n\ - \x05\x04\r\x02\x03\x01\x12\x04\xa1\x01\x0f\x20\n\r\n\x05\x04\r\x02\x03\ - \x03\x12\x04\xa1\x01#$\n\x0c\n\x02\x04\x0e\x12\x06\xa4\x01\0\xa8\x01\x01\ - \n\x0b\n\x03\x04\x0e\x01\x12\x04\xa4\x01\x08\x16\n\x0c\n\x04\x04\x0e\x02\ - \0\x12\x04\xa5\x01\x08\x1b\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\xa5\x01\ - \x08\x0e\n\r\n\x05\x04\x0e\x02\0\x01\x12\x04\xa5\x01\x0f\x16\n\r\n\x05\ - \x04\x0e\x02\0\x03\x12\x04\xa5\x01\x19\x1a\n\x0c\n\x04\x04\x0e\x02\x01\ - \x12\x04\xa6\x01\x08%\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\xa6\x01\x08\ - \x0e\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xa6\x01\x0f\x20\n\r\n\x05\x04\ - \x0e\x02\x01\x03\x12\x04\xa6\x01#$\n\x0c\n\x04\x04\x0e\x02\x02\x12\x04\ - \xa7\x01\x08\"\n\r\n\x05\x04\x0e\x02\x02\x05\x12\x04\xa7\x01\x08\x0e\n\r\ - \n\x05\x04\x0e\x02\x02\x01\x12\x04\xa7\x01\x0f\x1d\n\r\n\x05\x04\x0e\x02\ - \x02\x03\x12\x04\xa7\x01\x20!\n\x0c\n\x02\x04\x0f\x12\x06\xaa\x01\0\xad\ - \x01\x01\n\x0b\n\x03\x04\x0f\x01\x12\x04\xaa\x01\x08\x10\n\x0c\n\x04\x04\ - \x0f\x02\0\x12\x04\xab\x01\x08\x1f\n\r\n\x05\x04\x0f\x02\0\x06\x12\x04\ - \xab\x01\x08\x10\n\r\n\x05\x04\x0f\x02\0\x01\x12\x04\xab\x01\x11\x1a\n\r\ - \n\x05\x04\x0f\x02\0\x03\x12\x04\xab\x01\x1d\x1e\n\x0c\n\x04\x04\x0f\x02\ - \x01\x12\x04\xac\x01\x08+\n\r\n\x05\x04\x0f\x02\x01\x06\x12\x04\xac\x01\ - \x08\x16\n\r\n\x05\x04\x0f\x02\x01\x01\x12\x04\xac\x01\x17&\n\r\n\x05\ - \x04\x0f\x02\x01\x03\x12\x04\xac\x01)*\n\x0c\n\x02\x04\x10\x12\x06\xaf\ - \x01\0\xb2\x01\x01\n\x0b\n\x03\x04\x10\x01\x12\x04\xaf\x01\x08\x11\n\x0c\ - \n\x04\x04\x10\x02\0\x12\x04\xb0\x01\x08\x1b\n\r\n\x05\x04\x10\x02\0\x05\ - \x12\x04\xb0\x01\x08\x0e\n\r\n\x05\x04\x10\x02\0\x01\x12\x04\xb0\x01\x0f\ - \x16\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\xb0\x01\x19\x1a\n\x0c\n\x04\x04\ - \x10\x02\x01\x12\x04\xb1\x01\x08\x19\n\r\n\x05\x04\x10\x02\x01\x05\x12\ - \x04\xb1\x01\x08\x0e\n\r\n\x05\x04\x10\x02\x01\x01\x12\x04\xb1\x01\x0f\ - \x14\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\xb1\x01\x17\x18\n\x0c\n\x02\ - \x04\x11\x12\x06\xb4\x01\0\xb9\x01\x01\n\x0b\n\x03\x04\x11\x01\x12\x04\ - \xb4\x01\x08\x12\n\x0c\n\x04\x04\x11\x02\0\x12\x04\xb5\x01\x08\x19\n\r\n\ - \x05\x04\x11\x02\0\x05\x12\x04\xb5\x01\x08\x0e\n\r\n\x05\x04\x11\x02\0\ - \x01\x12\x04\xb5\x01\x0f\x14\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xb5\x01\ - \x17\x18\n\x0c\n\x04\x04\x11\x02\x01\x12\x04\xb6\x01\x08\x1d\n\r\n\x05\ - \x04\x11\x02\x01\x05\x12\x04\xb6\x01\x08\x0e\n\r\n\x05\x04\x11\x02\x01\ - \x01\x12\x04\xb6\x01\x0f\x18\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xb6\ - \x01\x1b\x1c\n\x0c\n\x04\x04\x11\x02\x02\x12\x04\xb7\x01\x08\x1b\n\r\n\ - \x05\x04\x11\x02\x02\x05\x12\x04\xb7\x01\x08\x0e\n\r\n\x05\x04\x11\x02\ - \x02\x01\x12\x04\xb7\x01\x0f\x16\n\r\n\x05\x04\x11\x02\x02\x03\x12\x04\ - \xb7\x01\x19\x1a\n\x0c\n\x04\x04\x11\x02\x03\x12\x04\xb8\x01\x08\x19\n\r\ - \n\x05\x04\x11\x02\x03\x05\x12\x04\xb8\x01\x08\x0e\n\r\n\x05\x04\x11\x02\ - \x03\x01\x12\x04\xb8\x01\x0f\x14\n\r\n\x05\x04\x11\x02\x03\x03\x12\x04\ - \xb8\x01\x17\x18\n\x0c\n\x02\x04\x12\x12\x06\xbb\x01\0\xc2\x01\x01\n\x0b\ - \n\x03\x04\x12\x01\x12\x04\xbb\x01\x08\x13\n\x0c\n\x04\x04\x12\x02\0\x12\ - \x04\xbc\x01\x08\x19\n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xbc\x01\x08\x0e\ - \n\r\n\x05\x04\x12\x02\0\x01\x12\x04\xbc\x01\x0f\x14\n\r\n\x05\x04\x12\ - \x02\0\x03\x12\x04\xbc\x01\x17\x18\n\x0c\n\x04\x04\x12\x02\x01\x12\x04\ - \xbd\x01\x08\x1d\n\r\n\x05\x04\x12\x02\x01\x06\x12\x04\xbd\x01\x08\x12\n\ - \r\n\x05\x04\x12\x02\x01\x01\x12\x04\xbd\x01\x13\x18\n\r\n\x05\x04\x12\ - \x02\x01\x03\x12\x04\xbd\x01\x1b\x1c\n\x0c\n\x04\x04\x12\x02\x02\x12\x04\ - \xbe\x01\x08\"\n\r\n\x05\x04\x12\x02\x02\x06\x12\x04\xbe\x01\x08\x12\n\r\ - \n\x05\x04\x12\x02\x02\x01\x12\x04\xbe\x01\x13\x1d\n\r\n\x05\x04\x12\x02\ - \x02\x03\x12\x04\xbe\x01\x20!\n\x0c\n\x04\x04\x12\x02\x03\x12\x04\xbf\ - \x01\x08$\n\r\n\x05\x04\x12\x02\x03\x06\x12\x04\xbf\x01\x08\x12\n\r\n\ - \x05\x04\x12\x02\x03\x01\x12\x04\xbf\x01\x13\x1f\n\r\n\x05\x04\x12\x02\ - \x03\x03\x12\x04\xbf\x01\"#\n\x0c\n\x04\x04\x12\x02\x04\x12\x04\xc0\x01\ - \x08\x1f\n\r\n\x05\x04\x12\x02\x04\x05\x12\x04\xc0\x01\x08\x0c\n\r\n\x05\ - \x04\x12\x02\x04\x01\x12\x04\xc0\x01\r\x1a\n\r\n\x05\x04\x12\x02\x04\x03\ - \x12\x04\xc0\x01\x1d\x1e\n\x0c\n\x04\x04\x12\x02\x05\x12\x04\xc1\x01\x08\ - &\n\r\n\x05\x04\x12\x02\x05\x06\x12\x04\xc1\x01\x08\x1b\n\r\n\x05\x04\ - \x12\x02\x05\x01\x12\x04\xc1\x01\x1c!\n\r\n\x05\x04\x12\x02\x05\x03\x12\ - \x04\xc1\x01$%\n\x0c\n\x02\x04\x13\x12\x06\xc5\x01\0\xca\x01\x01\n\x0b\n\ - \x03\x04\x13\x01\x12\x04\xc5\x01\x08\x17\n\x0c\n\x04\x04\x13\x02\0\x12\ - \x04\xc6\x01\x08\x19\n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xc6\x01\x08\x0e\ - \n\r\n\x05\x04\x13\x02\0\x01\x12\x04\xc6\x01\x0f\x14\n\r\n\x05\x04\x13\ - \x02\0\x03\x12\x04\xc6\x01\x17\x18\n\x0c\n\x04\x04\x13\x02\x01\x12\x04\ - \xc7\x01\x08\x19\n\r\n\x05\x04\x13\x02\x01\x05\x12\x04\xc7\x01\x08\x0e\n\ - \r\n\x05\x04\x13\x02\x01\x01\x12\x04\xc7\x01\x0f\x14\n\r\n\x05\x04\x13\ - \x02\x01\x03\x12\x04\xc7\x01\x17\x18\n\x0c\n\x04\x04\x13\x02\x02\x12\x04\ - \xc8\x01\x08\x16\n\r\n\x05\x04\x13\x02\x02\x05\x12\x04\xc8\x01\x08\x0e\n\ - \r\n\x05\x04\x13\x02\x02\x01\x12\x04\xc8\x01\x0f\x11\n\r\n\x05\x04\x13\ - \x02\x02\x03\x12\x04\xc8\x01\x14\x15\n\x0c\n\x04\x04\x13\x02\x03\x12\x04\ - \xc9\x01\x08\x19\n\r\n\x05\x04\x13\x02\x03\x05\x12\x04\xc9\x01\x08\x0e\n\ - \r\n\x05\x04\x13\x02\x03\x01\x12\x04\xc9\x01\x0f\x14\n\r\n\x05\x04\x13\ - \x02\x03\x03\x12\x04\xc9\x01\x17\x18\n\x0c\n\x02\x04\x14\x12\x06\xcc\x01\ - \0\xd5\x01\x01\n\x0b\n\x03\x04\x14\x01\x12\x04\xcc\x01\x08\x12\nH\n\x04\ - \x04\x14\x02\0\x12\x04\xcd\x01\x08@\":\x20number\x20of\x20bytes\x20trans\ - ferred\x20to\x20and\x20from\x20the\x20block\x20device\n\n\r\n\x05\x04\ - \x14\x02\0\x04\x12\x04\xcd\x01\x08\x10\n\r\n\x05\x04\x14\x02\0\x06\x12\ - \x04\xcd\x01\x11\x20\n\r\n\x05\x04\x14\x02\0\x01\x12\x04\xcd\x01!;\n\r\n\ - \x05\x04\x14\x02\0\x03\x12\x04\xcd\x01>?\n\x0c\n\x04\x04\x14\x02\x01\x12\ - \x04\xce\x01\x08;\n\r\n\x05\x04\x14\x02\x01\x04\x12\x04\xce\x01\x08\x10\ - \n\r\n\x05\x04\x14\x02\x01\x06\x12\x04\xce\x01\x11\x20\n\r\n\x05\x04\x14\ - \x02\x01\x01\x12\x04\xce\x01!6\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xce\ - \x019:\n\x0c\n\x04\x04\x14\x02\x02\x12\x04\xcf\x01\x089\n\r\n\x05\x04\ - \x14\x02\x02\x04\x12\x04\xcf\x01\x08\x10\n\r\n\x05\x04\x14\x02\x02\x06\ - \x12\x04\xcf\x01\x11\x20\n\r\n\x05\x04\x14\x02\x02\x01\x12\x04\xcf\x01!4\ - \n\r\n\x05\x04\x14\x02\x02\x03\x12\x04\xcf\x0178\n\x0c\n\x04\x04\x14\x02\ - \x03\x12\x04\xd0\x01\x08?\n\r\n\x05\x04\x14\x02\x03\x04\x12\x04\xd0\x01\ - \x08\x10\n\r\n\x05\x04\x14\x02\x03\x06\x12\x04\xd0\x01\x11\x20\n\r\n\x05\ - \x04\x14\x02\x03\x01\x12\x04\xd0\x01!:\n\r\n\x05\x04\x14\x02\x03\x03\x12\ - \x04\xd0\x01=>\n\x0c\n\x04\x04\x14\x02\x04\x12\x04\xd1\x01\x08<\n\r\n\ - \x05\x04\x14\x02\x04\x04\x12\x04\xd1\x01\x08\x10\n\r\n\x05\x04\x14\x02\ - \x04\x06\x12\x04\xd1\x01\x11\x20\n\r\n\x05\x04\x14\x02\x04\x01\x12\x04\ - \xd1\x01!7\n\r\n\x05\x04\x14\x02\x04\x03\x12\x04\xd1\x01:;\n\x0c\n\x04\ - \x04\x14\x02\x05\x12\x04\xd2\x01\x089\n\r\n\x05\x04\x14\x02\x05\x04\x12\ - \x04\xd2\x01\x08\x10\n\r\n\x05\x04\x14\x02\x05\x06\x12\x04\xd2\x01\x11\ - \x20\n\r\n\x05\x04\x14\x02\x05\x01\x12\x04\xd2\x01!4\n\r\n\x05\x04\x14\ - \x02\x05\x03\x12\x04\xd2\x0178\n\x0c\n\x04\x04\x14\x02\x06\x12\x04\xd3\ - \x01\x087\n\r\n\x05\x04\x14\x02\x06\x04\x12\x04\xd3\x01\x08\x10\n\r\n\ - \x05\x04\x14\x02\x06\x06\x12\x04\xd3\x01\x11\x20\n\r\n\x05\x04\x14\x02\ - \x06\x01\x12\x04\xd3\x01!2\n\r\n\x05\x04\x14\x02\x06\x03\x12\x04\xd3\x01\ - 56\n\x0c\n\x04\x04\x14\x02\x07\x12\x04\xd4\x01\x087\n\r\n\x05\x04\x14\ - \x02\x07\x04\x12\x04\xd4\x01\x08\x10\n\r\n\x05\x04\x14\x02\x07\x06\x12\ - \x04\xd4\x01\x11\x20\n\r\n\x05\x04\x14\x02\x07\x01\x12\x04\xd4\x01!2\n\r\ - \n\x05\x04\x14\x02\x07\x03\x12\x04\xd4\x0156\n\x0c\n\x02\x04\x15\x12\x06\ - \xd7\x01\0\xdb\x01\x01\n\x0b\n\x03\x04\x15\x01\x12\x04\xd7\x01\x08\x14\n\ - \x0c\n\x04\x04\x15\x02\0\x12\x04\xd8\x01\x08\x19\n\r\n\x05\x04\x15\x02\0\ - \x05\x12\x04\xd8\x01\x08\x0e\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\xd8\x01\ - \x0f\x14\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xd8\x01\x17\x18\n\x0c\n\x04\ - \x04\x15\x02\x01\x12\x04\xd9\x01\x08\x1d\n\r\n\x05\x04\x15\x02\x01\x05\ - \x12\x04\xd9\x01\x08\x0e\n\r\n\x05\x04\x15\x02\x01\x01\x12\x04\xd9\x01\ - \x0f\x18\n\r\n\x05\x04\x15\x02\x01\x03\x12\x04\xd9\x01\x1b\x1c\n\x0c\n\ - \x04\x04\x15\x02\x02\x12\x04\xda\x01\x08\x1b\n\r\n\x05\x04\x15\x02\x02\ - \x05\x12\x04\xda\x01\x08\x0e\n\r\n\x05\x04\x15\x02\x02\x01\x12\x04\xda\ - \x01\x0f\x16\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\xda\x01\x19\x1a\n\x0c\ - \n\x02\x04\x16\x12\x06\xdd\x01\0\xe4\x01\x01\n\x0b\n\x03\x04\x16\x01\x12\ - \x04\xdd\x01\x08\x13\n\x0c\n\x04\x04\x16\x02\0\x12\x04\xde\x01\x04\x1b\n\ - \r\n\x05\x04\x16\x02\0\x06\x12\x04\xde\x01\x04\x0c\n\r\n\x05\x04\x16\x02\ - \0\x01\x12\x04\xde\x01\r\x16\n\r\n\x05\x04\x16\x02\0\x03\x12\x04\xde\x01\ - \x19\x1a\n\x0c\n\x04\x04\x16\x02\x01\x12\x04\xdf\x01\x04\"\n\r\n\x05\x04\ - \x16\x02\x01\x06\x12\x04\xdf\x01\x04\x0f\n\r\n\x05\x04\x16\x02\x01\x01\ - \x12\x04\xdf\x01\x10\x1c\n\r\n\x05\x04\x16\x02\x01\x03\x12\x04\xdf\x01\ - \x20!\n\x0c\n\x04\x04\x16\x02\x02\x12\x04\xe0\x01\x04\x1d\n\r\n\x05\x04\ - \x16\x02\x02\x06\x12\x04\xe0\x01\x04\r\n\r\n\x05\x04\x16\x02\x02\x01\x12\ - \x04\xe0\x01\x0e\x18\n\r\n\x05\x04\x16\x02\x02\x03\x12\x04\xe0\x01\x1b\ - \x1c\n\x0c\n\x04\x04\x16\x02\x03\x12\x04\xe1\x01\x04\x1f\n\r\n\x05\x04\ - \x16\x02\x03\x06\x12\x04\xe1\x01\x04\x0e\n\r\n\x05\x04\x16\x02\x03\x01\ - \x12\x04\xe1\x01\x0f\x1a\n\r\n\x05\x04\x16\x02\x03\x03\x12\x04\xe1\x01\ - \x1d\x1e\nR\n\x04\x04\x16\x02\x04\x12\x04\xe2\x01\x040\"D\x20the\x20map\ - \x20is\x20in\x20the\x20format\x20\"size\x20of\x20hugepage:\x20stats\x20o\ - f\x20the\x20hugepage\"\n\n\r\n\x05\x04\x16\x02\x04\x06\x12\x04\xe2\x01\ - \x04\x1d\n\r\n\x05\x04\x16\x02\x04\x01\x12\x04\xe2\x01\x1e+\n\r\n\x05\ - \x04\x16\x02\x04\x03\x12\x04\xe2\x01./\n\x0c\n\x02\x04\x17\x12\x06\xe6\ - \x01\0\xf0\x01\x01\n\x0b\n\x03\x04\x17\x01\x12\x04\xe6\x01\x08\x14\n\x0c\ - \n\x04\x04\x17\x02\0\x12\x04\xe7\x01\x08\x18\n\r\n\x05\x04\x17\x02\0\x05\ - \x12\x04\xe7\x01\x08\x0e\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\xe7\x01\x0f\ - \x13\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\xe7\x01\x16\x17\n\x0c\n\x04\x04\ - \x17\x02\x01\x12\x04\xe8\x01\x08\x1c\n\r\n\x05\x04\x17\x02\x01\x05\x12\ - \x04\xe8\x01\x08\x0e\n\r\n\x05\x04\x17\x02\x01\x01\x12\x04\xe8\x01\x0f\ - \x17\n\r\n\x05\x04\x17\x02\x01\x03\x12\x04\xe8\x01\x1a\x1b\n\x0c\n\x04\ - \x04\x17\x02\x02\x12\x04\xe9\x01\x08\x1e\n\r\n\x05\x04\x17\x02\x02\x05\ - \x12\x04\xe9\x01\x08\x0e\n\r\n\x05\x04\x17\x02\x02\x01\x12\x04\xe9\x01\ - \x0f\x19\n\r\n\x05\x04\x17\x02\x02\x03\x12\x04\xe9\x01\x1c\x1d\n\x0c\n\ - \x04\x04\x17\x02\x03\x12\x04\xea\x01\x08\x1e\n\r\n\x05\x04\x17\x02\x03\ - \x05\x12\x04\xea\x01\x08\x0e\n\r\n\x05\x04\x17\x02\x03\x01\x12\x04\xea\ - \x01\x0f\x18\n\r\n\x05\x04\x17\x02\x03\x03\x12\x04\xea\x01\x1c\x1d\n\x0c\ - \n\x04\x04\x17\x02\x04\x12\x04\xeb\x01\x08\x1e\n\r\n\x05\x04\x17\x02\x04\ - \x05\x12\x04\xeb\x01\x08\x0e\n\r\n\x05\x04\x17\x02\x04\x01\x12\x04\xeb\ - \x01\x0f\x19\n\r\n\x05\x04\x17\x02\x04\x03\x12\x04\xeb\x01\x1c\x1d\n\x0c\ - \n\x04\x04\x17\x02\x05\x12\x04\xec\x01\x08\x1c\n\r\n\x05\x04\x17\x02\x05\ - \x05\x12\x04\xec\x01\x08\x0e\n\r\n\x05\x04\x17\x02\x05\x01\x12\x04\xec\ - \x01\x0f\x17\n\r\n\x05\x04\x17\x02\x05\x03\x12\x04\xec\x01\x1a\x1b\n\x0c\ - \n\x04\x04\x17\x02\x06\x12\x04\xed\x01\x08\x1e\n\r\n\x05\x04\x17\x02\x06\ - \x05\x12\x04\xed\x01\x08\x0e\n\r\n\x05\x04\x17\x02\x06\x01\x12\x04\xed\ - \x01\x0f\x19\n\r\n\x05\x04\x17\x02\x06\x03\x12\x04\xed\x01\x1c\x1d\n\x0c\ - \n\x04\x04\x17\x02\x07\x12\x04\xee\x01\x08\x1d\n\r\n\x05\x04\x17\x02\x07\ - \x05\x12\x04\xee\x01\x08\x0e\n\r\n\x05\x04\x17\x02\x07\x01\x12\x04\xee\ - \x01\x0f\x18\n\r\n\x05\x04\x17\x02\x07\x03\x12\x04\xee\x01\x1b\x1c\n\x0c\ - \n\x04\x04\x17\x02\x08\x12\x04\xef\x01\x08\x1e\n\r\n\x05\x04\x17\x02\x08\ - \x05\x12\x04\xef\x01\x08\x0e\n\r\n\x05\x04\x17\x02\x08\x01\x12\x04\xef\ - \x01\x0f\x19\n\r\n\x05\x04\x17\x02\x08\x03\x12\x04\xef\x01\x1c\x1d\n\x0c\ - \n\x02\x04\x18\x12\x06\xf2\x01\0\xf5\x01\x01\n\x0b\n\x03\x04\x18\x01\x12\ - \x04\xf2\x01\x08\x1e\n\x0c\n\x04\x04\x18\x02\0\x12\x04\xf3\x01\x08%\n\r\ - \n\x05\x04\x18\x02\0\x06\x12\x04\xf3\x01\x08\x13\n\r\n\x05\x04\x18\x02\0\ - \x01\x12\x04\xf3\x01\x14\x20\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xf3\x01\ - #$\n\x0c\n\x04\x04\x18\x02\x01\x12\x04\xf4\x01\x080\n\r\n\x05\x04\x18\ - \x02\x01\x04\x12\x04\xf4\x01\x08\x10\n\r\n\x05\x04\x18\x02\x01\x06\x12\ - \x04\xf4\x01\x11\x1d\n\r\n\x05\x04\x18\x02\x01\x01\x12\x04\xf4\x01\x1e+\ - \n\r\n\x05\x04\x18\x02\x01\x03\x12\x04\xf4\x01./\n\x0c\n\x02\x04\x19\x12\ - \x06\xf7\x01\0\xfb\x01\x01\n\x0b\n\x03\x04\x19\x01\x12\x04\xf7\x01\x08\ - \x1a\n\x0c\n\x04\x04\x19\x02\0\x12\x04\xf8\x01\x08\x20\n\r\n\x05\x04\x19\ - \x02\0\x05\x12\x04\xf8\x01\x08\x0e\n\r\n\x05\x04\x19\x02\0\x01\x12\x04\ - \xf8\x01\x0f\x1b\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\xf8\x01\x1e\x1f\n\ - \x0c\n\x04\x04\x19\x02\x01\x12\x04\xf9\x01\x08\x1b\n\r\n\x05\x04\x19\x02\ - \x01\x05\x12\x04\xf9\x01\x08\x0e\n\r\n\x05\x04\x19\x02\x01\x01\x12\x04\ - \xf9\x01\x0f\x16\n\r\n\x05\x04\x19\x02\x01\x03\x12\x04\xf9\x01\x19\x1a\n\ - \x0c\n\x04\x04\x19\x02\x02\x12\x04\xfa\x01\x08\x17\n\r\n\x05\x04\x19\x02\ - \x02\x05\x12\x04\xfa\x01\x08\r\n\r\n\x05\x04\x19\x02\x02\x01\x12\x04\xfa\ - \x01\x0e\x12\n\r\n\x05\x04\x19\x02\x02\x03\x12\x04\xfa\x01\x15\x16\n\x0c\ - \n\x02\x04\x1a\x12\x06\xfd\x01\0\xff\x01\x01\n\x0b\n\x03\x04\x1a\x01\x12\ - \x04\xfd\x01\x08\x1b\n\x0c\n\x04\x04\x1a\x02\0\x12\x04\xfe\x01\x08\x17\n\ - \r\n\x05\x04\x1a\x02\0\x05\x12\x04\xfe\x01\x08\x0e\n\r\n\x05\x04\x1a\x02\ - \0\x01\x12\x04\xfe\x01\x0f\x12\n\r\n\x05\x04\x1a\x02\0\x03\x12\x04\xfe\ - \x01\x15\x16\n\x0c\n\x02\x04\x1b\x12\x06\x81\x02\0\x85\x02\x01\n\x0b\n\ - \x03\x04\x1b\x01\x12\x04\x81\x02\x08\x19\n\x0c\n\x04\x04\x1b\x02\0\x12\ - \x04\x82\x02\x08\x20\n\r\n\x05\x04\x1b\x02\0\x05\x12\x04\x82\x02\x08\x0e\ - \n\r\n\x05\x04\x1b\x02\0\x01\x12\x04\x82\x02\x0f\x1b\n\r\n\x05\x04\x1b\ - \x02\0\x03\x12\x04\x82\x02\x1e\x1f\n\x0c\n\x04\x04\x1b\x02\x01\x12\x04\ - \x83\x02\x08\x1b\n\r\n\x05\x04\x1b\x02\x01\x05\x12\x04\x83\x02\x08\x0e\n\ - \r\n\x05\x04\x1b\x02\x01\x01\x12\x04\x83\x02\x0f\x16\n\r\n\x05\x04\x1b\ - \x02\x01\x03\x12\x04\x83\x02\x19\x1a\n\x0c\n\x04\x04\x1b\x02\x02\x12\x04\ - \x84\x02\x08\x17\n\r\n\x05\x04\x1b\x02\x02\x05\x12\x04\x84\x02\x08\x0e\n\ - \r\n\x05\x04\x1b\x02\x02\x01\x12\x04\x84\x02\x0f\x12\n\r\n\x05\x04\x1b\ - \x02\x02\x03\x12\x04\x84\x02\x15\x16\n\x0c\n\x02\x04\x1c\x12\x06\x87\x02\ - \0\x89\x02\x01\n\x0b\n\x03\x04\x1c\x01\x12\x04\x87\x02\x08\x1a\n\x0c\n\ - \x04\x04\x1c\x02\0\x12\x04\x88\x02\x08\x17\n\r\n\x05\x04\x1c\x02\0\x05\ - \x12\x04\x88\x02\x08\r\n\r\n\x05\x04\x1c\x02\0\x01\x12\x04\x88\x02\x0e\ - \x12\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\x88\x02\x15\x16\n\x0c\n\x02\x04\ - \x1d\x12\x06\x8b\x02\0\x8e\x02\x01\n\x0b\n\x03\x04\x1d\x01\x12\x04\x8b\ - \x02\x08\x19\n\x0c\n\x04\x04\x1d\x02\0\x12\x04\x8c\x02\x08\x20\n\r\n\x05\ - \x04\x1d\x02\0\x05\x12\x04\x8c\x02\x08\x0e\n\r\n\x05\x04\x1d\x02\0\x01\ - \x12\x04\x8c\x02\x0f\x1b\n\r\n\x05\x04\x1d\x02\0\x03\x12\x04\x8c\x02\x1e\ - \x1f\n\x0c\n\x04\x04\x1d\x02\x01\x12\x04\x8d\x02\x08\x1b\n\r\n\x05\x04\ - \x1d\x02\x01\x05\x12\x04\x8d\x02\x08\x0e\n\r\n\x05\x04\x1d\x02\x01\x01\ - \x12\x04\x8d\x02\x0f\x16\n\r\n\x05\x04\x1d\x02\x01\x03\x12\x04\x8d\x02\ - \x19\x1a\n\x0c\n\x02\x04\x1e\x12\x06\x90\x02\0\x95\x02\x01\n\x0b\n\x03\ - \x04\x1e\x01\x12\x04\x90\x02\x08\x1b\n\x0c\n\x04\x04\x1e\x02\0\x12\x04\ - \x91\x02\x08\x20\n\r\n\x05\x04\x1e\x02\0\x05\x12\x04\x91\x02\x08\x0e\n\r\ - \n\x05\x04\x1e\x02\0\x01\x12\x04\x91\x02\x0f\x1b\n\r\n\x05\x04\x1e\x02\0\ - \x03\x12\x04\x91\x02\x1e\x1f\n\x0c\n\x04\x04\x1e\x02\x01\x12\x04\x92\x02\ - \x08\x1b\n\r\n\x05\x04\x1e\x02\x01\x05\x12\x04\x92\x02\x08\x0e\n\r\n\x05\ - \x04\x1e\x02\x01\x01\x12\x04\x92\x02\x0f\x16\n\r\n\x05\x04\x1e\x02\x01\ - \x03\x12\x04\x92\x02\x19\x1a\n\x0c\n\x04\x04\x1e\x02\x02\x12\x04\x93\x02\ - \x08\x17\n\r\n\x05\x04\x1e\x02\x02\x05\x12\x04\x93\x02\x08\x0e\n\r\n\x05\ - \x04\x1e\x02\x02\x01\x12\x04\x93\x02\x0f\x12\n\r\n\x05\x04\x1e\x02\x02\ - \x03\x12\x04\x93\x02\x15\x16\n\x0c\n\x04\x04\x1e\x02\x03\x12\x04\x94\x02\ - \x08\x1a\n\r\n\x05\x04\x1e\x02\x03\x05\x12\x04\x94\x02\x08\x0e\n\r\n\x05\ - \x04\x1e\x02\x03\x01\x12\x04\x94\x02\x0f\x15\n\r\n\x05\x04\x1e\x02\x03\ - \x03\x12\x04\x94\x02\x18\x19\n\x0c\n\x02\x04\x1f\x12\x06\x97\x02\0\x9d\ - \x02\x01\n\x0b\n\x03\x04\x1f\x01\x12\x04\x97\x02\x08\x14\n<\n\x04\x04\ - \x1f\x02\0\x12\x04\x99\x02\x08\x18\x1a.\x20This\x20field\x20is\x20the\ - \x20name\x20of\x20the\x20kernel\x20module.\n\n\r\n\x05\x04\x1f\x02\0\x05\ - \x12\x04\x99\x02\x08\x0e\n\r\n\x05\x04\x1f\x02\0\x01\x12\x04\x99\x02\x0f\ - \x13\n\r\n\x05\x04\x1f\x02\0\x03\x12\x04\x99\x02\x16\x17\n\x8a\x01\n\x04\ - \x04\x1f\x02\x01\x12\x04\x9c\x02\x08'\x1a|\x20This\x20field\x20are\x20th\ - e\x20parameters\x20for\x20the\x20kernel\x20module\x20which\x20are\n\x20w\ - hitespace-delimited\x20key=value\x20pairs\x20passed\x20to\x20modprobe(8)\ - .\n\n\r\n\x05\x04\x1f\x02\x01\x04\x12\x04\x9c\x02\x08\x10\n\r\n\x05\x04\ - \x1f\x02\x01\x05\x12\x04\x9c\x02\x11\x17\n\r\n\x05\x04\x1f\x02\x01\x01\ - \x12\x04\x9c\x02\x18\"\n\r\n\x05\x04\x1f\x02\x01\x03\x12\x04\x9c\x02%&\n\ - \x0c\n\x02\x04\x20\x12\x06\x9f\x02\0\xb2\x02\x01\n\x0b\n\x03\x04\x20\x01\ - \x12\x04\x9f\x02\x08\x1c\n\x0c\n\x04\x04\x20\x02\0\x12\x04\xa0\x02\x08\ - \x1c\n\r\n\x05\x04\x20\x02\0\x05\x12\x04\xa0\x02\x08\x0e\n\r\n\x05\x04\ - \x20\x02\0\x01\x12\x04\xa0\x02\x0f\x17\n\r\n\x05\x04\x20\x02\0\x03\x12\ - \x04\xa0\x02\x1a\x1b\n\x0c\n\x04\x04\x20\x02\x01\x12\x04\xa1\x02\x08\x20\ - \n\r\n\x05\x04\x20\x02\x01\x04\x12\x04\xa1\x02\x08\x10\n\r\n\x05\x04\x20\ - \x02\x01\x05\x12\x04\xa1\x02\x11\x17\n\r\n\x05\x04\x20\x02\x01\x01\x12\ - \x04\xa1\x02\x18\x1b\n\r\n\x05\x04\x20\x02\x01\x03\x12\x04\xa1\x02\x1e\ - \x1f\n\x0c\n\x04\x04\x20\x02\x02\x12\x04\xa2\x02\x08&\n\r\n\x05\x04\x20\ - \x02\x02\x04\x12\x04\xa2\x02\x08\x10\n\r\n\x05\x04\x20\x02\x02\x06\x12\ - \x04\xa2\x02\x11\x18\n\r\n\x05\x04\x20\x02\x02\x01\x12\x04\xa2\x02\x19!\ - \n\r\n\x05\x04\x20\x02\x02\x03\x12\x04\xa2\x02$%\n\xea\x01\n\x04\x04\x20\ - \x02\x03\x12\x04\xa8\x02\x08\x1f\x1a\xdb\x01\x20This\x20field\x20means\ - \x20that\x20a\x20pause\x20process\x20needs\x20to\x20be\x20created\x20by\ - \x20the\n\x20agent.\x20This\x20pid\x20namespace\x20of\x20the\x20pause\ - \x20process\x20will\x20be\x20treated\x20as\n\x20a\x20shared\x20pid\x20na\ - mespace.\x20All\x20containers\x20created\x20will\x20join\x20this\x20shar\ - ed\n\x20pid\x20namespace.\n\n\r\n\x05\x04\x20\x02\x03\x05\x12\x04\xa8\ - \x02\x08\x0c\n\r\n\x05\x04\x20\x02\x03\x01\x12\x04\xa8\x02\r\x1a\n\r\n\ - \x05\x04\x20\x02\x03\x03\x12\x04\xa8\x02\x1d\x1e\n\xc5\x01\n\x04\x04\x20\ - \x02\x04\x12\x04\xac\x02\x08\x1e\x1a\xb6\x01\x20SandboxId\x20identifies\ - \x20which\x20sandbox\x20is\x20using\x20the\x20agent.\x20We\x20allow\x20o\ - nly\n\x20one\x20sandbox\x20per\x20agent\x20and\x20implicitly\x20require\ - \x20that\x20CreateSandbox\x20is\n\x20called\x20before\x20other\x20sandbo\ - x/network\x20calls.\n\n\r\n\x05\x04\x20\x02\x04\x05\x12\x04\xac\x02\x08\ - \x0e\n\r\n\x05\x04\x20\x02\x04\x01\x12\x04\xac\x02\x0f\x19\n\r\n\x05\x04\ - \x20\x02\x04\x03\x12\x04\xac\x02\x1c\x1d\n\x98\x01\n\x04\x04\x20\x02\x05\ - \x12\x04\xaf\x02\x08#\x1a\x89\x01\x20This\x20field,\x20if\x20non-empty,\ - \x20designates\x20an\x20absolute\x20path\x20to\x20a\x20directory\n\x20th\ - at\x20the\x20agent\x20will\x20search\x20for\x20OCI\x20hooks\x20to\x20run\ - \x20within\x20the\x20guest.\n\n\r\n\x05\x04\x20\x02\x05\x05\x12\x04\xaf\ - \x02\x08\x0e\n\r\n\x05\x04\x20\x02\x05\x01\x12\x04\xaf\x02\x0f\x1e\n\r\n\ - \x05\x04\x20\x02\x05\x03\x12\x04\xaf\x02!\"\nZ\n\x04\x04\x20\x02\x06\x12\ - \x04\xb1\x02\x081\x1aL\x20This\x20field\x20is\x20the\x20list\x20of\x20ke\ - rnel\x20modules\x20to\x20be\x20loaded\x20in\x20the\x20guest\x20kernel.\n\ - \n\r\n\x05\x04\x20\x02\x06\x04\x12\x04\xb1\x02\x08\x10\n\r\n\x05\x04\x20\ - \x02\x06\x06\x12\x04\xb1\x02\x11\x1d\n\r\n\x05\x04\x20\x02\x06\x01\x12\ - \x04\xb1\x02\x1e,\n\r\n\x05\x04\x20\x02\x06\x03\x12\x04\xb1\x02/0\n\x0c\ - \n\x02\x04!\x12\x06\xb4\x02\0\xb5\x02\x01\n\x0b\n\x03\x04!\x01\x12\x04\ - \xb4\x02\x08\x1d\n\x0c\n\x02\x04\"\x12\x06\xb7\x02\0\xb9\x02\x01\n\x0b\n\ - \x03\x04\"\x01\x12\x04\xb7\x02\x08\x12\n\x0c\n\x04\x04\"\x02\0\x12\x04\ - \xb8\x02\x080\n\r\n\x05\x04\"\x02\0\x04\x12\x04\xb8\x02\x08\x10\n\r\n\ - \x05\x04\"\x02\0\x06\x12\x04\xb8\x02\x11\x20\n\r\n\x05\x04\"\x02\0\x01\ - \x12\x04\xb8\x02!+\n\r\n\x05\x04\"\x02\0\x03\x12\x04\xb8\x02./\n\x0c\n\ - \x02\x04#\x12\x06\xbb\x02\0\xbd\x02\x01\n\x0b\n\x03\x04#\x01\x12\x04\xbb\ - \x02\x08\x0e\n\x0c\n\x04\x04#\x02\0\x12\x04\xbc\x02\x08(\n\r\n\x05\x04#\ - \x02\0\x04\x12\x04\xbc\x02\x08\x10\n\r\n\x05\x04#\x02\0\x06\x12\x04\xbc\ - \x02\x11\x1c\n\r\n\x05\x04#\x02\0\x01\x12\x04\xbc\x02\x1d#\n\r\n\x05\x04\ - #\x02\0\x03\x12\x04\xbc\x02&'\n\x0c\n\x02\x04$\x12\x06\xbf\x02\0\xc1\x02\ - \x01\n\x0b\n\x03\x04$\x01\x12\x04\xbf\x02\x08\x1e\n\x0c\n\x04\x04$\x02\0\ - \x12\x04\xc0\x02\x08&\n\r\n\x05\x04$\x02\0\x06\x12\x04\xc0\x02\x08\x17\n\ - \r\n\x05\x04$\x02\0\x01\x12\x04\xc0\x02\x18!\n\r\n\x05\x04$\x02\0\x03\ - \x12\x04\xc0\x02$%\n\x0c\n\x02\x04%\x12\x06\xc3\x02\0\xc5\x02\x01\n\x0b\ - \n\x03\x04%\x01\x12\x04\xc3\x02\x08\x1b\n\x0c\n\x04\x04%\x02\0\x12\x04\ - \xc4\x02\x08\x1a\n\r\n\x05\x04%\x02\0\x06\x12\x04\xc4\x02\x08\x0e\n\r\n\ - \x05\x04%\x02\0\x01\x12\x04\xc4\x02\x0f\x15\n\r\n\x05\x04%\x02\0\x03\x12\ - \x04\xc4\x02\x18\x19\n\x0c\n\x02\x04&\x12\x06\xc7\x02\0\xc8\x02\x01\n\ - \x0b\n\x03\x04&\x01\x12\x04\xc7\x02\x08\x1d\n\x0c\n\x02\x04'\x12\x06\xca\ - \x02\0\xcb\x02\x01\n\x0b\n\x03\x04'\x01\x12\x04\xca\x02\x08\x19\n\x0c\n\ - \x02\x04(\x12\x06\xcd\x02\0\xcf\x02\x01\n\x0b\n\x03\x04(\x01\x12\x04\xcd\ - \x02\x08\x14\n\x0c\n\x04\x04(\x02\0\x12\x04\xce\x02\x073\n\r\n\x05\x04(\ - \x02\0\x04\x12\x04\xce\x02\x07\x0f\n\r\n\x05\x04(\x02\0\x06\x12\x04\xce\ - \x02\x10!\n\r\n\x05\x04(\x02\0\x01\x12\x04\xce\x02\".\n\r\n\x05\x04(\x02\ - \0\x03\x12\x04\xce\x0212\n\x0c\n\x02\x04)\x12\x06\xd1\x02\0\xd3\x02\x01\ - \n\x0b\n\x03\x04)\x01\x12\x04\xd1\x02\x08\x1e\n\x0c\n\x04\x04)\x02\0\x12\ - \x04\xd2\x02\x07\"\n\r\n\x05\x04)\x02\0\x06\x12\x04\xd2\x02\x07\x13\n\r\ - \n\x05\x04)\x02\0\x01\x12\x04\xd2\x02\x14\x1d\n\r\n\x05\x04)\x02\0\x03\ - \x12\x04\xd2\x02\x20!\n\x0c\n\x02\x04*\x12\x06\xd5\x02\0\xe0\x02\x01\n\ - \x0b\n\x03\x04*\x01\x12\x04\xd5\x02\x08\x1b\n\xf6\x01\n\x04\x04*\x02\0\ - \x12\x04\xd9\x02\x08\x16\x1a\xe7\x01\x20Wait\x20specifies\x20if\x20the\ - \x20caller\x20waits\x20for\x20the\x20agent\x20to\x20online\x20all\x20res\ - ources.\n\x20If\x20true\x20the\x20agent\x20returns\x20once\x20all\x20res\ - ources\x20have\x20been\x20connected,\x20otherwise\x20all\n\x20resources\ - \x20are\x20connected\x20asynchronously\x20and\x20the\x20agent\x20returns\ - \x20immediately.\n\n\r\n\x05\x04*\x02\0\x05\x12\x04\xd9\x02\x08\x0c\n\r\ - \n\x05\x04*\x02\0\x01\x12\x04\xd9\x02\r\x11\n\r\n\x05\x04*\x02\0\x03\x12\ - \x04\xd9\x02\x14\x15\n`\n\x04\x04*\x02\x01\x12\x04\xdc\x02\x08\x1b\x1aR\ - \x20NbCpus\x20specifies\x20the\x20number\x20of\x20CPUs\x20that\x20were\ - \x20added\x20and\x20the\x20agent\x20has\x20to\x20online.\n\n\r\n\x05\x04\ - *\x02\x01\x05\x12\x04\xdc\x02\x08\x0e\n\r\n\x05\x04*\x02\x01\x01\x12\x04\ - \xdc\x02\x0f\x16\n\r\n\x05\x04*\x02\x01\x03\x12\x04\xdc\x02\x19\x1a\nA\n\ - \x04\x04*\x02\x02\x12\x04\xdf\x02\x08\x1a\x1a3\x20CpuOnly\x20specifies\ - \x20whether\x20only\x20online\x20CPU\x20or\x20not.\n\n\r\n\x05\x04*\x02\ - \x02\x05\x12\x04\xdf\x02\x08\x0c\n\r\n\x05\x04*\x02\x02\x01\x12\x04\xdf\ - \x02\r\x15\n\r\n\x05\x04*\x02\x02\x03\x12\x04\xdf\x02\x18\x19\n\x0c\n\ - \x02\x04+\x12\x06\xe2\x02\0\xe5\x02\x01\n\x0b\n\x03\x04+\x01\x12\x04\xe2\ - \x02\x08\x1e\nM\n\x04\x04+\x02\0\x12\x04\xe4\x02\x08\x17\x1a?\x20Data\ - \x20specifies\x20the\x20random\x20data\x20used\x20to\x20reseed\x20the\ - \x20guest\x20crng.\n\n\r\n\x05\x04+\x02\0\x05\x12\x04\xe4\x02\x08\r\n\r\ - \n\x05\x04+\x02\0\x01\x12\x04\xe4\x02\x0e\x12\n\r\n\x05\x04+\x02\0\x03\ - \x12\x04\xe4\x02\x15\x16\nX\n\x02\x04,\x12\x06\xe8\x02\0\xf8\x02\x01\x1a\ - J\x20AgentDetails\x20provides\x20information\x20to\x20the\x20client\x20a\ - bout\x20the\x20running\x20agent.\n\n\x0b\n\x03\x04,\x01\x12\x04\xe8\x02\ - \x08\x14\nC\n\x04\x04,\x02\0\x12\x04\xea\x02\x08\x1b\x1a5\x20Semantic\ - \x20version\x20of\x20agent\x20(see\x20https://semver.org).\n\n\r\n\x05\ - \x04,\x02\0\x05\x12\x04\xea\x02\x08\x0e\n\r\n\x05\x04,\x02\0\x01\x12\x04\ - \xea\x02\x0f\x16\n\r\n\x05\x04,\x02\0\x03\x12\x04\xea\x02\x19\x1a\n5\n\ - \x04\x04,\x02\x01\x12\x04\xed\x02\x08\x1d\x1a'\x20Set\x20if\x20the\x20ag\ - ent\x20is\x20running\x20as\x20PID\x201.\n\n\r\n\x05\x04,\x02\x01\x05\x12\ - \x04\xed\x02\x08\x0c\n\r\n\x05\x04,\x02\x01\x01\x12\x04\xed\x02\r\x18\n\ - \r\n\x05\x04,\x02\x01\x03\x12\x04\xed\x02\x1b\x1c\n2\n\x04\x04,\x02\x02\ - \x12\x04\xf0\x02\x08,\x1a$\x20List\x20of\x20available\x20device\x20handl\ - ers.\n\n\r\n\x05\x04,\x02\x02\x04\x12\x04\xf0\x02\x08\x10\n\r\n\x05\x04,\ - \x02\x02\x05\x12\x04\xf0\x02\x11\x17\n\r\n\x05\x04,\x02\x02\x01\x12\x04\ - \xf0\x02\x18'\n\r\n\x05\x04,\x02\x02\x03\x12\x04\xf0\x02*+\n3\n\x04\x04,\ - \x02\x03\x12\x04\xf3\x02\x08-\x1a%\x20List\x20of\x20available\x20storage\ - \x20handlers.\n\n\r\n\x05\x04,\x02\x03\x04\x12\x04\xf3\x02\x08\x10\n\r\n\ - \x05\x04,\x02\x03\x05\x12\x04\xf3\x02\x11\x17\n\r\n\x05\x04,\x02\x03\x01\ - \x12\x04\xf3\x02\x18(\n\r\n\x05\x04,\x02\x03\x03\x12\x04\xf3\x02+,\np\n\ - \x04\x04,\x02\x04\x12\x04\xf7\x02\x08\"\x1ab\x20Set\x20only\x20if\x20the\ - \x20agent\x20is\x20built\x20with\x20seccomp\x20support\x20and\x20the\x20\ - guest\n\x20environment\x20supports\x20seccomp.\n\n\r\n\x05\x04,\x02\x04\ - \x05\x12\x04\xf7\x02\x08\x0c\n\r\n\x05\x04,\x02\x04\x01\x12\x04\xf7\x02\ - \r\x1d\n\r\n\x05\x04,\x02\x04\x03\x12\x04\xf7\x02\x20!\n\x0c\n\x02\x04-\ - \x12\x06\xfa\x02\0\x84\x03\x01\n\x0b\n\x03\x04-\x01\x12\x04\xfa\x02\x08\ - \x1b\n\xd5\x01\n\x04\x04-\x02\0\x12\x04\xfe\x02\x08\x20\x1a\xc6\x01\x20M\ - emBlockSize\x20asks\x20server\x20to\x20return\x20the\x20system\x20memory\ - \x20block\x20size\x20that\x20can\x20be\x20used\n\x20for\x20memory\x20hot\ - plug\x20alignment.\x20Typically\x20the\x20server\x20returns\x20what's\ - \x20in\n\x20/sys/devices/system/memory/block_size_bytes.\n\n\r\n\x05\x04\ - -\x02\0\x05\x12\x04\xfe\x02\x08\x0c\n\r\n\x05\x04-\x02\0\x01\x12\x04\xfe\ - \x02\r\x1b\n\r\n\x05\x04-\x02\0\x03\x12\x04\xfe\x02\x1e\x1f\n\xd1\x01\n\ - \x04\x04-\x02\x01\x12\x04\x83\x03\x08#\x1a\xc2\x01\x20MemoryHotplugProbe\ - \x20asks\x20server\x20to\x20return\x20whether\x20guest\x20kernel\x20supp\ - orts\x20memory\x20hotplug\n\x20via\x20probeinterface.\x20Typically\x20th\ - e\x20server\x20will\x20check\x20if\x20the\x20path\n\x20/sys/devices/syst\ - em/memory/probe\x20exists.\n\n\r\n\x05\x04-\x02\x01\x05\x12\x04\x83\x03\ - \x08\x0c\n\r\n\x05\x04-\x02\x01\x01\x12\x04\x83\x03\r\x1e\n\r\n\x05\x04-\ - \x02\x01\x03\x12\x04\x83\x03!\"\n\x0c\n\x02\x04.\x12\x06\x86\x03\0\x8d\ - \x03\x01\n\x0b\n\x03\x04.\x01\x12\x04\x86\x03\x08\x1c\nP\n\x04\x04.\x02\ - \0\x12\x04\x88\x03\x08(\x1aB\x20MemBlockSizeBytes\x20returns\x20the\x20s\ - ystem\x20memory\x20block\x20size\x20in\x20bytes.\n\n\r\n\x05\x04.\x02\0\ - \x05\x12\x04\x88\x03\x08\x0e\n\r\n\x05\x04.\x02\0\x01\x12\x04\x88\x03\ - \x0f#\n\r\n\x05\x04.\x02\0\x03\x12\x04\x88\x03&'\n\x0c\n\x04\x04.\x02\ - \x01\x12\x04\x8a\x03\x08'\n\r\n\x05\x04.\x02\x01\x06\x12\x04\x8a\x03\x08\ - \x14\n\r\n\x05\x04.\x02\x01\x01\x12\x04\x8a\x03\x15\"\n\r\n\x05\x04.\x02\ - \x01\x03\x12\x04\x8a\x03%&\n\x0c\n\x04\x04.\x02\x02\x12\x04\x8c\x03\x08+\ - \n\r\n\x05\x04.\x02\x02\x05\x12\x04\x8c\x03\x08\x0c\n\r\n\x05\x04.\x02\ - \x02\x01\x12\x04\x8c\x03\r&\n\r\n\x05\x04.\x02\x02\x03\x12\x04\x8c\x03)*\ - \n\x0c\n\x02\x04/\x12\x06\x8f\x03\0\x93\x03\x01\n\x0b\n\x03\x04/\x01\x12\ - \x04\x8f\x03\x08\x20\n\xb2\x01\n\x04\x04/\x02\0\x12\x04\x92\x03\x080\x1a\ - \xa3\x01\x20server\x20needs\x20to\x20send\x20the\x20value\x20of\x20memHo\ - tplugProbeAddr\x20into\x20file\x20/sys/devices/system/memory/probe,\n\ - \x20in\x20order\x20to\x20notify\x20the\x20guest\x20kernel\x20about\x20ho\ - t-add\x20memory\x20event\n\n\r\n\x05\x04/\x02\0\x04\x12\x04\x92\x03\x08\ - \x10\n\r\n\x05\x04/\x02\0\x05\x12\x04\x92\x03\x11\x17\n\r\n\x05\x04/\x02\ - \0\x01\x12\x04\x92\x03\x18+\n\r\n\x05\x04/\x02\0\x03\x12\x04\x92\x03./\n\ - \x0c\n\x02\x040\x12\x06\x95\x03\0\x9a\x03\x01\n\x0b\n\x03\x040\x01\x12\ - \x04\x95\x03\x08\x1f\n/\n\x04\x040\x02\0\x12\x04\x97\x03\x08\x16\x1a!\ - \x20Sec\x20the\x20second\x20since\x20the\x20Epoch.\n\n\r\n\x05\x040\x02\ - \0\x05\x12\x04\x97\x03\x08\r\n\r\n\x05\x040\x02\0\x01\x12\x04\x97\x03\ - \x0e\x11\n\r\n\x05\x040\x02\0\x03\x12\x04\x97\x03\x14\x15\nF\n\x04\x040\ - \x02\x01\x12\x04\x99\x03\x08\x17\x1a8\x20Usec\x20the\x20microseconds\x20\ - portion\x20of\x20time\x20since\x20the\x20Epoch.\n\n\r\n\x05\x040\x02\x01\ - \x05\x12\x04\x99\x03\x08\r\n\r\n\x05\x040\x02\x01\x01\x12\x04\x99\x03\ - \x0e\x12\n\r\n\x05\x040\x02\x01\x03\x12\x04\x99\x03\x15\x16\n\xa3\x01\n\ - \x02\x041\x12\x06\x9e\x03\0\xb8\x03\x01\x1a\x94\x01\x20Storage\x20repres\ - ents\x20both\x20the\x20rootfs\x20of\x20the\x20container,\x20and\x20any\ - \x20volume\x20that\n\x20could\x20have\x20been\x20defined\x20through\x20t\ - he\x20Mount\x20list\x20of\x20the\x20OCI\x20specification.\n\n\x0b\n\x03\ - \x041\x01\x12\x04\x9e\x03\x08\x0f\n\x8b\x02\n\x04\x041\x02\0\x12\x04\xa3\ - \x03\x08\x1a\x1a\xfc\x01\x20Driver\x20is\x20used\x20to\x20define\x20the\ - \x20way\x20the\x20storage\x20is\x20passed\x20through\x20the\n\x20virtual\ - \x20machine.\x20It\x20can\x20be\x20\"9p\",\x20\"blk\",\x20or\x20somethin\ - g\x20else,\x20but\x20for\n\x20all\x20cases,\x20this\x20will\x20define\ - \x20if\x20some\x20extra\x20steps\x20are\x20required\x20before\n\x20this\ - \x20storage\x20gets\x20mounted\x20into\x20the\x20container.\n\n\r\n\x05\ - \x041\x02\0\x05\x12\x04\xa3\x03\x08\x0e\n\r\n\x05\x041\x02\0\x01\x12\x04\ - \xa3\x03\x0f\x15\n\r\n\x05\x041\x02\0\x03\x12\x04\xa3\x03\x18\x19\n\xd0\ - \x01\n\x04\x041\x02\x01\x12\x04\xa7\x03\x08+\x1a\xc1\x01\x20DriverOption\ - s\x20allows\x20the\x20caller\x20to\x20define\x20a\x20list\x20of\x20optio\ - ns\x20such\n\x20as\x20block\x20sizes,\x20numbers\x20of\x20luns,\x20...\ - \x20which\x20are\x20very\x20specific\x20to\n\x20every\x20device\x20and\ - \x20cannot\x20be\x20generalized\x20through\x20extra\x20fields.\n\n\r\n\ - \x05\x041\x02\x01\x04\x12\x04\xa7\x03\x08\x10\n\r\n\x05\x041\x02\x01\x05\ - \x12\x04\xa7\x03\x11\x17\n\r\n\x05\x041\x02\x01\x01\x12\x04\xa7\x03\x18&\ - \n\r\n\x05\x041\x02\x01\x03\x12\x04\xa7\x03)*\n\xce\x02\n\x04\x041\x02\ - \x02\x12\x04\xad\x03\x08\x1a\x1a\xbf\x02\x20Source\x20can\x20be\x20anyth\ - ing\x20representing\x20the\x20source\x20of\x20the\x20storage.\x20This\n\ - \x20will\x20be\x20handled\x20by\x20the\x20proper\x20handler\x20based\x20\ - on\x20the\x20Driver\x20used.\n\x20For\x20instance,\x20it\x20can\x20be\ - \x20a\x20very\x20simple\x20path\x20if\x20the\x20caller\x20knows\x20the\n\ - \x20name\x20of\x20device\x20inside\x20the\x20VM,\x20or\x20it\x20can\x20b\ - e\x20some\x20sort\x20of\x20identifier\n\x20to\x20let\x20the\x20agent\x20\ - find\x20the\x20device\x20inside\x20the\x20VM.\n\n\r\n\x05\x041\x02\x02\ - \x05\x12\x04\xad\x03\x08\x0e\n\r\n\x05\x041\x02\x02\x01\x12\x04\xad\x03\ - \x0f\x15\n\r\n\x05\x041\x02\x02\x03\x12\x04\xad\x03\x18\x19\n\xdb\x01\n\ - \x04\x041\x02\x03\x12\x04\xb1\x03\x08\x1a\x1a\xcc\x01\x20Fstype\x20repre\ - sents\x20the\x20filesystem\x20that\x20needs\x20to\x20be\x20used\x20to\ - \x20mount\x20the\n\x20storage\x20inside\x20the\x20VM.\x20For\x20instance\ - ,\x20it\x20could\x20be\x20\"xfs\"\x20for\x20block\n\x20device,\x20\"9p\"\ - \x20for\x20shared\x20filesystem,\x20or\x20\"tmpfs\"\x20for\x20shared\x20\ - /dev/shm.\n\n\r\n\x05\x041\x02\x03\x05\x12\x04\xb1\x03\x08\x0e\n\r\n\x05\ - \x041\x02\x03\x01\x12\x04\xb1\x03\x0f\x15\n\r\n\x05\x041\x02\x03\x03\x12\ - \x04\xb1\x03\x18\x19\nw\n\x04\x041\x02\x04\x12\x04\xb4\x03\x08$\x1ai\x20\ - Options\x20describes\x20the\x20additional\x20options\x20that\x20might\ - \x20be\x20needed\x20to\n\x20mount\x20properly\x20the\x20storage\x20files\ - ytem.\n\n\r\n\x05\x041\x02\x04\x04\x12\x04\xb4\x03\x08\x10\n\r\n\x05\x04\ - 1\x02\x04\x05\x12\x04\xb4\x03\x11\x17\n\r\n\x05\x041\x02\x04\x01\x12\x04\ - \xb4\x03\x18\x1f\n\r\n\x05\x041\x02\x04\x03\x12\x04\xb4\x03\"#\na\n\x04\ - \x041\x02\x05\x12\x04\xb7\x03\x08\x1f\x1aS\x20MountPoint\x20refers\x20to\ - \x20the\x20path\x20where\x20the\x20storage\x20should\x20be\x20mounted\n\ - \x20inside\x20the\x20VM.\n\n\r\n\x05\x041\x02\x05\x05\x12\x04\xb7\x03\ - \x08\x0e\n\r\n\x05\x041\x02\x05\x01\x12\x04\xb7\x03\x0f\x1a\n\r\n\x05\ - \x041\x02\x05\x03\x12\x04\xb7\x03\x1d\x1e\n\x88\x01\n\x02\x042\x12\x06\ - \xbc\x03\0\xdc\x03\x01\x1az\x20Device\x20represents\x20only\x20the\x20de\ - vices\x20that\x20could\x20have\x20been\x20defined\x20through\x20the\n\ - \x20Linux\x20Device\x20list\x20of\x20the\x20OCI\x20specification.\n\n\ - \x0b\n\x03\x042\x01\x12\x04\xbc\x03\x08\x0e\n\xb0\x01\n\x04\x042\x02\0\ - \x12\x04\xc0\x03\x08\x16\x1a\xa1\x01\x20Id\x20can\x20be\x20used\x20to\ - \x20identify\x20the\x20device\x20inside\x20the\x20VM.\x20Some\x20devices\ - \n\x20might\x20not\x20need\x20it\x20to\x20be\x20identified\x20on\x20the\ - \x20VM,\x20and\x20will\x20rely\x20on\x20the\n\x20provided\x20VmPath\x20i\ - nstead.\n\n\r\n\x05\x042\x02\0\x05\x12\x04\xc0\x03\x08\x0e\n\r\n\x05\x04\ - 2\x02\0\x01\x12\x04\xc0\x03\x0f\x11\n\r\n\x05\x042\x02\0\x03\x12\x04\xc0\ - \x03\x14\x15\n\xbd\x01\n\x04\x042\x02\x01\x12\x04\xc5\x03\x08\x18\x1a\ - \xae\x01\x20Type\x20defines\x20the\x20type\x20of\x20device\x20described.\ - \x20This\x20can\x20be\x20\"blk\",\n\x20\"scsi\",\x20\"vfio\",\x20...\n\ - \x20Particularly,\x20this\x20should\x20be\x20used\x20to\x20trigger\x20th\ - e\x20use\x20of\x20the\n\x20appropriate\x20device\x20handler.\n\n\r\n\x05\ - \x042\x02\x01\x05\x12\x04\xc5\x03\x08\x0e\n\r\n\x05\x042\x02\x01\x01\x12\ - \x04\xc5\x03\x0f\x13\n\r\n\x05\x042\x02\x01\x03\x12\x04\xc5\x03\x16\x17\ - \n\xab\x02\n\x04\x042\x02\x02\x12\x04\xcb\x03\x08\x1b\x1a\x9c\x02\x20VmP\ - ath\x20can\x20be\x20used\x20by\x20the\x20caller\x20to\x20provide\x20dire\ - ctly\x20the\x20path\x20of\n\x20the\x20device\x20as\x20it\x20will\x20appe\ - ar\x20inside\x20the\x20VM.\x20For\x20some\x20devices,\x20the\n\x20device\ - \x20id\x20or\x20the\x20list\x20of\x20options\x20passed\x20might\x20not\ - \x20be\x20enough\x20to\x20find\n\x20the\x20device.\x20In\x20those\x20cas\ - es,\x20the\x20caller\x20should\x20predict\x20and\x20provide\n\x20this\ - \x20vm_path.\n\n\r\n\x05\x042\x02\x02\x05\x12\x04\xcb\x03\x08\x0e\n\r\n\ - \x05\x042\x02\x02\x01\x12\x04\xcb\x03\x0f\x16\n\r\n\x05\x042\x02\x02\x03\ - \x12\x04\xcb\x03\x19\x1a\n\xd4\x05\n\x04\x042\x02\x03\x12\x04\xd7\x03\ - \x08\"\x1a\xc5\x05\x20ContainerPath\x20defines\x20the\x20path\x20where\ - \x20the\x20device\x20should\x20be\x20found\x20inside\n\x20the\x20contain\ - er.\x20This\x20path\x20should\x20match\x20the\x20path\x20of\x20the\x20de\ - vice\x20from\n\x20the\x20device\x20list\x20listed\x20inside\x20the\x20OC\ - I\x20spec.\x20This\x20is\x20used\x20in\x20order\n\x20to\x20identify\x20t\ - he\x20right\x20device\x20in\x20the\x20spec\x20and\x20update\x20it\x20wit\ - h\x20the\n\x20right\x20options\x20such\x20as\x20major/minor\x20numbers\ - \x20as\x20they\x20appear\x20inside\n\x20the\x20VM\x20for\x20instance.\ - \x20Note\x20that\x20an\x20empty\x20ctr_path\x20should\x20be\x20used\n\ - \x20to\x20make\x20sure\x20the\x20device\x20handler\x20inside\x20the\x20a\ - gent\x20is\x20called,\x20but\n\x20no\x20spec\x20update\x20needs\x20to\ - \x20be\x20performed.\x20This\x20has\x20to\x20happen\x20for\x20the\n\x20c\ - ase\x20of\x20rootfs,\x20when\x20a\x20device\x20has\x20to\x20be\x20waited\ - \x20for\x20after\x20it\x20has\n\x20been\x20hotplugged.\x20An\x20equivale\ - nt\x20Storage\x20entry\x20should\x20be\x20defined\x20if\n\x20any\x20moun\ - t\x20needs\x20to\x20be\x20performed\x20afterwards.\n\n\r\n\x05\x042\x02\ - \x03\x05\x12\x04\xd7\x03\x08\x0e\n\r\n\x05\x042\x02\x03\x01\x12\x04\xd7\ - \x03\x0f\x1d\n\r\n\x05\x042\x02\x03\x03\x12\x04\xd7\x03\x20!\n\xca\x01\n\ - \x04\x042\x02\x04\x12\x04\xdb\x03\x08$\x1a\xbb\x01\x20Options\x20allows\ - \x20the\x20caller\x20to\x20define\x20a\x20list\x20of\x20options\x20such\ - \x20as\x20block\n\x20sizes,\x20numbers\x20of\x20luns,\x20...\x20which\ - \x20are\x20very\x20specific\x20to\x20every\x20device\n\x20and\x20cannot\ - \x20be\x20generalized\x20through\x20extra\x20fields.\n\n\r\n\x05\x042\ - \x02\x04\x04\x12\x04\xdb\x03\x08\x10\n\r\n\x05\x042\x02\x04\x05\x12\x04\ - \xdb\x03\x11\x17\n\r\n\x05\x042\x02\x04\x01\x12\x04\xdb\x03\x18\x1f\n\r\ - \n\x05\x042\x02\x04\x03\x12\x04\xdb\x03\"#\n\x0c\n\x02\x043\x12\x06\xde\ - \x03\0\xe2\x03\x01\n\x0b\n\x03\x043\x01\x12\x04\xde\x03\x08\x12\n\x0c\n\ - \x04\x043\x02\0\x12\x04\xdf\x03\x08\x17\n\r\n\x05\x043\x02\0\x05\x12\x04\ - \xdf\x03\x08\x0e\n\r\n\x05\x043\x02\0\x01\x12\x04\xdf\x03\x0f\x12\n\r\n\ - \x05\x043\x02\0\x03\x12\x04\xdf\x03\x15\x16\n\x0c\n\x04\x043\x02\x01\x12\ - \x04\xe0\x03\x08\x17\n\r\n\x05\x043\x02\x01\x05\x12\x04\xe0\x03\x08\x0e\ - \n\r\n\x05\x043\x02\x01\x01\x12\x04\xe0\x03\x0f\x12\n\r\n\x05\x043\x02\ - \x01\x03\x12\x04\xe0\x03\x15\x16\n\x0c\n\x04\x043\x02\x02\x12\x04\xe1\ - \x03\x08+\n\r\n\x05\x043\x02\x02\x04\x12\x04\xe1\x03\x08\x10\n\r\n\x05\ - \x043\x02\x02\x05\x12\x04\xe1\x03\x11\x17\n\r\n\x05\x043\x02\x02\x01\x12\ - \x04\xe1\x03\x18&\n\r\n\x05\x043\x02\x02\x03\x12\x04\xe1\x03)*\n\x0c\n\ - \x02\x044\x12\x06\xe4\x03\0\xf8\x03\x01\n\x0b\n\x03\x044\x01\x12\x04\xe4\ - \x03\x08\x17\nj\n\x04\x044\x02\0\x12\x04\xe7\x03\x08\x18\x1a\\\x20Path\ - \x20is\x20the\x20destination\x20file\x20in\x20the\x20guest.\x20It\x20mus\ - t\x20be\x20absolute,\n\x20canonical\x20and\x20below\x20/run.\n\n\r\n\x05\ - \x044\x02\0\x05\x12\x04\xe7\x03\x08\x0e\n\r\n\x05\x044\x02\0\x01\x12\x04\ - \xe7\x03\x0f\x13\n\r\n\x05\x044\x02\0\x03\x12\x04\xe7\x03\x16\x17\n\xbd\ - \x01\n\x04\x044\x02\x01\x12\x04\xeb\x03\x08\x1c\x1a\xae\x01\x20FileSize\ - \x20is\x20the\x20expected\x20file\x20size,\x20for\x20security\x20reasons\ - \x20write\x20operations\n\x20are\x20made\x20in\x20a\x20temporary\x20file\ - ,\x20once\x20it\x20has\x20the\x20expected\x20size,\x20it's\x20moved\n\ - \x20to\x20the\x20destination\x20path.\n\n\r\n\x05\x044\x02\x01\x05\x12\ - \x04\xeb\x03\x08\r\n\r\n\x05\x044\x02\x01\x01\x12\x04\xeb\x03\x0e\x17\n\ - \r\n\x05\x044\x02\x01\x03\x12\x04\xeb\x03\x1a\x1b\n*\n\x04\x044\x02\x02\ - \x12\x04\xed\x03\x08\x1d\x1a\x1c\x20FileMode\x20is\x20the\x20file\x20mod\ - e.\n\n\r\n\x05\x044\x02\x02\x05\x12\x04\xed\x03\x08\x0e\n\r\n\x05\x044\ - \x02\x02\x01\x12\x04\xed\x03\x0f\x18\n\r\n\x05\x044\x02\x02\x03\x12\x04\ - \xed\x03\x1b\x1c\nS\n\x04\x044\x02\x03\x12\x04\xef\x03\x08\x1c\x1aE\x20D\ - irMode\x20is\x20the\x20mode\x20for\x20the\x20parent\x20directories\x20of\ - \x20destination\x20path.\n\n\r\n\x05\x044\x02\x03\x05\x12\x04\xef\x03\ - \x08\x0e\n\r\n\x05\x044\x02\x03\x01\x12\x04\xef\x03\x0f\x17\n\r\n\x05\ - \x044\x02\x03\x03\x12\x04\xef\x03\x1a\x1b\n+\n\x04\x044\x02\x04\x12\x04\ - \xf1\x03\x08\x16\x1a\x1d\x20Uid\x20is\x20the\x20numeric\x20user\x20id.\n\ - \n\r\n\x05\x044\x02\x04\x05\x12\x04\xf1\x03\x08\r\n\r\n\x05\x044\x02\x04\ - \x01\x12\x04\xf1\x03\x0e\x11\n\r\n\x05\x044\x02\x04\x03\x12\x04\xf1\x03\ - \x14\x15\n,\n\x04\x044\x02\x05\x12\x04\xf3\x03\x08\x16\x1a\x1e\x20Gid\ - \x20is\x20the\x20numeric\x20group\x20id.\n\n\r\n\x05\x044\x02\x05\x05\ - \x12\x04\xf3\x03\x08\r\n\r\n\x05\x044\x02\x05\x01\x12\x04\xf3\x03\x0e\ - \x11\n\r\n\x05\x044\x02\x05\x03\x12\x04\xf3\x03\x14\x15\n4\n\x04\x044\ - \x02\x06\x12\x04\xf5\x03\x08\x19\x1a&\x20Offset\x20for\x20the\x20next\ - \x20write\x20operation.\n\n\r\n\x05\x044\x02\x06\x05\x12\x04\xf5\x03\x08\ - \r\n\r\n\x05\x044\x02\x06\x01\x12\x04\xf5\x03\x0e\x14\n\r\n\x05\x044\x02\ - \x06\x03\x12\x04\xf5\x03\x17\x18\n6\n\x04\x044\x02\x07\x12\x04\xf7\x03\ - \x08\x17\x1a(\x20Data\x20to\x20write\x20in\x20the\x20destination\x20file\ - .\n\n\r\n\x05\x044\x02\x07\x05\x12\x04\xf7\x03\x08\r\n\r\n\x05\x044\x02\ - \x07\x01\x12\x04\xf7\x03\x0e\x12\n\r\n\x05\x044\x02\x07\x03\x12\x04\xf7\ - \x03\x15\x16\n\x0c\n\x02\x045\x12\x06\xfa\x03\0\xfb\x03\x01\n\x0b\n\x03\ - \x045\x01\x12\x04\xfa\x03\x08\x1b\n\x0c\n\x02\x046\x12\x06\xfd\x03\0\xfe\ - \x03\x01\n\x0b\n\x03\x046\x01\x12\x04\xfd\x03\x08\x1a\n\n\n\x02\x047\x12\ - \x04\x80\x04\0\x1d\n\x0b\n\x03\x047\x01\x12\x04\x80\x04\x08\x1a\n\x0c\n\ - \x02\x048\x12\x06\x82\x04\0\x84\x04\x01\n\x0b\n\x03\x048\x01\x12\x04\x82\ - \x04\x08\x10\n\x0c\n\x04\x048\x02\0\x12\x04\x83\x04\x08\x20\n\r\n\x05\ - \x048\x02\0\x05\x12\x04\x83\x04\x08\x0e\n\r\n\x05\x048\x02\0\x01\x12\x04\ - \x83\x04\x0f\x1b\n\r\n\x05\x048\x02\0\x03\x12\x04\x83\x04\x1e\x1f\n\n\n\ - \x02\x049\x12\x04\x86\x04\0\x1c\n\x0b\n\x03\x049\x01\x12\x04\x86\x04\x08\ - \x19\n\x0c\n\x02\x04:\x12\x06\x88\x04\0\x8a\x04\x01\n\x0b\n\x03\x04:\x01\ - \x12\x04\x88\x04\x08\x0f\n\x0c\n\x04\x04:\x02\0\x12\x04\x89\x04\x08\x1b\ - \n\r\n\x05\x04:\x02\0\x05\x12\x04\x89\x04\x08\x0e\n\r\n\x05\x04:\x02\0\ - \x01\x12\x04\x89\x04\x0f\x16\n\r\n\x05\x04:\x02\0\x03\x12\x04\x89\x04\ - \x19\x1ab\x06proto3\ -"; - -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - unsafe { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) - } -} diff --git a/src/agent/protocols/src/agent_ttrpc.rs b/src/agent/protocols/src/agent_ttrpc.rs deleted file mode 100644 index f44a92c53..000000000 --- a/src/agent/protocols/src/agent_ttrpc.rs +++ /dev/null @@ -1,808 +0,0 @@ -// Copyright (c) 2020 Ant Financial -// -// SPDX-License-Identifier: Apache-2.0 -// - -// This file is generated by ttrpc-compiler 0.3.0. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clipto_camel_casepy)] - -#![cfg_attr(rustfmt, rustfmt_skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] -use protobuf::{CodedInputStream, CodedOutputStream, Message}; -use std::collections::HashMap; -use std::sync::Arc; - -#[derive(Clone)] -pub struct AgentServiceClient { - client: ::ttrpc::Client, -} - -impl AgentServiceClient { - pub fn new(client: ::ttrpc::Client) -> Self { - AgentServiceClient { - client: client, - } - } - - pub fn create_container(&self, req: &super::agent::CreateContainerRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "CreateContainer", cres); - Ok(cres) - } - - pub fn start_container(&self, req: &super::agent::StartContainerRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "StartContainer", cres); - Ok(cres) - } - - pub fn remove_container(&self, req: &super::agent::RemoveContainerRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "RemoveContainer", cres); - Ok(cres) - } - - pub fn exec_process(&self, req: &super::agent::ExecProcessRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "ExecProcess", cres); - Ok(cres) - } - - pub fn signal_process(&self, req: &super::agent::SignalProcessRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "SignalProcess", cres); - Ok(cres) - } - - pub fn wait_process(&self, req: &super::agent::WaitProcessRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::WaitProcessResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "WaitProcess", cres); - Ok(cres) - } - - pub fn list_processes(&self, req: &super::agent::ListProcessesRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::ListProcessesResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "ListProcesses", cres); - Ok(cres) - } - - pub fn update_container(&self, req: &super::agent::UpdateContainerRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "UpdateContainer", cres); - Ok(cres) - } - - pub fn stats_container(&self, req: &super::agent::StatsContainerRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::StatsContainerResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "StatsContainer", cres); - Ok(cres) - } - - pub fn pause_container(&self, req: &super::agent::PauseContainerRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "PauseContainer", cres); - Ok(cres) - } - - pub fn resume_container(&self, req: &super::agent::ResumeContainerRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "ResumeContainer", cres); - Ok(cres) - } - - pub fn write_stdin(&self, req: &super::agent::WriteStreamRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::WriteStreamResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "WriteStdin", cres); - Ok(cres) - } - - pub fn read_stdout(&self, req: &super::agent::ReadStreamRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::ReadStreamResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "ReadStdout", cres); - Ok(cres) - } - - pub fn read_stderr(&self, req: &super::agent::ReadStreamRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::ReadStreamResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "ReadStderr", cres); - Ok(cres) - } - - pub fn close_stdin(&self, req: &super::agent::CloseStdinRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "CloseStdin", cres); - Ok(cres) - } - - pub fn tty_win_resize(&self, req: &super::agent::TtyWinResizeRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "TtyWinResize", cres); - Ok(cres) - } - - pub fn update_interface(&self, req: &super::agent::UpdateInterfaceRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::types::Interface::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "UpdateInterface", cres); - Ok(cres) - } - - pub fn update_routes(&self, req: &super::agent::UpdateRoutesRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::Routes::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "UpdateRoutes", cres); - Ok(cres) - } - - pub fn list_interfaces(&self, req: &super::agent::ListInterfacesRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::Interfaces::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "ListInterfaces", cres); - Ok(cres) - } - - pub fn list_routes(&self, req: &super::agent::ListRoutesRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::Routes::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "ListRoutes", cres); - Ok(cres) - } - - pub fn add_arp_neighbors(&self, req: &super::agent::AddARPNeighborsRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "AddARPNeighbors", cres); - Ok(cres) - } - - pub fn start_tracing(&self, req: &super::agent::StartTracingRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "StartTracing", cres); - Ok(cres) - } - - pub fn stop_tracing(&self, req: &super::agent::StopTracingRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "StopTracing", cres); - Ok(cres) - } - - pub fn get_metrics(&self, req: &super::agent::GetMetricsRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::Metrics::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "GetMetrics", cres); - Ok(cres) - } - - pub fn create_sandbox(&self, req: &super::agent::CreateSandboxRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "CreateSandbox", cres); - Ok(cres) - } - - pub fn destroy_sandbox(&self, req: &super::agent::DestroySandboxRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "DestroySandbox", cres); - Ok(cres) - } - - pub fn online_cpu_mem(&self, req: &super::agent::OnlineCPUMemRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "OnlineCPUMem", cres); - Ok(cres) - } - - pub fn reseed_random_dev(&self, req: &super::agent::ReseedRandomDevRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "ReseedRandomDev", cres); - Ok(cres) - } - - pub fn get_guest_details(&self, req: &super::agent::GuestDetailsRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::GuestDetailsResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "GetGuestDetails", cres); - Ok(cres) - } - - pub fn mem_hotplug_by_probe(&self, req: &super::agent::MemHotplugByProbeRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "MemHotplugByProbe", cres); - Ok(cres) - } - - pub fn set_guest_date_time(&self, req: &super::agent::SetGuestDateTimeRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "SetGuestDateTime", cres); - Ok(cres) - } - - pub fn copy_file(&self, req: &super::agent::CopyFileRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::empty::Empty::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "CopyFile", cres); - Ok(cres) - } - - pub fn get_oom_event(&self, req: &super::agent::GetOOMEventRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::agent::OOMEvent::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.AgentService", "GetOOMEvent", cres); - Ok(cres) - } -} - -struct CreateContainerMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for CreateContainerMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, CreateContainerRequest, create_container); - Ok(()) - } -} - -struct StartContainerMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for StartContainerMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, StartContainerRequest, start_container); - Ok(()) - } -} - -struct RemoveContainerMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for RemoveContainerMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, RemoveContainerRequest, remove_container); - Ok(()) - } -} - -struct ExecProcessMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for ExecProcessMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, ExecProcessRequest, exec_process); - Ok(()) - } -} - -struct SignalProcessMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for SignalProcessMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, SignalProcessRequest, signal_process); - Ok(()) - } -} - -struct WaitProcessMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for WaitProcessMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, WaitProcessRequest, wait_process); - Ok(()) - } -} - -struct ListProcessesMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for ListProcessesMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, ListProcessesRequest, list_processes); - Ok(()) - } -} - -struct UpdateContainerMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for UpdateContainerMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, UpdateContainerRequest, update_container); - Ok(()) - } -} - -struct StatsContainerMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for StatsContainerMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, StatsContainerRequest, stats_container); - Ok(()) - } -} - -struct PauseContainerMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for PauseContainerMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, PauseContainerRequest, pause_container); - Ok(()) - } -} - -struct ResumeContainerMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for ResumeContainerMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, ResumeContainerRequest, resume_container); - Ok(()) - } -} - -struct WriteStdinMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for WriteStdinMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, WriteStreamRequest, write_stdin); - Ok(()) - } -} - -struct ReadStdoutMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for ReadStdoutMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, ReadStreamRequest, read_stdout); - Ok(()) - } -} - -struct ReadStderrMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for ReadStderrMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, ReadStreamRequest, read_stderr); - Ok(()) - } -} - -struct CloseStdinMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for CloseStdinMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, CloseStdinRequest, close_stdin); - Ok(()) - } -} - -struct TtyWinResizeMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for TtyWinResizeMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, TtyWinResizeRequest, tty_win_resize); - Ok(()) - } -} - -struct UpdateInterfaceMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for UpdateInterfaceMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, UpdateInterfaceRequest, update_interface); - Ok(()) - } -} - -struct UpdateRoutesMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for UpdateRoutesMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, UpdateRoutesRequest, update_routes); - Ok(()) - } -} - -struct ListInterfacesMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for ListInterfacesMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, ListInterfacesRequest, list_interfaces); - Ok(()) - } -} - -struct ListRoutesMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for ListRoutesMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, ListRoutesRequest, list_routes); - Ok(()) - } -} - -struct AddArpNeighborsMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for AddArpNeighborsMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, AddARPNeighborsRequest, add_arp_neighbors); - Ok(()) - } -} - -struct StartTracingMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for StartTracingMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, StartTracingRequest, start_tracing); - Ok(()) - } -} - -struct StopTracingMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for StopTracingMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, StopTracingRequest, stop_tracing); - Ok(()) - } -} - -struct GetMetricsMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for GetMetricsMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, GetMetricsRequest, get_metrics); - Ok(()) - } -} - -struct CreateSandboxMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for CreateSandboxMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, CreateSandboxRequest, create_sandbox); - Ok(()) - } -} - -struct DestroySandboxMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for DestroySandboxMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, DestroySandboxRequest, destroy_sandbox); - Ok(()) - } -} - -struct OnlineCpuMemMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for OnlineCpuMemMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, OnlineCPUMemRequest, online_cpu_mem); - Ok(()) - } -} - -struct ReseedRandomDevMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for ReseedRandomDevMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, ReseedRandomDevRequest, reseed_random_dev); - Ok(()) - } -} - -struct GetGuestDetailsMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for GetGuestDetailsMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, GuestDetailsRequest, get_guest_details); - Ok(()) - } -} - -struct MemHotplugByProbeMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for MemHotplugByProbeMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, MemHotplugByProbeRequest, mem_hotplug_by_probe); - Ok(()) - } -} - -struct SetGuestDateTimeMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for SetGuestDateTimeMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, SetGuestDateTimeRequest, set_guest_date_time); - Ok(()) - } -} - -struct CopyFileMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for CopyFileMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, CopyFileRequest, copy_file); - Ok(()) - } -} - -struct GetOomEventMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for GetOomEventMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, agent, GetOOMEventRequest, get_oom_event); - Ok(()) - } -} - -pub trait AgentService { - fn create_container(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::CreateContainerRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/CreateContainer is not supported".to_string()))) - } - fn start_container(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::StartContainerRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/StartContainer is not supported".to_string()))) - } - fn remove_container(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::RemoveContainerRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/RemoveContainer is not supported".to_string()))) - } - fn exec_process(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::ExecProcessRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/ExecProcess is not supported".to_string()))) - } - fn signal_process(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::SignalProcessRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/SignalProcess is not supported".to_string()))) - } - fn wait_process(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::WaitProcessRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/WaitProcess is not supported".to_string()))) - } - fn list_processes(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::ListProcessesRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/ListProcesses is not supported".to_string()))) - } - fn update_container(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::UpdateContainerRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/UpdateContainer is not supported".to_string()))) - } - fn stats_container(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::StatsContainerRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/StatsContainer is not supported".to_string()))) - } - fn pause_container(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::PauseContainerRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/PauseContainer is not supported".to_string()))) - } - fn resume_container(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::ResumeContainerRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/ResumeContainer is not supported".to_string()))) - } - fn write_stdin(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::WriteStreamRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/WriteStdin is not supported".to_string()))) - } - fn read_stdout(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::ReadStreamRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/ReadStdout is not supported".to_string()))) - } - fn read_stderr(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::ReadStreamRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/ReadStderr is not supported".to_string()))) - } - fn close_stdin(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::CloseStdinRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/CloseStdin is not supported".to_string()))) - } - fn tty_win_resize(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::TtyWinResizeRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/TtyWinResize is not supported".to_string()))) - } - fn update_interface(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::UpdateInterfaceRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/UpdateInterface is not supported".to_string()))) - } - fn update_routes(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::UpdateRoutesRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/UpdateRoutes is not supported".to_string()))) - } - fn list_interfaces(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::ListInterfacesRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/ListInterfaces is not supported".to_string()))) - } - fn list_routes(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::ListRoutesRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/ListRoutes is not supported".to_string()))) - } - fn add_arp_neighbors(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::AddARPNeighborsRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/AddARPNeighbors is not supported".to_string()))) - } - fn start_tracing(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::StartTracingRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/StartTracing is not supported".to_string()))) - } - fn stop_tracing(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::StopTracingRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/StopTracing is not supported".to_string()))) - } - fn get_metrics(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::GetMetricsRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/GetMetrics is not supported".to_string()))) - } - fn create_sandbox(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::CreateSandboxRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/CreateSandbox is not supported".to_string()))) - } - fn destroy_sandbox(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::DestroySandboxRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/DestroySandbox is not supported".to_string()))) - } - fn online_cpu_mem(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::OnlineCPUMemRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/OnlineCPUMem is not supported".to_string()))) - } - fn reseed_random_dev(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::ReseedRandomDevRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/ReseedRandomDev is not supported".to_string()))) - } - fn get_guest_details(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::GuestDetailsRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/GetGuestDetails is not supported".to_string()))) - } - fn mem_hotplug_by_probe(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::MemHotplugByProbeRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/MemHotplugByProbe is not supported".to_string()))) - } - fn set_guest_date_time(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::SetGuestDateTimeRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/SetGuestDateTime is not supported".to_string()))) - } - fn copy_file(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::CopyFileRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/CopyFile is not supported".to_string()))) - } - fn get_oom_event(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::agent::GetOOMEventRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.AgentService/GetOOMEvent is not supported".to_string()))) - } -} - -pub fn create_agent_service(service: Arc>) -> HashMap > { - let mut methods = HashMap::new(); - - methods.insert("/grpc.AgentService/CreateContainer".to_string(), - std::boxed::Box::new(CreateContainerMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/StartContainer".to_string(), - std::boxed::Box::new(StartContainerMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/RemoveContainer".to_string(), - std::boxed::Box::new(RemoveContainerMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/ExecProcess".to_string(), - std::boxed::Box::new(ExecProcessMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/SignalProcess".to_string(), - std::boxed::Box::new(SignalProcessMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/WaitProcess".to_string(), - std::boxed::Box::new(WaitProcessMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/ListProcesses".to_string(), - std::boxed::Box::new(ListProcessesMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/UpdateContainer".to_string(), - std::boxed::Box::new(UpdateContainerMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/StatsContainer".to_string(), - std::boxed::Box::new(StatsContainerMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/PauseContainer".to_string(), - std::boxed::Box::new(PauseContainerMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/ResumeContainer".to_string(), - std::boxed::Box::new(ResumeContainerMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/WriteStdin".to_string(), - std::boxed::Box::new(WriteStdinMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/ReadStdout".to_string(), - std::boxed::Box::new(ReadStdoutMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/ReadStderr".to_string(), - std::boxed::Box::new(ReadStderrMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/CloseStdin".to_string(), - std::boxed::Box::new(CloseStdinMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/TtyWinResize".to_string(), - std::boxed::Box::new(TtyWinResizeMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/UpdateInterface".to_string(), - std::boxed::Box::new(UpdateInterfaceMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/UpdateRoutes".to_string(), - std::boxed::Box::new(UpdateRoutesMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/ListInterfaces".to_string(), - std::boxed::Box::new(ListInterfacesMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/ListRoutes".to_string(), - std::boxed::Box::new(ListRoutesMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/AddARPNeighbors".to_string(), - std::boxed::Box::new(AddArpNeighborsMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/StartTracing".to_string(), - std::boxed::Box::new(StartTracingMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/StopTracing".to_string(), - std::boxed::Box::new(StopTracingMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/GetMetrics".to_string(), - std::boxed::Box::new(GetMetricsMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/CreateSandbox".to_string(), - std::boxed::Box::new(CreateSandboxMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/DestroySandbox".to_string(), - std::boxed::Box::new(DestroySandboxMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/OnlineCPUMem".to_string(), - std::boxed::Box::new(OnlineCpuMemMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/ReseedRandomDev".to_string(), - std::boxed::Box::new(ReseedRandomDevMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/GetGuestDetails".to_string(), - std::boxed::Box::new(GetGuestDetailsMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/MemHotplugByProbe".to_string(), - std::boxed::Box::new(MemHotplugByProbeMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/SetGuestDateTime".to_string(), - std::boxed::Box::new(SetGuestDateTimeMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/CopyFile".to_string(), - std::boxed::Box::new(CopyFileMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.AgentService/GetOOMEvent".to_string(), - std::boxed::Box::new(GetOomEventMethod{service: service.clone()}) as std::boxed::Box); - - methods -} diff --git a/src/agent/protocols/src/empty.rs b/src/agent/protocols/src/empty.rs deleted file mode 100644 index 7c53bcd62..000000000 --- a/src/agent/protocols/src/empty.rs +++ /dev/null @@ -1,242 +0,0 @@ -// Copyright (c) 2019 Ant Financial -// -// SPDX-License-Identifier: Apache-2.0 -// -// This file is generated by rust-protobuf 2.14.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![cfg_attr(rustfmt, rustfmt_skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `google/protobuf/empty.proto` - -use protobuf::Message as Message_imported_for_functions; -use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Empty { - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Empty { - fn default() -> &'a Empty { - ::default_instance() - } -} - -impl Empty { - pub fn new() -> Empty { - ::std::default::Default::default() - } -} - -impl ::protobuf::Message for Empty { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Empty { - Empty::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let fields = ::std::vec::Vec::new(); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Empty", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Empty { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Empty::new) - } - } -} - -impl ::protobuf::Clear for Empty { - fn clear(&mut self) { - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Empty { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Empty { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x1bgoogle/protobuf/empty.proto\x12\x0fgoogle.protobuf\"\x07\n\x05Empt\ - yBT\n\x13com.google.protobufB\nEmptyProtoP\x01Z\x05types\xf8\x01\x01\xa2\ - \x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesJ\xa9\x14\n\x06\x12\ - \x04\x1e\03\x10\n\xcc\x0c\n\x01\x0c\x12\x03\x1e\0\x122\xc1\x0c\x20Protoc\ - ol\x20Buffers\x20-\x20Google's\x20data\x20interchange\x20format\n\x20Cop\ - yright\x202008\x20Google\x20Inc.\x20\x20All\x20rights\x20reserved.\n\x20\ - https://developers.google.com/protocol-buffers/\n\n\x20Redistribution\ - \x20and\x20use\x20in\x20source\x20and\x20binary\x20forms,\x20with\x20or\ - \x20without\n\x20modification,\x20are\x20permitted\x20provided\x20that\ - \x20the\x20following\x20conditions\x20are\n\x20met:\n\n\x20\x20\x20\x20\ - \x20*\x20Redistributions\x20of\x20source\x20code\x20must\x20retain\x20th\ - e\x20above\x20copyright\n\x20notice,\x20this\x20list\x20of\x20conditions\ - \x20and\x20the\x20following\x20disclaimer.\n\x20\x20\x20\x20\x20*\x20Red\ - istributions\x20in\x20binary\x20form\x20must\x20reproduce\x20the\x20abov\ - e\n\x20copyright\x20notice,\x20this\x20list\x20of\x20conditions\x20and\ - \x20the\x20following\x20disclaimer\n\x20in\x20the\x20documentation\x20an\ - d/or\x20other\x20materials\x20provided\x20with\x20the\n\x20distribution.\ - \n\x20\x20\x20\x20\x20*\x20Neither\x20the\x20name\x20of\x20Google\x20Inc\ - .\x20nor\x20the\x20names\x20of\x20its\n\x20contributors\x20may\x20be\x20\ - used\x20to\x20endorse\x20or\x20promote\x20products\x20derived\x20from\n\ - \x20this\x20software\x20without\x20specific\x20prior\x20written\x20permi\ - ssion.\n\n\x20THIS\x20SOFTWARE\x20IS\x20PROVIDED\x20BY\x20THE\x20COPYRIG\ - HT\x20HOLDERS\x20AND\x20CONTRIBUTORS\n\x20\"AS\x20IS\"\x20AND\x20ANY\x20\ - EXPRESS\x20OR\x20IMPLIED\x20WARRANTIES,\x20INCLUDING,\x20BUT\x20NOT\n\ - \x20LIMITED\x20TO,\x20THE\x20IMPLIED\x20WARRANTIES\x20OF\x20MERCHANTABIL\ - ITY\x20AND\x20FITNESS\x20FOR\n\x20A\x20PARTICULAR\x20PURPOSE\x20ARE\x20D\ - ISCLAIMED.\x20IN\x20NO\x20EVENT\x20SHALL\x20THE\x20COPYRIGHT\n\x20OWNER\ - \x20OR\x20CONTRIBUTORS\x20BE\x20LIABLE\x20FOR\x20ANY\x20DIRECT,\x20INDIR\ - ECT,\x20INCIDENTAL,\n\x20SPECIAL,\x20EXEMPLARY,\x20OR\x20CONSEQUENTIAL\ - \x20DAMAGES\x20(INCLUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\x20PROCUREM\ - ENT\x20OF\x20SUBSTITUTE\x20GOODS\x20OR\x20SERVICES;\x20LOSS\x20OF\x20USE\ - ,\n\x20DATA,\x20OR\x20PROFITS;\x20OR\x20BUSINESS\x20INTERRUPTION)\x20HOW\ - EVER\x20CAUSED\x20AND\x20ON\x20ANY\n\x20THEORY\x20OF\x20LIABILITY,\x20WH\ - ETHER\x20IN\x20CONTRACT,\x20STRICT\x20LIABILITY,\x20OR\x20TORT\n\x20(INC\ - LUDING\x20NEGLIGENCE\x20OR\x20OTHERWISE)\x20ARISING\x20IN\x20ANY\x20WAY\ - \x20OUT\x20OF\x20THE\x20USE\n\x20OF\x20THIS\x20SOFTWARE,\x20EVEN\x20IF\ - \x20ADVISED\x20OF\x20THE\x20POSSIBILITY\x20OF\x20SUCH\x20DAMAGE.\n\n\x08\ - \n\x01\x02\x12\x03\x20\x08\x17\n\x08\n\x01\x08\x12\x03\"\0;\n\x0b\n\x04\ - \x08\xe7\x07\0\x12\x03\"\0;\n\x0c\n\x05\x08\xe7\x07\0\x02\x12\x03\"\x07\ - \x17\n\r\n\x06\x08\xe7\x07\0\x02\0\x12\x03\"\x07\x17\n\x0e\n\x07\x08\xe7\ - \x07\0\x02\0\x01\x12\x03\"\x07\x17\n\x0c\n\x05\x08\xe7\x07\0\x07\x12\x03\ - \"\x1a:\n\x08\n\x01\x08\x12\x03#\0\x1c\n\x0b\n\x04\x08\xe7\x07\x01\x12\ - \x03#\0\x1c\n\x0c\n\x05\x08\xe7\x07\x01\x02\x12\x03#\x07\x11\n\r\n\x06\ - \x08\xe7\x07\x01\x02\0\x12\x03#\x07\x11\n\x0e\n\x07\x08\xe7\x07\x01\x02\ - \0\x01\x12\x03#\x07\x11\n\x0c\n\x05\x08\xe7\x07\x01\x07\x12\x03#\x14\x1b\ - \n\x08\n\x01\x08\x12\x03$\0,\n\x0b\n\x04\x08\xe7\x07\x02\x12\x03$\0,\n\ - \x0c\n\x05\x08\xe7\x07\x02\x02\x12\x03$\x07\x13\n\r\n\x06\x08\xe7\x07\ - \x02\x02\0\x12\x03$\x07\x13\n\x0e\n\x07\x08\xe7\x07\x02\x02\0\x01\x12\ - \x03$\x07\x13\n\x0c\n\x05\x08\xe7\x07\x02\x07\x12\x03$\x16+\n\x08\n\x01\ - \x08\x12\x03%\0+\n\x0b\n\x04\x08\xe7\x07\x03\x12\x03%\0+\n\x0c\n\x05\x08\ - \xe7\x07\x03\x02\x12\x03%\x07\x1b\n\r\n\x06\x08\xe7\x07\x03\x02\0\x12\ - \x03%\x07\x1b\n\x0e\n\x07\x08\xe7\x07\x03\x02\0\x01\x12\x03%\x07\x1b\n\ - \x0c\n\x05\x08\xe7\x07\x03\x07\x12\x03%\x1e*\n\x08\n\x01\x08\x12\x03&\0\ - \"\n\x0b\n\x04\x08\xe7\x07\x04\x12\x03&\0\"\n\x0c\n\x05\x08\xe7\x07\x04\ - \x02\x12\x03&\x07\x1a\n\r\n\x06\x08\xe7\x07\x04\x02\0\x12\x03&\x07\x1a\n\ - \x0e\n\x07\x08\xe7\x07\x04\x02\0\x01\x12\x03&\x07\x1a\n\x0c\n\x05\x08\ - \xe7\x07\x04\x03\x12\x03&\x1d!\n\x08\n\x01\x08\x12\x03'\0!\n\x0b\n\x04\ - \x08\xe7\x07\x05\x12\x03'\0!\n\x0c\n\x05\x08\xe7\x07\x05\x02\x12\x03'\ - \x07\x18\n\r\n\x06\x08\xe7\x07\x05\x02\0\x12\x03'\x07\x18\n\x0e\n\x07\ - \x08\xe7\x07\x05\x02\0\x01\x12\x03'\x07\x18\n\x0c\n\x05\x08\xe7\x07\x05\ - \x07\x12\x03'\x1b\x20\n\x08\n\x01\x08\x12\x03(\0\x1f\n\x0b\n\x04\x08\xe7\ - \x07\x06\x12\x03(\0\x1f\n\x0c\n\x05\x08\xe7\x07\x06\x02\x12\x03(\x07\x17\ - \n\r\n\x06\x08\xe7\x07\x06\x02\0\x12\x03(\x07\x17\n\x0e\n\x07\x08\xe7\ - \x07\x06\x02\0\x01\x12\x03(\x07\x17\n\x0c\n\x05\x08\xe7\x07\x06\x03\x12\ - \x03(\x1a\x1e\n\xfb\x02\n\x02\x04\0\x12\x033\0\x10\x1a\xef\x02\x20A\x20g\ - eneric\x20empty\x20message\x20that\x20you\x20can\x20re-use\x20to\x20avoi\ - d\x20defining\x20duplicated\n\x20empty\x20messages\x20in\x20your\x20APIs\ - .\x20A\x20typical\x20example\x20is\x20to\x20use\x20it\x20as\x20the\x20re\ - quest\n\x20or\x20the\x20response\x20type\x20of\x20an\x20API\x20method.\ - \x20For\x20instance:\n\n\x20\x20\x20\x20\x20service\x20Foo\x20{\n\x20\ - \x20\x20\x20\x20\x20\x20rpc\x20Bar(google.protobuf.Empty)\x20returns\x20\ - (google.protobuf.Empty);\n\x20\x20\x20\x20\x20}\n\n\x20The\x20JSON\x20re\ - presentation\x20for\x20`Empty`\x20is\x20empty\x20JSON\x20object\x20`{}`.\ - \n\n\n\n\x03\x04\0\x01\x12\x033\x08\rb\x06proto3\ -"; - -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - unsafe { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) - } -} diff --git a/src/agent/protocols/src/health.rs b/src/agent/protocols/src/health.rs deleted file mode 100644 index 480677772..000000000 --- a/src/agent/protocols/src/health.rs +++ /dev/null @@ -1,672 +0,0 @@ -// This file is generated by rust-protobuf 2.14.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![cfg_attr(rustfmt, rustfmt_skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `github.com/kata-containers/kata-containers/src/agent/protocols/protos/health.proto` - -use protobuf::Message as Message_imported_for_functions; -use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; - -#[derive(PartialEq,Clone,Default)] -pub struct CheckRequest { - // message fields - pub service: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a CheckRequest { - fn default() -> &'a CheckRequest { - ::default_instance() - } -} - -impl CheckRequest { - pub fn new() -> CheckRequest { - ::std::default::Default::default() - } - - // string service = 1; - - - pub fn get_service(&self) -> &str { - &self.service - } - pub fn clear_service(&mut self) { - self.service.clear(); - } - - // Param is passed by value, moved - pub fn set_service(&mut self, v: ::std::string::String) { - self.service = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_service(&mut self) -> &mut ::std::string::String { - &mut self.service - } - - // Take field - pub fn take_service(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.service, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for CheckRequest { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.service)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.service.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.service); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.service.is_empty() { - os.write_string(1, &self.service)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> CheckRequest { - CheckRequest::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "service", - |m: &CheckRequest| { &m.service }, - |m: &mut CheckRequest| { &mut m.service }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "CheckRequest", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static CheckRequest { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(CheckRequest::new) - } - } -} - -impl ::protobuf::Clear for CheckRequest { - fn clear(&mut self) { - self.service.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for CheckRequest { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for CheckRequest { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct HealthCheckResponse { - // message fields - pub status: HealthCheckResponse_ServingStatus, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a HealthCheckResponse { - fn default() -> &'a HealthCheckResponse { - ::default_instance() - } -} - -impl HealthCheckResponse { - pub fn new() -> HealthCheckResponse { - ::std::default::Default::default() - } - - // .grpc.HealthCheckResponse.ServingStatus status = 1; - - - pub fn get_status(&self) -> HealthCheckResponse_ServingStatus { - self.status - } - pub fn clear_status(&mut self) { - self.status = HealthCheckResponse_ServingStatus::UNKNOWN; - } - - // Param is passed by value, moved - pub fn set_status(&mut self, v: HealthCheckResponse_ServingStatus) { - self.status = v; - } -} - -impl ::protobuf::Message for HealthCheckResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.status, 1, &mut self.unknown_fields)? - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.status != HealthCheckResponse_ServingStatus::UNKNOWN { - my_size += ::protobuf::rt::enum_size(1, self.status); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.status != HealthCheckResponse_ServingStatus::UNKNOWN { - os.write_enum(1, self.status.value())?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> HealthCheckResponse { - HealthCheckResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "status", - |m: &HealthCheckResponse| { &m.status }, - |m: &mut HealthCheckResponse| { &mut m.status }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "HealthCheckResponse", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static HealthCheckResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(HealthCheckResponse::new) - } - } -} - -impl ::protobuf::Clear for HealthCheckResponse { - fn clear(&mut self) { - self.status = HealthCheckResponse_ServingStatus::UNKNOWN; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for HealthCheckResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for HealthCheckResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum HealthCheckResponse_ServingStatus { - UNKNOWN = 0, - SERVING = 1, - NOT_SERVING = 2, -} - -impl ::protobuf::ProtobufEnum for HealthCheckResponse_ServingStatus { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(HealthCheckResponse_ServingStatus::UNKNOWN), - 1 => ::std::option::Option::Some(HealthCheckResponse_ServingStatus::SERVING), - 2 => ::std::option::Option::Some(HealthCheckResponse_ServingStatus::NOT_SERVING), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [HealthCheckResponse_ServingStatus] = &[ - HealthCheckResponse_ServingStatus::UNKNOWN, - HealthCheckResponse_ServingStatus::SERVING, - HealthCheckResponse_ServingStatus::NOT_SERVING, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("HealthCheckResponse.ServingStatus", file_descriptor_proto()) - }) - } - } -} - -impl ::std::marker::Copy for HealthCheckResponse_ServingStatus { -} - -impl ::std::default::Default for HealthCheckResponse_ServingStatus { - fn default() -> Self { - HealthCheckResponse_ServingStatus::UNKNOWN - } -} - -impl ::protobuf::reflect::ProtobufValue for HealthCheckResponse_ServingStatus { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct VersionCheckResponse { - // message fields - pub grpc_version: ::std::string::String, - pub agent_version: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a VersionCheckResponse { - fn default() -> &'a VersionCheckResponse { - ::default_instance() - } -} - -impl VersionCheckResponse { - pub fn new() -> VersionCheckResponse { - ::std::default::Default::default() - } - - // string grpc_version = 1; - - - pub fn get_grpc_version(&self) -> &str { - &self.grpc_version - } - pub fn clear_grpc_version(&mut self) { - self.grpc_version.clear(); - } - - // Param is passed by value, moved - pub fn set_grpc_version(&mut self, v: ::std::string::String) { - self.grpc_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_grpc_version(&mut self) -> &mut ::std::string::String { - &mut self.grpc_version - } - - // Take field - pub fn take_grpc_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.grpc_version, ::std::string::String::new()) - } - - // string agent_version = 2; - - - pub fn get_agent_version(&self) -> &str { - &self.agent_version - } - pub fn clear_agent_version(&mut self) { - self.agent_version.clear(); - } - - // Param is passed by value, moved - pub fn set_agent_version(&mut self, v: ::std::string::String) { - self.agent_version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_agent_version(&mut self) -> &mut ::std::string::String { - &mut self.agent_version - } - - // Take field - pub fn take_agent_version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.agent_version, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for VersionCheckResponse { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grpc_version)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.agent_version)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.grpc_version.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.grpc_version); - } - if !self.agent_version.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.agent_version); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.grpc_version.is_empty() { - os.write_string(1, &self.grpc_version)?; - } - if !self.agent_version.is_empty() { - os.write_string(2, &self.agent_version)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> VersionCheckResponse { - VersionCheckResponse::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "grpc_version", - |m: &VersionCheckResponse| { &m.grpc_version }, - |m: &mut VersionCheckResponse| { &mut m.grpc_version }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "agent_version", - |m: &VersionCheckResponse| { &m.agent_version }, - |m: &mut VersionCheckResponse| { &mut m.agent_version }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "VersionCheckResponse", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static VersionCheckResponse { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(VersionCheckResponse::new) - } - } -} - -impl ::protobuf::Clear for VersionCheckResponse { - fn clear(&mut self) { - self.grpc_version.clear(); - self.agent_version.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for VersionCheckResponse { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for VersionCheckResponse { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \nRgithub.com/kata-containers/kata-containers/src/agent/protocols/protos\ - /health.proto\x12\x04grpc\x1a-github.com/gogo/protobuf/gogoproto/gogo.pr\ - oto\"(\n\x0cCheckRequest\x12\x18\n\x07service\x18\x01\x20\x01(\tR\x07ser\ - vice\"\x92\x01\n\x13HealthCheckResponse\x12?\n\x06status\x18\x01\x20\x01\ - (\x0e2'.grpc.HealthCheckResponse.ServingStatusR\x06status\":\n\rServingS\ - tatus\x12\x0b\n\x07UNKNOWN\x10\0\x12\x0b\n\x07SERVING\x10\x01\x12\x0f\n\ - \x0bNOT_SERVING\x10\x02\"^\n\x14VersionCheckResponse\x12!\n\x0cgrpc_vers\ - ion\x18\x01\x20\x01(\tR\x0bgrpcVersion\x12#\n\ragent_version\x18\x02\x20\ - \x01(\tR\x0cagentVersion2{\n\x06Health\x126\n\x05Check\x12\x12.grpc.Chec\ - kRequest\x1a\x19.grpc.HealthCheckResponse\x129\n\x07Version\x12\x12.grpc\ - .CheckRequest\x1a\x1a.grpc.VersionCheckResponseBpZ^github.com/kata-conta\ - iners/kata-containers/src/runtime/virtcontainers/pkg/agent/protocols/grp\ - c\xb8\xe2\x1e\x01\xc0\xe2\x1e\x01\xa8\xe2\x1e\x01\xf8\xe1\x1e\x01J\x90\ - \x07\n\x06\x12\x04\x07\0)\x01\nq\n\x01\x0c\x12\x03\x07\0\x122g\n\x20Copy\ - right\x202017\x20HyperHQ\x20Inc.\n\x20Copyright\x20(c)\x202019\x20Ant\ - \x20Financial\n\n\x20SPDX-License-Identifier:\x20Apache-2.0\n\n\n\x08\n\ - \x01\x08\x12\x03\t\0u\n\t\n\x02\x08\x0b\x12\x03\t\0u\n\x08\n\x01\x02\x12\ - \x03\x0b\0\r\n\t\n\x02\x03\0\x12\x03\r\07\n\x08\n\x01\x08\x12\x03\x0f\0$\ - \n\x0b\n\x04\x08\xa5\xec\x03\x12\x03\x0f\0$\n\x08\n\x01\x08\x12\x03\x10\ - \0'\n\x0b\n\x04\x08\x9f\xec\x03\x12\x03\x10\0'\n\x08\n\x01\x08\x12\x03\ - \x11\0&\n\x0b\n\x04\x08\xa7\xec\x03\x12\x03\x11\0&\n\x08\n\x01\x08\x12\ - \x03\x12\0'\n\x0b\n\x04\x08\xa8\xec\x03\x12\x03\x12\0'\n\n\n\x02\x04\0\ - \x12\x04\x14\0\x16\x01\n\n\n\x03\x04\0\x01\x12\x03\x14\x08\x14\n\x0b\n\ - \x04\x04\0\x02\0\x12\x03\x15\x08\x1b\n\r\n\x05\x04\0\x02\0\x04\x12\x04\ - \x15\x08\x14\x16\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x15\x08\x0e\n\x0c\n\ - \x05\x04\0\x02\0\x01\x12\x03\x15\x0f\x16\n\x0c\n\x05\x04\0\x02\0\x03\x12\ - \x03\x15\x19\x1a\n\n\n\x02\x04\x01\x12\x04\x18\0\x1f\x01\n\n\n\x03\x04\ - \x01\x01\x12\x03\x18\x08\x1b\n\x0c\n\x04\x04\x01\x04\0\x12\x04\x19\x08\ - \x1d\t\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x03\x19\r\x1a\n\r\n\x06\x04\x01\ - \x04\0\x02\0\x12\x03\x1a\x10\x1c\n\x0e\n\x07\x04\x01\x04\0\x02\0\x01\x12\ - \x03\x1a\x10\x17\n\x0e\n\x07\x04\x01\x04\0\x02\0\x02\x12\x03\x1a\x1a\x1b\ - \n\r\n\x06\x04\x01\x04\0\x02\x01\x12\x03\x1b\x10\x1c\n\x0e\n\x07\x04\x01\ - \x04\0\x02\x01\x01\x12\x03\x1b\x10\x17\n\x0e\n\x07\x04\x01\x04\0\x02\x01\ - \x02\x12\x03\x1b\x1a\x1b\n\r\n\x06\x04\x01\x04\0\x02\x02\x12\x03\x1c\x10\ - \x20\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03\x1c\x10\x1b\n\x0e\n\ - \x07\x04\x01\x04\0\x02\x02\x02\x12\x03\x1c\x1e\x1f\n\x0b\n\x04\x04\x01\ - \x02\0\x12\x03\x1e\x08!\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\x1e\x08\x1d\ - \t\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03\x1e\x08\x15\n\x0c\n\x05\x04\x01\ - \x02\0\x01\x12\x03\x1e\x16\x1c\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x1e\ - \x1f\x20\n\n\n\x02\x04\x02\x12\x04!\0$\x01\n\n\n\x03\x04\x02\x01\x12\x03\ - !\x08\x1c\n\x0b\n\x04\x04\x02\x02\0\x12\x03\"\x08\x20\n\r\n\x05\x04\x02\ - \x02\0\x04\x12\x04\"\x08!\x1e\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03\"\ - \x08\x0e\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\"\x0f\x1b\n\x0c\n\x05\x04\ - \x02\x02\0\x03\x12\x03\"\x1e\x1f\n\x0b\n\x04\x04\x02\x02\x01\x12\x03#\ - \x08!\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04#\x08\"\x20\n\x0c\n\x05\x04\ - \x02\x02\x01\x05\x12\x03#\x08\x0e\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\ - \x03#\x0f\x1c\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03#\x1f\x20\n\n\n\x02\ - \x06\0\x12\x04&\0)\x01\n\n\n\x03\x06\0\x01\x12\x03&\x08\x0e\n\x0b\n\x04\ - \x06\0\x02\0\x12\x03'\x08>\n\x0c\n\x05\x06\0\x02\0\x01\x12\x03'\x0c\x11\ - \n\x0c\n\x05\x06\0\x02\0\x02\x12\x03'\x12\x1e\n\x0c\n\x05\x06\0\x02\0\ - \x03\x12\x03')<\n\x0b\n\x04\x06\0\x02\x01\x12\x03(\x08A\n\x0c\n\x05\x06\ - \0\x02\x01\x01\x12\x03(\x0c\x13\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03(\ - \x14\x20\n\x0c\n\x05\x06\0\x02\x01\x03\x12\x03(+?b\x06proto3\ -"; - -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - unsafe { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) - } -} diff --git a/src/agent/protocols/src/health_ttrpc.rs b/src/agent/protocols/src/health_ttrpc.rs deleted file mode 100644 index 9e103f113..000000000 --- a/src/agent/protocols/src/health_ttrpc.rs +++ /dev/null @@ -1,90 +0,0 @@ -// This file is generated by ttrpc-compiler 0.3.0. Do not edit -// @generated - -// https://github.com/Manishearth/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clipto_camel_casepy)] - -#![cfg_attr(rustfmt, rustfmt_skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] -use protobuf::{CodedInputStream, CodedOutputStream, Message}; -use std::collections::HashMap; -use std::sync::Arc; - -#[derive(Clone)] -pub struct HealthClient { - client: ::ttrpc::Client, -} - -impl HealthClient { - pub fn new(client: ::ttrpc::Client) -> Self { - HealthClient { - client: client, - } - } - - pub fn check(&self, req: &super::health::CheckRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::health::HealthCheckResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.Health", "Check", cres); - Ok(cres) - } - - pub fn version(&self, req: &super::health::CheckRequest, timeout_nano: i64) -> ::ttrpc::Result { - let mut cres = super::health::VersionCheckResponse::new(); - ::ttrpc::client_request!(self, req, timeout_nano, "grpc.Health", "Version", cres); - Ok(cres) - } -} - -struct CheckMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for CheckMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, health, CheckRequest, check); - Ok(()) - } -} - -struct VersionMethod { - service: Arc>, -} - -impl ::ttrpc::MethodHandler for VersionMethod { - fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> { - ::ttrpc::request_handler!(self, ctx, req, health, CheckRequest, version); - Ok(()) - } -} - -pub trait Health { - fn check(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::health::CheckRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.Health/Check is not supported".to_string()))) - } - fn version(&self, _ctx: &::ttrpc::TtrpcContext, _req: super::health::CheckRequest) -> ::ttrpc::Result { - Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/grpc.Health/Version is not supported".to_string()))) - } -} - -pub fn create_health(service: Arc>) -> HashMap > { - let mut methods = HashMap::new(); - - methods.insert("/grpc.Health/Check".to_string(), - std::boxed::Box::new(CheckMethod{service: service.clone()}) as std::boxed::Box); - - methods.insert("/grpc.Health/Version".to_string(), - std::boxed::Box::new(VersionMethod{service: service.clone()}) as std::boxed::Box); - - methods -} diff --git a/src/agent/protocols/src/oci.rs b/src/agent/protocols/src/oci.rs deleted file mode 100644 index e83ec01cf..000000000 --- a/src/agent/protocols/src/oci.rs +++ /dev/null @@ -1,10293 +0,0 @@ -// This file is generated by rust-protobuf 2.14.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![cfg_attr(rustfmt, rustfmt_skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `github.com/kata-containers/kata-containers/src/agent/protocols/protos/oci.proto` - -use protobuf::Message as Message_imported_for_functions; -use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; - -#[derive(PartialEq,Clone,Default)] -pub struct Spec { - // message fields - pub Version: ::std::string::String, - pub Process: ::protobuf::SingularPtrField, - pub Root: ::protobuf::SingularPtrField, - pub Hostname: ::std::string::String, - pub Mounts: ::protobuf::RepeatedField, - pub Hooks: ::protobuf::SingularPtrField, - pub Annotations: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub Linux: ::protobuf::SingularPtrField, - pub Solaris: ::protobuf::SingularPtrField, - pub Windows: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Spec { - fn default() -> &'a Spec { - ::default_instance() - } -} - -impl Spec { - pub fn new() -> Spec { - ::std::default::Default::default() - } - - // string Version = 1; - - - pub fn get_Version(&self) -> &str { - &self.Version - } - pub fn clear_Version(&mut self) { - self.Version.clear(); - } - - // Param is passed by value, moved - pub fn set_Version(&mut self, v: ::std::string::String) { - self.Version = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Version(&mut self) -> &mut ::std::string::String { - &mut self.Version - } - - // Take field - pub fn take_Version(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Version, ::std::string::String::new()) - } - - // .grpc.Process Process = 2; - - - pub fn get_Process(&self) -> &Process { - self.Process.as_ref().unwrap_or_else(|| Process::default_instance()) - } - pub fn clear_Process(&mut self) { - self.Process.clear(); - } - - pub fn has_Process(&self) -> bool { - self.Process.is_some() - } - - // Param is passed by value, moved - pub fn set_Process(&mut self, v: Process) { - self.Process = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Process(&mut self) -> &mut Process { - if self.Process.is_none() { - self.Process.set_default(); - } - self.Process.as_mut().unwrap() - } - - // Take field - pub fn take_Process(&mut self) -> Process { - self.Process.take().unwrap_or_else(|| Process::new()) - } - - // .grpc.Root Root = 3; - - - pub fn get_Root(&self) -> &Root { - self.Root.as_ref().unwrap_or_else(|| Root::default_instance()) - } - pub fn clear_Root(&mut self) { - self.Root.clear(); - } - - pub fn has_Root(&self) -> bool { - self.Root.is_some() - } - - // Param is passed by value, moved - pub fn set_Root(&mut self, v: Root) { - self.Root = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Root(&mut self) -> &mut Root { - if self.Root.is_none() { - self.Root.set_default(); - } - self.Root.as_mut().unwrap() - } - - // Take field - pub fn take_Root(&mut self) -> Root { - self.Root.take().unwrap_or_else(|| Root::new()) - } - - // string Hostname = 4; - - - pub fn get_Hostname(&self) -> &str { - &self.Hostname - } - pub fn clear_Hostname(&mut self) { - self.Hostname.clear(); - } - - // Param is passed by value, moved - pub fn set_Hostname(&mut self, v: ::std::string::String) { - self.Hostname = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Hostname(&mut self) -> &mut ::std::string::String { - &mut self.Hostname - } - - // Take field - pub fn take_Hostname(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Hostname, ::std::string::String::new()) - } - - // repeated .grpc.Mount Mounts = 5; - - - pub fn get_Mounts(&self) -> &[Mount] { - &self.Mounts - } - pub fn clear_Mounts(&mut self) { - self.Mounts.clear(); - } - - // Param is passed by value, moved - pub fn set_Mounts(&mut self, v: ::protobuf::RepeatedField) { - self.Mounts = v; - } - - // Mutable pointer to the field. - pub fn mut_Mounts(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Mounts - } - - // Take field - pub fn take_Mounts(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Mounts, ::protobuf::RepeatedField::new()) - } - - // .grpc.Hooks Hooks = 6; - - - pub fn get_Hooks(&self) -> &Hooks { - self.Hooks.as_ref().unwrap_or_else(|| Hooks::default_instance()) - } - pub fn clear_Hooks(&mut self) { - self.Hooks.clear(); - } - - pub fn has_Hooks(&self) -> bool { - self.Hooks.is_some() - } - - // Param is passed by value, moved - pub fn set_Hooks(&mut self, v: Hooks) { - self.Hooks = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Hooks(&mut self) -> &mut Hooks { - if self.Hooks.is_none() { - self.Hooks.set_default(); - } - self.Hooks.as_mut().unwrap() - } - - // Take field - pub fn take_Hooks(&mut self) -> Hooks { - self.Hooks.take().unwrap_or_else(|| Hooks::new()) - } - - // repeated .grpc.Spec.AnnotationsEntry Annotations = 7; - - - pub fn get_Annotations(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.Annotations - } - pub fn clear_Annotations(&mut self) { - self.Annotations.clear(); - } - - // Param is passed by value, moved - pub fn set_Annotations(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.Annotations = v; - } - - // Mutable pointer to the field. - pub fn mut_Annotations(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.Annotations - } - - // Take field - pub fn take_Annotations(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.Annotations, ::std::collections::HashMap::new()) - } - - // .grpc.Linux Linux = 8; - - - pub fn get_Linux(&self) -> &Linux { - self.Linux.as_ref().unwrap_or_else(|| Linux::default_instance()) - } - pub fn clear_Linux(&mut self) { - self.Linux.clear(); - } - - pub fn has_Linux(&self) -> bool { - self.Linux.is_some() - } - - // Param is passed by value, moved - pub fn set_Linux(&mut self, v: Linux) { - self.Linux = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Linux(&mut self) -> &mut Linux { - if self.Linux.is_none() { - self.Linux.set_default(); - } - self.Linux.as_mut().unwrap() - } - - // Take field - pub fn take_Linux(&mut self) -> Linux { - self.Linux.take().unwrap_or_else(|| Linux::new()) - } - - // .grpc.Solaris Solaris = 9; - - - pub fn get_Solaris(&self) -> &Solaris { - self.Solaris.as_ref().unwrap_or_else(|| Solaris::default_instance()) - } - pub fn clear_Solaris(&mut self) { - self.Solaris.clear(); - } - - pub fn has_Solaris(&self) -> bool { - self.Solaris.is_some() - } - - // Param is passed by value, moved - pub fn set_Solaris(&mut self, v: Solaris) { - self.Solaris = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Solaris(&mut self) -> &mut Solaris { - if self.Solaris.is_none() { - self.Solaris.set_default(); - } - self.Solaris.as_mut().unwrap() - } - - // Take field - pub fn take_Solaris(&mut self) -> Solaris { - self.Solaris.take().unwrap_or_else(|| Solaris::new()) - } - - // .grpc.Windows Windows = 10; - - - pub fn get_Windows(&self) -> &Windows { - self.Windows.as_ref().unwrap_or_else(|| Windows::default_instance()) - } - pub fn clear_Windows(&mut self) { - self.Windows.clear(); - } - - pub fn has_Windows(&self) -> bool { - self.Windows.is_some() - } - - // Param is passed by value, moved - pub fn set_Windows(&mut self, v: Windows) { - self.Windows = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Windows(&mut self) -> &mut Windows { - if self.Windows.is_none() { - self.Windows.set_default(); - } - self.Windows.as_mut().unwrap() - } - - // Take field - pub fn take_Windows(&mut self) -> Windows { - self.Windows.take().unwrap_or_else(|| Windows::new()) - } -} - -impl ::protobuf::Message for Spec { - fn is_initialized(&self) -> bool { - for v in &self.Process { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Root { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Mounts { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Hooks { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Linux { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Solaris { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Windows { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Version)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Process)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Root)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Hostname)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Mounts)?; - }, - 6 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Hooks)?; - }, - 7 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.Annotations)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Linux)?; - }, - 9 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Solaris)?; - }, - 10 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Windows)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.Version.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.Version); - } - if let Some(ref v) = self.Process.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.Root.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.Hostname.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.Hostname); - } - for value in &self.Mounts { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.Hooks.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(7, &self.Annotations); - if let Some(ref v) = self.Linux.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.Solaris.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.Windows.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.Version.is_empty() { - os.write_string(1, &self.Version)?; - } - if let Some(ref v) = self.Process.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.Root.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.Hostname.is_empty() { - os.write_string(4, &self.Hostname)?; - } - for v in &self.Mounts { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.Hooks.as_ref() { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(7, &self.Annotations, os)?; - if let Some(ref v) = self.Linux.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.Solaris.as_ref() { - os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.Windows.as_ref() { - os.write_tag(10, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Spec { - Spec::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Version", - |m: &Spec| { &m.Version }, - |m: &mut Spec| { &mut m.Version }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Process", - |m: &Spec| { &m.Process }, - |m: &mut Spec| { &mut m.Process }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Root", - |m: &Spec| { &m.Root }, - |m: &mut Spec| { &mut m.Root }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Hostname", - |m: &Spec| { &m.Hostname }, - |m: &mut Spec| { &mut m.Hostname }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Mounts", - |m: &Spec| { &m.Mounts }, - |m: &mut Spec| { &mut m.Mounts }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Hooks", - |m: &Spec| { &m.Hooks }, - |m: &mut Spec| { &mut m.Hooks }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "Annotations", - |m: &Spec| { &m.Annotations }, - |m: &mut Spec| { &mut m.Annotations }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Linux", - |m: &Spec| { &m.Linux }, - |m: &mut Spec| { &mut m.Linux }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Solaris", - |m: &Spec| { &m.Solaris }, - |m: &mut Spec| { &mut m.Solaris }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Windows", - |m: &Spec| { &m.Windows }, - |m: &mut Spec| { &mut m.Windows }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Spec", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Spec { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Spec::new) - } - } -} - -impl ::protobuf::Clear for Spec { - fn clear(&mut self) { - self.Version.clear(); - self.Process.clear(); - self.Root.clear(); - self.Hostname.clear(); - self.Mounts.clear(); - self.Hooks.clear(); - self.Annotations.clear(); - self.Linux.clear(); - self.Solaris.clear(); - self.Windows.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Spec { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Spec { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Process { - // message fields - pub Terminal: bool, - pub ConsoleSize: ::protobuf::SingularPtrField, - pub User: ::protobuf::SingularPtrField, - pub Args: ::protobuf::RepeatedField<::std::string::String>, - pub Env: ::protobuf::RepeatedField<::std::string::String>, - pub Cwd: ::std::string::String, - pub Capabilities: ::protobuf::SingularPtrField, - pub Rlimits: ::protobuf::RepeatedField, - pub NoNewPrivileges: bool, - pub ApparmorProfile: ::std::string::String, - pub OOMScoreAdj: i64, - pub SelinuxLabel: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Process { - fn default() -> &'a Process { - ::default_instance() - } -} - -impl Process { - pub fn new() -> Process { - ::std::default::Default::default() - } - - // bool Terminal = 1; - - - pub fn get_Terminal(&self) -> bool { - self.Terminal - } - pub fn clear_Terminal(&mut self) { - self.Terminal = false; - } - - // Param is passed by value, moved - pub fn set_Terminal(&mut self, v: bool) { - self.Terminal = v; - } - - // .grpc.Box ConsoleSize = 2; - - - pub fn get_ConsoleSize(&self) -> &Box { - self.ConsoleSize.as_ref().unwrap_or_else(|| Box::default_instance()) - } - pub fn clear_ConsoleSize(&mut self) { - self.ConsoleSize.clear(); - } - - pub fn has_ConsoleSize(&self) -> bool { - self.ConsoleSize.is_some() - } - - // Param is passed by value, moved - pub fn set_ConsoleSize(&mut self, v: Box) { - self.ConsoleSize = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ConsoleSize(&mut self) -> &mut Box { - if self.ConsoleSize.is_none() { - self.ConsoleSize.set_default(); - } - self.ConsoleSize.as_mut().unwrap() - } - - // Take field - pub fn take_ConsoleSize(&mut self) -> Box { - self.ConsoleSize.take().unwrap_or_else(|| Box::new()) - } - - // .grpc.User User = 3; - - - pub fn get_User(&self) -> &User { - self.User.as_ref().unwrap_or_else(|| User::default_instance()) - } - pub fn clear_User(&mut self) { - self.User.clear(); - } - - pub fn has_User(&self) -> bool { - self.User.is_some() - } - - // Param is passed by value, moved - pub fn set_User(&mut self, v: User) { - self.User = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_User(&mut self) -> &mut User { - if self.User.is_none() { - self.User.set_default(); - } - self.User.as_mut().unwrap() - } - - // Take field - pub fn take_User(&mut self) -> User { - self.User.take().unwrap_or_else(|| User::new()) - } - - // repeated string Args = 4; - - - pub fn get_Args(&self) -> &[::std::string::String] { - &self.Args - } - pub fn clear_Args(&mut self) { - self.Args.clear(); - } - - // Param is passed by value, moved - pub fn set_Args(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Args = v; - } - - // Mutable pointer to the field. - pub fn mut_Args(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Args - } - - // Take field - pub fn take_Args(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Args, ::protobuf::RepeatedField::new()) - } - - // repeated string Env = 5; - - - pub fn get_Env(&self) -> &[::std::string::String] { - &self.Env - } - pub fn clear_Env(&mut self) { - self.Env.clear(); - } - - // Param is passed by value, moved - pub fn set_Env(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Env = v; - } - - // Mutable pointer to the field. - pub fn mut_Env(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Env - } - - // Take field - pub fn take_Env(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Env, ::protobuf::RepeatedField::new()) - } - - // string Cwd = 6; - - - pub fn get_Cwd(&self) -> &str { - &self.Cwd - } - pub fn clear_Cwd(&mut self) { - self.Cwd.clear(); - } - - // Param is passed by value, moved - pub fn set_Cwd(&mut self, v: ::std::string::String) { - self.Cwd = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Cwd(&mut self) -> &mut ::std::string::String { - &mut self.Cwd - } - - // Take field - pub fn take_Cwd(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Cwd, ::std::string::String::new()) - } - - // .grpc.LinuxCapabilities Capabilities = 7; - - - pub fn get_Capabilities(&self) -> &LinuxCapabilities { - self.Capabilities.as_ref().unwrap_or_else(|| LinuxCapabilities::default_instance()) - } - pub fn clear_Capabilities(&mut self) { - self.Capabilities.clear(); - } - - pub fn has_Capabilities(&self) -> bool { - self.Capabilities.is_some() - } - - // Param is passed by value, moved - pub fn set_Capabilities(&mut self, v: LinuxCapabilities) { - self.Capabilities = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Capabilities(&mut self) -> &mut LinuxCapabilities { - if self.Capabilities.is_none() { - self.Capabilities.set_default(); - } - self.Capabilities.as_mut().unwrap() - } - - // Take field - pub fn take_Capabilities(&mut self) -> LinuxCapabilities { - self.Capabilities.take().unwrap_or_else(|| LinuxCapabilities::new()) - } - - // repeated .grpc.POSIXRlimit Rlimits = 8; - - - pub fn get_Rlimits(&self) -> &[POSIXRlimit] { - &self.Rlimits - } - pub fn clear_Rlimits(&mut self) { - self.Rlimits.clear(); - } - - // Param is passed by value, moved - pub fn set_Rlimits(&mut self, v: ::protobuf::RepeatedField) { - self.Rlimits = v; - } - - // Mutable pointer to the field. - pub fn mut_Rlimits(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Rlimits - } - - // Take field - pub fn take_Rlimits(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Rlimits, ::protobuf::RepeatedField::new()) - } - - // bool NoNewPrivileges = 9; - - - pub fn get_NoNewPrivileges(&self) -> bool { - self.NoNewPrivileges - } - pub fn clear_NoNewPrivileges(&mut self) { - self.NoNewPrivileges = false; - } - - // Param is passed by value, moved - pub fn set_NoNewPrivileges(&mut self, v: bool) { - self.NoNewPrivileges = v; - } - - // string ApparmorProfile = 10; - - - pub fn get_ApparmorProfile(&self) -> &str { - &self.ApparmorProfile - } - pub fn clear_ApparmorProfile(&mut self) { - self.ApparmorProfile.clear(); - } - - // Param is passed by value, moved - pub fn set_ApparmorProfile(&mut self, v: ::std::string::String) { - self.ApparmorProfile = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_ApparmorProfile(&mut self) -> &mut ::std::string::String { - &mut self.ApparmorProfile - } - - // Take field - pub fn take_ApparmorProfile(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.ApparmorProfile, ::std::string::String::new()) - } - - // int64 OOMScoreAdj = 11; - - - pub fn get_OOMScoreAdj(&self) -> i64 { - self.OOMScoreAdj - } - pub fn clear_OOMScoreAdj(&mut self) { - self.OOMScoreAdj = 0; - } - - // Param is passed by value, moved - pub fn set_OOMScoreAdj(&mut self, v: i64) { - self.OOMScoreAdj = v; - } - - // string SelinuxLabel = 12; - - - pub fn get_SelinuxLabel(&self) -> &str { - &self.SelinuxLabel - } - pub fn clear_SelinuxLabel(&mut self) { - self.SelinuxLabel.clear(); - } - - // Param is passed by value, moved - pub fn set_SelinuxLabel(&mut self, v: ::std::string::String) { - self.SelinuxLabel = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_SelinuxLabel(&mut self) -> &mut ::std::string::String { - &mut self.SelinuxLabel - } - - // Take field - pub fn take_SelinuxLabel(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.SelinuxLabel, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Process { - fn is_initialized(&self) -> bool { - for v in &self.ConsoleSize { - if !v.is_initialized() { - return false; - } - }; - for v in &self.User { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Capabilities { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Rlimits { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.Terminal = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.ConsoleSize)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.User)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Args)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Env)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Cwd)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Capabilities)?; - }, - 8 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Rlimits)?; - }, - 9 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.NoNewPrivileges = tmp; - }, - 10 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.ApparmorProfile)?; - }, - 11 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.OOMScoreAdj = tmp; - }, - 12 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.SelinuxLabel)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Terminal != false { - my_size += 2; - } - if let Some(ref v) = self.ConsoleSize.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.User.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.Args { - my_size += ::protobuf::rt::string_size(4, &value); - }; - for value in &self.Env { - my_size += ::protobuf::rt::string_size(5, &value); - }; - if !self.Cwd.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.Cwd); - } - if let Some(ref v) = self.Capabilities.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.Rlimits { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.NoNewPrivileges != false { - my_size += 2; - } - if !self.ApparmorProfile.is_empty() { - my_size += ::protobuf::rt::string_size(10, &self.ApparmorProfile); - } - if self.OOMScoreAdj != 0 { - my_size += ::protobuf::rt::value_size(11, self.OOMScoreAdj, ::protobuf::wire_format::WireTypeVarint); - } - if !self.SelinuxLabel.is_empty() { - my_size += ::protobuf::rt::string_size(12, &self.SelinuxLabel); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Terminal != false { - os.write_bool(1, self.Terminal)?; - } - if let Some(ref v) = self.ConsoleSize.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.User.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.Args { - os.write_string(4, &v)?; - }; - for v in &self.Env { - os.write_string(5, &v)?; - }; - if !self.Cwd.is_empty() { - os.write_string(6, &self.Cwd)?; - } - if let Some(ref v) = self.Capabilities.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.Rlimits { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.NoNewPrivileges != false { - os.write_bool(9, self.NoNewPrivileges)?; - } - if !self.ApparmorProfile.is_empty() { - os.write_string(10, &self.ApparmorProfile)?; - } - if self.OOMScoreAdj != 0 { - os.write_int64(11, self.OOMScoreAdj)?; - } - if !self.SelinuxLabel.is_empty() { - os.write_string(12, &self.SelinuxLabel)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Process { - Process::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "Terminal", - |m: &Process| { &m.Terminal }, - |m: &mut Process| { &mut m.Terminal }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ConsoleSize", - |m: &Process| { &m.ConsoleSize }, - |m: &mut Process| { &mut m.ConsoleSize }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "User", - |m: &Process| { &m.User }, - |m: &mut Process| { &mut m.User }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Args", - |m: &Process| { &m.Args }, - |m: &mut Process| { &mut m.Args }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Env", - |m: &Process| { &m.Env }, - |m: &mut Process| { &mut m.Env }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Cwd", - |m: &Process| { &m.Cwd }, - |m: &mut Process| { &mut m.Cwd }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Capabilities", - |m: &Process| { &m.Capabilities }, - |m: &mut Process| { &mut m.Capabilities }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Rlimits", - |m: &Process| { &m.Rlimits }, - |m: &mut Process| { &mut m.Rlimits }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "NoNewPrivileges", - |m: &Process| { &m.NoNewPrivileges }, - |m: &mut Process| { &mut m.NoNewPrivileges }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ApparmorProfile", - |m: &Process| { &m.ApparmorProfile }, - |m: &mut Process| { &mut m.ApparmorProfile }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "OOMScoreAdj", - |m: &Process| { &m.OOMScoreAdj }, - |m: &mut Process| { &mut m.OOMScoreAdj }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "SelinuxLabel", - |m: &Process| { &m.SelinuxLabel }, - |m: &mut Process| { &mut m.SelinuxLabel }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Process", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Process { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Process::new) - } - } -} - -impl ::protobuf::Clear for Process { - fn clear(&mut self) { - self.Terminal = false; - self.ConsoleSize.clear(); - self.User.clear(); - self.Args.clear(); - self.Env.clear(); - self.Cwd.clear(); - self.Capabilities.clear(); - self.Rlimits.clear(); - self.NoNewPrivileges = false; - self.ApparmorProfile.clear(); - self.OOMScoreAdj = 0; - self.SelinuxLabel.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Process { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Process { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Box { - // message fields - pub Height: u32, - pub Width: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Box { - fn default() -> &'a Box { - ::default_instance() - } -} - -impl Box { - pub fn new() -> Box { - ::std::default::Default::default() - } - - // uint32 Height = 1; - - - pub fn get_Height(&self) -> u32 { - self.Height - } - pub fn clear_Height(&mut self) { - self.Height = 0; - } - - // Param is passed by value, moved - pub fn set_Height(&mut self, v: u32) { - self.Height = v; - } - - // uint32 Width = 2; - - - pub fn get_Width(&self) -> u32 { - self.Width - } - pub fn clear_Width(&mut self) { - self.Width = 0; - } - - // Param is passed by value, moved - pub fn set_Width(&mut self, v: u32) { - self.Width = v; - } -} - -impl ::protobuf::Message for Box { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.Height = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.Width = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Height != 0 { - my_size += ::protobuf::rt::value_size(1, self.Height, ::protobuf::wire_format::WireTypeVarint); - } - if self.Width != 0 { - my_size += ::protobuf::rt::value_size(2, self.Width, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Height != 0 { - os.write_uint32(1, self.Height)?; - } - if self.Width != 0 { - os.write_uint32(2, self.Width)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Box { - Box::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "Height", - |m: &Box| { &m.Height }, - |m: &mut Box| { &mut m.Height }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "Width", - |m: &Box| { &m.Width }, - |m: &mut Box| { &mut m.Width }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Box", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Box { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Box::new) - } - } -} - -impl ::protobuf::Clear for Box { - fn clear(&mut self) { - self.Height = 0; - self.Width = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Box { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Box { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct User { - // message fields - pub UID: u32, - pub GID: u32, - pub AdditionalGids: ::std::vec::Vec, - pub Username: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a User { - fn default() -> &'a User { - ::default_instance() - } -} - -impl User { - pub fn new() -> User { - ::std::default::Default::default() - } - - // uint32 UID = 1; - - - pub fn get_UID(&self) -> u32 { - self.UID - } - pub fn clear_UID(&mut self) { - self.UID = 0; - } - - // Param is passed by value, moved - pub fn set_UID(&mut self, v: u32) { - self.UID = v; - } - - // uint32 GID = 2; - - - pub fn get_GID(&self) -> u32 { - self.GID - } - pub fn clear_GID(&mut self) { - self.GID = 0; - } - - // Param is passed by value, moved - pub fn set_GID(&mut self, v: u32) { - self.GID = v; - } - - // repeated uint32 AdditionalGids = 3; - - - pub fn get_AdditionalGids(&self) -> &[u32] { - &self.AdditionalGids - } - pub fn clear_AdditionalGids(&mut self) { - self.AdditionalGids.clear(); - } - - // Param is passed by value, moved - pub fn set_AdditionalGids(&mut self, v: ::std::vec::Vec) { - self.AdditionalGids = v; - } - - // Mutable pointer to the field. - pub fn mut_AdditionalGids(&mut self) -> &mut ::std::vec::Vec { - &mut self.AdditionalGids - } - - // Take field - pub fn take_AdditionalGids(&mut self) -> ::std::vec::Vec { - ::std::mem::replace(&mut self.AdditionalGids, ::std::vec::Vec::new()) - } - - // string Username = 4; - - - pub fn get_Username(&self) -> &str { - &self.Username - } - pub fn clear_Username(&mut self) { - self.Username.clear(); - } - - // Param is passed by value, moved - pub fn set_Username(&mut self, v: ::std::string::String) { - self.Username = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Username(&mut self) -> &mut ::std::string::String { - &mut self.Username - } - - // Take field - pub fn take_Username(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Username, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for User { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.UID = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.GID = tmp; - }, - 3 => { - ::protobuf::rt::read_repeated_uint32_into(wire_type, is, &mut self.AdditionalGids)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Username)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.UID != 0 { - my_size += ::protobuf::rt::value_size(1, self.UID, ::protobuf::wire_format::WireTypeVarint); - } - if self.GID != 0 { - my_size += ::protobuf::rt::value_size(2, self.GID, ::protobuf::wire_format::WireTypeVarint); - } - for value in &self.AdditionalGids { - my_size += ::protobuf::rt::value_size(3, *value, ::protobuf::wire_format::WireTypeVarint); - }; - if !self.Username.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.Username); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.UID != 0 { - os.write_uint32(1, self.UID)?; - } - if self.GID != 0 { - os.write_uint32(2, self.GID)?; - } - for v in &self.AdditionalGids { - os.write_uint32(3, *v)?; - }; - if !self.Username.is_empty() { - os.write_string(4, &self.Username)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> User { - User::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "UID", - |m: &User| { &m.UID }, - |m: &mut User| { &mut m.UID }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "GID", - |m: &User| { &m.GID }, - |m: &mut User| { &mut m.GID }, - )); - fields.push(::protobuf::reflect::accessor::make_vec_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "AdditionalGids", - |m: &User| { &m.AdditionalGids }, - |m: &mut User| { &mut m.AdditionalGids }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Username", - |m: &User| { &m.Username }, - |m: &mut User| { &mut m.Username }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "User", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static User { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(User::new) - } - } -} - -impl ::protobuf::Clear for User { - fn clear(&mut self) { - self.UID = 0; - self.GID = 0; - self.AdditionalGids.clear(); - self.Username.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for User { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for User { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxCapabilities { - // message fields - pub Bounding: ::protobuf::RepeatedField<::std::string::String>, - pub Effective: ::protobuf::RepeatedField<::std::string::String>, - pub Inheritable: ::protobuf::RepeatedField<::std::string::String>, - pub Permitted: ::protobuf::RepeatedField<::std::string::String>, - pub Ambient: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxCapabilities { - fn default() -> &'a LinuxCapabilities { - ::default_instance() - } -} - -impl LinuxCapabilities { - pub fn new() -> LinuxCapabilities { - ::std::default::Default::default() - } - - // repeated string Bounding = 1; - - - pub fn get_Bounding(&self) -> &[::std::string::String] { - &self.Bounding - } - pub fn clear_Bounding(&mut self) { - self.Bounding.clear(); - } - - // Param is passed by value, moved - pub fn set_Bounding(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Bounding = v; - } - - // Mutable pointer to the field. - pub fn mut_Bounding(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Bounding - } - - // Take field - pub fn take_Bounding(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Bounding, ::protobuf::RepeatedField::new()) - } - - // repeated string Effective = 2; - - - pub fn get_Effective(&self) -> &[::std::string::String] { - &self.Effective - } - pub fn clear_Effective(&mut self) { - self.Effective.clear(); - } - - // Param is passed by value, moved - pub fn set_Effective(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Effective = v; - } - - // Mutable pointer to the field. - pub fn mut_Effective(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Effective - } - - // Take field - pub fn take_Effective(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Effective, ::protobuf::RepeatedField::new()) - } - - // repeated string Inheritable = 3; - - - pub fn get_Inheritable(&self) -> &[::std::string::String] { - &self.Inheritable - } - pub fn clear_Inheritable(&mut self) { - self.Inheritable.clear(); - } - - // Param is passed by value, moved - pub fn set_Inheritable(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Inheritable = v; - } - - // Mutable pointer to the field. - pub fn mut_Inheritable(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Inheritable - } - - // Take field - pub fn take_Inheritable(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Inheritable, ::protobuf::RepeatedField::new()) - } - - // repeated string Permitted = 4; - - - pub fn get_Permitted(&self) -> &[::std::string::String] { - &self.Permitted - } - pub fn clear_Permitted(&mut self) { - self.Permitted.clear(); - } - - // Param is passed by value, moved - pub fn set_Permitted(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Permitted = v; - } - - // Mutable pointer to the field. - pub fn mut_Permitted(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Permitted - } - - // Take field - pub fn take_Permitted(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Permitted, ::protobuf::RepeatedField::new()) - } - - // repeated string Ambient = 5; - - - pub fn get_Ambient(&self) -> &[::std::string::String] { - &self.Ambient - } - pub fn clear_Ambient(&mut self) { - self.Ambient.clear(); - } - - // Param is passed by value, moved - pub fn set_Ambient(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Ambient = v; - } - - // Mutable pointer to the field. - pub fn mut_Ambient(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Ambient - } - - // Take field - pub fn take_Ambient(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Ambient, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for LinuxCapabilities { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Bounding)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Effective)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Inheritable)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Permitted)?; - }, - 5 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Ambient)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.Bounding { - my_size += ::protobuf::rt::string_size(1, &value); - }; - for value in &self.Effective { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.Inheritable { - my_size += ::protobuf::rt::string_size(3, &value); - }; - for value in &self.Permitted { - my_size += ::protobuf::rt::string_size(4, &value); - }; - for value in &self.Ambient { - my_size += ::protobuf::rt::string_size(5, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.Bounding { - os.write_string(1, &v)?; - }; - for v in &self.Effective { - os.write_string(2, &v)?; - }; - for v in &self.Inheritable { - os.write_string(3, &v)?; - }; - for v in &self.Permitted { - os.write_string(4, &v)?; - }; - for v in &self.Ambient { - os.write_string(5, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxCapabilities { - LinuxCapabilities::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Bounding", - |m: &LinuxCapabilities| { &m.Bounding }, - |m: &mut LinuxCapabilities| { &mut m.Bounding }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Effective", - |m: &LinuxCapabilities| { &m.Effective }, - |m: &mut LinuxCapabilities| { &mut m.Effective }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Inheritable", - |m: &LinuxCapabilities| { &m.Inheritable }, - |m: &mut LinuxCapabilities| { &mut m.Inheritable }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Permitted", - |m: &LinuxCapabilities| { &m.Permitted }, - |m: &mut LinuxCapabilities| { &mut m.Permitted }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Ambient", - |m: &LinuxCapabilities| { &m.Ambient }, - |m: &mut LinuxCapabilities| { &mut m.Ambient }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxCapabilities", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxCapabilities { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxCapabilities::new) - } - } -} - -impl ::protobuf::Clear for LinuxCapabilities { - fn clear(&mut self) { - self.Bounding.clear(); - self.Effective.clear(); - self.Inheritable.clear(); - self.Permitted.clear(); - self.Ambient.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxCapabilities { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxCapabilities { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct POSIXRlimit { - // message fields - pub Type: ::std::string::String, - pub Hard: u64, - pub Soft: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a POSIXRlimit { - fn default() -> &'a POSIXRlimit { - ::default_instance() - } -} - -impl POSIXRlimit { - pub fn new() -> POSIXRlimit { - ::std::default::Default::default() - } - - // string Type = 1; - - - pub fn get_Type(&self) -> &str { - &self.Type - } - pub fn clear_Type(&mut self) { - self.Type.clear(); - } - - // Param is passed by value, moved - pub fn set_Type(&mut self, v: ::std::string::String) { - self.Type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Type(&mut self) -> &mut ::std::string::String { - &mut self.Type - } - - // Take field - pub fn take_Type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Type, ::std::string::String::new()) - } - - // uint64 Hard = 2; - - - pub fn get_Hard(&self) -> u64 { - self.Hard - } - pub fn clear_Hard(&mut self) { - self.Hard = 0; - } - - // Param is passed by value, moved - pub fn set_Hard(&mut self, v: u64) { - self.Hard = v; - } - - // uint64 Soft = 3; - - - pub fn get_Soft(&self) -> u64 { - self.Soft - } - pub fn clear_Soft(&mut self) { - self.Soft = 0; - } - - // Param is passed by value, moved - pub fn set_Soft(&mut self, v: u64) { - self.Soft = v; - } -} - -impl ::protobuf::Message for POSIXRlimit { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Type)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Hard = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Soft = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.Type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.Type); - } - if self.Hard != 0 { - my_size += ::protobuf::rt::value_size(2, self.Hard, ::protobuf::wire_format::WireTypeVarint); - } - if self.Soft != 0 { - my_size += ::protobuf::rt::value_size(3, self.Soft, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.Type.is_empty() { - os.write_string(1, &self.Type)?; - } - if self.Hard != 0 { - os.write_uint64(2, self.Hard)?; - } - if self.Soft != 0 { - os.write_uint64(3, self.Soft)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> POSIXRlimit { - POSIXRlimit::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Type", - |m: &POSIXRlimit| { &m.Type }, - |m: &mut POSIXRlimit| { &mut m.Type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Hard", - |m: &POSIXRlimit| { &m.Hard }, - |m: &mut POSIXRlimit| { &mut m.Hard }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Soft", - |m: &POSIXRlimit| { &m.Soft }, - |m: &mut POSIXRlimit| { &mut m.Soft }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "POSIXRlimit", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static POSIXRlimit { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(POSIXRlimit::new) - } - } -} - -impl ::protobuf::Clear for POSIXRlimit { - fn clear(&mut self) { - self.Type.clear(); - self.Hard = 0; - self.Soft = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for POSIXRlimit { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for POSIXRlimit { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Mount { - // message fields - pub destination: ::std::string::String, - pub source: ::std::string::String, - pub field_type: ::std::string::String, - pub options: ::protobuf::RepeatedField<::std::string::String>, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Mount { - fn default() -> &'a Mount { - ::default_instance() - } -} - -impl Mount { - pub fn new() -> Mount { - ::std::default::Default::default() - } - - // string destination = 1; - - - pub fn get_destination(&self) -> &str { - &self.destination - } - pub fn clear_destination(&mut self) { - self.destination.clear(); - } - - // Param is passed by value, moved - pub fn set_destination(&mut self, v: ::std::string::String) { - self.destination = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_destination(&mut self) -> &mut ::std::string::String { - &mut self.destination - } - - // Take field - pub fn take_destination(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.destination, ::std::string::String::new()) - } - - // string source = 2; - - - pub fn get_source(&self) -> &str { - &self.source - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: ::std::string::String) { - self.source = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut ::std::string::String { - &mut self.source - } - - // Take field - pub fn take_source(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source, ::std::string::String::new()) - } - - // string type = 3; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // repeated string options = 4; - - - pub fn get_options(&self) -> &[::std::string::String] { - &self.options - } - pub fn clear_options(&mut self) { - self.options.clear(); - } - - // Param is passed by value, moved - pub fn set_options(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.options = v; - } - - // Mutable pointer to the field. - pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.options - } - - // Take field - pub fn take_options(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Mount { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.destination)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 4 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.options)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.destination.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.destination); - } - if !self.source.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.source); - } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.field_type); - } - for value in &self.options { - my_size += ::protobuf::rt::string_size(4, &value); - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.destination.is_empty() { - os.write_string(1, &self.destination)?; - } - if !self.source.is_empty() { - os.write_string(2, &self.source)?; - } - if !self.field_type.is_empty() { - os.write_string(3, &self.field_type)?; - } - for v in &self.options { - os.write_string(4, &v)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Mount { - Mount::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "destination", - |m: &Mount| { &m.destination }, - |m: &mut Mount| { &mut m.destination }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source", - |m: &Mount| { &m.source }, - |m: &mut Mount| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &Mount| { &m.field_type }, - |m: &mut Mount| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "options", - |m: &Mount| { &m.options }, - |m: &mut Mount| { &mut m.options }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Mount", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Mount { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Mount::new) - } - } -} - -impl ::protobuf::Clear for Mount { - fn clear(&mut self) { - self.destination.clear(); - self.source.clear(); - self.field_type.clear(); - self.options.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Mount { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Mount { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Root { - // message fields - pub Path: ::std::string::String, - pub Readonly: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Root { - fn default() -> &'a Root { - ::default_instance() - } -} - -impl Root { - pub fn new() -> Root { - ::std::default::Default::default() - } - - // string Path = 1; - - - pub fn get_Path(&self) -> &str { - &self.Path - } - pub fn clear_Path(&mut self) { - self.Path.clear(); - } - - // Param is passed by value, moved - pub fn set_Path(&mut self, v: ::std::string::String) { - self.Path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Path(&mut self) -> &mut ::std::string::String { - &mut self.Path - } - - // Take field - pub fn take_Path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Path, ::std::string::String::new()) - } - - // bool Readonly = 2; - - - pub fn get_Readonly(&self) -> bool { - self.Readonly - } - pub fn clear_Readonly(&mut self) { - self.Readonly = false; - } - - // Param is passed by value, moved - pub fn set_Readonly(&mut self, v: bool) { - self.Readonly = v; - } -} - -impl ::protobuf::Message for Root { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Path)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.Readonly = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.Path.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.Path); - } - if self.Readonly != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.Path.is_empty() { - os.write_string(1, &self.Path)?; - } - if self.Readonly != false { - os.write_bool(2, self.Readonly)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Root { - Root::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Path", - |m: &Root| { &m.Path }, - |m: &mut Root| { &mut m.Path }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "Readonly", - |m: &Root| { &m.Readonly }, - |m: &mut Root| { &mut m.Readonly }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Root", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Root { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Root::new) - } - } -} - -impl ::protobuf::Clear for Root { - fn clear(&mut self) { - self.Path.clear(); - self.Readonly = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Root { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Root { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Hooks { - // message fields - pub Prestart: ::protobuf::RepeatedField, - pub Poststart: ::protobuf::RepeatedField, - pub Poststop: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Hooks { - fn default() -> &'a Hooks { - ::default_instance() - } -} - -impl Hooks { - pub fn new() -> Hooks { - ::std::default::Default::default() - } - - // repeated .grpc.Hook Prestart = 1; - - - pub fn get_Prestart(&self) -> &[Hook] { - &self.Prestart - } - pub fn clear_Prestart(&mut self) { - self.Prestart.clear(); - } - - // Param is passed by value, moved - pub fn set_Prestart(&mut self, v: ::protobuf::RepeatedField) { - self.Prestart = v; - } - - // Mutable pointer to the field. - pub fn mut_Prestart(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Prestart - } - - // Take field - pub fn take_Prestart(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Prestart, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.Hook Poststart = 2; - - - pub fn get_Poststart(&self) -> &[Hook] { - &self.Poststart - } - pub fn clear_Poststart(&mut self) { - self.Poststart.clear(); - } - - // Param is passed by value, moved - pub fn set_Poststart(&mut self, v: ::protobuf::RepeatedField) { - self.Poststart = v; - } - - // Mutable pointer to the field. - pub fn mut_Poststart(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Poststart - } - - // Take field - pub fn take_Poststart(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Poststart, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.Hook Poststop = 3; - - - pub fn get_Poststop(&self) -> &[Hook] { - &self.Poststop - } - pub fn clear_Poststop(&mut self) { - self.Poststop.clear(); - } - - // Param is passed by value, moved - pub fn set_Poststop(&mut self, v: ::protobuf::RepeatedField) { - self.Poststop = v; - } - - // Mutable pointer to the field. - pub fn mut_Poststop(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Poststop - } - - // Take field - pub fn take_Poststop(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Poststop, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for Hooks { - fn is_initialized(&self) -> bool { - for v in &self.Prestart { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Poststart { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Poststop { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Prestart)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Poststart)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Poststop)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.Prestart { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.Poststart { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.Poststop { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.Prestart { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.Poststart { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.Poststop { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Hooks { - Hooks::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Prestart", - |m: &Hooks| { &m.Prestart }, - |m: &mut Hooks| { &mut m.Prestart }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Poststart", - |m: &Hooks| { &m.Poststart }, - |m: &mut Hooks| { &mut m.Poststart }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Poststop", - |m: &Hooks| { &m.Poststop }, - |m: &mut Hooks| { &mut m.Poststop }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Hooks", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Hooks { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Hooks::new) - } - } -} - -impl ::protobuf::Clear for Hooks { - fn clear(&mut self) { - self.Prestart.clear(); - self.Poststart.clear(); - self.Poststop.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Hooks { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Hooks { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Hook { - // message fields - pub Path: ::std::string::String, - pub Args: ::protobuf::RepeatedField<::std::string::String>, - pub Env: ::protobuf::RepeatedField<::std::string::String>, - pub Timeout: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Hook { - fn default() -> &'a Hook { - ::default_instance() - } -} - -impl Hook { - pub fn new() -> Hook { - ::std::default::Default::default() - } - - // string Path = 1; - - - pub fn get_Path(&self) -> &str { - &self.Path - } - pub fn clear_Path(&mut self) { - self.Path.clear(); - } - - // Param is passed by value, moved - pub fn set_Path(&mut self, v: ::std::string::String) { - self.Path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Path(&mut self) -> &mut ::std::string::String { - &mut self.Path - } - - // Take field - pub fn take_Path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Path, ::std::string::String::new()) - } - - // repeated string Args = 2; - - - pub fn get_Args(&self) -> &[::std::string::String] { - &self.Args - } - pub fn clear_Args(&mut self) { - self.Args.clear(); - } - - // Param is passed by value, moved - pub fn set_Args(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Args = v; - } - - // Mutable pointer to the field. - pub fn mut_Args(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Args - } - - // Take field - pub fn take_Args(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Args, ::protobuf::RepeatedField::new()) - } - - // repeated string Env = 3; - - - pub fn get_Env(&self) -> &[::std::string::String] { - &self.Env - } - pub fn clear_Env(&mut self) { - self.Env.clear(); - } - - // Param is passed by value, moved - pub fn set_Env(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Env = v; - } - - // Mutable pointer to the field. - pub fn mut_Env(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Env - } - - // Take field - pub fn take_Env(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Env, ::protobuf::RepeatedField::new()) - } - - // int64 Timeout = 4; - - - pub fn get_Timeout(&self) -> i64 { - self.Timeout - } - pub fn clear_Timeout(&mut self) { - self.Timeout = 0; - } - - // Param is passed by value, moved - pub fn set_Timeout(&mut self, v: i64) { - self.Timeout = v; - } -} - -impl ::protobuf::Message for Hook { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Path)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Args)?; - }, - 3 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Env)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Timeout = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.Path.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.Path); - } - for value in &self.Args { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.Env { - my_size += ::protobuf::rt::string_size(3, &value); - }; - if self.Timeout != 0 { - my_size += ::protobuf::rt::value_size(4, self.Timeout, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.Path.is_empty() { - os.write_string(1, &self.Path)?; - } - for v in &self.Args { - os.write_string(2, &v)?; - }; - for v in &self.Env { - os.write_string(3, &v)?; - }; - if self.Timeout != 0 { - os.write_int64(4, self.Timeout)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Hook { - Hook::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Path", - |m: &Hook| { &m.Path }, - |m: &mut Hook| { &mut m.Path }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Args", - |m: &Hook| { &m.Args }, - |m: &mut Hook| { &mut m.Args }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Env", - |m: &Hook| { &m.Env }, - |m: &mut Hook| { &mut m.Env }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Timeout", - |m: &Hook| { &m.Timeout }, - |m: &mut Hook| { &mut m.Timeout }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Hook", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Hook { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Hook::new) - } - } -} - -impl ::protobuf::Clear for Hook { - fn clear(&mut self) { - self.Path.clear(); - self.Args.clear(); - self.Env.clear(); - self.Timeout = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Hook { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Hook { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Linux { - // message fields - pub UIDMappings: ::protobuf::RepeatedField, - pub GIDMappings: ::protobuf::RepeatedField, - pub Sysctl: ::std::collections::HashMap<::std::string::String, ::std::string::String>, - pub Resources: ::protobuf::SingularPtrField, - pub CgroupsPath: ::std::string::String, - pub Namespaces: ::protobuf::RepeatedField, - pub Devices: ::protobuf::RepeatedField, - pub Seccomp: ::protobuf::SingularPtrField, - pub RootfsPropagation: ::std::string::String, - pub MaskedPaths: ::protobuf::RepeatedField<::std::string::String>, - pub ReadonlyPaths: ::protobuf::RepeatedField<::std::string::String>, - pub MountLabel: ::std::string::String, - pub IntelRdt: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Linux { - fn default() -> &'a Linux { - ::default_instance() - } -} - -impl Linux { - pub fn new() -> Linux { - ::std::default::Default::default() - } - - // repeated .grpc.LinuxIDMapping UIDMappings = 1; - - - pub fn get_UIDMappings(&self) -> &[LinuxIDMapping] { - &self.UIDMappings - } - pub fn clear_UIDMappings(&mut self) { - self.UIDMappings.clear(); - } - - // Param is passed by value, moved - pub fn set_UIDMappings(&mut self, v: ::protobuf::RepeatedField) { - self.UIDMappings = v; - } - - // Mutable pointer to the field. - pub fn mut_UIDMappings(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.UIDMappings - } - - // Take field - pub fn take_UIDMappings(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.UIDMappings, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.LinuxIDMapping GIDMappings = 2; - - - pub fn get_GIDMappings(&self) -> &[LinuxIDMapping] { - &self.GIDMappings - } - pub fn clear_GIDMappings(&mut self) { - self.GIDMappings.clear(); - } - - // Param is passed by value, moved - pub fn set_GIDMappings(&mut self, v: ::protobuf::RepeatedField) { - self.GIDMappings = v; - } - - // Mutable pointer to the field. - pub fn mut_GIDMappings(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.GIDMappings - } - - // Take field - pub fn take_GIDMappings(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.GIDMappings, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.Linux.SysctlEntry Sysctl = 3; - - - pub fn get_Sysctl(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> { - &self.Sysctl - } - pub fn clear_Sysctl(&mut self) { - self.Sysctl.clear(); - } - - // Param is passed by value, moved - pub fn set_Sysctl(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) { - self.Sysctl = v; - } - - // Mutable pointer to the field. - pub fn mut_Sysctl(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> { - &mut self.Sysctl - } - - // Take field - pub fn take_Sysctl(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> { - ::std::mem::replace(&mut self.Sysctl, ::std::collections::HashMap::new()) - } - - // .grpc.LinuxResources Resources = 4; - - - pub fn get_Resources(&self) -> &LinuxResources { - self.Resources.as_ref().unwrap_or_else(|| LinuxResources::default_instance()) - } - pub fn clear_Resources(&mut self) { - self.Resources.clear(); - } - - pub fn has_Resources(&self) -> bool { - self.Resources.is_some() - } - - // Param is passed by value, moved - pub fn set_Resources(&mut self, v: LinuxResources) { - self.Resources = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Resources(&mut self) -> &mut LinuxResources { - if self.Resources.is_none() { - self.Resources.set_default(); - } - self.Resources.as_mut().unwrap() - } - - // Take field - pub fn take_Resources(&mut self) -> LinuxResources { - self.Resources.take().unwrap_or_else(|| LinuxResources::new()) - } - - // string CgroupsPath = 5; - - - pub fn get_CgroupsPath(&self) -> &str { - &self.CgroupsPath - } - pub fn clear_CgroupsPath(&mut self) { - self.CgroupsPath.clear(); - } - - // Param is passed by value, moved - pub fn set_CgroupsPath(&mut self, v: ::std::string::String) { - self.CgroupsPath = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_CgroupsPath(&mut self) -> &mut ::std::string::String { - &mut self.CgroupsPath - } - - // Take field - pub fn take_CgroupsPath(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.CgroupsPath, ::std::string::String::new()) - } - - // repeated .grpc.LinuxNamespace Namespaces = 6; - - - pub fn get_Namespaces(&self) -> &[LinuxNamespace] { - &self.Namespaces - } - pub fn clear_Namespaces(&mut self) { - self.Namespaces.clear(); - } - - // Param is passed by value, moved - pub fn set_Namespaces(&mut self, v: ::protobuf::RepeatedField) { - self.Namespaces = v; - } - - // Mutable pointer to the field. - pub fn mut_Namespaces(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Namespaces - } - - // Take field - pub fn take_Namespaces(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Namespaces, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.LinuxDevice Devices = 7; - - - pub fn get_Devices(&self) -> &[LinuxDevice] { - &self.Devices - } - pub fn clear_Devices(&mut self) { - self.Devices.clear(); - } - - // Param is passed by value, moved - pub fn set_Devices(&mut self, v: ::protobuf::RepeatedField) { - self.Devices = v; - } - - // Mutable pointer to the field. - pub fn mut_Devices(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Devices - } - - // Take field - pub fn take_Devices(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Devices, ::protobuf::RepeatedField::new()) - } - - // .grpc.LinuxSeccomp Seccomp = 8; - - - pub fn get_Seccomp(&self) -> &LinuxSeccomp { - self.Seccomp.as_ref().unwrap_or_else(|| LinuxSeccomp::default_instance()) - } - pub fn clear_Seccomp(&mut self) { - self.Seccomp.clear(); - } - - pub fn has_Seccomp(&self) -> bool { - self.Seccomp.is_some() - } - - // Param is passed by value, moved - pub fn set_Seccomp(&mut self, v: LinuxSeccomp) { - self.Seccomp = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Seccomp(&mut self) -> &mut LinuxSeccomp { - if self.Seccomp.is_none() { - self.Seccomp.set_default(); - } - self.Seccomp.as_mut().unwrap() - } - - // Take field - pub fn take_Seccomp(&mut self) -> LinuxSeccomp { - self.Seccomp.take().unwrap_or_else(|| LinuxSeccomp::new()) - } - - // string RootfsPropagation = 9; - - - pub fn get_RootfsPropagation(&self) -> &str { - &self.RootfsPropagation - } - pub fn clear_RootfsPropagation(&mut self) { - self.RootfsPropagation.clear(); - } - - // Param is passed by value, moved - pub fn set_RootfsPropagation(&mut self, v: ::std::string::String) { - self.RootfsPropagation = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_RootfsPropagation(&mut self) -> &mut ::std::string::String { - &mut self.RootfsPropagation - } - - // Take field - pub fn take_RootfsPropagation(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.RootfsPropagation, ::std::string::String::new()) - } - - // repeated string MaskedPaths = 10; - - - pub fn get_MaskedPaths(&self) -> &[::std::string::String] { - &self.MaskedPaths - } - pub fn clear_MaskedPaths(&mut self) { - self.MaskedPaths.clear(); - } - - // Param is passed by value, moved - pub fn set_MaskedPaths(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.MaskedPaths = v; - } - - // Mutable pointer to the field. - pub fn mut_MaskedPaths(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.MaskedPaths - } - - // Take field - pub fn take_MaskedPaths(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.MaskedPaths, ::protobuf::RepeatedField::new()) - } - - // repeated string ReadonlyPaths = 11; - - - pub fn get_ReadonlyPaths(&self) -> &[::std::string::String] { - &self.ReadonlyPaths - } - pub fn clear_ReadonlyPaths(&mut self) { - self.ReadonlyPaths.clear(); - } - - // Param is passed by value, moved - pub fn set_ReadonlyPaths(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.ReadonlyPaths = v; - } - - // Mutable pointer to the field. - pub fn mut_ReadonlyPaths(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.ReadonlyPaths - } - - // Take field - pub fn take_ReadonlyPaths(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.ReadonlyPaths, ::protobuf::RepeatedField::new()) - } - - // string MountLabel = 12; - - - pub fn get_MountLabel(&self) -> &str { - &self.MountLabel - } - pub fn clear_MountLabel(&mut self) { - self.MountLabel.clear(); - } - - // Param is passed by value, moved - pub fn set_MountLabel(&mut self, v: ::std::string::String) { - self.MountLabel = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_MountLabel(&mut self) -> &mut ::std::string::String { - &mut self.MountLabel - } - - // Take field - pub fn take_MountLabel(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.MountLabel, ::std::string::String::new()) - } - - // .grpc.LinuxIntelRdt IntelRdt = 13; - - - pub fn get_IntelRdt(&self) -> &LinuxIntelRdt { - self.IntelRdt.as_ref().unwrap_or_else(|| LinuxIntelRdt::default_instance()) - } - pub fn clear_IntelRdt(&mut self) { - self.IntelRdt.clear(); - } - - pub fn has_IntelRdt(&self) -> bool { - self.IntelRdt.is_some() - } - - // Param is passed by value, moved - pub fn set_IntelRdt(&mut self, v: LinuxIntelRdt) { - self.IntelRdt = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_IntelRdt(&mut self) -> &mut LinuxIntelRdt { - if self.IntelRdt.is_none() { - self.IntelRdt.set_default(); - } - self.IntelRdt.as_mut().unwrap() - } - - // Take field - pub fn take_IntelRdt(&mut self) -> LinuxIntelRdt { - self.IntelRdt.take().unwrap_or_else(|| LinuxIntelRdt::new()) - } -} - -impl ::protobuf::Message for Linux { - fn is_initialized(&self) -> bool { - for v in &self.UIDMappings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.GIDMappings { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Resources { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Namespaces { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Devices { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Seccomp { - if !v.is_initialized() { - return false; - } - }; - for v in &self.IntelRdt { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.UIDMappings)?; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.GIDMappings)?; - }, - 3 => { - ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.Sysctl)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Resources)?; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.CgroupsPath)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Namespaces)?; - }, - 7 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Devices)?; - }, - 8 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Seccomp)?; - }, - 9 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.RootfsPropagation)?; - }, - 10 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.MaskedPaths)?; - }, - 11 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.ReadonlyPaths)?; - }, - 12 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.MountLabel)?; - }, - 13 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.IntelRdt)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.UIDMappings { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.GIDMappings { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.Sysctl); - if let Some(ref v) = self.Resources.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.CgroupsPath.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.CgroupsPath); - } - for value in &self.Namespaces { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.Devices { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.Seccomp.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.RootfsPropagation.is_empty() { - my_size += ::protobuf::rt::string_size(9, &self.RootfsPropagation); - } - for value in &self.MaskedPaths { - my_size += ::protobuf::rt::string_size(10, &value); - }; - for value in &self.ReadonlyPaths { - my_size += ::protobuf::rt::string_size(11, &value); - }; - if !self.MountLabel.is_empty() { - my_size += ::protobuf::rt::string_size(12, &self.MountLabel); - } - if let Some(ref v) = self.IntelRdt.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.UIDMappings { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.GIDMappings { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.Sysctl, os)?; - if let Some(ref v) = self.Resources.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.CgroupsPath.is_empty() { - os.write_string(5, &self.CgroupsPath)?; - } - for v in &self.Namespaces { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.Devices { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.Seccomp.as_ref() { - os.write_tag(8, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.RootfsPropagation.is_empty() { - os.write_string(9, &self.RootfsPropagation)?; - } - for v in &self.MaskedPaths { - os.write_string(10, &v)?; - }; - for v in &self.ReadonlyPaths { - os.write_string(11, &v)?; - }; - if !self.MountLabel.is_empty() { - os.write_string(12, &self.MountLabel)?; - } - if let Some(ref v) = self.IntelRdt.as_ref() { - os.write_tag(13, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Linux { - Linux::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "UIDMappings", - |m: &Linux| { &m.UIDMappings }, - |m: &mut Linux| { &mut m.UIDMappings }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "GIDMappings", - |m: &Linux| { &m.GIDMappings }, - |m: &mut Linux| { &mut m.GIDMappings }, - )); - fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>( - "Sysctl", - |m: &Linux| { &m.Sysctl }, - |m: &mut Linux| { &mut m.Sysctl }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Resources", - |m: &Linux| { &m.Resources }, - |m: &mut Linux| { &mut m.Resources }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "CgroupsPath", - |m: &Linux| { &m.CgroupsPath }, - |m: &mut Linux| { &mut m.CgroupsPath }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Namespaces", - |m: &Linux| { &m.Namespaces }, - |m: &mut Linux| { &mut m.Namespaces }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Devices", - |m: &Linux| { &m.Devices }, - |m: &mut Linux| { &mut m.Devices }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Seccomp", - |m: &Linux| { &m.Seccomp }, - |m: &mut Linux| { &mut m.Seccomp }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "RootfsPropagation", - |m: &Linux| { &m.RootfsPropagation }, - |m: &mut Linux| { &mut m.RootfsPropagation }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "MaskedPaths", - |m: &Linux| { &m.MaskedPaths }, - |m: &mut Linux| { &mut m.MaskedPaths }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "ReadonlyPaths", - |m: &Linux| { &m.ReadonlyPaths }, - |m: &mut Linux| { &mut m.ReadonlyPaths }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "MountLabel", - |m: &Linux| { &m.MountLabel }, - |m: &mut Linux| { &mut m.MountLabel }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "IntelRdt", - |m: &Linux| { &m.IntelRdt }, - |m: &mut Linux| { &mut m.IntelRdt }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Linux", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Linux { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Linux::new) - } - } -} - -impl ::protobuf::Clear for Linux { - fn clear(&mut self) { - self.UIDMappings.clear(); - self.GIDMappings.clear(); - self.Sysctl.clear(); - self.Resources.clear(); - self.CgroupsPath.clear(); - self.Namespaces.clear(); - self.Devices.clear(); - self.Seccomp.clear(); - self.RootfsPropagation.clear(); - self.MaskedPaths.clear(); - self.ReadonlyPaths.clear(); - self.MountLabel.clear(); - self.IntelRdt.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Linux { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Linux { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Windows { - // message fields - pub dummy: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Windows { - fn default() -> &'a Windows { - ::default_instance() - } -} - -impl Windows { - pub fn new() -> Windows { - ::std::default::Default::default() - } - - // string dummy = 1; - - - pub fn get_dummy(&self) -> &str { - &self.dummy - } - pub fn clear_dummy(&mut self) { - self.dummy.clear(); - } - - // Param is passed by value, moved - pub fn set_dummy(&mut self, v: ::std::string::String) { - self.dummy = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dummy(&mut self) -> &mut ::std::string::String { - &mut self.dummy - } - - // Take field - pub fn take_dummy(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.dummy, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Windows { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dummy)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.dummy.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.dummy); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.dummy.is_empty() { - os.write_string(1, &self.dummy)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Windows { - Windows::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "dummy", - |m: &Windows| { &m.dummy }, - |m: &mut Windows| { &mut m.dummy }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Windows", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Windows { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Windows::new) - } - } -} - -impl ::protobuf::Clear for Windows { - fn clear(&mut self) { - self.dummy.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Windows { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Windows { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Solaris { - // message fields - pub dummy: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Solaris { - fn default() -> &'a Solaris { - ::default_instance() - } -} - -impl Solaris { - pub fn new() -> Solaris { - ::std::default::Default::default() - } - - // string dummy = 1; - - - pub fn get_dummy(&self) -> &str { - &self.dummy - } - pub fn clear_dummy(&mut self) { - self.dummy.clear(); - } - - // Param is passed by value, moved - pub fn set_dummy(&mut self, v: ::std::string::String) { - self.dummy = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dummy(&mut self) -> &mut ::std::string::String { - &mut self.dummy - } - - // Take field - pub fn take_dummy(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.dummy, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for Solaris { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dummy)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.dummy.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.dummy); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.dummy.is_empty() { - os.write_string(1, &self.dummy)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Solaris { - Solaris::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "dummy", - |m: &Solaris| { &m.dummy }, - |m: &mut Solaris| { &mut m.dummy }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Solaris", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Solaris { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Solaris::new) - } - } -} - -impl ::protobuf::Clear for Solaris { - fn clear(&mut self) { - self.dummy.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Solaris { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Solaris { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxIDMapping { - // message fields - pub HostID: u32, - pub ContainerID: u32, - pub Size: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxIDMapping { - fn default() -> &'a LinuxIDMapping { - ::default_instance() - } -} - -impl LinuxIDMapping { - pub fn new() -> LinuxIDMapping { - ::std::default::Default::default() - } - - // uint32 HostID = 1; - - - pub fn get_HostID(&self) -> u32 { - self.HostID - } - pub fn clear_HostID(&mut self) { - self.HostID = 0; - } - - // Param is passed by value, moved - pub fn set_HostID(&mut self, v: u32) { - self.HostID = v; - } - - // uint32 ContainerID = 2; - - - pub fn get_ContainerID(&self) -> u32 { - self.ContainerID - } - pub fn clear_ContainerID(&mut self) { - self.ContainerID = 0; - } - - // Param is passed by value, moved - pub fn set_ContainerID(&mut self, v: u32) { - self.ContainerID = v; - } - - // uint32 Size = 3; - - - pub fn get_Size(&self) -> u32 { - self.Size - } - pub fn clear_Size(&mut self) { - self.Size = 0; - } - - // Param is passed by value, moved - pub fn set_Size(&mut self, v: u32) { - self.Size = v; - } -} - -impl ::protobuf::Message for LinuxIDMapping { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.HostID = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.ContainerID = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.Size = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.HostID != 0 { - my_size += ::protobuf::rt::value_size(1, self.HostID, ::protobuf::wire_format::WireTypeVarint); - } - if self.ContainerID != 0 { - my_size += ::protobuf::rt::value_size(2, self.ContainerID, ::protobuf::wire_format::WireTypeVarint); - } - if self.Size != 0 { - my_size += ::protobuf::rt::value_size(3, self.Size, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.HostID != 0 { - os.write_uint32(1, self.HostID)?; - } - if self.ContainerID != 0 { - os.write_uint32(2, self.ContainerID)?; - } - if self.Size != 0 { - os.write_uint32(3, self.Size)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxIDMapping { - LinuxIDMapping::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "HostID", - |m: &LinuxIDMapping| { &m.HostID }, - |m: &mut LinuxIDMapping| { &mut m.HostID }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "ContainerID", - |m: &LinuxIDMapping| { &m.ContainerID }, - |m: &mut LinuxIDMapping| { &mut m.ContainerID }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "Size", - |m: &LinuxIDMapping| { &m.Size }, - |m: &mut LinuxIDMapping| { &mut m.Size }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxIDMapping", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxIDMapping { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxIDMapping::new) - } - } -} - -impl ::protobuf::Clear for LinuxIDMapping { - fn clear(&mut self) { - self.HostID = 0; - self.ContainerID = 0; - self.Size = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxIDMapping { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxIDMapping { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxNamespace { - // message fields - pub Type: ::std::string::String, - pub Path: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxNamespace { - fn default() -> &'a LinuxNamespace { - ::default_instance() - } -} - -impl LinuxNamespace { - pub fn new() -> LinuxNamespace { - ::std::default::Default::default() - } - - // string Type = 1; - - - pub fn get_Type(&self) -> &str { - &self.Type - } - pub fn clear_Type(&mut self) { - self.Type.clear(); - } - - // Param is passed by value, moved - pub fn set_Type(&mut self, v: ::std::string::String) { - self.Type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Type(&mut self) -> &mut ::std::string::String { - &mut self.Type - } - - // Take field - pub fn take_Type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Type, ::std::string::String::new()) - } - - // string Path = 2; - - - pub fn get_Path(&self) -> &str { - &self.Path - } - pub fn clear_Path(&mut self) { - self.Path.clear(); - } - - // Param is passed by value, moved - pub fn set_Path(&mut self, v: ::std::string::String) { - self.Path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Path(&mut self) -> &mut ::std::string::String { - &mut self.Path - } - - // Take field - pub fn take_Path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Path, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for LinuxNamespace { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Type)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Path)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.Type.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.Type); - } - if !self.Path.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.Path); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.Type.is_empty() { - os.write_string(1, &self.Type)?; - } - if !self.Path.is_empty() { - os.write_string(2, &self.Path)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxNamespace { - LinuxNamespace::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Type", - |m: &LinuxNamespace| { &m.Type }, - |m: &mut LinuxNamespace| { &mut m.Type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Path", - |m: &LinuxNamespace| { &m.Path }, - |m: &mut LinuxNamespace| { &mut m.Path }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxNamespace", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxNamespace { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxNamespace::new) - } - } -} - -impl ::protobuf::Clear for LinuxNamespace { - fn clear(&mut self) { - self.Type.clear(); - self.Path.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxNamespace { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxNamespace { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxDevice { - // message fields - pub Path: ::std::string::String, - pub Type: ::std::string::String, - pub Major: i64, - pub Minor: i64, - pub FileMode: u32, - pub UID: u32, - pub GID: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxDevice { - fn default() -> &'a LinuxDevice { - ::default_instance() - } -} - -impl LinuxDevice { - pub fn new() -> LinuxDevice { - ::std::default::Default::default() - } - - // string Path = 1; - - - pub fn get_Path(&self) -> &str { - &self.Path - } - pub fn clear_Path(&mut self) { - self.Path.clear(); - } - - // Param is passed by value, moved - pub fn set_Path(&mut self, v: ::std::string::String) { - self.Path = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Path(&mut self) -> &mut ::std::string::String { - &mut self.Path - } - - // Take field - pub fn take_Path(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Path, ::std::string::String::new()) - } - - // string Type = 2; - - - pub fn get_Type(&self) -> &str { - &self.Type - } - pub fn clear_Type(&mut self) { - self.Type.clear(); - } - - // Param is passed by value, moved - pub fn set_Type(&mut self, v: ::std::string::String) { - self.Type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Type(&mut self) -> &mut ::std::string::String { - &mut self.Type - } - - // Take field - pub fn take_Type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Type, ::std::string::String::new()) - } - - // int64 Major = 3; - - - pub fn get_Major(&self) -> i64 { - self.Major - } - pub fn clear_Major(&mut self) { - self.Major = 0; - } - - // Param is passed by value, moved - pub fn set_Major(&mut self, v: i64) { - self.Major = v; - } - - // int64 Minor = 4; - - - pub fn get_Minor(&self) -> i64 { - self.Minor - } - pub fn clear_Minor(&mut self) { - self.Minor = 0; - } - - // Param is passed by value, moved - pub fn set_Minor(&mut self, v: i64) { - self.Minor = v; - } - - // uint32 FileMode = 5; - - - pub fn get_FileMode(&self) -> u32 { - self.FileMode - } - pub fn clear_FileMode(&mut self) { - self.FileMode = 0; - } - - // Param is passed by value, moved - pub fn set_FileMode(&mut self, v: u32) { - self.FileMode = v; - } - - // uint32 UID = 6; - - - pub fn get_UID(&self) -> u32 { - self.UID - } - pub fn clear_UID(&mut self) { - self.UID = 0; - } - - // Param is passed by value, moved - pub fn set_UID(&mut self, v: u32) { - self.UID = v; - } - - // uint32 GID = 7; - - - pub fn get_GID(&self) -> u32 { - self.GID - } - pub fn clear_GID(&mut self) { - self.GID = 0; - } - - // Param is passed by value, moved - pub fn set_GID(&mut self, v: u32) { - self.GID = v; - } -} - -impl ::protobuf::Message for LinuxDevice { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Path)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Type)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Major = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Minor = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.FileMode = tmp; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.UID = tmp; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.GID = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.Path.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.Path); - } - if !self.Type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.Type); - } - if self.Major != 0 { - my_size += ::protobuf::rt::value_size(3, self.Major, ::protobuf::wire_format::WireTypeVarint); - } - if self.Minor != 0 { - my_size += ::protobuf::rt::value_size(4, self.Minor, ::protobuf::wire_format::WireTypeVarint); - } - if self.FileMode != 0 { - my_size += ::protobuf::rt::value_size(5, self.FileMode, ::protobuf::wire_format::WireTypeVarint); - } - if self.UID != 0 { - my_size += ::protobuf::rt::value_size(6, self.UID, ::protobuf::wire_format::WireTypeVarint); - } - if self.GID != 0 { - my_size += ::protobuf::rt::value_size(7, self.GID, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.Path.is_empty() { - os.write_string(1, &self.Path)?; - } - if !self.Type.is_empty() { - os.write_string(2, &self.Type)?; - } - if self.Major != 0 { - os.write_int64(3, self.Major)?; - } - if self.Minor != 0 { - os.write_int64(4, self.Minor)?; - } - if self.FileMode != 0 { - os.write_uint32(5, self.FileMode)?; - } - if self.UID != 0 { - os.write_uint32(6, self.UID)?; - } - if self.GID != 0 { - os.write_uint32(7, self.GID)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxDevice { - LinuxDevice::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Path", - |m: &LinuxDevice| { &m.Path }, - |m: &mut LinuxDevice| { &mut m.Path }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Type", - |m: &LinuxDevice| { &m.Type }, - |m: &mut LinuxDevice| { &mut m.Type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Major", - |m: &LinuxDevice| { &m.Major }, - |m: &mut LinuxDevice| { &mut m.Major }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Minor", - |m: &LinuxDevice| { &m.Minor }, - |m: &mut LinuxDevice| { &mut m.Minor }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "FileMode", - |m: &LinuxDevice| { &m.FileMode }, - |m: &mut LinuxDevice| { &mut m.FileMode }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "UID", - |m: &LinuxDevice| { &m.UID }, - |m: &mut LinuxDevice| { &mut m.UID }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "GID", - |m: &LinuxDevice| { &m.GID }, - |m: &mut LinuxDevice| { &mut m.GID }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxDevice", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxDevice { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxDevice::new) - } - } -} - -impl ::protobuf::Clear for LinuxDevice { - fn clear(&mut self) { - self.Path.clear(); - self.Type.clear(); - self.Major = 0; - self.Minor = 0; - self.FileMode = 0; - self.UID = 0; - self.GID = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxDevice { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxDevice { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxResources { - // message fields - pub Devices: ::protobuf::RepeatedField, - pub Memory: ::protobuf::SingularPtrField, - pub CPU: ::protobuf::SingularPtrField, - pub Pids: ::protobuf::SingularPtrField, - pub BlockIO: ::protobuf::SingularPtrField, - pub HugepageLimits: ::protobuf::RepeatedField, - pub Network: ::protobuf::SingularPtrField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxResources { - fn default() -> &'a LinuxResources { - ::default_instance() - } -} - -impl LinuxResources { - pub fn new() -> LinuxResources { - ::std::default::Default::default() - } - - // repeated .grpc.LinuxDeviceCgroup Devices = 1; - - - pub fn get_Devices(&self) -> &[LinuxDeviceCgroup] { - &self.Devices - } - pub fn clear_Devices(&mut self) { - self.Devices.clear(); - } - - // Param is passed by value, moved - pub fn set_Devices(&mut self, v: ::protobuf::RepeatedField) { - self.Devices = v; - } - - // Mutable pointer to the field. - pub fn mut_Devices(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Devices - } - - // Take field - pub fn take_Devices(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Devices, ::protobuf::RepeatedField::new()) - } - - // .grpc.LinuxMemory Memory = 2; - - - pub fn get_Memory(&self) -> &LinuxMemory { - self.Memory.as_ref().unwrap_or_else(|| LinuxMemory::default_instance()) - } - pub fn clear_Memory(&mut self) { - self.Memory.clear(); - } - - pub fn has_Memory(&self) -> bool { - self.Memory.is_some() - } - - // Param is passed by value, moved - pub fn set_Memory(&mut self, v: LinuxMemory) { - self.Memory = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Memory(&mut self) -> &mut LinuxMemory { - if self.Memory.is_none() { - self.Memory.set_default(); - } - self.Memory.as_mut().unwrap() - } - - // Take field - pub fn take_Memory(&mut self) -> LinuxMemory { - self.Memory.take().unwrap_or_else(|| LinuxMemory::new()) - } - - // .grpc.LinuxCPU CPU = 3; - - - pub fn get_CPU(&self) -> &LinuxCPU { - self.CPU.as_ref().unwrap_or_else(|| LinuxCPU::default_instance()) - } - pub fn clear_CPU(&mut self) { - self.CPU.clear(); - } - - pub fn has_CPU(&self) -> bool { - self.CPU.is_some() - } - - // Param is passed by value, moved - pub fn set_CPU(&mut self, v: LinuxCPU) { - self.CPU = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_CPU(&mut self) -> &mut LinuxCPU { - if self.CPU.is_none() { - self.CPU.set_default(); - } - self.CPU.as_mut().unwrap() - } - - // Take field - pub fn take_CPU(&mut self) -> LinuxCPU { - self.CPU.take().unwrap_or_else(|| LinuxCPU::new()) - } - - // .grpc.LinuxPids Pids = 4; - - - pub fn get_Pids(&self) -> &LinuxPids { - self.Pids.as_ref().unwrap_or_else(|| LinuxPids::default_instance()) - } - pub fn clear_Pids(&mut self) { - self.Pids.clear(); - } - - pub fn has_Pids(&self) -> bool { - self.Pids.is_some() - } - - // Param is passed by value, moved - pub fn set_Pids(&mut self, v: LinuxPids) { - self.Pids = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Pids(&mut self) -> &mut LinuxPids { - if self.Pids.is_none() { - self.Pids.set_default(); - } - self.Pids.as_mut().unwrap() - } - - // Take field - pub fn take_Pids(&mut self) -> LinuxPids { - self.Pids.take().unwrap_or_else(|| LinuxPids::new()) - } - - // .grpc.LinuxBlockIO BlockIO = 5; - - - pub fn get_BlockIO(&self) -> &LinuxBlockIO { - self.BlockIO.as_ref().unwrap_or_else(|| LinuxBlockIO::default_instance()) - } - pub fn clear_BlockIO(&mut self) { - self.BlockIO.clear(); - } - - pub fn has_BlockIO(&self) -> bool { - self.BlockIO.is_some() - } - - // Param is passed by value, moved - pub fn set_BlockIO(&mut self, v: LinuxBlockIO) { - self.BlockIO = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_BlockIO(&mut self) -> &mut LinuxBlockIO { - if self.BlockIO.is_none() { - self.BlockIO.set_default(); - } - self.BlockIO.as_mut().unwrap() - } - - // Take field - pub fn take_BlockIO(&mut self) -> LinuxBlockIO { - self.BlockIO.take().unwrap_or_else(|| LinuxBlockIO::new()) - } - - // repeated .grpc.LinuxHugepageLimit HugepageLimits = 6; - - - pub fn get_HugepageLimits(&self) -> &[LinuxHugepageLimit] { - &self.HugepageLimits - } - pub fn clear_HugepageLimits(&mut self) { - self.HugepageLimits.clear(); - } - - // Param is passed by value, moved - pub fn set_HugepageLimits(&mut self, v: ::protobuf::RepeatedField) { - self.HugepageLimits = v; - } - - // Mutable pointer to the field. - pub fn mut_HugepageLimits(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.HugepageLimits - } - - // Take field - pub fn take_HugepageLimits(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.HugepageLimits, ::protobuf::RepeatedField::new()) - } - - // .grpc.LinuxNetwork Network = 7; - - - pub fn get_Network(&self) -> &LinuxNetwork { - self.Network.as_ref().unwrap_or_else(|| LinuxNetwork::default_instance()) - } - pub fn clear_Network(&mut self) { - self.Network.clear(); - } - - pub fn has_Network(&self) -> bool { - self.Network.is_some() - } - - // Param is passed by value, moved - pub fn set_Network(&mut self, v: LinuxNetwork) { - self.Network = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Network(&mut self) -> &mut LinuxNetwork { - if self.Network.is_none() { - self.Network.set_default(); - } - self.Network.as_mut().unwrap() - } - - // Take field - pub fn take_Network(&mut self) -> LinuxNetwork { - self.Network.take().unwrap_or_else(|| LinuxNetwork::new()) - } -} - -impl ::protobuf::Message for LinuxResources { - fn is_initialized(&self) -> bool { - for v in &self.Devices { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Memory { - if !v.is_initialized() { - return false; - } - }; - for v in &self.CPU { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Pids { - if !v.is_initialized() { - return false; - } - }; - for v in &self.BlockIO { - if !v.is_initialized() { - return false; - } - }; - for v in &self.HugepageLimits { - if !v.is_initialized() { - return false; - } - }; - for v in &self.Network { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Devices)?; - }, - 2 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Memory)?; - }, - 3 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.CPU)?; - }, - 4 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Pids)?; - }, - 5 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.BlockIO)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.HugepageLimits)?; - }, - 7 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.Network)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.Devices { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.Memory.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.CPU.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.Pids.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if let Some(ref v) = self.BlockIO.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - for value in &self.HugepageLimits { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if let Some(ref v) = self.Network.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.Devices { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.Memory.as_ref() { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.CPU.as_ref() { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.Pids.as_ref() { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if let Some(ref v) = self.BlockIO.as_ref() { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - for v in &self.HugepageLimits { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if let Some(ref v) = self.Network.as_ref() { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxResources { - LinuxResources::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Devices", - |m: &LinuxResources| { &m.Devices }, - |m: &mut LinuxResources| { &mut m.Devices }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Memory", - |m: &LinuxResources| { &m.Memory }, - |m: &mut LinuxResources| { &mut m.Memory }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "CPU", - |m: &LinuxResources| { &m.CPU }, - |m: &mut LinuxResources| { &mut m.CPU }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Pids", - |m: &LinuxResources| { &m.Pids }, - |m: &mut LinuxResources| { &mut m.Pids }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "BlockIO", - |m: &LinuxResources| { &m.BlockIO }, - |m: &mut LinuxResources| { &mut m.BlockIO }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "HugepageLimits", - |m: &LinuxResources| { &m.HugepageLimits }, - |m: &mut LinuxResources| { &mut m.HugepageLimits }, - )); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Network", - |m: &LinuxResources| { &m.Network }, - |m: &mut LinuxResources| { &mut m.Network }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxResources", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxResources { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxResources::new) - } - } -} - -impl ::protobuf::Clear for LinuxResources { - fn clear(&mut self) { - self.Devices.clear(); - self.Memory.clear(); - self.CPU.clear(); - self.Pids.clear(); - self.BlockIO.clear(); - self.HugepageLimits.clear(); - self.Network.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxResources { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxResources { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxMemory { - // message fields - pub Limit: i64, - pub Reservation: i64, - pub Swap: i64, - pub Kernel: i64, - pub KernelTCP: i64, - pub Swappiness: u64, - pub DisableOOMKiller: bool, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxMemory { - fn default() -> &'a LinuxMemory { - ::default_instance() - } -} - -impl LinuxMemory { - pub fn new() -> LinuxMemory { - ::std::default::Default::default() - } - - // int64 Limit = 1; - - - pub fn get_Limit(&self) -> i64 { - self.Limit - } - pub fn clear_Limit(&mut self) { - self.Limit = 0; - } - - // Param is passed by value, moved - pub fn set_Limit(&mut self, v: i64) { - self.Limit = v; - } - - // int64 Reservation = 2; - - - pub fn get_Reservation(&self) -> i64 { - self.Reservation - } - pub fn clear_Reservation(&mut self) { - self.Reservation = 0; - } - - // Param is passed by value, moved - pub fn set_Reservation(&mut self, v: i64) { - self.Reservation = v; - } - - // int64 Swap = 3; - - - pub fn get_Swap(&self) -> i64 { - self.Swap - } - pub fn clear_Swap(&mut self) { - self.Swap = 0; - } - - // Param is passed by value, moved - pub fn set_Swap(&mut self, v: i64) { - self.Swap = v; - } - - // int64 Kernel = 4; - - - pub fn get_Kernel(&self) -> i64 { - self.Kernel - } - pub fn clear_Kernel(&mut self) { - self.Kernel = 0; - } - - // Param is passed by value, moved - pub fn set_Kernel(&mut self, v: i64) { - self.Kernel = v; - } - - // int64 KernelTCP = 5; - - - pub fn get_KernelTCP(&self) -> i64 { - self.KernelTCP - } - pub fn clear_KernelTCP(&mut self) { - self.KernelTCP = 0; - } - - // Param is passed by value, moved - pub fn set_KernelTCP(&mut self, v: i64) { - self.KernelTCP = v; - } - - // uint64 Swappiness = 6; - - - pub fn get_Swappiness(&self) -> u64 { - self.Swappiness - } - pub fn clear_Swappiness(&mut self) { - self.Swappiness = 0; - } - - // Param is passed by value, moved - pub fn set_Swappiness(&mut self, v: u64) { - self.Swappiness = v; - } - - // bool DisableOOMKiller = 7; - - - pub fn get_DisableOOMKiller(&self) -> bool { - self.DisableOOMKiller - } - pub fn clear_DisableOOMKiller(&mut self) { - self.DisableOOMKiller = false; - } - - // Param is passed by value, moved - pub fn set_DisableOOMKiller(&mut self, v: bool) { - self.DisableOOMKiller = v; - } -} - -impl ::protobuf::Message for LinuxMemory { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Limit = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Reservation = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Swap = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Kernel = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.KernelTCP = tmp; - }, - 6 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Swappiness = tmp; - }, - 7 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.DisableOOMKiller = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Limit != 0 { - my_size += ::protobuf::rt::value_size(1, self.Limit, ::protobuf::wire_format::WireTypeVarint); - } - if self.Reservation != 0 { - my_size += ::protobuf::rt::value_size(2, self.Reservation, ::protobuf::wire_format::WireTypeVarint); - } - if self.Swap != 0 { - my_size += ::protobuf::rt::value_size(3, self.Swap, ::protobuf::wire_format::WireTypeVarint); - } - if self.Kernel != 0 { - my_size += ::protobuf::rt::value_size(4, self.Kernel, ::protobuf::wire_format::WireTypeVarint); - } - if self.KernelTCP != 0 { - my_size += ::protobuf::rt::value_size(5, self.KernelTCP, ::protobuf::wire_format::WireTypeVarint); - } - if self.Swappiness != 0 { - my_size += ::protobuf::rt::value_size(6, self.Swappiness, ::protobuf::wire_format::WireTypeVarint); - } - if self.DisableOOMKiller != false { - my_size += 2; - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Limit != 0 { - os.write_int64(1, self.Limit)?; - } - if self.Reservation != 0 { - os.write_int64(2, self.Reservation)?; - } - if self.Swap != 0 { - os.write_int64(3, self.Swap)?; - } - if self.Kernel != 0 { - os.write_int64(4, self.Kernel)?; - } - if self.KernelTCP != 0 { - os.write_int64(5, self.KernelTCP)?; - } - if self.Swappiness != 0 { - os.write_uint64(6, self.Swappiness)?; - } - if self.DisableOOMKiller != false { - os.write_bool(7, self.DisableOOMKiller)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxMemory { - LinuxMemory::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Limit", - |m: &LinuxMemory| { &m.Limit }, - |m: &mut LinuxMemory| { &mut m.Limit }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Reservation", - |m: &LinuxMemory| { &m.Reservation }, - |m: &mut LinuxMemory| { &mut m.Reservation }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Swap", - |m: &LinuxMemory| { &m.Swap }, - |m: &mut LinuxMemory| { &mut m.Swap }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Kernel", - |m: &LinuxMemory| { &m.Kernel }, - |m: &mut LinuxMemory| { &mut m.Kernel }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "KernelTCP", - |m: &LinuxMemory| { &m.KernelTCP }, - |m: &mut LinuxMemory| { &mut m.KernelTCP }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Swappiness", - |m: &LinuxMemory| { &m.Swappiness }, - |m: &mut LinuxMemory| { &mut m.Swappiness }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "DisableOOMKiller", - |m: &LinuxMemory| { &m.DisableOOMKiller }, - |m: &mut LinuxMemory| { &mut m.DisableOOMKiller }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxMemory", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxMemory { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxMemory::new) - } - } -} - -impl ::protobuf::Clear for LinuxMemory { - fn clear(&mut self) { - self.Limit = 0; - self.Reservation = 0; - self.Swap = 0; - self.Kernel = 0; - self.KernelTCP = 0; - self.Swappiness = 0; - self.DisableOOMKiller = false; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxMemory { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxMemory { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxCPU { - // message fields - pub Shares: u64, - pub Quota: i64, - pub Period: u64, - pub RealtimeRuntime: i64, - pub RealtimePeriod: u64, - pub Cpus: ::std::string::String, - pub Mems: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxCPU { - fn default() -> &'a LinuxCPU { - ::default_instance() - } -} - -impl LinuxCPU { - pub fn new() -> LinuxCPU { - ::std::default::Default::default() - } - - // uint64 Shares = 1; - - - pub fn get_Shares(&self) -> u64 { - self.Shares - } - pub fn clear_Shares(&mut self) { - self.Shares = 0; - } - - // Param is passed by value, moved - pub fn set_Shares(&mut self, v: u64) { - self.Shares = v; - } - - // int64 Quota = 2; - - - pub fn get_Quota(&self) -> i64 { - self.Quota - } - pub fn clear_Quota(&mut self) { - self.Quota = 0; - } - - // Param is passed by value, moved - pub fn set_Quota(&mut self, v: i64) { - self.Quota = v; - } - - // uint64 Period = 3; - - - pub fn get_Period(&self) -> u64 { - self.Period - } - pub fn clear_Period(&mut self) { - self.Period = 0; - } - - // Param is passed by value, moved - pub fn set_Period(&mut self, v: u64) { - self.Period = v; - } - - // int64 RealtimeRuntime = 4; - - - pub fn get_RealtimeRuntime(&self) -> i64 { - self.RealtimeRuntime - } - pub fn clear_RealtimeRuntime(&mut self) { - self.RealtimeRuntime = 0; - } - - // Param is passed by value, moved - pub fn set_RealtimeRuntime(&mut self, v: i64) { - self.RealtimeRuntime = v; - } - - // uint64 RealtimePeriod = 5; - - - pub fn get_RealtimePeriod(&self) -> u64 { - self.RealtimePeriod - } - pub fn clear_RealtimePeriod(&mut self) { - self.RealtimePeriod = 0; - } - - // Param is passed by value, moved - pub fn set_RealtimePeriod(&mut self, v: u64) { - self.RealtimePeriod = v; - } - - // string Cpus = 6; - - - pub fn get_Cpus(&self) -> &str { - &self.Cpus - } - pub fn clear_Cpus(&mut self) { - self.Cpus.clear(); - } - - // Param is passed by value, moved - pub fn set_Cpus(&mut self, v: ::std::string::String) { - self.Cpus = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Cpus(&mut self) -> &mut ::std::string::String { - &mut self.Cpus - } - - // Take field - pub fn take_Cpus(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Cpus, ::std::string::String::new()) - } - - // string Mems = 7; - - - pub fn get_Mems(&self) -> &str { - &self.Mems - } - pub fn clear_Mems(&mut self) { - self.Mems.clear(); - } - - // Param is passed by value, moved - pub fn set_Mems(&mut self, v: ::std::string::String) { - self.Mems = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Mems(&mut self) -> &mut ::std::string::String { - &mut self.Mems - } - - // Take field - pub fn take_Mems(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Mems, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for LinuxCPU { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Shares = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Quota = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Period = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.RealtimeRuntime = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.RealtimePeriod = tmp; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Cpus)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Mems)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Shares != 0 { - my_size += ::protobuf::rt::value_size(1, self.Shares, ::protobuf::wire_format::WireTypeVarint); - } - if self.Quota != 0 { - my_size += ::protobuf::rt::value_size(2, self.Quota, ::protobuf::wire_format::WireTypeVarint); - } - if self.Period != 0 { - my_size += ::protobuf::rt::value_size(3, self.Period, ::protobuf::wire_format::WireTypeVarint); - } - if self.RealtimeRuntime != 0 { - my_size += ::protobuf::rt::value_size(4, self.RealtimeRuntime, ::protobuf::wire_format::WireTypeVarint); - } - if self.RealtimePeriod != 0 { - my_size += ::protobuf::rt::value_size(5, self.RealtimePeriod, ::protobuf::wire_format::WireTypeVarint); - } - if !self.Cpus.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.Cpus); - } - if !self.Mems.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.Mems); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Shares != 0 { - os.write_uint64(1, self.Shares)?; - } - if self.Quota != 0 { - os.write_int64(2, self.Quota)?; - } - if self.Period != 0 { - os.write_uint64(3, self.Period)?; - } - if self.RealtimeRuntime != 0 { - os.write_int64(4, self.RealtimeRuntime)?; - } - if self.RealtimePeriod != 0 { - os.write_uint64(5, self.RealtimePeriod)?; - } - if !self.Cpus.is_empty() { - os.write_string(6, &self.Cpus)?; - } - if !self.Mems.is_empty() { - os.write_string(7, &self.Mems)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxCPU { - LinuxCPU::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Shares", - |m: &LinuxCPU| { &m.Shares }, - |m: &mut LinuxCPU| { &mut m.Shares }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Quota", - |m: &LinuxCPU| { &m.Quota }, - |m: &mut LinuxCPU| { &mut m.Quota }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Period", - |m: &LinuxCPU| { &m.Period }, - |m: &mut LinuxCPU| { &mut m.Period }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "RealtimeRuntime", - |m: &LinuxCPU| { &m.RealtimeRuntime }, - |m: &mut LinuxCPU| { &mut m.RealtimeRuntime }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "RealtimePeriod", - |m: &LinuxCPU| { &m.RealtimePeriod }, - |m: &mut LinuxCPU| { &mut m.RealtimePeriod }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Cpus", - |m: &LinuxCPU| { &m.Cpus }, - |m: &mut LinuxCPU| { &mut m.Cpus }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Mems", - |m: &LinuxCPU| { &m.Mems }, - |m: &mut LinuxCPU| { &mut m.Mems }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxCPU", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxCPU { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxCPU::new) - } - } -} - -impl ::protobuf::Clear for LinuxCPU { - fn clear(&mut self) { - self.Shares = 0; - self.Quota = 0; - self.Period = 0; - self.RealtimeRuntime = 0; - self.RealtimePeriod = 0; - self.Cpus.clear(); - self.Mems.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxCPU { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxCPU { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxWeightDevice { - // message fields - pub Major: i64, - pub Minor: i64, - pub Weight: u32, - pub LeafWeight: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxWeightDevice { - fn default() -> &'a LinuxWeightDevice { - ::default_instance() - } -} - -impl LinuxWeightDevice { - pub fn new() -> LinuxWeightDevice { - ::std::default::Default::default() - } - - // int64 Major = 1; - - - pub fn get_Major(&self) -> i64 { - self.Major - } - pub fn clear_Major(&mut self) { - self.Major = 0; - } - - // Param is passed by value, moved - pub fn set_Major(&mut self, v: i64) { - self.Major = v; - } - - // int64 Minor = 2; - - - pub fn get_Minor(&self) -> i64 { - self.Minor - } - pub fn clear_Minor(&mut self) { - self.Minor = 0; - } - - // Param is passed by value, moved - pub fn set_Minor(&mut self, v: i64) { - self.Minor = v; - } - - // uint32 Weight = 3; - - - pub fn get_Weight(&self) -> u32 { - self.Weight - } - pub fn clear_Weight(&mut self) { - self.Weight = 0; - } - - // Param is passed by value, moved - pub fn set_Weight(&mut self, v: u32) { - self.Weight = v; - } - - // uint32 LeafWeight = 4; - - - pub fn get_LeafWeight(&self) -> u32 { - self.LeafWeight - } - pub fn clear_LeafWeight(&mut self) { - self.LeafWeight = 0; - } - - // Param is passed by value, moved - pub fn set_LeafWeight(&mut self, v: u32) { - self.LeafWeight = v; - } -} - -impl ::protobuf::Message for LinuxWeightDevice { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Major = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Minor = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.Weight = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.LeafWeight = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Major != 0 { - my_size += ::protobuf::rt::value_size(1, self.Major, ::protobuf::wire_format::WireTypeVarint); - } - if self.Minor != 0 { - my_size += ::protobuf::rt::value_size(2, self.Minor, ::protobuf::wire_format::WireTypeVarint); - } - if self.Weight != 0 { - my_size += ::protobuf::rt::value_size(3, self.Weight, ::protobuf::wire_format::WireTypeVarint); - } - if self.LeafWeight != 0 { - my_size += ::protobuf::rt::value_size(4, self.LeafWeight, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Major != 0 { - os.write_int64(1, self.Major)?; - } - if self.Minor != 0 { - os.write_int64(2, self.Minor)?; - } - if self.Weight != 0 { - os.write_uint32(3, self.Weight)?; - } - if self.LeafWeight != 0 { - os.write_uint32(4, self.LeafWeight)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxWeightDevice { - LinuxWeightDevice::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Major", - |m: &LinuxWeightDevice| { &m.Major }, - |m: &mut LinuxWeightDevice| { &mut m.Major }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Minor", - |m: &LinuxWeightDevice| { &m.Minor }, - |m: &mut LinuxWeightDevice| { &mut m.Minor }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "Weight", - |m: &LinuxWeightDevice| { &m.Weight }, - |m: &mut LinuxWeightDevice| { &mut m.Weight }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "LeafWeight", - |m: &LinuxWeightDevice| { &m.LeafWeight }, - |m: &mut LinuxWeightDevice| { &mut m.LeafWeight }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxWeightDevice", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxWeightDevice { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxWeightDevice::new) - } - } -} - -impl ::protobuf::Clear for LinuxWeightDevice { - fn clear(&mut self) { - self.Major = 0; - self.Minor = 0; - self.Weight = 0; - self.LeafWeight = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxWeightDevice { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxWeightDevice { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxThrottleDevice { - // message fields - pub Major: i64, - pub Minor: i64, - pub Rate: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxThrottleDevice { - fn default() -> &'a LinuxThrottleDevice { - ::default_instance() - } -} - -impl LinuxThrottleDevice { - pub fn new() -> LinuxThrottleDevice { - ::std::default::Default::default() - } - - // int64 Major = 1; - - - pub fn get_Major(&self) -> i64 { - self.Major - } - pub fn clear_Major(&mut self) { - self.Major = 0; - } - - // Param is passed by value, moved - pub fn set_Major(&mut self, v: i64) { - self.Major = v; - } - - // int64 Minor = 2; - - - pub fn get_Minor(&self) -> i64 { - self.Minor - } - pub fn clear_Minor(&mut self) { - self.Minor = 0; - } - - // Param is passed by value, moved - pub fn set_Minor(&mut self, v: i64) { - self.Minor = v; - } - - // uint64 Rate = 3; - - - pub fn get_Rate(&self) -> u64 { - self.Rate - } - pub fn clear_Rate(&mut self) { - self.Rate = 0; - } - - // Param is passed by value, moved - pub fn set_Rate(&mut self, v: u64) { - self.Rate = v; - } -} - -impl ::protobuf::Message for LinuxThrottleDevice { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Major = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Minor = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Rate = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Major != 0 { - my_size += ::protobuf::rt::value_size(1, self.Major, ::protobuf::wire_format::WireTypeVarint); - } - if self.Minor != 0 { - my_size += ::protobuf::rt::value_size(2, self.Minor, ::protobuf::wire_format::WireTypeVarint); - } - if self.Rate != 0 { - my_size += ::protobuf::rt::value_size(3, self.Rate, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Major != 0 { - os.write_int64(1, self.Major)?; - } - if self.Minor != 0 { - os.write_int64(2, self.Minor)?; - } - if self.Rate != 0 { - os.write_uint64(3, self.Rate)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxThrottleDevice { - LinuxThrottleDevice::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Major", - |m: &LinuxThrottleDevice| { &m.Major }, - |m: &mut LinuxThrottleDevice| { &mut m.Major }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Minor", - |m: &LinuxThrottleDevice| { &m.Minor }, - |m: &mut LinuxThrottleDevice| { &mut m.Minor }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Rate", - |m: &LinuxThrottleDevice| { &m.Rate }, - |m: &mut LinuxThrottleDevice| { &mut m.Rate }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxThrottleDevice", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxThrottleDevice { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxThrottleDevice::new) - } - } -} - -impl ::protobuf::Clear for LinuxThrottleDevice { - fn clear(&mut self) { - self.Major = 0; - self.Minor = 0; - self.Rate = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxThrottleDevice { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxThrottleDevice { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxBlockIO { - // message fields - pub Weight: u32, - pub LeafWeight: u32, - pub WeightDevice: ::protobuf::RepeatedField, - pub ThrottleReadBpsDevice: ::protobuf::RepeatedField, - pub ThrottleWriteBpsDevice: ::protobuf::RepeatedField, - pub ThrottleReadIOPSDevice: ::protobuf::RepeatedField, - pub ThrottleWriteIOPSDevice: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxBlockIO { - fn default() -> &'a LinuxBlockIO { - ::default_instance() - } -} - -impl LinuxBlockIO { - pub fn new() -> LinuxBlockIO { - ::std::default::Default::default() - } - - // uint32 Weight = 1; - - - pub fn get_Weight(&self) -> u32 { - self.Weight - } - pub fn clear_Weight(&mut self) { - self.Weight = 0; - } - - // Param is passed by value, moved - pub fn set_Weight(&mut self, v: u32) { - self.Weight = v; - } - - // uint32 LeafWeight = 2; - - - pub fn get_LeafWeight(&self) -> u32 { - self.LeafWeight - } - pub fn clear_LeafWeight(&mut self) { - self.LeafWeight = 0; - } - - // Param is passed by value, moved - pub fn set_LeafWeight(&mut self, v: u32) { - self.LeafWeight = v; - } - - // repeated .grpc.LinuxWeightDevice WeightDevice = 3; - - - pub fn get_WeightDevice(&self) -> &[LinuxWeightDevice] { - &self.WeightDevice - } - pub fn clear_WeightDevice(&mut self) { - self.WeightDevice.clear(); - } - - // Param is passed by value, moved - pub fn set_WeightDevice(&mut self, v: ::protobuf::RepeatedField) { - self.WeightDevice = v; - } - - // Mutable pointer to the field. - pub fn mut_WeightDevice(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.WeightDevice - } - - // Take field - pub fn take_WeightDevice(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.WeightDevice, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.LinuxThrottleDevice ThrottleReadBpsDevice = 4; - - - pub fn get_ThrottleReadBpsDevice(&self) -> &[LinuxThrottleDevice] { - &self.ThrottleReadBpsDevice - } - pub fn clear_ThrottleReadBpsDevice(&mut self) { - self.ThrottleReadBpsDevice.clear(); - } - - // Param is passed by value, moved - pub fn set_ThrottleReadBpsDevice(&mut self, v: ::protobuf::RepeatedField) { - self.ThrottleReadBpsDevice = v; - } - - // Mutable pointer to the field. - pub fn mut_ThrottleReadBpsDevice(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.ThrottleReadBpsDevice - } - - // Take field - pub fn take_ThrottleReadBpsDevice(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.ThrottleReadBpsDevice, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.LinuxThrottleDevice ThrottleWriteBpsDevice = 5; - - - pub fn get_ThrottleWriteBpsDevice(&self) -> &[LinuxThrottleDevice] { - &self.ThrottleWriteBpsDevice - } - pub fn clear_ThrottleWriteBpsDevice(&mut self) { - self.ThrottleWriteBpsDevice.clear(); - } - - // Param is passed by value, moved - pub fn set_ThrottleWriteBpsDevice(&mut self, v: ::protobuf::RepeatedField) { - self.ThrottleWriteBpsDevice = v; - } - - // Mutable pointer to the field. - pub fn mut_ThrottleWriteBpsDevice(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.ThrottleWriteBpsDevice - } - - // Take field - pub fn take_ThrottleWriteBpsDevice(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.ThrottleWriteBpsDevice, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.LinuxThrottleDevice ThrottleReadIOPSDevice = 6; - - - pub fn get_ThrottleReadIOPSDevice(&self) -> &[LinuxThrottleDevice] { - &self.ThrottleReadIOPSDevice - } - pub fn clear_ThrottleReadIOPSDevice(&mut self) { - self.ThrottleReadIOPSDevice.clear(); - } - - // Param is passed by value, moved - pub fn set_ThrottleReadIOPSDevice(&mut self, v: ::protobuf::RepeatedField) { - self.ThrottleReadIOPSDevice = v; - } - - // Mutable pointer to the field. - pub fn mut_ThrottleReadIOPSDevice(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.ThrottleReadIOPSDevice - } - - // Take field - pub fn take_ThrottleReadIOPSDevice(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.ThrottleReadIOPSDevice, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.LinuxThrottleDevice ThrottleWriteIOPSDevice = 7; - - - pub fn get_ThrottleWriteIOPSDevice(&self) -> &[LinuxThrottleDevice] { - &self.ThrottleWriteIOPSDevice - } - pub fn clear_ThrottleWriteIOPSDevice(&mut self) { - self.ThrottleWriteIOPSDevice.clear(); - } - - // Param is passed by value, moved - pub fn set_ThrottleWriteIOPSDevice(&mut self, v: ::protobuf::RepeatedField) { - self.ThrottleWriteIOPSDevice = v; - } - - // Mutable pointer to the field. - pub fn mut_ThrottleWriteIOPSDevice(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.ThrottleWriteIOPSDevice - } - - // Take field - pub fn take_ThrottleWriteIOPSDevice(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.ThrottleWriteIOPSDevice, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for LinuxBlockIO { - fn is_initialized(&self) -> bool { - for v in &self.WeightDevice { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ThrottleReadBpsDevice { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ThrottleWriteBpsDevice { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ThrottleReadIOPSDevice { - if !v.is_initialized() { - return false; - } - }; - for v in &self.ThrottleWriteIOPSDevice { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.Weight = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.LeafWeight = tmp; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.WeightDevice)?; - }, - 4 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.ThrottleReadBpsDevice)?; - }, - 5 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.ThrottleWriteBpsDevice)?; - }, - 6 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.ThrottleReadIOPSDevice)?; - }, - 7 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.ThrottleWriteIOPSDevice)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Weight != 0 { - my_size += ::protobuf::rt::value_size(1, self.Weight, ::protobuf::wire_format::WireTypeVarint); - } - if self.LeafWeight != 0 { - my_size += ::protobuf::rt::value_size(2, self.LeafWeight, ::protobuf::wire_format::WireTypeVarint); - } - for value in &self.WeightDevice { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.ThrottleReadBpsDevice { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.ThrottleWriteBpsDevice { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.ThrottleReadIOPSDevice { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - for value in &self.ThrottleWriteIOPSDevice { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Weight != 0 { - os.write_uint32(1, self.Weight)?; - } - if self.LeafWeight != 0 { - os.write_uint32(2, self.LeafWeight)?; - } - for v in &self.WeightDevice { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.ThrottleReadBpsDevice { - os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.ThrottleWriteBpsDevice { - os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.ThrottleReadIOPSDevice { - os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - for v in &self.ThrottleWriteIOPSDevice { - os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxBlockIO { - LinuxBlockIO::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "Weight", - |m: &LinuxBlockIO| { &m.Weight }, - |m: &mut LinuxBlockIO| { &mut m.Weight }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "LeafWeight", - |m: &LinuxBlockIO| { &m.LeafWeight }, - |m: &mut LinuxBlockIO| { &mut m.LeafWeight }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "WeightDevice", - |m: &LinuxBlockIO| { &m.WeightDevice }, - |m: &mut LinuxBlockIO| { &mut m.WeightDevice }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ThrottleReadBpsDevice", - |m: &LinuxBlockIO| { &m.ThrottleReadBpsDevice }, - |m: &mut LinuxBlockIO| { &mut m.ThrottleReadBpsDevice }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ThrottleWriteBpsDevice", - |m: &LinuxBlockIO| { &m.ThrottleWriteBpsDevice }, - |m: &mut LinuxBlockIO| { &mut m.ThrottleWriteBpsDevice }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ThrottleReadIOPSDevice", - |m: &LinuxBlockIO| { &m.ThrottleReadIOPSDevice }, - |m: &mut LinuxBlockIO| { &mut m.ThrottleReadIOPSDevice }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "ThrottleWriteIOPSDevice", - |m: &LinuxBlockIO| { &m.ThrottleWriteIOPSDevice }, - |m: &mut LinuxBlockIO| { &mut m.ThrottleWriteIOPSDevice }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxBlockIO", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxBlockIO { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxBlockIO::new) - } - } -} - -impl ::protobuf::Clear for LinuxBlockIO { - fn clear(&mut self) { - self.Weight = 0; - self.LeafWeight = 0; - self.WeightDevice.clear(); - self.ThrottleReadBpsDevice.clear(); - self.ThrottleWriteBpsDevice.clear(); - self.ThrottleReadIOPSDevice.clear(); - self.ThrottleWriteIOPSDevice.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxBlockIO { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxBlockIO { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxPids { - // message fields - pub Limit: i64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxPids { - fn default() -> &'a LinuxPids { - ::default_instance() - } -} - -impl LinuxPids { - pub fn new() -> LinuxPids { - ::std::default::Default::default() - } - - // int64 Limit = 1; - - - pub fn get_Limit(&self) -> i64 { - self.Limit - } - pub fn clear_Limit(&mut self) { - self.Limit = 0; - } - - // Param is passed by value, moved - pub fn set_Limit(&mut self, v: i64) { - self.Limit = v; - } -} - -impl ::protobuf::Message for LinuxPids { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Limit = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Limit != 0 { - my_size += ::protobuf::rt::value_size(1, self.Limit, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Limit != 0 { - os.write_int64(1, self.Limit)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxPids { - LinuxPids::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Limit", - |m: &LinuxPids| { &m.Limit }, - |m: &mut LinuxPids| { &mut m.Limit }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxPids", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxPids { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxPids::new) - } - } -} - -impl ::protobuf::Clear for LinuxPids { - fn clear(&mut self) { - self.Limit = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxPids { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxPids { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxDeviceCgroup { - // message fields - pub Allow: bool, - pub Type: ::std::string::String, - pub Major: i64, - pub Minor: i64, - pub Access: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxDeviceCgroup { - fn default() -> &'a LinuxDeviceCgroup { - ::default_instance() - } -} - -impl LinuxDeviceCgroup { - pub fn new() -> LinuxDeviceCgroup { - ::std::default::Default::default() - } - - // bool Allow = 1; - - - pub fn get_Allow(&self) -> bool { - self.Allow - } - pub fn clear_Allow(&mut self) { - self.Allow = false; - } - - // Param is passed by value, moved - pub fn set_Allow(&mut self, v: bool) { - self.Allow = v; - } - - // string Type = 2; - - - pub fn get_Type(&self) -> &str { - &self.Type - } - pub fn clear_Type(&mut self) { - self.Type.clear(); - } - - // Param is passed by value, moved - pub fn set_Type(&mut self, v: ::std::string::String) { - self.Type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Type(&mut self) -> &mut ::std::string::String { - &mut self.Type - } - - // Take field - pub fn take_Type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Type, ::std::string::String::new()) - } - - // int64 Major = 3; - - - pub fn get_Major(&self) -> i64 { - self.Major - } - pub fn clear_Major(&mut self) { - self.Major = 0; - } - - // Param is passed by value, moved - pub fn set_Major(&mut self, v: i64) { - self.Major = v; - } - - // int64 Minor = 4; - - - pub fn get_Minor(&self) -> i64 { - self.Minor - } - pub fn clear_Minor(&mut self) { - self.Minor = 0; - } - - // Param is passed by value, moved - pub fn set_Minor(&mut self, v: i64) { - self.Minor = v; - } - - // string Access = 5; - - - pub fn get_Access(&self) -> &str { - &self.Access - } - pub fn clear_Access(&mut self) { - self.Access.clear(); - } - - // Param is passed by value, moved - pub fn set_Access(&mut self, v: ::std::string::String) { - self.Access = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Access(&mut self) -> &mut ::std::string::String { - &mut self.Access - } - - // Take field - pub fn take_Access(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Access, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for LinuxDeviceCgroup { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_bool()?; - self.Allow = tmp; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Type)?; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Major = tmp; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int64()?; - self.Minor = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Access)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Allow != false { - my_size += 2; - } - if !self.Type.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.Type); - } - if self.Major != 0 { - my_size += ::protobuf::rt::value_size(3, self.Major, ::protobuf::wire_format::WireTypeVarint); - } - if self.Minor != 0 { - my_size += ::protobuf::rt::value_size(4, self.Minor, ::protobuf::wire_format::WireTypeVarint); - } - if !self.Access.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.Access); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Allow != false { - os.write_bool(1, self.Allow)?; - } - if !self.Type.is_empty() { - os.write_string(2, &self.Type)?; - } - if self.Major != 0 { - os.write_int64(3, self.Major)?; - } - if self.Minor != 0 { - os.write_int64(4, self.Minor)?; - } - if !self.Access.is_empty() { - os.write_string(5, &self.Access)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxDeviceCgroup { - LinuxDeviceCgroup::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>( - "Allow", - |m: &LinuxDeviceCgroup| { &m.Allow }, - |m: &mut LinuxDeviceCgroup| { &mut m.Allow }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Type", - |m: &LinuxDeviceCgroup| { &m.Type }, - |m: &mut LinuxDeviceCgroup| { &mut m.Type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Major", - |m: &LinuxDeviceCgroup| { &m.Major }, - |m: &mut LinuxDeviceCgroup| { &mut m.Major }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>( - "Minor", - |m: &LinuxDeviceCgroup| { &m.Minor }, - |m: &mut LinuxDeviceCgroup| { &mut m.Minor }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Access", - |m: &LinuxDeviceCgroup| { &m.Access }, - |m: &mut LinuxDeviceCgroup| { &mut m.Access }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxDeviceCgroup", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxDeviceCgroup { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxDeviceCgroup::new) - } - } -} - -impl ::protobuf::Clear for LinuxDeviceCgroup { - fn clear(&mut self) { - self.Allow = false; - self.Type.clear(); - self.Major = 0; - self.Minor = 0; - self.Access.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxDeviceCgroup { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxDeviceCgroup { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxNetwork { - // message fields - pub ClassID: u32, - pub Priorities: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxNetwork { - fn default() -> &'a LinuxNetwork { - ::default_instance() - } -} - -impl LinuxNetwork { - pub fn new() -> LinuxNetwork { - ::std::default::Default::default() - } - - // uint32 ClassID = 1; - - - pub fn get_ClassID(&self) -> u32 { - self.ClassID - } - pub fn clear_ClassID(&mut self) { - self.ClassID = 0; - } - - // Param is passed by value, moved - pub fn set_ClassID(&mut self, v: u32) { - self.ClassID = v; - } - - // repeated .grpc.LinuxInterfacePriority Priorities = 2; - - - pub fn get_Priorities(&self) -> &[LinuxInterfacePriority] { - &self.Priorities - } - pub fn clear_Priorities(&mut self) { - self.Priorities.clear(); - } - - // Param is passed by value, moved - pub fn set_Priorities(&mut self, v: ::protobuf::RepeatedField) { - self.Priorities = v; - } - - // Mutable pointer to the field. - pub fn mut_Priorities(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Priorities - } - - // Take field - pub fn take_Priorities(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Priorities, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for LinuxNetwork { - fn is_initialized(&self) -> bool { - for v in &self.Priorities { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.ClassID = tmp; - }, - 2 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Priorities)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.ClassID != 0 { - my_size += ::protobuf::rt::value_size(1, self.ClassID, ::protobuf::wire_format::WireTypeVarint); - } - for value in &self.Priorities { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.ClassID != 0 { - os.write_uint32(1, self.ClassID)?; - } - for v in &self.Priorities { - os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxNetwork { - LinuxNetwork::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "ClassID", - |m: &LinuxNetwork| { &m.ClassID }, - |m: &mut LinuxNetwork| { &mut m.ClassID }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Priorities", - |m: &LinuxNetwork| { &m.Priorities }, - |m: &mut LinuxNetwork| { &mut m.Priorities }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxNetwork", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxNetwork { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxNetwork::new) - } - } -} - -impl ::protobuf::Clear for LinuxNetwork { - fn clear(&mut self) { - self.ClassID = 0; - self.Priorities.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxNetwork { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxNetwork { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxHugepageLimit { - // message fields - pub Pagesize: ::std::string::String, - pub Limit: u64, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxHugepageLimit { - fn default() -> &'a LinuxHugepageLimit { - ::default_instance() - } -} - -impl LinuxHugepageLimit { - pub fn new() -> LinuxHugepageLimit { - ::std::default::Default::default() - } - - // string Pagesize = 1; - - - pub fn get_Pagesize(&self) -> &str { - &self.Pagesize - } - pub fn clear_Pagesize(&mut self) { - self.Pagesize.clear(); - } - - // Param is passed by value, moved - pub fn set_Pagesize(&mut self, v: ::std::string::String) { - self.Pagesize = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Pagesize(&mut self) -> &mut ::std::string::String { - &mut self.Pagesize - } - - // Take field - pub fn take_Pagesize(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Pagesize, ::std::string::String::new()) - } - - // uint64 Limit = 2; - - - pub fn get_Limit(&self) -> u64 { - self.Limit - } - pub fn clear_Limit(&mut self) { - self.Limit = 0; - } - - // Param is passed by value, moved - pub fn set_Limit(&mut self, v: u64) { - self.Limit = v; - } -} - -impl ::protobuf::Message for LinuxHugepageLimit { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Pagesize)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Limit = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.Pagesize.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.Pagesize); - } - if self.Limit != 0 { - my_size += ::protobuf::rt::value_size(2, self.Limit, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.Pagesize.is_empty() { - os.write_string(1, &self.Pagesize)?; - } - if self.Limit != 0 { - os.write_uint64(2, self.Limit)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxHugepageLimit { - LinuxHugepageLimit::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Pagesize", - |m: &LinuxHugepageLimit| { &m.Pagesize }, - |m: &mut LinuxHugepageLimit| { &mut m.Pagesize }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Limit", - |m: &LinuxHugepageLimit| { &m.Limit }, - |m: &mut LinuxHugepageLimit| { &mut m.Limit }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxHugepageLimit", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxHugepageLimit { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxHugepageLimit::new) - } - } -} - -impl ::protobuf::Clear for LinuxHugepageLimit { - fn clear(&mut self) { - self.Pagesize.clear(); - self.Limit = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxHugepageLimit { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxHugepageLimit { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxInterfacePriority { - // message fields - pub Name: ::std::string::String, - pub Priority: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxInterfacePriority { - fn default() -> &'a LinuxInterfacePriority { - ::default_instance() - } -} - -impl LinuxInterfacePriority { - pub fn new() -> LinuxInterfacePriority { - ::std::default::Default::default() - } - - // string Name = 1; - - - pub fn get_Name(&self) -> &str { - &self.Name - } - pub fn clear_Name(&mut self) { - self.Name.clear(); - } - - // Param is passed by value, moved - pub fn set_Name(&mut self, v: ::std::string::String) { - self.Name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Name(&mut self) -> &mut ::std::string::String { - &mut self.Name - } - - // Take field - pub fn take_Name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Name, ::std::string::String::new()) - } - - // uint32 Priority = 2; - - - pub fn get_Priority(&self) -> u32 { - self.Priority - } - pub fn clear_Priority(&mut self) { - self.Priority = 0; - } - - // Param is passed by value, moved - pub fn set_Priority(&mut self, v: u32) { - self.Priority = v; - } -} - -impl ::protobuf::Message for LinuxInterfacePriority { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Name)?; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.Priority = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.Name.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.Name); - } - if self.Priority != 0 { - my_size += ::protobuf::rt::value_size(2, self.Priority, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.Name.is_empty() { - os.write_string(1, &self.Name)?; - } - if self.Priority != 0 { - os.write_uint32(2, self.Priority)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxInterfacePriority { - LinuxInterfacePriority::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Name", - |m: &LinuxInterfacePriority| { &m.Name }, - |m: &mut LinuxInterfacePriority| { &mut m.Name }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "Priority", - |m: &LinuxInterfacePriority| { &m.Priority }, - |m: &mut LinuxInterfacePriority| { &mut m.Priority }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxInterfacePriority", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxInterfacePriority { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxInterfacePriority::new) - } - } -} - -impl ::protobuf::Clear for LinuxInterfacePriority { - fn clear(&mut self) { - self.Name.clear(); - self.Priority = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxInterfacePriority { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxInterfacePriority { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxSeccomp { - // message fields - pub DefaultAction: ::std::string::String, - pub Architectures: ::protobuf::RepeatedField<::std::string::String>, - pub Syscalls: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxSeccomp { - fn default() -> &'a LinuxSeccomp { - ::default_instance() - } -} - -impl LinuxSeccomp { - pub fn new() -> LinuxSeccomp { - ::std::default::Default::default() - } - - // string DefaultAction = 1; - - - pub fn get_DefaultAction(&self) -> &str { - &self.DefaultAction - } - pub fn clear_DefaultAction(&mut self) { - self.DefaultAction.clear(); - } - - // Param is passed by value, moved - pub fn set_DefaultAction(&mut self, v: ::std::string::String) { - self.DefaultAction = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_DefaultAction(&mut self) -> &mut ::std::string::String { - &mut self.DefaultAction - } - - // Take field - pub fn take_DefaultAction(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.DefaultAction, ::std::string::String::new()) - } - - // repeated string Architectures = 2; - - - pub fn get_Architectures(&self) -> &[::std::string::String] { - &self.Architectures - } - pub fn clear_Architectures(&mut self) { - self.Architectures.clear(); - } - - // Param is passed by value, moved - pub fn set_Architectures(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Architectures = v; - } - - // Mutable pointer to the field. - pub fn mut_Architectures(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Architectures - } - - // Take field - pub fn take_Architectures(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Architectures, ::protobuf::RepeatedField::new()) - } - - // repeated .grpc.LinuxSyscall Syscalls = 3; - - - pub fn get_Syscalls(&self) -> &[LinuxSyscall] { - &self.Syscalls - } - pub fn clear_Syscalls(&mut self) { - self.Syscalls.clear(); - } - - // Param is passed by value, moved - pub fn set_Syscalls(&mut self, v: ::protobuf::RepeatedField) { - self.Syscalls = v; - } - - // Mutable pointer to the field. - pub fn mut_Syscalls(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Syscalls - } - - // Take field - pub fn take_Syscalls(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Syscalls, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for LinuxSeccomp { - fn is_initialized(&self) -> bool { - for v in &self.Syscalls { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.DefaultAction)?; - }, - 2 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Architectures)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Syscalls)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.DefaultAction.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.DefaultAction); - } - for value in &self.Architectures { - my_size += ::protobuf::rt::string_size(2, &value); - }; - for value in &self.Syscalls { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.DefaultAction.is_empty() { - os.write_string(1, &self.DefaultAction)?; - } - for v in &self.Architectures { - os.write_string(2, &v)?; - }; - for v in &self.Syscalls { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxSeccomp { - LinuxSeccomp::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "DefaultAction", - |m: &LinuxSeccomp| { &m.DefaultAction }, - |m: &mut LinuxSeccomp| { &mut m.DefaultAction }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Architectures", - |m: &LinuxSeccomp| { &m.Architectures }, - |m: &mut LinuxSeccomp| { &mut m.Architectures }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Syscalls", - |m: &LinuxSeccomp| { &m.Syscalls }, - |m: &mut LinuxSeccomp| { &mut m.Syscalls }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxSeccomp", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxSeccomp { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxSeccomp::new) - } - } -} - -impl ::protobuf::Clear for LinuxSeccomp { - fn clear(&mut self) { - self.DefaultAction.clear(); - self.Architectures.clear(); - self.Syscalls.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxSeccomp { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxSeccomp { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxSeccompArg { - // message fields - pub Index: u64, - pub Value: u64, - pub ValueTwo: u64, - pub Op: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxSeccompArg { - fn default() -> &'a LinuxSeccompArg { - ::default_instance() - } -} - -impl LinuxSeccompArg { - pub fn new() -> LinuxSeccompArg { - ::std::default::Default::default() - } - - // uint64 Index = 1; - - - pub fn get_Index(&self) -> u64 { - self.Index - } - pub fn clear_Index(&mut self) { - self.Index = 0; - } - - // Param is passed by value, moved - pub fn set_Index(&mut self, v: u64) { - self.Index = v; - } - - // uint64 Value = 2; - - - pub fn get_Value(&self) -> u64 { - self.Value - } - pub fn clear_Value(&mut self) { - self.Value = 0; - } - - // Param is passed by value, moved - pub fn set_Value(&mut self, v: u64) { - self.Value = v; - } - - // uint64 ValueTwo = 3; - - - pub fn get_ValueTwo(&self) -> u64 { - self.ValueTwo - } - pub fn clear_ValueTwo(&mut self) { - self.ValueTwo = 0; - } - - // Param is passed by value, moved - pub fn set_ValueTwo(&mut self, v: u64) { - self.ValueTwo = v; - } - - // string Op = 4; - - - pub fn get_Op(&self) -> &str { - &self.Op - } - pub fn clear_Op(&mut self) { - self.Op.clear(); - } - - // Param is passed by value, moved - pub fn set_Op(&mut self, v: ::std::string::String) { - self.Op = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Op(&mut self) -> &mut ::std::string::String { - &mut self.Op - } - - // Take field - pub fn take_Op(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Op, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for LinuxSeccompArg { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Index = tmp; - }, - 2 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.Value = tmp; - }, - 3 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.ValueTwo = tmp; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Op)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.Index != 0 { - my_size += ::protobuf::rt::value_size(1, self.Index, ::protobuf::wire_format::WireTypeVarint); - } - if self.Value != 0 { - my_size += ::protobuf::rt::value_size(2, self.Value, ::protobuf::wire_format::WireTypeVarint); - } - if self.ValueTwo != 0 { - my_size += ::protobuf::rt::value_size(3, self.ValueTwo, ::protobuf::wire_format::WireTypeVarint); - } - if !self.Op.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.Op); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.Index != 0 { - os.write_uint64(1, self.Index)?; - } - if self.Value != 0 { - os.write_uint64(2, self.Value)?; - } - if self.ValueTwo != 0 { - os.write_uint64(3, self.ValueTwo)?; - } - if !self.Op.is_empty() { - os.write_string(4, &self.Op)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxSeccompArg { - LinuxSeccompArg::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Index", - |m: &LinuxSeccompArg| { &m.Index }, - |m: &mut LinuxSeccompArg| { &mut m.Index }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "Value", - |m: &LinuxSeccompArg| { &m.Value }, - |m: &mut LinuxSeccompArg| { &mut m.Value }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "ValueTwo", - |m: &LinuxSeccompArg| { &m.ValueTwo }, - |m: &mut LinuxSeccompArg| { &mut m.ValueTwo }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Op", - |m: &LinuxSeccompArg| { &m.Op }, - |m: &mut LinuxSeccompArg| { &mut m.Op }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxSeccompArg", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxSeccompArg { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxSeccompArg::new) - } - } -} - -impl ::protobuf::Clear for LinuxSeccompArg { - fn clear(&mut self) { - self.Index = 0; - self.Value = 0; - self.ValueTwo = 0; - self.Op.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxSeccompArg { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxSeccompArg { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxSyscall { - // message fields - pub Names: ::protobuf::RepeatedField<::std::string::String>, - pub Action: ::std::string::String, - pub Args: ::protobuf::RepeatedField, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxSyscall { - fn default() -> &'a LinuxSyscall { - ::default_instance() - } -} - -impl LinuxSyscall { - pub fn new() -> LinuxSyscall { - ::std::default::Default::default() - } - - // repeated string Names = 1; - - - pub fn get_Names(&self) -> &[::std::string::String] { - &self.Names - } - pub fn clear_Names(&mut self) { - self.Names.clear(); - } - - // Param is passed by value, moved - pub fn set_Names(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) { - self.Names = v; - } - - // Mutable pointer to the field. - pub fn mut_Names(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> { - &mut self.Names - } - - // Take field - pub fn take_Names(&mut self) -> ::protobuf::RepeatedField<::std::string::String> { - ::std::mem::replace(&mut self.Names, ::protobuf::RepeatedField::new()) - } - - // string Action = 2; - - - pub fn get_Action(&self) -> &str { - &self.Action - } - pub fn clear_Action(&mut self) { - self.Action.clear(); - } - - // Param is passed by value, moved - pub fn set_Action(&mut self, v: ::std::string::String) { - self.Action = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_Action(&mut self) -> &mut ::std::string::String { - &mut self.Action - } - - // Take field - pub fn take_Action(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.Action, ::std::string::String::new()) - } - - // repeated .grpc.LinuxSeccompArg Args = 3; - - - pub fn get_Args(&self) -> &[LinuxSeccompArg] { - &self.Args - } - pub fn clear_Args(&mut self) { - self.Args.clear(); - } - - // Param is passed by value, moved - pub fn set_Args(&mut self, v: ::protobuf::RepeatedField) { - self.Args = v; - } - - // Mutable pointer to the field. - pub fn mut_Args(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.Args - } - - // Take field - pub fn take_Args(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.Args, ::protobuf::RepeatedField::new()) - } -} - -impl ::protobuf::Message for LinuxSyscall { - fn is_initialized(&self) -> bool { - for v in &self.Args { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.Names)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.Action)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.Args)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - for value in &self.Names { - my_size += ::protobuf::rt::string_size(1, &value); - }; - if !self.Action.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.Action); - } - for value in &self.Args { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - for v in &self.Names { - os.write_string(1, &v)?; - }; - if !self.Action.is_empty() { - os.write_string(2, &self.Action)?; - } - for v in &self.Args { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxSyscall { - LinuxSyscall::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Names", - |m: &LinuxSyscall| { &m.Names }, - |m: &mut LinuxSyscall| { &mut m.Names }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "Action", - |m: &LinuxSyscall| { &m.Action }, - |m: &mut LinuxSyscall| { &mut m.Action }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "Args", - |m: &LinuxSyscall| { &m.Args }, - |m: &mut LinuxSyscall| { &mut m.Args }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxSyscall", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxSyscall { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxSyscall::new) - } - } -} - -impl ::protobuf::Clear for LinuxSyscall { - fn clear(&mut self) { - self.Names.clear(); - self.Action.clear(); - self.Args.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxSyscall { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxSyscall { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct LinuxIntelRdt { - // message fields - pub L3CacheSchema: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a LinuxIntelRdt { - fn default() -> &'a LinuxIntelRdt { - ::default_instance() - } -} - -impl LinuxIntelRdt { - pub fn new() -> LinuxIntelRdt { - ::std::default::Default::default() - } - - // string L3CacheSchema = 1; - - - pub fn get_L3CacheSchema(&self) -> &str { - &self.L3CacheSchema - } - pub fn clear_L3CacheSchema(&mut self) { - self.L3CacheSchema.clear(); - } - - // Param is passed by value, moved - pub fn set_L3CacheSchema(&mut self, v: ::std::string::String) { - self.L3CacheSchema = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_L3CacheSchema(&mut self) -> &mut ::std::string::String { - &mut self.L3CacheSchema - } - - // Take field - pub fn take_L3CacheSchema(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.L3CacheSchema, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for LinuxIntelRdt { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.L3CacheSchema)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.L3CacheSchema.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.L3CacheSchema); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.L3CacheSchema.is_empty() { - os.write_string(1, &self.L3CacheSchema)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> LinuxIntelRdt { - LinuxIntelRdt::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "L3CacheSchema", - |m: &LinuxIntelRdt| { &m.L3CacheSchema }, - |m: &mut LinuxIntelRdt| { &mut m.L3CacheSchema }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "LinuxIntelRdt", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static LinuxIntelRdt { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(LinuxIntelRdt::new) - } - } -} - -impl ::protobuf::Clear for LinuxIntelRdt { - fn clear(&mut self) { - self.L3CacheSchema.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for LinuxIntelRdt { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for LinuxIntelRdt { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \nOgithub.com/kata-containers/kata-containers/src/agent/protocols/protos\ - /oci.proto\x12\x04grpc\x1a-github.com/gogo/protobuf/gogoproto/gogo.proto\ - \x1a\x1egoogle/protobuf/wrappers.proto\"\xc7\x03\n\x04Spec\x12\x18\n\x07\ - Version\x18\x01\x20\x01(\tR\x07Version\x12'\n\x07Process\x18\x02\x20\x01\ - (\x0b2\r.grpc.ProcessR\x07Process\x12\x1e\n\x04Root\x18\x03\x20\x01(\x0b\ - 2\n.grpc.RootR\x04Root\x12\x1a\n\x08Hostname\x18\x04\x20\x01(\tR\x08Host\ - name\x12)\n\x06Mounts\x18\x05\x20\x03(\x0b2\x0b.grpc.MountR\x06MountsB\ - \x04\xc8\xde\x1f\0\x12!\n\x05Hooks\x18\x06\x20\x01(\x0b2\x0b.grpc.HooksR\ - \x05Hooks\x12=\n\x0bAnnotations\x18\x07\x20\x03(\x0b2\x1b.grpc.Spec.Anno\ - tationsEntryR\x0bAnnotations\x12!\n\x05Linux\x18\x08\x20\x01(\x0b2\x0b.g\ - rpc.LinuxR\x05Linux\x12'\n\x07Solaris\x18\t\x20\x01(\x0b2\r.grpc.Solaris\ - R\x07Solaris\x12'\n\x07Windows\x18\n\x20\x01(\x0b2\r.grpc.WindowsR\x07Wi\ - ndows\x1a>\n\x10AnnotationsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\ - \x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xba\ - \x03\n\x07Process\x12\x1a\n\x08Terminal\x18\x01\x20\x01(\x08R\x08Termina\ - l\x12+\n\x0bConsoleSize\x18\x02\x20\x01(\x0b2\t.grpc.BoxR\x0bConsoleSize\ - \x12$\n\x04User\x18\x03\x20\x01(\x0b2\n.grpc.UserR\x04UserB\x04\xc8\xde\ - \x1f\0\x12\x12\n\x04Args\x18\x04\x20\x03(\tR\x04Args\x12\x10\n\x03Env\ - \x18\x05\x20\x03(\tR\x03Env\x12\x10\n\x03Cwd\x18\x06\x20\x01(\tR\x03Cwd\ - \x12;\n\x0cCapabilities\x18\x07\x20\x01(\x0b2\x17.grpc.LinuxCapabilities\ - R\x0cCapabilities\x121\n\x07Rlimits\x18\x08\x20\x03(\x0b2\x11.grpc.POSIX\ - RlimitR\x07RlimitsB\x04\xc8\xde\x1f\0\x12(\n\x0fNoNewPrivileges\x18\t\ - \x20\x01(\x08R\x0fNoNewPrivileges\x12(\n\x0fApparmorProfile\x18\n\x20\ - \x01(\tR\x0fApparmorProfile\x12\x20\n\x0bOOMScoreAdj\x18\x0b\x20\x01(\ - \x03R\x0bOOMScoreAdj\x12\"\n\x0cSelinuxLabel\x18\x0c\x20\x01(\tR\x0cSeli\ - nuxLabel\"3\n\x03Box\x12\x16\n\x06Height\x18\x01\x20\x01(\rR\x06Height\ - \x12\x14\n\x05Width\x18\x02\x20\x01(\rR\x05Width\"n\n\x04User\x12\x10\n\ - \x03UID\x18\x01\x20\x01(\rR\x03UID\x12\x10\n\x03GID\x18\x02\x20\x01(\rR\ - \x03GID\x12&\n\x0eAdditionalGids\x18\x03\x20\x03(\rR\x0eAdditionalGids\ - \x12\x1a\n\x08Username\x18\x04\x20\x01(\tR\x08Username\"\xa7\x01\n\x11Li\ - nuxCapabilities\x12\x1a\n\x08Bounding\x18\x01\x20\x03(\tR\x08Bounding\ - \x12\x1c\n\tEffective\x18\x02\x20\x03(\tR\tEffective\x12\x20\n\x0bInheri\ - table\x18\x03\x20\x03(\tR\x0bInheritable\x12\x1c\n\tPermitted\x18\x04\ - \x20\x03(\tR\tPermitted\x12\x18\n\x07Ambient\x18\x05\x20\x03(\tR\x07Ambi\ - ent\"I\n\x0bPOSIXRlimit\x12\x12\n\x04Type\x18\x01\x20\x01(\tR\x04Type\ - \x12\x12\n\x04Hard\x18\x02\x20\x01(\x04R\x04Hard\x12\x12\n\x04Soft\x18\ - \x03\x20\x01(\x04R\x04Soft\"o\n\x05Mount\x12\x20\n\x0bdestination\x18\ - \x01\x20\x01(\tR\x0bdestination\x12\x16\n\x06source\x18\x02\x20\x01(\tR\ - \x06source\x12\x12\n\x04type\x18\x03\x20\x01(\tR\x04type\x12\x18\n\x07op\ - tions\x18\x04\x20\x03(\tR\x07options\"6\n\x04Root\x12\x12\n\x04Path\x18\ - \x01\x20\x01(\tR\x04Path\x12\x1a\n\x08Readonly\x18\x02\x20\x01(\x08R\x08\ - Readonly\"\x93\x01\n\x05Hooks\x12,\n\x08Prestart\x18\x01\x20\x03(\x0b2\n\ - .grpc.HookR\x08PrestartB\x04\xc8\xde\x1f\0\x12.\n\tPoststart\x18\x02\x20\ - \x03(\x0b2\n.grpc.HookR\tPoststartB\x04\xc8\xde\x1f\0\x12,\n\x08Poststop\ - \x18\x03\x20\x03(\x0b2\n.grpc.HookR\x08PoststopB\x04\xc8\xde\x1f\0\"Z\n\ - \x04Hook\x12\x12\n\x04Path\x18\x01\x20\x01(\tR\x04Path\x12\x12\n\x04Args\ - \x18\x02\x20\x03(\tR\x04Args\x12\x10\n\x03Env\x18\x03\x20\x03(\tR\x03Env\ - \x12\x18\n\x07Timeout\x18\x04\x20\x01(\x03R\x07Timeout\"\xa9\x05\n\x05Li\ - nux\x12<\n\x0bUIDMappings\x18\x01\x20\x03(\x0b2\x14.grpc.LinuxIDMappingR\ - \x0bUIDMappingsB\x04\xc8\xde\x1f\0\x12<\n\x0bGIDMappings\x18\x02\x20\x03\ - (\x0b2\x14.grpc.LinuxIDMappingR\x0bGIDMappingsB\x04\xc8\xde\x1f\0\x12/\n\ - \x06Sysctl\x18\x03\x20\x03(\x0b2\x17.grpc.Linux.SysctlEntryR\x06Sysctl\ - \x122\n\tResources\x18\x04\x20\x01(\x0b2\x14.grpc.LinuxResourcesR\tResou\ - rces\x12\x20\n\x0bCgroupsPath\x18\x05\x20\x01(\tR\x0bCgroupsPath\x12:\n\ - \nNamespaces\x18\x06\x20\x03(\x0b2\x14.grpc.LinuxNamespaceR\nNamespacesB\ - \x04\xc8\xde\x1f\0\x121\n\x07Devices\x18\x07\x20\x03(\x0b2\x11.grpc.Linu\ - xDeviceR\x07DevicesB\x04\xc8\xde\x1f\0\x12,\n\x07Seccomp\x18\x08\x20\x01\ - (\x0b2\x12.grpc.LinuxSeccompR\x07Seccomp\x12,\n\x11RootfsPropagation\x18\ - \t\x20\x01(\tR\x11RootfsPropagation\x12\x20\n\x0bMaskedPaths\x18\n\x20\ - \x03(\tR\x0bMaskedPaths\x12$\n\rReadonlyPaths\x18\x0b\x20\x03(\tR\rReado\ - nlyPaths\x12\x1e\n\nMountLabel\x18\x0c\x20\x01(\tR\nMountLabel\x12/\n\ - \x08IntelRdt\x18\r\x20\x01(\x0b2\x13.grpc.LinuxIntelRdtR\x08IntelRdt\x1a\ - 9\n\x0bSysctlEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\ - \x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\x1f\n\x07Windows\x12\ - \x14\n\x05dummy\x18\x01\x20\x01(\tR\x05dummy\"\x1f\n\x07Solaris\x12\x14\ - \n\x05dummy\x18\x01\x20\x01(\tR\x05dummy\"^\n\x0eLinuxIDMapping\x12\x16\ - \n\x06HostID\x18\x01\x20\x01(\rR\x06HostID\x12\x20\n\x0bContainerID\x18\ - \x02\x20\x01(\rR\x0bContainerID\x12\x12\n\x04Size\x18\x03\x20\x01(\rR\ - \x04Size\"8\n\x0eLinuxNamespace\x12\x12\n\x04Type\x18\x01\x20\x01(\tR\ - \x04Type\x12\x12\n\x04Path\x18\x02\x20\x01(\tR\x04Path\"\xa1\x01\n\x0bLi\ - nuxDevice\x12\x12\n\x04Path\x18\x01\x20\x01(\tR\x04Path\x12\x12\n\x04Typ\ - e\x18\x02\x20\x01(\tR\x04Type\x12\x14\n\x05Major\x18\x03\x20\x01(\x03R\ - \x05Major\x12\x14\n\x05Minor\x18\x04\x20\x01(\x03R\x05Minor\x12\x1a\n\ - \x08FileMode\x18\x05\x20\x01(\rR\x08FileMode\x12\x10\n\x03UID\x18\x06\ - \x20\x01(\rR\x03UID\x12\x10\n\x03GID\x18\x07\x20\x01(\rR\x03GID\"\xdf\ - \x02\n\x0eLinuxResources\x127\n\x07Devices\x18\x01\x20\x03(\x0b2\x17.grp\ - c.LinuxDeviceCgroupR\x07DevicesB\x04\xc8\xde\x1f\0\x12)\n\x06Memory\x18\ - \x02\x20\x01(\x0b2\x11.grpc.LinuxMemoryR\x06Memory\x12\x20\n\x03CPU\x18\ - \x03\x20\x01(\x0b2\x0e.grpc.LinuxCPUR\x03CPU\x12#\n\x04Pids\x18\x04\x20\ - \x01(\x0b2\x0f.grpc.LinuxPidsR\x04Pids\x12,\n\x07BlockIO\x18\x05\x20\x01\ - (\x0b2\x12.grpc.LinuxBlockIOR\x07BlockIO\x12F\n\x0eHugepageLimits\x18\ - \x06\x20\x03(\x0b2\x18.grpc.LinuxHugepageLimitR\x0eHugepageLimitsB\x04\ - \xc8\xde\x1f\0\x12,\n\x07Network\x18\x07\x20\x01(\x0b2\x12.grpc.LinuxNet\ - workR\x07Network\"\xdb\x01\n\x0bLinuxMemory\x12\x14\n\x05Limit\x18\x01\ - \x20\x01(\x03R\x05Limit\x12\x20\n\x0bReservation\x18\x02\x20\x01(\x03R\ - \x0bReservation\x12\x12\n\x04Swap\x18\x03\x20\x01(\x03R\x04Swap\x12\x16\ - \n\x06Kernel\x18\x04\x20\x01(\x03R\x06Kernel\x12\x1c\n\tKernelTCP\x18\ - \x05\x20\x01(\x03R\tKernelTCP\x12\x1e\n\nSwappiness\x18\x06\x20\x01(\x04\ - R\nSwappiness\x12*\n\x10DisableOOMKiller\x18\x07\x20\x01(\x08R\x10Disabl\ - eOOMKiller\"\xca\x01\n\x08LinuxCPU\x12\x16\n\x06Shares\x18\x01\x20\x01(\ - \x04R\x06Shares\x12\x14\n\x05Quota\x18\x02\x20\x01(\x03R\x05Quota\x12\ - \x16\n\x06Period\x18\x03\x20\x01(\x04R\x06Period\x12(\n\x0fRealtimeRunti\ - me\x18\x04\x20\x01(\x03R\x0fRealtimeRuntime\x12&\n\x0eRealtimePeriod\x18\ - \x05\x20\x01(\x04R\x0eRealtimePeriod\x12\x12\n\x04Cpus\x18\x06\x20\x01(\ - \tR\x04Cpus\x12\x12\n\x04Mems\x18\x07\x20\x01(\tR\x04Mems\"w\n\x11LinuxW\ - eightDevice\x12\x14\n\x05Major\x18\x01\x20\x01(\x03R\x05Major\x12\x14\n\ - \x05Minor\x18\x02\x20\x01(\x03R\x05Minor\x12\x16\n\x06Weight\x18\x03\x20\ - \x01(\rR\x06Weight\x12\x1e\n\nLeafWeight\x18\x04\x20\x01(\rR\nLeafWeight\ - \"U\n\x13LinuxThrottleDevice\x12\x14\n\x05Major\x18\x01\x20\x01(\x03R\ - \x05Major\x12\x14\n\x05Minor\x18\x02\x20\x01(\x03R\x05Minor\x12\x12\n\ - \x04Rate\x18\x03\x20\x01(\x04R\x04Rate\"\xed\x03\n\x0cLinuxBlockIO\x12\ - \x16\n\x06Weight\x18\x01\x20\x01(\rR\x06Weight\x12\x1e\n\nLeafWeight\x18\ - \x02\x20\x01(\rR\nLeafWeight\x12A\n\x0cWeightDevice\x18\x03\x20\x03(\x0b\ - 2\x17.grpc.LinuxWeightDeviceR\x0cWeightDeviceB\x04\xc8\xde\x1f\0\x12U\n\ - \x15ThrottleReadBpsDevice\x18\x04\x20\x03(\x0b2\x19.grpc.LinuxThrottleDe\ - viceR\x15ThrottleReadBpsDeviceB\x04\xc8\xde\x1f\0\x12W\n\x16ThrottleWrit\ - eBpsDevice\x18\x05\x20\x03(\x0b2\x19.grpc.LinuxThrottleDeviceR\x16Thrott\ - leWriteBpsDeviceB\x04\xc8\xde\x1f\0\x12W\n\x16ThrottleReadIOPSDevice\x18\ - \x06\x20\x03(\x0b2\x19.grpc.LinuxThrottleDeviceR\x16ThrottleReadIOPSDevi\ - ceB\x04\xc8\xde\x1f\0\x12Y\n\x17ThrottleWriteIOPSDevice\x18\x07\x20\x03(\ - \x0b2\x19.grpc.LinuxThrottleDeviceR\x17ThrottleWriteIOPSDeviceB\x04\xc8\ - \xde\x1f\0\"!\n\tLinuxPids\x12\x14\n\x05Limit\x18\x01\x20\x01(\x03R\x05L\ - imit\"\x81\x01\n\x11LinuxDeviceCgroup\x12\x14\n\x05Allow\x18\x01\x20\x01\ - (\x08R\x05Allow\x12\x12\n\x04Type\x18\x02\x20\x01(\tR\x04Type\x12\x14\n\ - \x05Major\x18\x03\x20\x01(\x03R\x05Major\x12\x14\n\x05Minor\x18\x04\x20\ - \x01(\x03R\x05Minor\x12\x16\n\x06Access\x18\x05\x20\x01(\tR\x06Access\"l\ - \n\x0cLinuxNetwork\x12\x18\n\x07ClassID\x18\x01\x20\x01(\rR\x07ClassID\ - \x12B\n\nPriorities\x18\x02\x20\x03(\x0b2\x1c.grpc.LinuxInterfacePriorit\ - yR\nPrioritiesB\x04\xc8\xde\x1f\0\"F\n\x12LinuxHugepageLimit\x12\x1a\n\ - \x08Pagesize\x18\x01\x20\x01(\tR\x08Pagesize\x12\x14\n\x05Limit\x18\x02\ - \x20\x01(\x04R\x05Limit\"H\n\x16LinuxInterfacePriority\x12\x12\n\x04Name\ - \x18\x01\x20\x01(\tR\x04Name\x12\x1a\n\x08Priority\x18\x02\x20\x01(\rR\ - \x08Priority\"\x90\x01\n\x0cLinuxSeccomp\x12$\n\rDefaultAction\x18\x01\ - \x20\x01(\tR\rDefaultAction\x12$\n\rArchitectures\x18\x02\x20\x03(\tR\rA\ - rchitectures\x124\n\x08Syscalls\x18\x03\x20\x03(\x0b2\x12.grpc.LinuxSysc\ - allR\x08SyscallsB\x04\xc8\xde\x1f\0\"i\n\x0fLinuxSeccompArg\x12\x14\n\ - \x05Index\x18\x01\x20\x01(\x04R\x05Index\x12\x14\n\x05Value\x18\x02\x20\ - \x01(\x04R\x05Value\x12\x1a\n\x08ValueTwo\x18\x03\x20\x01(\x04R\x08Value\ - Two\x12\x0e\n\x02Op\x18\x04\x20\x01(\tR\x02Op\"m\n\x0cLinuxSyscall\x12\ - \x14\n\x05Names\x18\x01\x20\x03(\tR\x05Names\x12\x16\n\x06Action\x18\x02\ - \x20\x01(\tR\x06Action\x12/\n\x04Args\x18\x03\x20\x03(\x0b2\x15.grpc.Lin\ - uxSeccompArgR\x04ArgsB\x04\xc8\xde\x1f\0\"5\n\rLinuxIntelRdt\x12$\n\rL3C\ - acheSchema\x18\x01\x20\x01(\tR\rL3CacheSchemaBpZ^github.com/kata-contain\ - ers/kata-containers/src/runtime/virtcontainers/pkg/agent/protocols/grpc\ - \xf8\xe1\x1e\x01\xa8\xe2\x1e\x01\xc0\xe2\x1e\x01\xb8\xe2\x1e\x01J\xfe\ - \x93\x01\n\x07\x12\x05\x07\0\xd0\x03\x01\nz\n\x01\x0c\x12\x03\x07\0\x122\ - p\n\x20Copyright\x20(c)\x202017\x20Intel\x20Corporation\n\x20Copyright\ - \x20(c)\x202019\x20Ant\x20Financial\n\n\x20SPDX-License-Identifier:\x20A\ - pache-2.0\n\n\n\x08\n\x01\x08\x12\x03\t\0u\n\t\n\x02\x08\x0b\x12\x03\t\0\ - u\n\x08\n\x01\x02\x12\x03\x0b\0\r\n\t\n\x02\x03\0\x12\x03\r\07\n\t\n\x02\ - \x03\x01\x12\x03\x0e\0(\n\x08\n\x01\x08\x12\x03\x10\0$\n\x0b\n\x04\x08\ - \xa5\xec\x03\x12\x03\x10\0$\n\x08\n\x01\x08\x12\x03\x11\0'\n\x0b\n\x04\ - \x08\x9f\xec\x03\x12\x03\x11\0'\n\x08\n\x01\x08\x12\x03\x12\0&\n\x0b\n\ - \x04\x08\xa7\xec\x03\x12\x03\x12\0&\n\x08\n\x01\x08\x12\x03\x13\0'\n\x0b\ - \n\x04\x08\xa8\xec\x03\x12\x03\x13\0'\n\n\n\x02\x04\0\x12\x04\x15\02\x01\ - \n\n\n\x03\x04\0\x01\x12\x03\x15\x08\x0c\nm\n\x04\x04\0\x02\0\x12\x03\ - \x17\x08\x1b\x1a`\x20Version\x20of\x20the\x20Open\x20Container\x20Initia\ - tive\x20Runtime\x20Specification\x20with\x20which\x20the\x20bundle\x20co\ - mplies.\n\n\r\n\x05\x04\0\x02\0\x04\x12\x04\x17\x08\x15\x0e\n\x0c\n\x05\ - \x04\0\x02\0\x05\x12\x03\x17\x08\x0e\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\ - \x17\x0f\x16\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x17\x19\x1a\n8\n\x04\ - \x04\0\x02\x01\x12\x03\x1a\x08\x1c\x1a+\x20Process\x20configures\x20the\ - \x20container\x20process.\n\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x1a\x08\ - \x17\x1b\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\x1a\x08\x0f\n\x0c\n\x05\ - \x04\0\x02\x01\x01\x12\x03\x1a\x10\x17\n\x0c\n\x05\x04\0\x02\x01\x03\x12\ - \x03\x1a\x1a\x1b\n?\n\x04\x04\0\x02\x02\x12\x03\x1d\x08\x16\x1a2\x20Root\ - \x20configures\x20the\x20container's\x20root\x20filesystem.\n\n\r\n\x05\ - \x04\0\x02\x02\x04\x12\x04\x1d\x08\x1a\x1c\n\x0c\n\x05\x04\0\x02\x02\x06\ - \x12\x03\x1d\x08\x0c\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x1d\r\x11\n\ - \x0c\n\x05\x04\0\x02\x02\x03\x12\x03\x1d\x14\x15\n<\n\x04\x04\0\x02\x03\ - \x12\x03\x20\x08\x1c\x1a/\x20Hostname\x20configures\x20the\x20container'\ - s\x20hostname.\n\n\r\n\x05\x04\0\x02\x03\x04\x12\x04\x20\x08\x1d\x16\n\ - \x0c\n\x05\x04\0\x02\x03\x05\x12\x03\x20\x08\x0e\n\x0c\n\x05\x04\0\x02\ - \x03\x01\x12\x03\x20\x0f\x17\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x20\ - \x1a\x1b\nD\n\x04\x04\0\x02\x04\x12\x03#\x08A\x1a7\x20Mounts\x20configur\ - es\x20additional\x20mounts\x20(on\x20top\x20of\x20Root).\n\n\x0c\n\x05\ - \x04\0\x02\x04\x04\x12\x03#\x08\x10\n\x0c\n\x05\x04\0\x02\x04\x06\x12\ - \x03#\x11\x16\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03#\x17\x1d\n\x0c\n\x05\ - \x04\0\x02\x04\x03\x12\x03#\x20!\n\x0c\n\x05\x04\0\x02\x04\x08\x12\x03#\ - \"@\n\x0f\n\x08\x04\0\x02\x04\x08\xe9\xfb\x03\x12\x03##?\nI\n\x04\x04\0\ - \x02\x05\x12\x03&\x08\x18\x1a<\x20Hooks\x20configures\x20callbacks\x20fo\ - r\x20container\x20lifecycle\x20events.\n\n\r\n\x05\x04\0\x02\x05\x04\x12\ - \x04&\x08#A\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x03&\x08\r\n\x0c\n\x05\x04\ - \0\x02\x05\x01\x12\x03&\x0e\x13\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03&\ - \x16\x17\nI\n\x04\x04\0\x02\x06\x12\x03)\x08,\x1a<\x20Annotations\x20con\ - tains\x20arbitrary\x20metadata\x20for\x20the\x20container.\n\n\r\n\x05\ - \x04\0\x02\x06\x04\x12\x04)\x08&\x18\n\x0c\n\x05\x04\0\x02\x06\x06\x12\ - \x03)\x08\x1b\n\x0c\n\x05\x04\0\x02\x06\x01\x12\x03)\x1c'\n\x0c\n\x05\ - \x04\0\x02\x06\x03\x12\x03)*+\nS\n\x04\x04\0\x02\x07\x12\x03,\x08\x18\ - \x1aF\x20Linux\x20is\x20platform-specific\x20configuration\x20for\x20Lin\ - ux\x20based\x20containers.\n\n\r\n\x05\x04\0\x02\x07\x04\x12\x04,\x08),\ - \n\x0c\n\x05\x04\0\x02\x07\x06\x12\x03,\x08\r\n\x0c\n\x05\x04\0\x02\x07\ - \x01\x12\x03,\x0e\x13\n\x0c\n\x05\x04\0\x02\x07\x03\x12\x03,\x16\x17\nW\ - \n\x04\x04\0\x02\x08\x12\x03/\x08\x1c\x1aJ\x20Solaris\x20is\x20platform-\ - specific\x20configuration\x20for\x20Solaris\x20based\x20containers.\n\n\ - \r\n\x05\x04\0\x02\x08\x04\x12\x04/\x08,\x18\n\x0c\n\x05\x04\0\x02\x08\ - \x06\x12\x03/\x08\x0f\n\x0c\n\x05\x04\0\x02\x08\x01\x12\x03/\x10\x17\n\ - \x0c\n\x05\x04\0\x02\x08\x03\x12\x03/\x1a\x1b\nW\n\x04\x04\0\x02\t\x12\ - \x031\x08\x1d\x1aJ\x20Windows\x20is\x20platform-specific\x20configuratio\ - n\x20for\x20Windows\x20based\x20containers.\n\n\r\n\x05\x04\0\x02\t\x04\ - \x12\x041\x08/\x1c\n\x0c\n\x05\x04\0\x02\t\x06\x12\x031\x08\x0f\n\x0c\n\ - \x05\x04\0\x02\t\x01\x12\x031\x10\x17\n\x0c\n\x05\x04\0\x02\t\x03\x12\ - \x031\x1a\x1c\n\n\n\x02\x04\x01\x12\x044\0Y\x01\n\n\n\x03\x04\x01\x01\ - \x12\x034\x08\x0f\nJ\n\x04\x04\x01\x02\0\x12\x036\x08\x1a\x1a=\x20Termin\ - al\x20creates\x20an\x20interactive\x20terminal\x20for\x20the\x20containe\ - r.\n\n\r\n\x05\x04\x01\x02\0\x04\x12\x046\x084\x11\n\x0c\n\x05\x04\x01\ - \x02\0\x05\x12\x036\x08\x0c\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x036\r\x15\ - \n\x0c\n\x05\x04\x01\x02\0\x03\x12\x036\x18\x19\n=\n\x04\x04\x01\x02\x01\ - \x12\x039\x08\x1c\x1a0\x20ConsoleSize\x20specifies\x20the\x20size\x20of\ - \x20the\x20console.\n\n\r\n\x05\x04\x01\x02\x01\x04\x12\x049\x086\x1a\n\ - \x0c\n\x05\x04\x01\x02\x01\x06\x12\x039\x08\x0b\n\x0c\n\x05\x04\x01\x02\ - \x01\x01\x12\x039\x0c\x17\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x039\x1a\ - \x1b\n?\n\x04\x04\x01\x02\x02\x12\x03<\x085\x1a2\x20User\x20specifies\ - \x20user\x20information\x20for\x20the\x20process.\n\n\r\n\x05\x04\x01\ - \x02\x02\x04\x12\x04<\x089\x1c\n\x0c\n\x05\x04\x01\x02\x02\x06\x12\x03<\ - \x08\x0c\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03<\r\x11\n\x0c\n\x05\x04\ - \x01\x02\x02\x03\x12\x03<\x14\x15\n\x0c\n\x05\x04\x01\x02\x02\x08\x12\ - \x03<\x164\n\x0f\n\x08\x04\x01\x02\x02\x08\xe9\xfb\x03\x12\x03<\x173\nV\ - \n\x04\x04\x01\x02\x03\x12\x03?\x08!\x1aI\x20Args\x20specifies\x20the\ - \x20binary\x20and\x20arguments\x20for\x20the\x20application\x20to\x20exe\ - cute.\n\n\x0c\n\x05\x04\x01\x02\x03\x04\x12\x03?\x08\x10\n\x0c\n\x05\x04\ - \x01\x02\x03\x05\x12\x03?\x11\x17\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\ - \x03?\x18\x1c\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03?\x1f\x20\nE\n\x04\ - \x04\x01\x02\x04\x12\x03B\x08\x20\x1a8\x20Env\x20populates\x20the\x20pro\ - cess\x20environment\x20for\x20the\x20process.\n\n\x0c\n\x05\x04\x01\x02\ - \x04\x04\x12\x03B\x08\x10\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03B\x11\ - \x17\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03B\x18\x1b\n\x0c\n\x05\x04\ - \x01\x02\x04\x03\x12\x03B\x1e\x1f\nr\n\x04\x04\x01\x02\x05\x12\x03F\x08\ - \x17\x1ae\x20Cwd\x20is\x20the\x20current\x20working\x20directory\x20for\ - \x20the\x20process\x20and\x20must\x20be\n\x20relative\x20to\x20the\x20co\ - ntainer's\x20root.\n\n\r\n\x05\x04\x01\x02\x05\x04\x12\x04F\x08B\x20\n\ - \x0c\n\x05\x04\x01\x02\x05\x05\x12\x03F\x08\x0e\n\x0c\n\x05\x04\x01\x02\ - \x05\x01\x12\x03F\x0f\x12\n\x0c\n\x05\x04\x01\x02\x05\x03\x12\x03F\x15\ - \x16\nQ\n\x04\x04\x01\x02\x06\x12\x03I\x08+\x1aD\x20Capabilities\x20are\ - \x20Linux\x20capabilities\x20that\x20are\x20kept\x20for\x20the\x20proces\ - s.\n\n\r\n\x05\x04\x01\x02\x06\x04\x12\x04I\x08F\x17\n\x0c\n\x05\x04\x01\ - \x02\x06\x06\x12\x03I\x08\x19\n\x0c\n\x05\x04\x01\x02\x06\x01\x12\x03I\ - \x1a&\n\x0c\n\x05\x04\x01\x02\x06\x03\x12\x03I)*\nH\n\x04\x04\x01\x02\ - \x07\x12\x03L\x08H\x1a;\x20Rlimits\x20specifies\x20rlimit\x20options\x20\ - to\x20apply\x20to\x20the\x20process.\n\n\x0c\n\x05\x04\x01\x02\x07\x04\ - \x12\x03L\x08\x10\n\x0c\n\x05\x04\x01\x02\x07\x06\x12\x03L\x11\x1c\n\x0c\ - \n\x05\x04\x01\x02\x07\x01\x12\x03L\x1d$\n\x0c\n\x05\x04\x01\x02\x07\x03\ - \x12\x03L'(\n\x0c\n\x05\x04\x01\x02\x07\x08\x12\x03L)G\n\x0f\n\x08\x04\ - \x01\x02\x07\x08\xe9\xfb\x03\x12\x03L*F\nu\n\x04\x04\x01\x02\x08\x12\x03\ - O\x08!\x1ah\x20NoNewPrivileges\x20controls\x20whether\x20additional\x20p\ - rivileges\x20could\x20be\x20gained\x20by\x20processes\x20in\x20the\x20co\ - ntainer.\t\n\n\r\n\x05\x04\x01\x02\x08\x04\x12\x04O\x08LH\n\x0c\n\x05\ - \x04\x01\x02\x08\x05\x12\x03O\x08\x0c\n\x0c\n\x05\x04\x01\x02\x08\x01\ - \x12\x03O\r\x1c\n\x0c\n\x05\x04\x01\x02\x08\x03\x12\x03O\x1f\x20\nP\n\ - \x04\x04\x01\x02\t\x12\x03R\x08$\x1aC\x20ApparmorProfile\x20specifies\ - \x20the\x20apparmor\x20profile\x20for\x20the\x20container.\n\n\r\n\x05\ - \x04\x01\x02\t\x04\x12\x04R\x08O!\n\x0c\n\x05\x04\x01\x02\t\x05\x12\x03R\ - \x08\x0e\n\x0c\n\x05\x04\x01\x02\t\x01\x12\x03R\x0f\x1e\n\x0c\n\x05\x04\ - \x01\x02\t\x03\x12\x03R!#\n:\n\x04\x04\x01\x02\n\x12\x03U\x08\x1f\x1a-\ - \x20Specify\x20an\x20oom_score_adj\x20for\x20the\x20container.\n\n\r\n\ - \x05\x04\x01\x02\n\x04\x12\x04U\x08R$\n\x0c\n\x05\x04\x01\x02\n\x05\x12\ - \x03U\x08\r\n\x0c\n\x05\x04\x01\x02\n\x01\x12\x03U\x0e\x19\n\x0c\n\x05\ - \x04\x01\x02\n\x03\x12\x03U\x1c\x1e\n_\n\x04\x04\x01\x02\x0b\x12\x03X\ - \x08!\x1aR\x20SelinuxLabel\x20specifies\x20the\x20selinux\x20context\x20\ - that\x20the\x20container\x20process\x20is\x20run\x20as.\n\n\r\n\x05\x04\ - \x01\x02\x0b\x04\x12\x04X\x08U\x1f\n\x0c\n\x05\x04\x01\x02\x0b\x05\x12\ - \x03X\x08\x0e\n\x0c\n\x05\x04\x01\x02\x0b\x01\x12\x03X\x0f\x1b\n\x0c\n\ - \x05\x04\x01\x02\x0b\x03\x12\x03X\x1e\x20\n\n\n\x02\x04\x02\x12\x04[\0a\ - \x01\n\n\n\x03\x04\x02\x01\x12\x03[\x08\x0b\n9\n\x04\x04\x02\x02\0\x12\ - \x03]\x08\x1a\x1a,\x20Height\x20is\x20the\x20vertical\x20dimension\x20of\ - \x20a\x20box.\n\n\r\n\x05\x04\x02\x02\0\x04\x12\x04]\x08[\r\n\x0c\n\x05\ - \x04\x02\x02\0\x05\x12\x03]\x08\x0e\n\x0c\n\x05\x04\x02\x02\0\x01\x12\ - \x03]\x0f\x15\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03]\x18\x19\n;\n\x04\ - \x04\x02\x02\x01\x12\x03`\x08\x19\x1a.\x20Width\x20is\x20the\x20horizont\ - al\x20dimension\x20of\x20a\x20box.\t\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\ - \x04`\x08]\x1a\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03`\x08\x0e\n\x0c\n\ - \x05\x04\x02\x02\x01\x01\x12\x03`\x0f\x14\n\x0c\n\x05\x04\x02\x02\x01\ - \x03\x12\x03`\x17\x18\n\n\n\x02\x04\x03\x12\x04c\0o\x01\n\n\n\x03\x04\ - \x03\x01\x12\x03c\x08\x0c\n\"\n\x04\x04\x03\x02\0\x12\x03e\x08\x17\x1a\ - \x15\x20UID\x20is\x20the\x20user\x20id.\n\n\r\n\x05\x04\x03\x02\0\x04\ - \x12\x04e\x08c\x0e\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03e\x08\x0e\n\x0c\ - \n\x05\x04\x03\x02\0\x01\x12\x03e\x0f\x12\n\x0c\n\x05\x04\x03\x02\0\x03\ - \x12\x03e\x15\x16\n#\n\x04\x04\x03\x02\x01\x12\x03h\x08\x17\x1a\x16\x20G\ - ID\x20is\x20the\x20group\x20id.\n\n\r\n\x05\x04\x03\x02\x01\x04\x12\x04h\ - \x08e\x17\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03h\x08\x0e\n\x0c\n\x05\ - \x04\x03\x02\x01\x01\x12\x03h\x0f\x12\n\x0c\n\x05\x04\x03\x02\x01\x03\ - \x12\x03h\x15\x16\nW\n\x04\x04\x03\x02\x02\x12\x03k\x08+\x1aJ\x20Additio\ - nalGids\x20are\x20additional\x20group\x20ids\x20set\x20for\x20the\x20con\ - tainer's\x20process.\n\n\x0c\n\x05\x04\x03\x02\x02\x04\x12\x03k\x08\x10\ - \n\x0c\n\x05\x04\x03\x02\x02\x05\x12\x03k\x11\x17\n\x0c\n\x05\x04\x03\ - \x02\x02\x01\x12\x03k\x18&\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03k)*\n)\ - \n\x04\x04\x03\x02\x03\x12\x03n\x08\x1c\x1a\x1c\x20Username\x20is\x20the\ - \x20user\x20name.\n\n\r\n\x05\x04\x03\x02\x03\x04\x12\x04n\x08k+\n\x0c\n\ - \x05\x04\x03\x02\x03\x05\x12\x03n\x08\x0e\n\x0c\n\x05\x04\x03\x02\x03\ - \x01\x12\x03n\x0f\x17\n\x0c\n\x05\x04\x03\x02\x03\x03\x12\x03n\x1a\x1b\n\ - \x0b\n\x02\x04\x04\x12\x05q\0\x80\x01\x01\n\n\n\x03\x04\x04\x01\x12\x03q\ - \x08\x19\nI\n\x04\x04\x04\x02\0\x12\x03s\x08%\x1a<\x20Bounding\x20is\x20\ - the\x20set\x20of\x20capabilities\x20checked\x20by\x20the\x20kernel.\n\n\ - \x0c\n\x05\x04\x04\x02\0\x04\x12\x03s\x08\x10\n\x0c\n\x05\x04\x04\x02\0\ - \x05\x12\x03s\x11\x17\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03s\x18\x20\n\ - \x0c\n\x05\x04\x04\x02\0\x03\x12\x03s#$\nJ\n\x04\x04\x04\x02\x01\x12\x03\ - v\x08&\x1a=\x20Effective\x20is\x20the\x20set\x20of\x20capabilities\x20ch\ - ecked\x20by\x20the\x20kernel.\n\n\x0c\n\x05\x04\x04\x02\x01\x04\x12\x03v\ - \x08\x10\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03v\x11\x17\n\x0c\n\x05\ - \x04\x04\x02\x01\x01\x12\x03v\x18!\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\ - \x03v$%\nG\n\x04\x04\x04\x02\x02\x12\x03y\x08(\x1a:\x20Inheritable\x20is\ - \x20the\x20capabilities\x20preserved\x20across\x20execve.\n\n\x0c\n\x05\ - \x04\x04\x02\x02\x04\x12\x03y\x08\x10\n\x0c\n\x05\x04\x04\x02\x02\x05\ - \x12\x03y\x11\x17\n\x0c\n\x05\x04\x04\x02\x02\x01\x12\x03y\x18#\n\x0c\n\ - \x05\x04\x04\x02\x02\x03\x12\x03y&'\nM\n\x04\x04\x04\x02\x03\x12\x03|\ - \x08&\x1a@\x20Permitted\x20is\x20the\x20limiting\x20superset\x20for\x20e\ - ffective\x20capabilities.\n\n\x0c\n\x05\x04\x04\x02\x03\x04\x12\x03|\x08\ - \x10\n\x0c\n\x05\x04\x04\x02\x03\x05\x12\x03|\x11\x17\n\x0c\n\x05\x04\ - \x04\x02\x03\x01\x12\x03|\x18!\n\x0c\n\x05\x04\x04\x02\x03\x03\x12\x03|$\ - %\nH\n\x04\x04\x04\x02\x04\x12\x03\x7f\x08$\x1a;\x20Ambient\x20is\x20the\ - \x20ambient\x20set\x20of\x20capabilities\x20that\x20are\x20kept.\n\n\x0c\ - \n\x05\x04\x04\x02\x04\x04\x12\x03\x7f\x08\x10\n\x0c\n\x05\x04\x04\x02\ - \x04\x05\x12\x03\x7f\x11\x17\n\x0c\n\x05\x04\x04\x02\x04\x01\x12\x03\x7f\ - \x18\x1f\n\x0c\n\x05\x04\x04\x02\x04\x03\x12\x03\x7f\"#\n\x0c\n\x02\x04\ - \x05\x12\x06\x82\x01\0\x8b\x01\x01\n\x0b\n\x03\x04\x05\x01\x12\x04\x82\ - \x01\x08\x13\n)\n\x04\x04\x05\x02\0\x12\x04\x84\x01\x08\x18\x1a\x1b\x20T\ - ype\x20of\x20the\x20rlimit\x20to\x20set\n\n\x0f\n\x05\x04\x05\x02\0\x04\ - \x12\x06\x84\x01\x08\x82\x01\x15\n\r\n\x05\x04\x05\x02\0\x05\x12\x04\x84\ - \x01\x08\x0e\n\r\n\x05\x04\x05\x02\0\x01\x12\x04\x84\x01\x0f\x13\n\r\n\ - \x05\x04\x05\x02\0\x03\x12\x04\x84\x01\x16\x17\n=\n\x04\x04\x05\x02\x01\ - \x12\x04\x87\x01\x08\x18\x1a/\x20Hard\x20is\x20the\x20hard\x20limit\x20f\ - or\x20the\x20specified\x20type\n\n\x0f\n\x05\x04\x05\x02\x01\x04\x12\x06\ - \x87\x01\x08\x84\x01\x18\n\r\n\x05\x04\x05\x02\x01\x05\x12\x04\x87\x01\ - \x08\x0e\n\r\n\x05\x04\x05\x02\x01\x01\x12\x04\x87\x01\x0f\x13\n\r\n\x05\ - \x04\x05\x02\x01\x03\x12\x04\x87\x01\x16\x17\n=\n\x04\x04\x05\x02\x02\ - \x12\x04\x8a\x01\x08\x18\x1a/\x20Soft\x20is\x20the\x20soft\x20limit\x20f\ - or\x20the\x20specified\x20type\n\n\x0f\n\x05\x04\x05\x02\x02\x04\x12\x06\ - \x8a\x01\x08\x87\x01\x18\n\r\n\x05\x04\x05\x02\x02\x05\x12\x04\x8a\x01\ - \x08\x0e\n\r\n\x05\x04\x05\x02\x02\x01\x12\x04\x8a\x01\x0f\x13\n\r\n\x05\ - \x04\x05\x02\x02\x03\x12\x04\x8a\x01\x16\x17\n\x0c\n\x02\x04\x06\x12\x06\ - \x8d\x01\0\x98\x01\x01\n\x0b\n\x03\x04\x06\x01\x12\x04\x8d\x01\x08\r\n_\ - \n\x04\x04\x06\x02\0\x12\x04\x8f\x01\x08\x1f\x1aQ\x20destination\x20is\ - \x20the\x20path\x20inside\x20the\x20container\x20expect\x20when\x20it\ - \x20starts\x20with\x20\"tmp:/\"\n\n\x0f\n\x05\x04\x06\x02\0\x04\x12\x06\ - \x8f\x01\x08\x8d\x01\x0f\n\r\n\x05\x04\x06\x02\0\x05\x12\x04\x8f\x01\x08\ - \x0e\n\r\n\x05\x04\x06\x02\0\x01\x12\x04\x8f\x01\x0f\x1a\n\r\n\x05\x04\ - \x06\x02\0\x03\x12\x04\x8f\x01\x1d\x1e\n\xb4\x02\n\x04\x04\x06\x02\x01\ - \x12\x04\x95\x01\x08\x1a\x1a\xa5\x02\x20source\x20is\x20the\x20path\x20i\ - nside\x20the\x20container\x20expect\x20when\x20it\x20starts\x20with\x20\ - \"vm:/dev/\"\x20or\x20\"tmp:/\"\n\x20the\x20path\x20which\x20starts\x20w\ - ith\x20\"vm:/dev/\"\x20refers\x20the\x20guest\x20vm's\x20\"/dev\",\n\x20\ - especially,\x20\"vm:/dev/hostfs/\"\x20refers\x20to\x20the\x20shared\x20f\ - ilesystem.\n\x20\"tmp:/\"\x20is\x20a\x20temporary\x20directory\x20which\ - \x20is\x20used\x20for\x20temporary\x20mounts.\n\n\x0f\n\x05\x04\x06\x02\ - \x01\x04\x12\x06\x95\x01\x08\x8f\x01\x1f\n\r\n\x05\x04\x06\x02\x01\x05\ - \x12\x04\x95\x01\x08\x0e\n\r\n\x05\x04\x06\x02\x01\x01\x12\x04\x95\x01\ - \x0f\x15\n\r\n\x05\x04\x06\x02\x01\x03\x12\x04\x95\x01\x18\x19\n\x0c\n\ - \x04\x04\x06\x02\x02\x12\x04\x96\x01\x08\x18\n\x0f\n\x05\x04\x06\x02\x02\ - \x04\x12\x06\x96\x01\x08\x95\x01\x1a\n\r\n\x05\x04\x06\x02\x02\x05\x12\ - \x04\x96\x01\x08\x0e\n\r\n\x05\x04\x06\x02\x02\x01\x12\x04\x96\x01\x0f\ - \x13\n\r\n\x05\x04\x06\x02\x02\x03\x12\x04\x96\x01\x16\x17\n\x0c\n\x04\ - \x04\x06\x02\x03\x12\x04\x97\x01\x08$\n\r\n\x05\x04\x06\x02\x03\x04\x12\ - \x04\x97\x01\x08\x10\n\r\n\x05\x04\x06\x02\x03\x05\x12\x04\x97\x01\x11\ - \x17\n\r\n\x05\x04\x06\x02\x03\x01\x12\x04\x97\x01\x18\x1f\n\r\n\x05\x04\ - \x06\x02\x03\x03\x12\x04\x97\x01\"#\n\x0c\n\x02\x04\x07\x12\x06\x9a\x01\ - \0\xa0\x01\x01\n\x0b\n\x03\x04\x07\x01\x12\x04\x9a\x01\x08\x0c\nM\n\x04\ - \x04\x07\x02\0\x12\x04\x9c\x01\x08\x18\x1a?\x20Path\x20is\x20the\x20abso\ - lute\x20path\x20to\x20the\x20container's\x20root\x20filesystem.\n\n\x0f\ - \n\x05\x04\x07\x02\0\x04\x12\x06\x9c\x01\x08\x9a\x01\x0e\n\r\n\x05\x04\ - \x07\x02\0\x05\x12\x04\x9c\x01\x08\x0e\n\r\n\x05\x04\x07\x02\0\x01\x12\ - \x04\x9c\x01\x0f\x13\n\r\n\x05\x04\x07\x02\0\x03\x12\x04\x9c\x01\x16\x17\ - \nm\n\x04\x04\x07\x02\x01\x12\x04\x9f\x01\x08\x1a\x1a_\x20Readonly\x20ma\ - kes\x20the\x20root\x20filesystem\x20for\x20the\x20container\x20readonly\ - \x20before\x20the\x20process\x20is\x20executed.\n\n\x0f\n\x05\x04\x07\ - \x02\x01\x04\x12\x06\x9f\x01\x08\x9c\x01\x18\n\r\n\x05\x04\x07\x02\x01\ - \x05\x12\x04\x9f\x01\x08\x0c\n\r\n\x05\x04\x07\x02\x01\x01\x12\x04\x9f\ - \x01\r\x15\n\r\n\x05\x04\x07\x02\x01\x03\x12\x04\x9f\x01\x18\x19\n\x0c\n\ - \x02\x04\x08\x12\x06\xa2\x01\0\xab\x01\x01\n\x0b\n\x03\x04\x08\x01\x12\ - \x04\xa2\x01\x08\r\n_\n\x04\x04\x08\x02\0\x12\x04\xa4\x01\x08C\x1aQ\x20P\ - restart\x20is\x20a\x20list\x20of\x20hooks\x20to\x20be\x20run\x20before\ - \x20the\x20container\x20process\x20is\x20executed.\n\n\r\n\x05\x04\x08\ - \x02\0\x04\x12\x04\xa4\x01\x08\x10\n\r\n\x05\x04\x08\x02\0\x06\x12\x04\ - \xa4\x01\x11\x15\n\r\n\x05\x04\x08\x02\0\x01\x12\x04\xa4\x01\x16\x1e\n\r\ - \n\x05\x04\x08\x02\0\x03\x12\x04\xa4\x01!\"\n\r\n\x05\x04\x08\x02\0\x08\ - \x12\x04\xa4\x01$B\n\x10\n\x08\x04\x08\x02\0\x08\xe9\xfb\x03\x12\x04\xa4\ - \x01%A\n^\n\x04\x04\x08\x02\x01\x12\x04\xa7\x01\x08D\x1aP\x20Poststart\ - \x20is\x20a\x20list\x20of\x20hooks\x20to\x20be\x20run\x20after\x20the\ - \x20container\x20process\x20is\x20started.\n\n\r\n\x05\x04\x08\x02\x01\ - \x04\x12\x04\xa7\x01\x08\x10\n\r\n\x05\x04\x08\x02\x01\x06\x12\x04\xa7\ - \x01\x11\x15\n\r\n\x05\x04\x08\x02\x01\x01\x12\x04\xa7\x01\x16\x1f\n\r\n\ - \x05\x04\x08\x02\x01\x03\x12\x04\xa7\x01\"#\n\r\n\x05\x04\x08\x02\x01\ - \x08\x12\x04\xa7\x01%C\n\x10\n\x08\x04\x08\x02\x01\x08\xe9\xfb\x03\x12\ - \x04\xa7\x01&B\nX\n\x04\x04\x08\x02\x02\x12\x04\xaa\x01\x08C\x1aJ\x20Pos\ - tstop\x20is\x20a\x20list\x20of\x20hooks\x20to\x20be\x20run\x20after\x20t\ - he\x20container\x20process\x20exits.\n\n\r\n\x05\x04\x08\x02\x02\x04\x12\ - \x04\xaa\x01\x08\x10\n\r\n\x05\x04\x08\x02\x02\x06\x12\x04\xaa\x01\x11\ - \x15\n\r\n\x05\x04\x08\x02\x02\x01\x12\x04\xaa\x01\x16\x1e\n\r\n\x05\x04\ - \x08\x02\x02\x03\x12\x04\xaa\x01!\"\n\r\n\x05\x04\x08\x02\x02\x08\x12\ - \x04\xaa\x01$B\n\x10\n\x08\x04\x08\x02\x02\x08\xe9\xfb\x03\x12\x04\xaa\ - \x01%A\n\x0c\n\x02\x04\t\x12\x06\xad\x01\0\xb2\x01\x01\n\x0b\n\x03\x04\t\ - \x01\x12\x04\xad\x01\x08\x0c\n\x0c\n\x04\x04\t\x02\0\x12\x04\xae\x01\x08\ - \x18\n\x0f\n\x05\x04\t\x02\0\x04\x12\x06\xae\x01\x08\xad\x01\x0e\n\r\n\ - \x05\x04\t\x02\0\x05\x12\x04\xae\x01\x08\x0e\n\r\n\x05\x04\t\x02\0\x01\ - \x12\x04\xae\x01\x0f\x13\n\r\n\x05\x04\t\x02\0\x03\x12\x04\xae\x01\x16\ - \x17\n\x0c\n\x04\x04\t\x02\x01\x12\x04\xaf\x01\x08!\n\r\n\x05\x04\t\x02\ - \x01\x04\x12\x04\xaf\x01\x08\x10\n\r\n\x05\x04\t\x02\x01\x05\x12\x04\xaf\ - \x01\x11\x17\n\r\n\x05\x04\t\x02\x01\x01\x12\x04\xaf\x01\x18\x1c\n\r\n\ - \x05\x04\t\x02\x01\x03\x12\x04\xaf\x01\x1f\x20\n\x0c\n\x04\x04\t\x02\x02\ - \x12\x04\xb0\x01\x08\x20\n\r\n\x05\x04\t\x02\x02\x04\x12\x04\xb0\x01\x08\ - \x10\n\r\n\x05\x04\t\x02\x02\x05\x12\x04\xb0\x01\x11\x17\n\r\n\x05\x04\t\ - \x02\x02\x01\x12\x04\xb0\x01\x18\x1b\n\r\n\x05\x04\t\x02\x02\x03\x12\x04\ - \xb0\x01\x1e\x1f\n\x0c\n\x04\x04\t\x02\x03\x12\x04\xb1\x01\x08\x1a\n\x0f\ - \n\x05\x04\t\x02\x03\x04\x12\x06\xb1\x01\x08\xb0\x01\x20\n\r\n\x05\x04\t\ - \x02\x03\x05\x12\x04\xb1\x01\x08\r\n\r\n\x05\x04\t\x02\x03\x01\x12\x04\ - \xb1\x01\x0e\x15\n\r\n\x05\x04\t\x02\x03\x03\x12\x04\xb1\x01\x18\x19\n\ - \x0c\n\x02\x04\n\x12\x06\xb4\x01\0\xdf\x01\x01\n\x0b\n\x03\x04\n\x01\x12\ - \x04\xb4\x01\x08\r\nR\n\x04\x04\n\x02\0\x12\x04\xb6\x01\x08P\x1aD\x20UID\ - Mapping\x20specifies\x20user\x20mappings\x20for\x20supporting\x20user\ - \x20namespaces.\n\n\r\n\x05\x04\n\x02\0\x04\x12\x04\xb6\x01\x08\x10\n\r\ - \n\x05\x04\n\x02\0\x06\x12\x04\xb6\x01\x11\x1f\n\r\n\x05\x04\n\x02\0\x01\ - \x12\x04\xb6\x01\x20+\n\r\n\x05\x04\n\x02\0\x03\x12\x04\xb6\x01./\n\r\n\ - \x05\x04\n\x02\0\x08\x12\x04\xb6\x011O\n\x10\n\x08\x04\n\x02\0\x08\xe9\ - \xfb\x03\x12\x04\xb6\x012N\nS\n\x04\x04\n\x02\x01\x12\x04\xb9\x01\x08P\ - \x1aE\x20GIDMapping\x20specifies\x20group\x20mappings\x20for\x20supporti\ - ng\x20user\x20namespaces.\n\n\r\n\x05\x04\n\x02\x01\x04\x12\x04\xb9\x01\ - \x08\x10\n\r\n\x05\x04\n\x02\x01\x06\x12\x04\xb9\x01\x11\x1f\n\r\n\x05\ - \x04\n\x02\x01\x01\x12\x04\xb9\x01\x20+\n\r\n\x05\x04\n\x02\x01\x03\x12\ - \x04\xb9\x01./\n\r\n\x05\x04\n\x02\x01\x08\x12\x04\xb9\x011O\n\x10\n\x08\ - \x04\n\x02\x01\x08\xe9\xfb\x03\x12\x04\xb9\x012N\n[\n\x04\x04\n\x02\x02\ - \x12\x04\xbc\x01\x08'\x1aM\x20Sysctl\x20are\x20a\x20set\x20of\x20key\x20\ - value\x20pairs\x20that\x20are\x20set\x20for\x20the\x20container\x20on\ - \x20start\n\n\x0f\n\x05\x04\n\x02\x02\x04\x12\x06\xbc\x01\x08\xb9\x01P\n\ - \r\n\x05\x04\n\x02\x02\x06\x12\x04\xbc\x01\x08\x1b\n\r\n\x05\x04\n\x02\ - \x02\x01\x12\x04\xbc\x01\x1c\"\n\r\n\x05\x04\n\x02\x02\x03\x12\x04\xbc\ - \x01%&\ni\n\x04\x04\n\x02\x03\x12\x04\xc0\x01\x08%\x1a[\x20Resources\x20\ - contain\x20cgroup\x20information\x20for\x20handling\x20resource\x20const\ - raints\n\x20for\x20the\x20container\n\n\x0f\n\x05\x04\n\x02\x03\x04\x12\ - \x06\xc0\x01\x08\xbc\x01'\n\r\n\x05\x04\n\x02\x03\x06\x12\x04\xc0\x01\ - \x08\x16\n\r\n\x05\x04\n\x02\x03\x01\x12\x04\xc0\x01\x17\x20\n\r\n\x05\ - \x04\n\x02\x03\x03\x12\x04\xc0\x01#$\n\x87\x02\n\x04\x04\n\x02\x04\x12\ - \x04\xc5\x01\x08\x1f\x1a\xf8\x01\x20CgroupsPath\x20specifies\x20the\x20p\ - ath\x20to\x20cgroups\x20that\x20are\x20created\x20and/or\x20joined\x20by\ - \x20the\x20container.\n\x20The\x20path\x20is\x20expected\x20to\x20be\x20\ - relative\x20to\x20the\x20cgroups\x20mountpoint.\n\x20If\x20resources\x20\ - are\x20specified,\x20the\x20cgroups\x20at\x20CgroupsPath\x20will\x20be\ - \x20updated\x20based\x20on\x20resources.\n\n\x0f\n\x05\x04\n\x02\x04\x04\ - \x12\x06\xc5\x01\x08\xc0\x01%\n\r\n\x05\x04\n\x02\x04\x05\x12\x04\xc5\ - \x01\x08\x0e\n\r\n\x05\x04\n\x02\x04\x01\x12\x04\xc5\x01\x0f\x1a\n\r\n\ - \x05\x04\n\x02\x04\x03\x12\x04\xc5\x01\x1d\x1e\nb\n\x04\x04\n\x02\x05\ - \x12\x04\xc8\x01\x08O\x1aT\x20Namespaces\x20contains\x20the\x20namespace\ - s\x20that\x20are\x20created\x20and/or\x20joined\x20by\x20the\x20containe\ - r\n\n\r\n\x05\x04\n\x02\x05\x04\x12\x04\xc8\x01\x08\x10\n\r\n\x05\x04\n\ - \x02\x05\x06\x12\x04\xc8\x01\x11\x1f\n\r\n\x05\x04\n\x02\x05\x01\x12\x04\ - \xc8\x01\x20*\n\r\n\x05\x04\n\x02\x05\x03\x12\x04\xc8\x01-.\n\r\n\x05\ - \x04\n\x02\x05\x08\x12\x04\xc8\x010N\n\x10\n\x08\x04\n\x02\x05\x08\xe9\ - \xfb\x03\x12\x04\xc8\x011M\nU\n\x04\x04\n\x02\x06\x12\x04\xcb\x01\x08I\ - \x1aG\x20Devices\x20are\x20a\x20list\x20of\x20device\x20nodes\x20that\ - \x20are\x20created\x20for\x20the\x20container\n\n\r\n\x05\x04\n\x02\x06\ - \x04\x12\x04\xcb\x01\x08\x10\n\r\n\x05\x04\n\x02\x06\x06\x12\x04\xcb\x01\ - \x11\x1c\n\r\n\x05\x04\n\x02\x06\x01\x12\x04\xcb\x01\x1d$\n\r\n\x05\x04\ - \n\x02\x06\x03\x12\x04\xcb\x01'(\n\r\n\x05\x04\n\x02\x06\x08\x12\x04\xcb\ - \x01*H\n\x10\n\x08\x04\n\x02\x06\x08\xe9\xfb\x03\x12\x04\xcb\x01+G\nR\n\ - \x04\x04\n\x02\x07\x12\x04\xce\x01\x08!\x1aD\x20Seccomp\x20specifies\x20\ - the\x20seccomp\x20security\x20settings\x20for\x20the\x20container.\n\n\ - \x0f\n\x05\x04\n\x02\x07\x04\x12\x06\xce\x01\x08\xcb\x01I\n\r\n\x05\x04\ - \n\x02\x07\x06\x12\x04\xce\x01\x08\x14\n\r\n\x05\x04\n\x02\x07\x01\x12\ - \x04\xce\x01\x15\x1c\n\r\n\x05\x04\n\x02\x07\x03\x12\x04\xce\x01\x1f\x20\ - \nY\n\x04\x04\n\x02\x08\x12\x04\xd1\x01\x08%\x1aK\x20RootfsPropagation\ - \x20is\x20the\x20rootfs\x20mount\x20propagation\x20mode\x20for\x20the\ - \x20container.\n\n\x0f\n\x05\x04\n\x02\x08\x04\x12\x06\xd1\x01\x08\xce\ - \x01!\n\r\n\x05\x04\n\x02\x08\x05\x12\x04\xd1\x01\x08\x0e\n\r\n\x05\x04\ - \n\x02\x08\x01\x12\x04\xd1\x01\x0f\x20\n\r\n\x05\x04\n\x02\x08\x03\x12\ - \x04\xd1\x01#$\nO\n\x04\x04\n\x02\t\x12\x04\xd4\x01\x08)\x1aA\x20MaskedP\ - aths\x20masks\x20over\x20the\x20provided\x20paths\x20inside\x20the\x20co\ - ntainer.\n\n\r\n\x05\x04\n\x02\t\x04\x12\x04\xd4\x01\x08\x10\n\r\n\x05\ - \x04\n\x02\t\x05\x12\x04\xd4\x01\x11\x17\n\r\n\x05\x04\n\x02\t\x01\x12\ - \x04\xd4\x01\x18#\n\r\n\x05\x04\n\x02\t\x03\x12\x04\xd4\x01&(\nQ\n\x04\ - \x04\n\x02\n\x12\x04\xd7\x01\x08+\x1aC\x20ReadonlyPaths\x20sets\x20the\ - \x20provided\x20paths\x20as\x20RO\x20inside\x20the\x20container.\n\n\r\n\ - \x05\x04\n\x02\n\x04\x12\x04\xd7\x01\x08\x10\n\r\n\x05\x04\n\x02\n\x05\ - \x12\x04\xd7\x01\x11\x17\n\r\n\x05\x04\n\x02\n\x01\x12\x04\xd7\x01\x18%\ - \n\r\n\x05\x04\n\x02\n\x03\x12\x04\xd7\x01(*\nY\n\x04\x04\n\x02\x0b\x12\ - \x04\xda\x01\x08\x1f\x1aK\x20MountLabel\x20specifies\x20the\x20selinux\ - \x20context\x20for\x20the\x20mounts\x20in\x20the\x20container.\n\n\x0f\n\ - \x05\x04\n\x02\x0b\x04\x12\x06\xda\x01\x08\xd7\x01+\n\r\n\x05\x04\n\x02\ - \x0b\x05\x12\x04\xda\x01\x08\x0e\n\r\n\x05\x04\n\x02\x0b\x01\x12\x04\xda\ - \x01\x0f\x19\n\r\n\x05\x04\n\x02\x0b\x03\x12\x04\xda\x01\x1c\x1e\n\x9d\ - \x01\n\x04\x04\n\x02\x0c\x12\x04\xde\x01\x08$\x1a\x8e\x01\x20IntelRdt\ - \x20contains\x20Intel\x20Resource\x20Director\x20Technology\x20(RDT)\x20\ - information\n\x20for\x20handling\x20resource\x20constraints\x20(e.g.,\ - \x20L3\x20cache)\x20for\x20the\x20container\n\n\x0f\n\x05\x04\n\x02\x0c\ - \x04\x12\x06\xde\x01\x08\xda\x01\x1f\n\r\n\x05\x04\n\x02\x0c\x06\x12\x04\ - \xde\x01\x08\x15\n\r\n\x05\x04\n\x02\x0c\x01\x12\x04\xde\x01\x16\x1e\n\r\ - \n\x05\x04\n\x02\x0c\x03\x12\x04\xde\x01!#\n\x0c\n\x02\x04\x0b\x12\x06\ - \xe1\x01\0\xe4\x01\x01\n\x0b\n\x03\x04\x0b\x01\x12\x04\xe1\x01\x08\x0f\n\ - )\n\x04\x04\x0b\x02\0\x12\x04\xe3\x01\x08\x19\x1a\x1b\x20Dummy\x20string\ - ,\x20never\x20used.\n\n\x0f\n\x05\x04\x0b\x02\0\x04\x12\x06\xe3\x01\x08\ - \xe1\x01\x11\n\r\n\x05\x04\x0b\x02\0\x05\x12\x04\xe3\x01\x08\x0e\n\r\n\ - \x05\x04\x0b\x02\0\x01\x12\x04\xe3\x01\x0f\x14\n\r\n\x05\x04\x0b\x02\0\ - \x03\x12\x04\xe3\x01\x17\x18\n\x0c\n\x02\x04\x0c\x12\x06\xe6\x01\0\xe9\ - \x01\x01\n\x0b\n\x03\x04\x0c\x01\x12\x04\xe6\x01\x08\x0f\n)\n\x04\x04\ - \x0c\x02\0\x12\x04\xe8\x01\x08\x19\x1a\x1b\x20Dummy\x20string,\x20never\ - \x20used.\n\n\x0f\n\x05\x04\x0c\x02\0\x04\x12\x06\xe8\x01\x08\xe6\x01\ - \x11\n\r\n\x05\x04\x0c\x02\0\x05\x12\x04\xe8\x01\x08\x0e\n\r\n\x05\x04\ - \x0c\x02\0\x01\x12\x04\xe8\x01\x0f\x14\n\r\n\x05\x04\x0c\x02\0\x03\x12\ - \x04\xe8\x01\x17\x18\n\x0c\n\x02\x04\r\x12\x06\xeb\x01\0\xf4\x01\x01\n\ - \x0b\n\x03\x04\r\x01\x12\x04\xeb\x01\x08\x16\nX\n\x04\x04\r\x02\0\x12\ - \x04\xed\x01\x08\x1a\x1aJ\x20HostID\x20is\x20the\x20starting\x20UID/GID\ - \x20on\x20the\x20host\x20to\x20be\x20mapped\x20to\x20'ContainerID'\n\n\ - \x0f\n\x05\x04\r\x02\0\x04\x12\x06\xed\x01\x08\xeb\x01\x18\n\r\n\x05\x04\ - \r\x02\0\x05\x12\x04\xed\x01\x08\x0e\n\r\n\x05\x04\r\x02\0\x01\x12\x04\ - \xed\x01\x0f\x15\n\r\n\x05\x04\r\x02\0\x03\x12\x04\xed\x01\x18\x19\nD\n\ - \x04\x04\r\x02\x01\x12\x04\xf0\x01\x08\x1f\x1a6\x20ContainerID\x20is\x20\ - the\x20starting\x20UID/GID\x20in\x20the\x20container\n\n\x0f\n\x05\x04\r\ - \x02\x01\x04\x12\x06\xf0\x01\x08\xed\x01\x1a\n\r\n\x05\x04\r\x02\x01\x05\ - \x12\x04\xf0\x01\x08\x0e\n\r\n\x05\x04\r\x02\x01\x01\x12\x04\xf0\x01\x0f\ - \x1a\n\r\n\x05\x04\r\x02\x01\x03\x12\x04\xf0\x01\x1d\x1e\n6\n\x04\x04\r\ - \x02\x02\x12\x04\xf3\x01\x08\x18\x1a(\x20Size\x20is\x20the\x20number\x20\ - of\x20IDs\x20to\x20be\x20mapped\n\n\x0f\n\x05\x04\r\x02\x02\x04\x12\x06\ - \xf3\x01\x08\xf0\x01\x1f\n\r\n\x05\x04\r\x02\x02\x05\x12\x04\xf3\x01\x08\ - \x0e\n\r\n\x05\x04\r\x02\x02\x01\x12\x04\xf3\x01\x0f\x13\n\r\n\x05\x04\r\ - \x02\x02\x03\x12\x04\xf3\x01\x16\x17\n\x0c\n\x02\x04\x0e\x12\x06\xf6\x01\ - \0\xfd\x01\x01\n\x0b\n\x03\x04\x0e\x01\x12\x04\xf6\x01\x08\x16\n-\n\x04\ - \x04\x0e\x02\0\x12\x04\xf8\x01\x08\x18\x1a\x1f\x20Type\x20is\x20the\x20t\ - ype\x20of\x20namespace\n\n\x0f\n\x05\x04\x0e\x02\0\x04\x12\x06\xf8\x01\ - \x08\xf6\x01\x18\n\r\n\x05\x04\x0e\x02\0\x05\x12\x04\xf8\x01\x08\x0e\n\r\ - \n\x05\x04\x0e\x02\0\x01\x12\x04\xf8\x01\x0f\x13\n\r\n\x05\x04\x0e\x02\0\ - \x03\x12\x04\xf8\x01\x16\x17\nu\n\x04\x04\x0e\x02\x01\x12\x04\xfc\x01\ - \x08\x18\x1ag\x20Path\x20is\x20a\x20path\x20to\x20an\x20existing\x20name\ - space\x20persisted\x20on\x20disk\x20that\x20can\x20be\x20joined\n\x20and\ - \x20is\x20of\x20the\x20same\x20type\n\n\x0f\n\x05\x04\x0e\x02\x01\x04\ - \x12\x06\xfc\x01\x08\xf8\x01\x18\n\r\n\x05\x04\x0e\x02\x01\x05\x12\x04\ - \xfc\x01\x08\x0e\n\r\n\x05\x04\x0e\x02\x01\x01\x12\x04\xfc\x01\x0f\x13\n\ - \r\n\x05\x04\x0e\x02\x01\x03\x12\x04\xfc\x01\x16\x17\n\x0c\n\x02\x04\x0f\ - \x12\x06\xff\x01\0\x94\x02\x01\n\x0b\n\x03\x04\x0f\x01\x12\x04\xff\x01\ - \x08\x13\n#\n\x04\x04\x0f\x02\0\x12\x04\x81\x02\x08\x18\x1a\x15\x20Path\ - \x20to\x20the\x20device.\n\n\x0f\n\x05\x04\x0f\x02\0\x04\x12\x06\x81\x02\ - \x08\xff\x01\x15\n\r\n\x05\x04\x0f\x02\0\x05\x12\x04\x81\x02\x08\x0e\n\r\ - \n\x05\x04\x0f\x02\0\x01\x12\x04\x81\x02\x0f\x13\n\r\n\x05\x04\x0f\x02\0\ - \x03\x12\x04\x81\x02\x16\x17\n.\n\x04\x04\x0f\x02\x01\x12\x04\x84\x02\ - \x08\x18\x1a\x20\x20Device\x20type,\x20block,\x20char,\x20etc.\n\n\x0f\n\ - \x05\x04\x0f\x02\x01\x04\x12\x06\x84\x02\x08\x81\x02\x18\n\r\n\x05\x04\ - \x0f\x02\x01\x05\x12\x04\x84\x02\x08\x0e\n\r\n\x05\x04\x0f\x02\x01\x01\ - \x12\x04\x84\x02\x0f\x13\n\r\n\x05\x04\x0f\x02\x01\x03\x12\x04\x84\x02\ - \x16\x17\n3\n\x04\x04\x0f\x02\x02\x12\x04\x87\x02\x08\x18\x1a%\x20Major\ - \x20is\x20the\x20device's\x20major\x20number.\n\n\x0f\n\x05\x04\x0f\x02\ - \x02\x04\x12\x06\x87\x02\x08\x84\x02\x18\n\r\n\x05\x04\x0f\x02\x02\x05\ - \x12\x04\x87\x02\x08\r\n\r\n\x05\x04\x0f\x02\x02\x01\x12\x04\x87\x02\x0e\ - \x13\n\r\n\x05\x04\x0f\x02\x02\x03\x12\x04\x87\x02\x16\x17\n3\n\x04\x04\ - \x0f\x02\x03\x12\x04\x8a\x02\x08\x18\x1a%\x20Minor\x20is\x20the\x20devic\ - e's\x20minor\x20number.\n\n\x0f\n\x05\x04\x0f\x02\x03\x04\x12\x06\x8a\ - \x02\x08\x87\x02\x18\n\r\n\x05\x04\x0f\x02\x03\x05\x12\x04\x8a\x02\x08\r\ - \n\r\n\x05\x04\x0f\x02\x03\x01\x12\x04\x8a\x02\x0e\x13\n\r\n\x05\x04\x0f\ - \x02\x03\x03\x12\x04\x8a\x02\x16\x17\n8\n\x04\x04\x0f\x02\x04\x12\x04\ - \x8d\x02\x08\x1c\x1a*\x20FileMode\x20permission\x20bits\x20for\x20the\ - \x20device.\n\n\x0f\n\x05\x04\x0f\x02\x04\x04\x12\x06\x8d\x02\x08\x8a\ - \x02\x18\n\r\n\x05\x04\x0f\x02\x04\x05\x12\x04\x8d\x02\x08\x0e\n\r\n\x05\ - \x04\x0f\x02\x04\x01\x12\x04\x8d\x02\x0f\x17\n\r\n\x05\x04\x0f\x02\x04\ - \x03\x12\x04\x8d\x02\x1a\x1b\n\"\n\x04\x04\x0f\x02\x05\x12\x04\x90\x02\ - \x08\x17\x1a\x14\x20UID\x20of\x20the\x20device.\n\n\x0f\n\x05\x04\x0f\ - \x02\x05\x04\x12\x06\x90\x02\x08\x8d\x02\x1c\n\r\n\x05\x04\x0f\x02\x05\ - \x05\x12\x04\x90\x02\x08\x0e\n\r\n\x05\x04\x0f\x02\x05\x01\x12\x04\x90\ - \x02\x0f\x12\n\r\n\x05\x04\x0f\x02\x05\x03\x12\x04\x90\x02\x15\x16\n\"\n\ - \x04\x04\x0f\x02\x06\x12\x04\x93\x02\x08\x17\x1a\x14\x20Gid\x20of\x20the\ - \x20device.\n\n\x0f\n\x05\x04\x0f\x02\x06\x04\x12\x06\x93\x02\x08\x90\ - \x02\x17\n\r\n\x05\x04\x0f\x02\x06\x05\x12\x04\x93\x02\x08\x0e\n\r\n\x05\ - \x04\x0f\x02\x06\x01\x12\x04\x93\x02\x0f\x12\n\r\n\x05\x04\x0f\x02\x06\ - \x03\x12\x04\x93\x02\x15\x16\n\x0c\n\x02\x04\x10\x12\x06\x96\x02\0\xab\ - \x02\x01\n\x0b\n\x03\x04\x10\x01\x12\x04\x96\x02\x08\x16\n8\n\x04\x04\ - \x10\x02\0\x12\x04\x98\x02\x08O\x1a*\x20Devices\x20configures\x20the\x20\ - device\x20whitelist.\n\n\r\n\x05\x04\x10\x02\0\x04\x12\x04\x98\x02\x08\ - \x10\n\r\n\x05\x04\x10\x02\0\x06\x12\x04\x98\x02\x11\"\n\r\n\x05\x04\x10\ - \x02\0\x01\x12\x04\x98\x02#*\n\r\n\x05\x04\x10\x02\0\x03\x12\x04\x98\x02\ - -.\n\r\n\x05\x04\x10\x02\0\x08\x12\x04\x98\x020N\n\x10\n\x08\x04\x10\x02\ - \0\x08\xe9\xfb\x03\x12\x04\x98\x021M\n0\n\x04\x04\x10\x02\x01\x12\x04\ - \x9b\x02\x08\x1f\x1a\"\x20Memory\x20restriction\x20configuration\n\n\x0f\ - \n\x05\x04\x10\x02\x01\x04\x12\x06\x9b\x02\x08\x98\x02O\n\r\n\x05\x04\ - \x10\x02\x01\x06\x12\x04\x9b\x02\x08\x13\n\r\n\x05\x04\x10\x02\x01\x01\ - \x12\x04\x9b\x02\x14\x1a\n\r\n\x05\x04\x10\x02\x01\x03\x12\x04\x9b\x02\ - \x1d\x1e\n6\n\x04\x04\x10\x02\x02\x12\x04\x9e\x02\x08\x19\x1a(\x20CPU\ - \x20resource\x20restriction\x20configuration\n\n\x0f\n\x05\x04\x10\x02\ - \x02\x04\x12\x06\x9e\x02\x08\x9b\x02\x1f\n\r\n\x05\x04\x10\x02\x02\x06\ - \x12\x04\x9e\x02\x08\x10\n\r\n\x05\x04\x10\x02\x02\x01\x12\x04\x9e\x02\ - \x11\x14\n\r\n\x05\x04\x10\x02\x02\x03\x12\x04\x9e\x02\x17\x18\n8\n\x04\ - \x04\x10\x02\x03\x12\x04\xa1\x02\x08\x1b\x1a*\x20Task\x20resource\x20res\ - triction\x20configuration.\n\n\x0f\n\x05\x04\x10\x02\x03\x04\x12\x06\xa1\ - \x02\x08\x9e\x02\x19\n\r\n\x05\x04\x10\x02\x03\x06\x12\x04\xa1\x02\x08\ - \x11\n\r\n\x05\x04\x10\x02\x03\x01\x12\x04\xa1\x02\x12\x16\n\r\n\x05\x04\ - \x10\x02\x03\x03\x12\x04\xa1\x02\x19\x1a\n1\n\x04\x04\x10\x02\x04\x12\ - \x04\xa4\x02\x08!\x1a#\x20BlockIO\x20restriction\x20configuration\n\n\ - \x0f\n\x05\x04\x10\x02\x04\x04\x12\x06\xa4\x02\x08\xa1\x02\x1b\n\r\n\x05\ - \x04\x10\x02\x04\x06\x12\x04\xa4\x02\x08\x14\n\r\n\x05\x04\x10\x02\x04\ - \x01\x12\x04\xa4\x02\x15\x1c\n\r\n\x05\x04\x10\x02\x04\x03\x12\x04\xa4\ - \x02\x1f\x20\n(\n\x04\x04\x10\x02\x05\x12\x04\xa7\x02\x08W\x1a\x1a\x20Hu\ - getlb\x20limit\x20(in\x20bytes)\n\n\r\n\x05\x04\x10\x02\x05\x04\x12\x04\ - \xa7\x02\x08\x10\n\r\n\x05\x04\x10\x02\x05\x06\x12\x04\xa7\x02\x11#\n\r\ - \n\x05\x04\x10\x02\x05\x01\x12\x04\xa7\x02$2\n\r\n\x05\x04\x10\x02\x05\ - \x03\x12\x04\xa7\x0256\n\r\n\x05\x04\x10\x02\x05\x08\x12\x04\xa7\x028V\n\ - \x10\n\x08\x04\x10\x02\x05\x08\xe9\xfb\x03\x12\x04\xa7\x029U\n1\n\x04\ - \x04\x10\x02\x06\x12\x04\xaa\x02\x08!\x1a#\x20Network\x20restriction\x20\ - configuration\n\n\x0f\n\x05\x04\x10\x02\x06\x04\x12\x06\xaa\x02\x08\xa7\ - \x02W\n\r\n\x05\x04\x10\x02\x06\x06\x12\x04\xaa\x02\x08\x14\n\r\n\x05\ - \x04\x10\x02\x06\x01\x12\x04\xaa\x02\x15\x1c\n\r\n\x05\x04\x10\x02\x06\ - \x03\x12\x04\xaa\x02\x1f\x20\n\x0c\n\x02\x04\x11\x12\x06\xad\x02\0\xc2\ - \x02\x01\n\x0b\n\x03\x04\x11\x01\x12\x04\xad\x02\x08\x13\n(\n\x04\x04\ - \x11\x02\0\x12\x04\xaf\x02\x08\x18\x1a\x1a\x20Memory\x20limit\x20(in\x20\ - bytes).\n\n\x0f\n\x05\x04\x11\x02\0\x04\x12\x06\xaf\x02\x08\xad\x02\x15\ - \n\r\n\x05\x04\x11\x02\0\x05\x12\x04\xaf\x02\x08\r\n\r\n\x05\x04\x11\x02\ - \0\x01\x12\x04\xaf\x02\x0e\x13\n\r\n\x05\x04\x11\x02\0\x03\x12\x04\xaf\ - \x02\x16\x17\n<\n\x04\x04\x11\x02\x01\x12\x04\xb2\x02\x08\x1e\x1a.\x20Me\ - mory\x20reservation\x20or\x20soft_limit\x20(in\x20bytes).\n\n\x0f\n\x05\ - \x04\x11\x02\x01\x04\x12\x06\xb2\x02\x08\xaf\x02\x18\n\r\n\x05\x04\x11\ - \x02\x01\x05\x12\x04\xb2\x02\x08\r\n\r\n\x05\x04\x11\x02\x01\x01\x12\x04\ - \xb2\x02\x0e\x19\n\r\n\x05\x04\x11\x02\x01\x03\x12\x04\xb2\x02\x1c\x1d\n\ - 3\n\x04\x04\x11\x02\x02\x12\x04\xb5\x02\x08\x17\x1a%\x20Total\x20memory\ - \x20limit\x20(memory\x20+\x20swap).\n\n\x0f\n\x05\x04\x11\x02\x02\x04\ - \x12\x06\xb5\x02\x08\xb2\x02\x1e\n\r\n\x05\x04\x11\x02\x02\x05\x12\x04\ - \xb5\x02\x08\r\n\r\n\x05\x04\x11\x02\x02\x01\x12\x04\xb5\x02\x0e\x12\n\r\ - \n\x05\x04\x11\x02\x02\x03\x12\x04\xb5\x02\x15\x16\n/\n\x04\x04\x11\x02\ - \x03\x12\x04\xb8\x02\x08\x19\x1a!\x20Kernel\x20memory\x20limit\x20(in\ - \x20bytes).\n\n\x0f\n\x05\x04\x11\x02\x03\x04\x12\x06\xb8\x02\x08\xb5\ - \x02\x17\n\r\n\x05\x04\x11\x02\x03\x05\x12\x04\xb8\x02\x08\r\n\r\n\x05\ - \x04\x11\x02\x03\x01\x12\x04\xb8\x02\x0e\x14\n\r\n\x05\x04\x11\x02\x03\ - \x03\x12\x04\xb8\x02\x17\x18\n6\n\x04\x04\x11\x02\x04\x12\x04\xbb\x02\ - \x08\x1c\x1a(\x20Kernel\x20memory\x20limit\x20for\x20tcp\x20(in\x20bytes\ - )\n\n\x0f\n\x05\x04\x11\x02\x04\x04\x12\x06\xbb\x02\x08\xb8\x02\x19\n\r\ - \n\x05\x04\x11\x02\x04\x05\x12\x04\xbb\x02\x08\r\n\r\n\x05\x04\x11\x02\ - \x04\x01\x12\x04\xbb\x02\x0e\x17\n\r\n\x05\x04\x11\x02\x04\x03\x12\x04\ - \xbb\x02\x1a\x1b\nA\n\x04\x04\x11\x02\x05\x12\x04\xbe\x02\x08\x1e\x1a3\ - \x20How\x20aggressive\x20the\x20kernel\x20will\x20swap\x20memory\x20page\ - s.\n\n\x0f\n\x05\x04\x11\x02\x05\x04\x12\x06\xbe\x02\x08\xbb\x02\x1c\n\r\ - \n\x05\x04\x11\x02\x05\x05\x12\x04\xbe\x02\x08\x0e\n\r\n\x05\x04\x11\x02\ - \x05\x01\x12\x04\xbe\x02\x0f\x19\n\r\n\x05\x04\x11\x02\x05\x03\x12\x04\ - \xbe\x02\x1c\x1d\nU\n\x04\x04\x11\x02\x06\x12\x04\xc1\x02\x08\"\x1aG\x20\ - DisableOOMKiller\x20disables\x20the\x20OOM\x20killer\x20for\x20out\x20of\ - \x20memory\x20conditions\n\n\x0f\n\x05\x04\x11\x02\x06\x04\x12\x06\xc1\ - \x02\x08\xbe\x02\x1e\n\r\n\x05\x04\x11\x02\x06\x05\x12\x04\xc1\x02\x08\ - \x0c\n\r\n\x05\x04\x11\x02\x06\x01\x12\x04\xc1\x02\r\x1d\n\r\n\x05\x04\ - \x11\x02\x06\x03\x12\x04\xc1\x02\x20!\n\x0c\n\x02\x04\x12\x12\x06\xc4\ - \x02\0\xd9\x02\x01\n\x0b\n\x03\x04\x12\x01\x12\x04\xc4\x02\x08\x10\nW\n\ - \x04\x04\x12\x02\0\x12\x04\xc6\x02\x08\x1a\x1aI\x20CPU\x20shares\x20(rel\ - ative\x20weight\x20(ratio)\x20vs.\x20other\x20cgroups\x20with\x20cpu\x20\ - shares).\n\n\x0f\n\x05\x04\x12\x02\0\x04\x12\x06\xc6\x02\x08\xc4\x02\x12\ - \n\r\n\x05\x04\x12\x02\0\x05\x12\x04\xc6\x02\x08\x0e\n\r\n\x05\x04\x12\ - \x02\0\x01\x12\x04\xc6\x02\x0f\x15\n\r\n\x05\x04\x12\x02\0\x03\x12\x04\ - \xc6\x02\x18\x19\nQ\n\x04\x04\x12\x02\x01\x12\x04\xc9\x02\x08\x18\x1aC\ - \x20CPU\x20hardcap\x20limit\x20(in\x20usecs).\x20Allowed\x20cpu\x20time\ - \x20in\x20a\x20given\x20period.\n\n\x0f\n\x05\x04\x12\x02\x01\x04\x12\ - \x06\xc9\x02\x08\xc6\x02\x1a\n\r\n\x05\x04\x12\x02\x01\x05\x12\x04\xc9\ - \x02\x08\r\n\r\n\x05\x04\x12\x02\x01\x01\x12\x04\xc9\x02\x0e\x13\n\r\n\ - \x05\x04\x12\x02\x01\x03\x12\x04\xc9\x02\x16\x17\nA\n\x04\x04\x12\x02\ - \x02\x12\x04\xcc\x02\x08\x1a\x1a3\x20CPU\x20period\x20to\x20be\x20used\ - \x20for\x20hardcapping\x20(in\x20usecs).\n\n\x0f\n\x05\x04\x12\x02\x02\ - \x04\x12\x06\xcc\x02\x08\xc9\x02\x18\n\r\n\x05\x04\x12\x02\x02\x05\x12\ - \x04\xcc\x02\x08\x0e\n\r\n\x05\x04\x12\x02\x02\x01\x12\x04\xcc\x02\x0f\ - \x15\n\r\n\x05\x04\x12\x02\x02\x03\x12\x04\xcc\x02\x18\x19\nE\n\x04\x04\ - \x12\x02\x03\x12\x04\xcf\x02\x08\"\x1a7\x20How\x20much\x20time\x20realti\ - me\x20scheduling\x20may\x20use\x20(in\x20usecs).\n\n\x0f\n\x05\x04\x12\ - \x02\x03\x04\x12\x06\xcf\x02\x08\xcc\x02\x1a\n\r\n\x05\x04\x12\x02\x03\ - \x05\x12\x04\xcf\x02\x08\r\n\r\n\x05\x04\x12\x02\x03\x01\x12\x04\xcf\x02\ - \x0e\x1d\n\r\n\x05\x04\x12\x02\x03\x03\x12\x04\xcf\x02\x20!\nI\n\x04\x04\ - \x12\x02\x04\x12\x04\xd2\x02\x08\"\x1a;\x20CPU\x20period\x20to\x20be\x20\ - used\x20for\x20realtime\x20scheduling\x20(in\x20usecs).\n\n\x0f\n\x05\ - \x04\x12\x02\x04\x04\x12\x06\xd2\x02\x08\xcf\x02\"\n\r\n\x05\x04\x12\x02\ - \x04\x05\x12\x04\xd2\x02\x08\x0e\n\r\n\x05\x04\x12\x02\x04\x01\x12\x04\ - \xd2\x02\x0f\x1d\n\r\n\x05\x04\x12\x02\x04\x03\x12\x04\xd2\x02\x20!\nS\n\ - \x04\x04\x12\x02\x05\x12\x04\xd5\x02\x08\x18\x1aE\x20CPUs\x20to\x20use\ - \x20within\x20the\x20cpuset.\x20Default\x20is\x20to\x20use\x20any\x20CPU\ - \x20available.\n\n\x0f\n\x05\x04\x12\x02\x05\x04\x12\x06\xd5\x02\x08\xd2\ - \x02\"\n\r\n\x05\x04\x12\x02\x05\x05\x12\x04\xd5\x02\x08\x0e\n\r\n\x05\ - \x04\x12\x02\x05\x01\x12\x04\xd5\x02\x0f\x13\n\r\n\x05\x04\x12\x02\x05\ - \x03\x12\x04\xd5\x02\x16\x17\n`\n\x04\x04\x12\x02\x06\x12\x04\xd8\x02\ - \x08\x18\x1aR\x20List\x20of\x20memory\x20nodes\x20in\x20the\x20cpuset.\ - \x20Default\x20is\x20to\x20use\x20any\x20available\x20memory\x20node.\n\ - \n\x0f\n\x05\x04\x12\x02\x06\x04\x12\x06\xd8\x02\x08\xd5\x02\x18\n\r\n\ - \x05\x04\x12\x02\x06\x05\x12\x04\xd8\x02\x08\x0e\n\r\n\x05\x04\x12\x02\ - \x06\x01\x12\x04\xd8\x02\x0f\x13\n\r\n\x05\x04\x12\x02\x06\x03\x12\x04\ - \xd8\x02\x16\x17\n\x0c\n\x02\x04\x13\x12\x06\xdb\x02\0\xe7\x02\x01\n\x0b\ - \n\x03\x04\x13\x01\x12\x04\xdb\x02\x08\x19\n3\n\x04\x04\x13\x02\0\x12\ - \x04\xdd\x02\x08\x18\x1a%\x20Major\x20is\x20the\x20device's\x20major\x20\ - number.\n\n\x0f\n\x05\x04\x13\x02\0\x04\x12\x06\xdd\x02\x08\xdb\x02\x1b\ - \n\r\n\x05\x04\x13\x02\0\x05\x12\x04\xdd\x02\x08\r\n\r\n\x05\x04\x13\x02\ - \0\x01\x12\x04\xdd\x02\x0e\x13\n\r\n\x05\x04\x13\x02\0\x03\x12\x04\xdd\ - \x02\x16\x17\n3\n\x04\x04\x13\x02\x01\x12\x04\xe0\x02\x08\x18\x1a%\x20Mi\ - nor\x20is\x20the\x20device's\x20minor\x20number.\n\n\x0f\n\x05\x04\x13\ - \x02\x01\x04\x12\x06\xe0\x02\x08\xdd\x02\x18\n\r\n\x05\x04\x13\x02\x01\ - \x05\x12\x04\xe0\x02\x08\r\n\r\n\x05\x04\x13\x02\x01\x01\x12\x04\xe0\x02\ - \x0e\x13\n\r\n\x05\x04\x13\x02\x01\x03\x12\x04\xe0\x02\x16\x17\n<\n\x04\ - \x04\x13\x02\x02\x12\x04\xe3\x02\x08\x1a\x1a.\x20Weight\x20is\x20the\x20\ - bandwidth\x20rate\x20for\x20the\x20device.\n\n\x0f\n\x05\x04\x13\x02\x02\ - \x04\x12\x06\xe3\x02\x08\xe0\x02\x18\n\r\n\x05\x04\x13\x02\x02\x05\x12\ - \x04\xe3\x02\x08\x0e\n\r\n\x05\x04\x13\x02\x02\x01\x12\x04\xe3\x02\x0f\ - \x15\n\r\n\x05\x04\x13\x02\x02\x03\x12\x04\xe3\x02\x18\x19\n\x83\x01\n\ - \x04\x04\x13\x02\x03\x12\x04\xe6\x02\x08\x1e\x1au\x20LeafWeight\x20is\ - \x20the\x20bandwidth\x20rate\x20for\x20the\x20device\x20while\x20competi\ - ng\x20with\x20the\x20cgroup's\x20child\x20cgroups,\x20CFQ\x20scheduler\ - \x20only\n\n\x0f\n\x05\x04\x13\x02\x03\x04\x12\x06\xe6\x02\x08\xe3\x02\ - \x1a\n\r\n\x05\x04\x13\x02\x03\x05\x12\x04\xe6\x02\x08\x0e\n\r\n\x05\x04\ - \x13\x02\x03\x01\x12\x04\xe6\x02\x0f\x19\n\r\n\x05\x04\x13\x02\x03\x03\ - \x12\x04\xe6\x02\x1c\x1d\n\x0c\n\x02\x04\x14\x12\x06\xe9\x02\0\xf2\x02\ - \x01\n\x0b\n\x03\x04\x14\x01\x12\x04\xe9\x02\x08\x1b\n3\n\x04\x04\x14\ - \x02\0\x12\x04\xeb\x02\x08\x18\x1a%\x20Major\x20is\x20the\x20device's\ - \x20major\x20number.\n\n\x0f\n\x05\x04\x14\x02\0\x04\x12\x06\xeb\x02\x08\ - \xe9\x02\x1d\n\r\n\x05\x04\x14\x02\0\x05\x12\x04\xeb\x02\x08\r\n\r\n\x05\ - \x04\x14\x02\0\x01\x12\x04\xeb\x02\x0e\x13\n\r\n\x05\x04\x14\x02\0\x03\ - \x12\x04\xeb\x02\x16\x17\n3\n\x04\x04\x14\x02\x01\x12\x04\xee\x02\x08\ - \x18\x1a%\x20Minor\x20is\x20the\x20device's\x20minor\x20number.\n\n\x0f\ - \n\x05\x04\x14\x02\x01\x04\x12\x06\xee\x02\x08\xeb\x02\x18\n\r\n\x05\x04\ - \x14\x02\x01\x05\x12\x04\xee\x02\x08\r\n\r\n\x05\x04\x14\x02\x01\x01\x12\ - \x04\xee\x02\x0e\x13\n\r\n\x05\x04\x14\x02\x01\x03\x12\x04\xee\x02\x16\ - \x17\n?\n\x04\x04\x14\x02\x02\x12\x04\xf1\x02\x08\x18\x1a1\x20Rate\x20is\ - \x20the\x20IO\x20rate\x20limit\x20per\x20cgroup\x20per\x20device\n\n\x0f\ - \n\x05\x04\x14\x02\x02\x04\x12\x06\xf1\x02\x08\xee\x02\x18\n\r\n\x05\x04\ - \x14\x02\x02\x05\x12\x04\xf1\x02\x08\x0e\n\r\n\x05\x04\x14\x02\x02\x01\ - \x12\x04\xf1\x02\x0f\x13\n\r\n\x05\x04\x14\x02\x02\x03\x12\x04\xf1\x02\ - \x16\x17\n\x0c\n\x02\x04\x15\x12\x06\xf4\x02\0\x89\x03\x01\n\x0b\n\x03\ - \x04\x15\x01\x12\x04\xf4\x02\x08\x14\n+\n\x04\x04\x15\x02\0\x12\x04\xf6\ - \x02\x08\x1a\x1a\x1d\x20Specifies\x20per\x20cgroup\x20weight\n\n\x0f\n\ - \x05\x04\x15\x02\0\x04\x12\x06\xf6\x02\x08\xf4\x02\x16\n\r\n\x05\x04\x15\ - \x02\0\x05\x12\x04\xf6\x02\x08\x0e\n\r\n\x05\x04\x15\x02\0\x01\x12\x04\ - \xf6\x02\x0f\x15\n\r\n\x05\x04\x15\x02\0\x03\x12\x04\xf6\x02\x18\x19\n\ - \x7f\n\x04\x04\x15\x02\x01\x12\x04\xf9\x02\x08\x1e\x1aq\x20Specifies\x20\ - tasks'\x20weight\x20in\x20the\x20given\x20cgroup\x20while\x20competing\ - \x20with\x20the\x20cgroup's\x20child\x20cgroups,\x20CFQ\x20scheduler\x20\ - only\n\n\x0f\n\x05\x04\x15\x02\x01\x04\x12\x06\xf9\x02\x08\xf6\x02\x1a\n\ - \r\n\x05\x04\x15\x02\x01\x05\x12\x04\xf9\x02\x08\x0e\n\r\n\x05\x04\x15\ - \x02\x01\x01\x12\x04\xf9\x02\x0f\x19\n\r\n\x05\x04\x15\x02\x01\x03\x12\ - \x04\xf9\x02\x1c\x1d\nF\n\x04\x04\x15\x02\x02\x12\x04\xfc\x02\x08T\x1a8\ - \x20Weight\x20per\x20cgroup\x20per\x20device,\x20can\x20override\x20Blki\ - oWeight\n\n\r\n\x05\x04\x15\x02\x02\x04\x12\x04\xfc\x02\x08\x10\n\r\n\ - \x05\x04\x15\x02\x02\x06\x12\x04\xfc\x02\x11\"\n\r\n\x05\x04\x15\x02\x02\ - \x01\x12\x04\xfc\x02#/\n\r\n\x05\x04\x15\x02\x02\x03\x12\x04\xfc\x0223\n\ - \r\n\x05\x04\x15\x02\x02\x08\x12\x04\xfc\x025S\n\x10\n\x08\x04\x15\x02\ - \x02\x08\xe9\xfb\x03\x12\x04\xfc\x026R\nJ\n\x04\x04\x15\x02\x03\x12\x04\ - \xff\x02\x08_\x1a<\x20IO\x20read\x20rate\x20limit\x20per\x20cgroup\x20pe\ - r\x20device,\x20bytes\x20per\x20second\n\n\r\n\x05\x04\x15\x02\x03\x04\ - \x12\x04\xff\x02\x08\x10\n\r\n\x05\x04\x15\x02\x03\x06\x12\x04\xff\x02\ - \x11$\n\r\n\x05\x04\x15\x02\x03\x01\x12\x04\xff\x02%:\n\r\n\x05\x04\x15\ - \x02\x03\x03\x12\x04\xff\x02=>\n\r\n\x05\x04\x15\x02\x03\x08\x12\x04\xff\ - \x02@^\n\x10\n\x08\x04\x15\x02\x03\x08\xe9\xfb\x03\x12\x04\xff\x02A]\nK\ - \n\x04\x04\x15\x02\x04\x12\x04\x82\x03\x08`\x1a=\x20IO\x20write\x20rate\ - \x20limit\x20per\x20cgroup\x20per\x20device,\x20bytes\x20per\x20second\n\ - \n\r\n\x05\x04\x15\x02\x04\x04\x12\x04\x82\x03\x08\x10\n\r\n\x05\x04\x15\ - \x02\x04\x06\x12\x04\x82\x03\x11$\n\r\n\x05\x04\x15\x02\x04\x01\x12\x04\ - \x82\x03%;\n\r\n\x05\x04\x15\x02\x04\x03\x12\x04\x82\x03>?\n\r\n\x05\x04\ - \x15\x02\x04\x08\x12\x04\x82\x03A_\n\x10\n\x08\x04\x15\x02\x04\x08\xe9\ - \xfb\x03\x12\x04\x82\x03B^\nG\n\x04\x04\x15\x02\x05\x12\x04\x85\x03\x08`\ - \x1a9\x20IO\x20read\x20rate\x20limit\x20per\x20cgroup\x20per\x20device,\ - \x20IO\x20per\x20second\n\n\r\n\x05\x04\x15\x02\x05\x04\x12\x04\x85\x03\ - \x08\x10\n\r\n\x05\x04\x15\x02\x05\x06\x12\x04\x85\x03\x11$\n\r\n\x05\ - \x04\x15\x02\x05\x01\x12\x04\x85\x03%;\n\r\n\x05\x04\x15\x02\x05\x03\x12\ - \x04\x85\x03>?\n\r\n\x05\x04\x15\x02\x05\x08\x12\x04\x85\x03A_\n\x10\n\ - \x08\x04\x15\x02\x05\x08\xe9\xfb\x03\x12\x04\x85\x03B^\nH\n\x04\x04\x15\ - \x02\x06\x12\x04\x88\x03\x08a\x1a:\x20IO\x20write\x20rate\x20limit\x20pe\ - r\x20cgroup\x20per\x20device,\x20IO\x20per\x20second\n\n\r\n\x05\x04\x15\ - \x02\x06\x04\x12\x04\x88\x03\x08\x10\n\r\n\x05\x04\x15\x02\x06\x06\x12\ - \x04\x88\x03\x11$\n\r\n\x05\x04\x15\x02\x06\x01\x12\x04\x88\x03%<\n\r\n\ - \x05\x04\x15\x02\x06\x03\x12\x04\x88\x03?@\n\r\n\x05\x04\x15\x02\x06\x08\ - \x12\x04\x88\x03B`\n\x10\n\x08\x04\x15\x02\x06\x08\xe9\xfb\x03\x12\x04\ - \x88\x03C_\n\x0c\n\x02\x04\x16\x12\x06\x8b\x03\0\x8e\x03\x01\n\x0b\n\x03\ - \x04\x16\x01\x12\x04\x8b\x03\x08\x11\n>\n\x04\x04\x16\x02\0\x12\x04\x8d\ - \x03\x08\x18\x1a0\x20Maximum\x20number\x20of\x20PIDs.\x20Default\x20is\ - \x20\"no\x20limit\".\n\n\x0f\n\x05\x04\x16\x02\0\x04\x12\x06\x8d\x03\x08\ - \x8b\x03\x13\n\r\n\x05\x04\x16\x02\0\x05\x12\x04\x8d\x03\x08\r\n\r\n\x05\ - \x04\x16\x02\0\x01\x12\x04\x8d\x03\x0e\x13\n\r\n\x05\x04\x16\x02\0\x03\ - \x12\x04\x8d\x03\x16\x17\n\x0c\n\x02\x04\x17\x12\x06\x90\x03\0\x9f\x03\ - \x01\n\x0b\n\x03\x04\x17\x01\x12\x04\x90\x03\x08\x19\n\x1d\n\x04\x04\x17\ - \x02\0\x12\x04\x92\x03\x08\x17\x1a\x0f\x20Allow\x20or\x20deny\n\n\x0f\n\ - \x05\x04\x17\x02\0\x04\x12\x06\x92\x03\x08\x90\x03\x1b\n\r\n\x05\x04\x17\ - \x02\0\x05\x12\x04\x92\x03\x08\x0c\n\r\n\x05\x04\x17\x02\0\x01\x12\x04\ - \x92\x03\r\x12\n\r\n\x05\x04\x17\x02\0\x03\x12\x04\x92\x03\x15\x16\n.\n\ - \x04\x04\x17\x02\x01\x12\x04\x95\x03\x08\x18\x1a\x20\x20Device\x20type,\ - \x20block,\x20char,\x20etc.\n\n\x0f\n\x05\x04\x17\x02\x01\x04\x12\x06\ - \x95\x03\x08\x92\x03\x17\n\r\n\x05\x04\x17\x02\x01\x05\x12\x04\x95\x03\ - \x08\x0e\n\r\n\x05\x04\x17\x02\x01\x01\x12\x04\x95\x03\x0f\x13\n\r\n\x05\ - \x04\x17\x02\x01\x03\x12\x04\x95\x03\x16\x17\n3\n\x04\x04\x17\x02\x02\ - \x12\x04\x98\x03\x08\x18\x1a%\x20Major\x20is\x20the\x20device's\x20major\ - \x20number.\n\n\x0f\n\x05\x04\x17\x02\x02\x04\x12\x06\x98\x03\x08\x95\ - \x03\x18\n\r\n\x05\x04\x17\x02\x02\x05\x12\x04\x98\x03\x08\r\n\r\n\x05\ - \x04\x17\x02\x02\x01\x12\x04\x98\x03\x0e\x13\n\r\n\x05\x04\x17\x02\x02\ - \x03\x12\x04\x98\x03\x16\x17\n3\n\x04\x04\x17\x02\x03\x12\x04\x9b\x03\ - \x08\x18\x1a%\x20Minor\x20is\x20the\x20device's\x20minor\x20number.\n\n\ - \x0f\n\x05\x04\x17\x02\x03\x04\x12\x06\x9b\x03\x08\x98\x03\x18\n\r\n\x05\ - \x04\x17\x02\x03\x05\x12\x04\x9b\x03\x08\r\n\r\n\x05\x04\x17\x02\x03\x01\ - \x12\x04\x9b\x03\x0e\x13\n\r\n\x05\x04\x17\x02\x03\x03\x12\x04\x9b\x03\ - \x16\x17\n6\n\x04\x04\x17\x02\x04\x12\x04\x9e\x03\x08\x1a\x1a(\x20Cgroup\ - \x20access\x20permissions\x20format,\x20rwm.\n\n\x0f\n\x05\x04\x17\x02\ - \x04\x04\x12\x06\x9e\x03\x08\x9b\x03\x18\n\r\n\x05\x04\x17\x02\x04\x05\ - \x12\x04\x9e\x03\x08\x0e\n\r\n\x05\x04\x17\x02\x04\x01\x12\x04\x9e\x03\ - \x0f\x15\n\r\n\x05\x04\x17\x02\x04\x03\x12\x04\x9e\x03\x18\x19\n\x0c\n\ - \x02\x04\x18\x12\x06\xa1\x03\0\xa7\x03\x01\n\x0b\n\x03\x04\x18\x01\x12\ - \x04\xa1\x03\x08\x14\nD\n\x04\x04\x18\x02\0\x12\x04\xa3\x03\x08\x1b\x1a6\ - \x20Set\x20class\x20identifier\x20for\x20container's\x20network\x20packe\ - ts\n\n\x0f\n\x05\x04\x18\x02\0\x04\x12\x06\xa3\x03\x08\xa1\x03\x16\n\r\n\ - \x05\x04\x18\x02\0\x05\x12\x04\xa3\x03\x08\x0e\n\r\n\x05\x04\x18\x02\0\ - \x01\x12\x04\xa3\x03\x0f\x16\n\r\n\x05\x04\x18\x02\0\x03\x12\x04\xa3\x03\ - \x19\x1a\n=\n\x04\x04\x18\x02\x01\x12\x04\xa6\x03\x08W\x1a/\x20Set\x20pr\ - iority\x20of\x20network\x20traffic\x20for\x20container\n\n\r\n\x05\x04\ - \x18\x02\x01\x04\x12\x04\xa6\x03\x08\x10\n\r\n\x05\x04\x18\x02\x01\x06\ - \x12\x04\xa6\x03\x11'\n\r\n\x05\x04\x18\x02\x01\x01\x12\x04\xa6\x03(2\n\ - \r\n\x05\x04\x18\x02\x01\x03\x12\x04\xa6\x0356\n\r\n\x05\x04\x18\x02\x01\ - \x08\x12\x04\xa6\x038V\n\x10\n\x08\x04\x18\x02\x01\x08\xe9\xfb\x03\x12\ - \x04\xa6\x039U\n\x0c\n\x02\x04\x19\x12\x06\xa9\x03\0\xaf\x03\x01\n\x0b\n\ - \x03\x04\x19\x01\x12\x04\xa9\x03\x08\x1a\n-\n\x04\x04\x19\x02\0\x12\x04\ - \xab\x03\x08\x1c\x1a\x1f\x20Pagesize\x20is\x20the\x20hugepage\x20size\n\ - \n\x0f\n\x05\x04\x19\x02\0\x04\x12\x06\xab\x03\x08\xa9\x03\x1c\n\r\n\x05\ - \x04\x19\x02\0\x05\x12\x04\xab\x03\x08\x0e\n\r\n\x05\x04\x19\x02\0\x01\ - \x12\x04\xab\x03\x0f\x17\n\r\n\x05\x04\x19\x02\0\x03\x12\x04\xab\x03\x1a\ - \x1b\nB\n\x04\x04\x19\x02\x01\x12\x04\xae\x03\x08\x19\x1a4\x20Limit\x20i\ - s\x20the\x20limit\x20of\x20\"hugepagesize\"\x20hugetlb\x20usage\n\n\x0f\ - \n\x05\x04\x19\x02\x01\x04\x12\x06\xae\x03\x08\xab\x03\x1c\n\r\n\x05\x04\ - \x19\x02\x01\x05\x12\x04\xae\x03\x08\x0e\n\r\n\x05\x04\x19\x02\x01\x01\ - \x12\x04\xae\x03\x0f\x14\n\r\n\x05\x04\x19\x02\x01\x03\x12\x04\xae\x03\ - \x17\x18\n\x0c\n\x02\x04\x1a\x12\x06\xb1\x03\0\xb7\x03\x01\n\x0b\n\x03\ - \x04\x1a\x01\x12\x04\xb1\x03\x08\x1e\n9\n\x04\x04\x1a\x02\0\x12\x04\xb3\ - \x03\x08\x18\x1a+\x20Name\x20is\x20the\x20name\x20of\x20the\x20network\ - \x20interface\n\n\x0f\n\x05\x04\x1a\x02\0\x04\x12\x06\xb3\x03\x08\xb1\ - \x03\x20\n\r\n\x05\x04\x1a\x02\0\x05\x12\x04\xb3\x03\x08\x0e\n\r\n\x05\ - \x04\x1a\x02\0\x01\x12\x04\xb3\x03\x0f\x13\n\r\n\x05\x04\x1a\x02\0\x03\ - \x12\x04\xb3\x03\x16\x17\n*\n\x04\x04\x1a\x02\x01\x12\x04\xb6\x03\x08\ - \x1c\x1a\x1c\x20Priority\x20for\x20the\x20interface\n\n\x0f\n\x05\x04\ - \x1a\x02\x01\x04\x12\x06\xb6\x03\x08\xb3\x03\x18\n\r\n\x05\x04\x1a\x02\ - \x01\x05\x12\x04\xb6\x03\x08\x0e\n\r\n\x05\x04\x1a\x02\x01\x01\x12\x04\ - \xb6\x03\x0f\x17\n\r\n\x05\x04\x1a\x02\x01\x03\x12\x04\xb6\x03\x1a\x1b\n\ - \x0c\n\x02\x04\x1b\x12\x06\xb9\x03\0\xbd\x03\x01\n\x0b\n\x03\x04\x1b\x01\ - \x12\x04\xb9\x03\x08\x14\n\x0c\n\x04\x04\x1b\x02\0\x12\x04\xba\x03\x08!\ - \n\x0f\n\x05\x04\x1b\x02\0\x04\x12\x06\xba\x03\x08\xb9\x03\x16\n\r\n\x05\ - \x04\x1b\x02\0\x05\x12\x04\xba\x03\x08\x0e\n\r\n\x05\x04\x1b\x02\0\x01\ - \x12\x04\xba\x03\x0f\x1c\n\r\n\x05\x04\x1b\x02\0\x03\x12\x04\xba\x03\x1f\ - \x20\n\x0c\n\x04\x04\x1b\x02\x01\x12\x04\xbb\x03\x08*\n\r\n\x05\x04\x1b\ - \x02\x01\x04\x12\x04\xbb\x03\x08\x10\n\r\n\x05\x04\x1b\x02\x01\x05\x12\ - \x04\xbb\x03\x11\x17\n\r\n\x05\x04\x1b\x02\x01\x01\x12\x04\xbb\x03\x18%\ - \n\r\n\x05\x04\x1b\x02\x01\x03\x12\x04\xbb\x03()\n\x0c\n\x04\x04\x1b\x02\ - \x02\x12\x04\xbc\x03\x08K\n\r\n\x05\x04\x1b\x02\x02\x04\x12\x04\xbc\x03\ - \x08\x10\n\r\n\x05\x04\x1b\x02\x02\x06\x12\x04\xbc\x03\x11\x1d\n\r\n\x05\ - \x04\x1b\x02\x02\x01\x12\x04\xbc\x03\x1e&\n\r\n\x05\x04\x1b\x02\x02\x03\ - \x12\x04\xbc\x03)*\n\r\n\x05\x04\x1b\x02\x02\x08\x12\x04\xbc\x03,J\n\x10\ - \n\x08\x04\x1b\x02\x02\x08\xe9\xfb\x03\x12\x04\xbc\x03-I\n\x0c\n\x02\x04\ - \x1c\x12\x06\xbf\x03\0\xc4\x03\x01\n\x0b\n\x03\x04\x1c\x01\x12\x04\xbf\ - \x03\x08\x17\n\x0c\n\x04\x04\x1c\x02\0\x12\x04\xc0\x03\x08\x19\n\x0f\n\ - \x05\x04\x1c\x02\0\x04\x12\x06\xc0\x03\x08\xbf\x03\x19\n\r\n\x05\x04\x1c\ - \x02\0\x05\x12\x04\xc0\x03\x08\x0e\n\r\n\x05\x04\x1c\x02\0\x01\x12\x04\ - \xc0\x03\x0f\x14\n\r\n\x05\x04\x1c\x02\0\x03\x12\x04\xc0\x03\x17\x18\n\ - \x0c\n\x04\x04\x1c\x02\x01\x12\x04\xc1\x03\x08\x19\n\x0f\n\x05\x04\x1c\ - \x02\x01\x04\x12\x06\xc1\x03\x08\xc0\x03\x19\n\r\n\x05\x04\x1c\x02\x01\ - \x05\x12\x04\xc1\x03\x08\x0e\n\r\n\x05\x04\x1c\x02\x01\x01\x12\x04\xc1\ - \x03\x0f\x14\n\r\n\x05\x04\x1c\x02\x01\x03\x12\x04\xc1\x03\x17\x18\n\x0c\ - \n\x04\x04\x1c\x02\x02\x12\x04\xc2\x03\x08\x1c\n\x0f\n\x05\x04\x1c\x02\ - \x02\x04\x12\x06\xc2\x03\x08\xc1\x03\x19\n\r\n\x05\x04\x1c\x02\x02\x05\ - \x12\x04\xc2\x03\x08\x0e\n\r\n\x05\x04\x1c\x02\x02\x01\x12\x04\xc2\x03\ - \x0f\x17\n\r\n\x05\x04\x1c\x02\x02\x03\x12\x04\xc2\x03\x1a\x1b\n\x0c\n\ - \x04\x04\x1c\x02\x03\x12\x04\xc3\x03\x08\x16\n\x0f\n\x05\x04\x1c\x02\x03\ - \x04\x12\x06\xc3\x03\x08\xc2\x03\x1c\n\r\n\x05\x04\x1c\x02\x03\x05\x12\ - \x04\xc3\x03\x08\x0e\n\r\n\x05\x04\x1c\x02\x03\x01\x12\x04\xc3\x03\x0f\ - \x11\n\r\n\x05\x04\x1c\x02\x03\x03\x12\x04\xc3\x03\x14\x15\n\x0c\n\x02\ - \x04\x1d\x12\x06\xc6\x03\0\xca\x03\x01\n\x0b\n\x03\x04\x1d\x01\x12\x04\ - \xc6\x03\x08\x14\n\x0c\n\x04\x04\x1d\x02\0\x12\x04\xc7\x03\x08\"\n\r\n\ - \x05\x04\x1d\x02\0\x04\x12\x04\xc7\x03\x08\x10\n\r\n\x05\x04\x1d\x02\0\ - \x05\x12\x04\xc7\x03\x11\x17\n\r\n\x05\x04\x1d\x02\0\x01\x12\x04\xc7\x03\ - \x18\x1d\n\r\n\x05\x04\x1d\x02\0\x03\x12\x04\xc7\x03\x20!\n\x0c\n\x04\ - \x04\x1d\x02\x01\x12\x04\xc8\x03\x08\x1a\n\x0f\n\x05\x04\x1d\x02\x01\x04\ - \x12\x06\xc8\x03\x08\xc7\x03\"\n\r\n\x05\x04\x1d\x02\x01\x05\x12\x04\xc8\ - \x03\x08\x0e\n\r\n\x05\x04\x1d\x02\x01\x01\x12\x04\xc8\x03\x0f\x15\n\r\n\ - \x05\x04\x1d\x02\x01\x03\x12\x04\xc8\x03\x18\x19\n\x0c\n\x04\x04\x1d\x02\ - \x02\x12\x04\xc9\x03\x08J\n\r\n\x05\x04\x1d\x02\x02\x04\x12\x04\xc9\x03\ - \x08\x10\n\r\n\x05\x04\x1d\x02\x02\x06\x12\x04\xc9\x03\x11\x20\n\r\n\x05\ - \x04\x1d\x02\x02\x01\x12\x04\xc9\x03!%\n\r\n\x05\x04\x1d\x02\x02\x03\x12\ - \x04\xc9\x03()\n\r\n\x05\x04\x1d\x02\x02\x08\x12\x04\xc9\x03+I\n\x10\n\ - \x08\x04\x1d\x02\x02\x08\xe9\xfb\x03\x12\x04\xc9\x03,H\n\x0c\n\x02\x04\ - \x1e\x12\x06\xcc\x03\0\xd0\x03\x01\n\x0b\n\x03\x04\x1e\x01\x12\x04\xcc\ - \x03\x08\x15\n}\n\x04\x04\x1e\x02\0\x12\x04\xcf\x03\x08!\x1ao\x20The\x20\ - schema\x20for\x20L3\x20cache\x20id\x20and\x20capacity\x20bitmask\x20(CBM\ - )\n\x20Format:\x20\"L3:=;=;...\"\n\n\ - \x0f\n\x05\x04\x1e\x02\0\x04\x12\x06\xcf\x03\x08\xcc\x03\x17\n\r\n\x05\ - \x04\x1e\x02\0\x05\x12\x04\xcf\x03\x08\x0e\n\r\n\x05\x04\x1e\x02\0\x01\ - \x12\x04\xcf\x03\x0f\x1c\n\r\n\x05\x04\x1e\x02\0\x03\x12\x04\xcf\x03\x1f\ - \x20b\x06proto3\ -"; - -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - unsafe { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) - } -} diff --git a/src/agent/protocols/src/types.rs b/src/agent/protocols/src/types.rs deleted file mode 100644 index e5eab5727..000000000 --- a/src/agent/protocols/src/types.rs +++ /dev/null @@ -1,1556 +0,0 @@ -// This file is generated by rust-protobuf 2.14.0. Do not edit -// @generated - -// https://github.com/rust-lang/rust-clippy/issues/702 -#![allow(unknown_lints)] -#![allow(clippy::all)] - -#![cfg_attr(rustfmt, rustfmt_skip)] - -#![allow(box_pointers)] -#![allow(dead_code)] -#![allow(missing_docs)] -#![allow(non_camel_case_types)] -#![allow(non_snake_case)] -#![allow(non_upper_case_globals)] -#![allow(trivial_casts)] -#![allow(unsafe_code)] -#![allow(unused_imports)] -#![allow(unused_results)] -//! Generated file from `github.com/kata-containers/kata-containers/src/agent/protocols/protos/github.com/kata-containers/agent/pkg/types/types.proto` - -use protobuf::Message as Message_imported_for_functions; -use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions; - -/// Generated files are compatible only with the same version -/// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_14_0; - -#[derive(PartialEq,Clone,Default)] -pub struct IPAddress { - // message fields - pub family: IPFamily, - pub address: ::std::string::String, - pub mask: ::std::string::String, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a IPAddress { - fn default() -> &'a IPAddress { - ::default_instance() - } -} - -impl IPAddress { - pub fn new() -> IPAddress { - ::std::default::Default::default() - } - - // .types.IPFamily family = 1; - - - pub fn get_family(&self) -> IPFamily { - self.family - } - pub fn clear_family(&mut self) { - self.family = IPFamily::v4; - } - - // Param is passed by value, moved - pub fn set_family(&mut self, v: IPFamily) { - self.family = v; - } - - // string address = 2; - - - pub fn get_address(&self) -> &str { - &self.address - } - pub fn clear_address(&mut self) { - self.address.clear(); - } - - // Param is passed by value, moved - pub fn set_address(&mut self, v: ::std::string::String) { - self.address = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_address(&mut self) -> &mut ::std::string::String { - &mut self.address - } - - // Take field - pub fn take_address(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.address, ::std::string::String::new()) - } - - // string mask = 3; - - - pub fn get_mask(&self) -> &str { - &self.mask - } - pub fn clear_mask(&mut self) { - self.mask.clear(); - } - - // Param is passed by value, moved - pub fn set_mask(&mut self, v: ::std::string::String) { - self.mask = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_mask(&mut self) -> &mut ::std::string::String { - &mut self.mask - } - - // Take field - pub fn take_mask(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.mask, ::std::string::String::new()) - } -} - -impl ::protobuf::Message for IPAddress { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.family, 1, &mut self.unknown_fields)? - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.address)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.mask)?; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if self.family != IPFamily::v4 { - my_size += ::protobuf::rt::enum_size(1, self.family); - } - if !self.address.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.address); - } - if !self.mask.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.mask); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if self.family != IPFamily::v4 { - os.write_enum(1, self.family.value())?; - } - if !self.address.is_empty() { - os.write_string(2, &self.address)?; - } - if !self.mask.is_empty() { - os.write_string(3, &self.mask)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> IPAddress { - IPAddress::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum>( - "family", - |m: &IPAddress| { &m.family }, - |m: &mut IPAddress| { &mut m.family }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "address", - |m: &IPAddress| { &m.address }, - |m: &mut IPAddress| { &mut m.address }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "mask", - |m: &IPAddress| { &m.mask }, - |m: &mut IPAddress| { &mut m.mask }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "IPAddress", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static IPAddress { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(IPAddress::new) - } - } -} - -impl ::protobuf::Clear for IPAddress { - fn clear(&mut self) { - self.family = IPFamily::v4; - self.address.clear(); - self.mask.clear(); - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for IPAddress { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for IPAddress { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Interface { - // message fields - pub device: ::std::string::String, - pub name: ::std::string::String, - pub IPAddresses: ::protobuf::RepeatedField, - pub mtu: u64, - pub hwAddr: ::std::string::String, - pub pciAddr: ::std::string::String, - pub field_type: ::std::string::String, - pub raw_flags: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Interface { - fn default() -> &'a Interface { - ::default_instance() - } -} - -impl Interface { - pub fn new() -> Interface { - ::std::default::Default::default() - } - - // string device = 1; - - - pub fn get_device(&self) -> &str { - &self.device - } - pub fn clear_device(&mut self) { - self.device.clear(); - } - - // Param is passed by value, moved - pub fn set_device(&mut self, v: ::std::string::String) { - self.device = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_device(&mut self) -> &mut ::std::string::String { - &mut self.device - } - - // Take field - pub fn take_device(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.device, ::std::string::String::new()) - } - - // string name = 2; - - - pub fn get_name(&self) -> &str { - &self.name - } - pub fn clear_name(&mut self) { - self.name.clear(); - } - - // Param is passed by value, moved - pub fn set_name(&mut self, v: ::std::string::String) { - self.name = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_name(&mut self) -> &mut ::std::string::String { - &mut self.name - } - - // Take field - pub fn take_name(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.name, ::std::string::String::new()) - } - - // repeated .types.IPAddress IPAddresses = 3; - - - pub fn get_IPAddresses(&self) -> &[IPAddress] { - &self.IPAddresses - } - pub fn clear_IPAddresses(&mut self) { - self.IPAddresses.clear(); - } - - // Param is passed by value, moved - pub fn set_IPAddresses(&mut self, v: ::protobuf::RepeatedField) { - self.IPAddresses = v; - } - - // Mutable pointer to the field. - pub fn mut_IPAddresses(&mut self) -> &mut ::protobuf::RepeatedField { - &mut self.IPAddresses - } - - // Take field - pub fn take_IPAddresses(&mut self) -> ::protobuf::RepeatedField { - ::std::mem::replace(&mut self.IPAddresses, ::protobuf::RepeatedField::new()) - } - - // uint64 mtu = 4; - - - pub fn get_mtu(&self) -> u64 { - self.mtu - } - pub fn clear_mtu(&mut self) { - self.mtu = 0; - } - - // Param is passed by value, moved - pub fn set_mtu(&mut self, v: u64) { - self.mtu = v; - } - - // string hwAddr = 5; - - - pub fn get_hwAddr(&self) -> &str { - &self.hwAddr - } - pub fn clear_hwAddr(&mut self) { - self.hwAddr.clear(); - } - - // Param is passed by value, moved - pub fn set_hwAddr(&mut self, v: ::std::string::String) { - self.hwAddr = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_hwAddr(&mut self) -> &mut ::std::string::String { - &mut self.hwAddr - } - - // Take field - pub fn take_hwAddr(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.hwAddr, ::std::string::String::new()) - } - - // string pciAddr = 6; - - - pub fn get_pciAddr(&self) -> &str { - &self.pciAddr - } - pub fn clear_pciAddr(&mut self) { - self.pciAddr.clear(); - } - - // Param is passed by value, moved - pub fn set_pciAddr(&mut self, v: ::std::string::String) { - self.pciAddr = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_pciAddr(&mut self) -> &mut ::std::string::String { - &mut self.pciAddr - } - - // Take field - pub fn take_pciAddr(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.pciAddr, ::std::string::String::new()) - } - - // string type = 7; - - - pub fn get_field_type(&self) -> &str { - &self.field_type - } - pub fn clear_field_type(&mut self) { - self.field_type.clear(); - } - - // Param is passed by value, moved - pub fn set_field_type(&mut self, v: ::std::string::String) { - self.field_type = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_field_type(&mut self) -> &mut ::std::string::String { - &mut self.field_type - } - - // Take field - pub fn take_field_type(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.field_type, ::std::string::String::new()) - } - - // uint32 raw_flags = 8; - - - pub fn get_raw_flags(&self) -> u32 { - self.raw_flags - } - pub fn clear_raw_flags(&mut self) { - self.raw_flags = 0; - } - - // Param is passed by value, moved - pub fn set_raw_flags(&mut self, v: u32) { - self.raw_flags = v; - } -} - -impl ::protobuf::Message for Interface { - fn is_initialized(&self) -> bool { - for v in &self.IPAddresses { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.device)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?; - }, - 3 => { - ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.IPAddresses)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint64()?; - self.mtu = tmp; - }, - 5 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.hwAddr)?; - }, - 6 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.pciAddr)?; - }, - 7 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_type)?; - }, - 8 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.raw_flags = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.device.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.device); - } - if !self.name.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.name); - } - for value in &self.IPAddresses { - let len = value.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - }; - if self.mtu != 0 { - my_size += ::protobuf::rt::value_size(4, self.mtu, ::protobuf::wire_format::WireTypeVarint); - } - if !self.hwAddr.is_empty() { - my_size += ::protobuf::rt::string_size(5, &self.hwAddr); - } - if !self.pciAddr.is_empty() { - my_size += ::protobuf::rt::string_size(6, &self.pciAddr); - } - if !self.field_type.is_empty() { - my_size += ::protobuf::rt::string_size(7, &self.field_type); - } - if self.raw_flags != 0 { - my_size += ::protobuf::rt::value_size(8, self.raw_flags, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.device.is_empty() { - os.write_string(1, &self.device)?; - } - if !self.name.is_empty() { - os.write_string(2, &self.name)?; - } - for v in &self.IPAddresses { - os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - }; - if self.mtu != 0 { - os.write_uint64(4, self.mtu)?; - } - if !self.hwAddr.is_empty() { - os.write_string(5, &self.hwAddr)?; - } - if !self.pciAddr.is_empty() { - os.write_string(6, &self.pciAddr)?; - } - if !self.field_type.is_empty() { - os.write_string(7, &self.field_type)?; - } - if self.raw_flags != 0 { - os.write_uint32(8, self.raw_flags)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Interface { - Interface::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "device", - |m: &Interface| { &m.device }, - |m: &mut Interface| { &mut m.device }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "name", - |m: &Interface| { &m.name }, - |m: &mut Interface| { &mut m.name }, - )); - fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "IPAddresses", - |m: &Interface| { &m.IPAddresses }, - |m: &mut Interface| { &mut m.IPAddresses }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>( - "mtu", - |m: &Interface| { &m.mtu }, - |m: &mut Interface| { &mut m.mtu }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "hwAddr", - |m: &Interface| { &m.hwAddr }, - |m: &mut Interface| { &mut m.hwAddr }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "pciAddr", - |m: &Interface| { &m.pciAddr }, - |m: &mut Interface| { &mut m.pciAddr }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "type", - |m: &Interface| { &m.field_type }, - |m: &mut Interface| { &mut m.field_type }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "raw_flags", - |m: &Interface| { &m.raw_flags }, - |m: &mut Interface| { &mut m.raw_flags }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Interface", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Interface { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Interface::new) - } - } -} - -impl ::protobuf::Clear for Interface { - fn clear(&mut self) { - self.device.clear(); - self.name.clear(); - self.IPAddresses.clear(); - self.mtu = 0; - self.hwAddr.clear(); - self.pciAddr.clear(); - self.field_type.clear(); - self.raw_flags = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Interface { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Interface { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct Route { - // message fields - pub dest: ::std::string::String, - pub gateway: ::std::string::String, - pub device: ::std::string::String, - pub source: ::std::string::String, - pub scope: u32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a Route { - fn default() -> &'a Route { - ::default_instance() - } -} - -impl Route { - pub fn new() -> Route { - ::std::default::Default::default() - } - - // string dest = 1; - - - pub fn get_dest(&self) -> &str { - &self.dest - } - pub fn clear_dest(&mut self) { - self.dest.clear(); - } - - // Param is passed by value, moved - pub fn set_dest(&mut self, v: ::std::string::String) { - self.dest = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_dest(&mut self) -> &mut ::std::string::String { - &mut self.dest - } - - // Take field - pub fn take_dest(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.dest, ::std::string::String::new()) - } - - // string gateway = 2; - - - pub fn get_gateway(&self) -> &str { - &self.gateway - } - pub fn clear_gateway(&mut self) { - self.gateway.clear(); - } - - // Param is passed by value, moved - pub fn set_gateway(&mut self, v: ::std::string::String) { - self.gateway = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_gateway(&mut self) -> &mut ::std::string::String { - &mut self.gateway - } - - // Take field - pub fn take_gateway(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.gateway, ::std::string::String::new()) - } - - // string device = 3; - - - pub fn get_device(&self) -> &str { - &self.device - } - pub fn clear_device(&mut self) { - self.device.clear(); - } - - // Param is passed by value, moved - pub fn set_device(&mut self, v: ::std::string::String) { - self.device = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_device(&mut self) -> &mut ::std::string::String { - &mut self.device - } - - // Take field - pub fn take_device(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.device, ::std::string::String::new()) - } - - // string source = 4; - - - pub fn get_source(&self) -> &str { - &self.source - } - pub fn clear_source(&mut self) { - self.source.clear(); - } - - // Param is passed by value, moved - pub fn set_source(&mut self, v: ::std::string::String) { - self.source = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_source(&mut self) -> &mut ::std::string::String { - &mut self.source - } - - // Take field - pub fn take_source(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.source, ::std::string::String::new()) - } - - // uint32 scope = 5; - - - pub fn get_scope(&self) -> u32 { - self.scope - } - pub fn clear_scope(&mut self) { - self.scope = 0; - } - - // Param is passed by value, moved - pub fn set_scope(&mut self, v: u32) { - self.scope = v; - } -} - -impl ::protobuf::Message for Route { - fn is_initialized(&self) -> bool { - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.dest)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.gateway)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.device)?; - }, - 4 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.source)?; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_uint32()?; - self.scope = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if !self.dest.is_empty() { - my_size += ::protobuf::rt::string_size(1, &self.dest); - } - if !self.gateway.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.gateway); - } - if !self.device.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.device); - } - if !self.source.is_empty() { - my_size += ::protobuf::rt::string_size(4, &self.source); - } - if self.scope != 0 { - my_size += ::protobuf::rt::value_size(5, self.scope, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if !self.dest.is_empty() { - os.write_string(1, &self.dest)?; - } - if !self.gateway.is_empty() { - os.write_string(2, &self.gateway)?; - } - if !self.device.is_empty() { - os.write_string(3, &self.device)?; - } - if !self.source.is_empty() { - os.write_string(4, &self.source)?; - } - if self.scope != 0 { - os.write_uint32(5, self.scope)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> Route { - Route::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "dest", - |m: &Route| { &m.dest }, - |m: &mut Route| { &mut m.dest }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "gateway", - |m: &Route| { &m.gateway }, - |m: &mut Route| { &mut m.gateway }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "device", - |m: &Route| { &m.device }, - |m: &mut Route| { &mut m.device }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "source", - |m: &Route| { &m.source }, - |m: &mut Route| { &mut m.source }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint32>( - "scope", - |m: &Route| { &m.scope }, - |m: &mut Route| { &mut m.scope }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "Route", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static Route { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(Route::new) - } - } -} - -impl ::protobuf::Clear for Route { - fn clear(&mut self) { - self.dest.clear(); - self.gateway.clear(); - self.device.clear(); - self.source.clear(); - self.scope = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for Route { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for Route { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(PartialEq,Clone,Default)] -pub struct ARPNeighbor { - // message fields - pub toIPAddress: ::protobuf::SingularPtrField, - pub device: ::std::string::String, - pub lladdr: ::std::string::String, - pub state: i32, - pub flags: i32, - // special fields - pub unknown_fields: ::protobuf::UnknownFields, - pub cached_size: ::protobuf::CachedSize, -} - -impl<'a> ::std::default::Default for &'a ARPNeighbor { - fn default() -> &'a ARPNeighbor { - ::default_instance() - } -} - -impl ARPNeighbor { - pub fn new() -> ARPNeighbor { - ::std::default::Default::default() - } - - // .types.IPAddress toIPAddress = 1; - - - pub fn get_toIPAddress(&self) -> &IPAddress { - self.toIPAddress.as_ref().unwrap_or_else(|| IPAddress::default_instance()) - } - pub fn clear_toIPAddress(&mut self) { - self.toIPAddress.clear(); - } - - pub fn has_toIPAddress(&self) -> bool { - self.toIPAddress.is_some() - } - - // Param is passed by value, moved - pub fn set_toIPAddress(&mut self, v: IPAddress) { - self.toIPAddress = ::protobuf::SingularPtrField::some(v); - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_toIPAddress(&mut self) -> &mut IPAddress { - if self.toIPAddress.is_none() { - self.toIPAddress.set_default(); - } - self.toIPAddress.as_mut().unwrap() - } - - // Take field - pub fn take_toIPAddress(&mut self) -> IPAddress { - self.toIPAddress.take().unwrap_or_else(|| IPAddress::new()) - } - - // string device = 2; - - - pub fn get_device(&self) -> &str { - &self.device - } - pub fn clear_device(&mut self) { - self.device.clear(); - } - - // Param is passed by value, moved - pub fn set_device(&mut self, v: ::std::string::String) { - self.device = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_device(&mut self) -> &mut ::std::string::String { - &mut self.device - } - - // Take field - pub fn take_device(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.device, ::std::string::String::new()) - } - - // string lladdr = 3; - - - pub fn get_lladdr(&self) -> &str { - &self.lladdr - } - pub fn clear_lladdr(&mut self) { - self.lladdr.clear(); - } - - // Param is passed by value, moved - pub fn set_lladdr(&mut self, v: ::std::string::String) { - self.lladdr = v; - } - - // Mutable pointer to the field. - // If field is not initialized, it is initialized with default value first. - pub fn mut_lladdr(&mut self) -> &mut ::std::string::String { - &mut self.lladdr - } - - // Take field - pub fn take_lladdr(&mut self) -> ::std::string::String { - ::std::mem::replace(&mut self.lladdr, ::std::string::String::new()) - } - - // int32 state = 4; - - - pub fn get_state(&self) -> i32 { - self.state - } - pub fn clear_state(&mut self) { - self.state = 0; - } - - // Param is passed by value, moved - pub fn set_state(&mut self, v: i32) { - self.state = v; - } - - // int32 flags = 5; - - - pub fn get_flags(&self) -> i32 { - self.flags - } - pub fn clear_flags(&mut self) { - self.flags = 0; - } - - // Param is passed by value, moved - pub fn set_flags(&mut self, v: i32) { - self.flags = v; - } -} - -impl ::protobuf::Message for ARPNeighbor { - fn is_initialized(&self) -> bool { - for v in &self.toIPAddress { - if !v.is_initialized() { - return false; - } - }; - true - } - - fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> { - while !is.eof()? { - let (field_number, wire_type) = is.read_tag_unpack()?; - match field_number { - 1 => { - ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.toIPAddress)?; - }, - 2 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.device)?; - }, - 3 => { - ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.lladdr)?; - }, - 4 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.state = tmp; - }, - 5 => { - if wire_type != ::protobuf::wire_format::WireTypeVarint { - return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type)); - } - let tmp = is.read_int32()?; - self.flags = tmp; - }, - _ => { - ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; - }, - }; - } - ::std::result::Result::Ok(()) - } - - // Compute sizes of nested messages - #[allow(unused_variables)] - fn compute_size(&self) -> u32 { - let mut my_size = 0; - if let Some(ref v) = self.toIPAddress.as_ref() { - let len = v.compute_size(); - my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len; - } - if !self.device.is_empty() { - my_size += ::protobuf::rt::string_size(2, &self.device); - } - if !self.lladdr.is_empty() { - my_size += ::protobuf::rt::string_size(3, &self.lladdr); - } - if self.state != 0 { - my_size += ::protobuf::rt::value_size(4, self.state, ::protobuf::wire_format::WireTypeVarint); - } - if self.flags != 0 { - my_size += ::protobuf::rt::value_size(5, self.flags, ::protobuf::wire_format::WireTypeVarint); - } - my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields()); - self.cached_size.set(my_size); - my_size - } - - fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> { - if let Some(ref v) = self.toIPAddress.as_ref() { - os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?; - os.write_raw_varint32(v.get_cached_size())?; - v.write_to_with_cached_sizes(os)?; - } - if !self.device.is_empty() { - os.write_string(2, &self.device)?; - } - if !self.lladdr.is_empty() { - os.write_string(3, &self.lladdr)?; - } - if self.state != 0 { - os.write_int32(4, self.state)?; - } - if self.flags != 0 { - os.write_int32(5, self.flags)?; - } - os.write_unknown_fields(self.get_unknown_fields())?; - ::std::result::Result::Ok(()) - } - - fn get_cached_size(&self) -> u32 { - self.cached_size.get() - } - - fn get_unknown_fields(&self) -> &::protobuf::UnknownFields { - &self.unknown_fields - } - - fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields { - &mut self.unknown_fields - } - - fn as_any(&self) -> &dyn (::std::any::Any) { - self as &dyn (::std::any::Any) - } - fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { - self as &mut dyn (::std::any::Any) - } - fn into_any(self: Box) -> ::std::boxed::Box { - self - } - - fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor { - Self::descriptor_static() - } - - fn new() -> ARPNeighbor { - ARPNeighbor::new() - } - - fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - let mut fields = ::std::vec::Vec::new(); - fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage>( - "toIPAddress", - |m: &ARPNeighbor| { &m.toIPAddress }, - |m: &mut ARPNeighbor| { &mut m.toIPAddress }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "device", - |m: &ARPNeighbor| { &m.device }, - |m: &mut ARPNeighbor| { &mut m.device }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>( - "lladdr", - |m: &ARPNeighbor| { &m.lladdr }, - |m: &mut ARPNeighbor| { &mut m.lladdr }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "state", - |m: &ARPNeighbor| { &m.state }, - |m: &mut ARPNeighbor| { &mut m.state }, - )); - fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>( - "flags", - |m: &ARPNeighbor| { &m.flags }, - |m: &mut ARPNeighbor| { &mut m.flags }, - )); - ::protobuf::reflect::MessageDescriptor::new_pb_name::( - "ARPNeighbor", - fields, - file_descriptor_proto() - ) - }) - } - } - - fn default_instance() -> &'static ARPNeighbor { - static mut instance: ::protobuf::lazy::Lazy = ::protobuf::lazy::Lazy::INIT; - unsafe { - instance.get(ARPNeighbor::new) - } - } -} - -impl ::protobuf::Clear for ARPNeighbor { - fn clear(&mut self) { - self.toIPAddress.clear(); - self.device.clear(); - self.lladdr.clear(); - self.state = 0; - self.flags = 0; - self.unknown_fields.clear(); - } -} - -impl ::std::fmt::Debug for ARPNeighbor { - fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { - ::protobuf::text_format::fmt(self, f) - } -} - -impl ::protobuf::reflect::ProtobufValue for ARPNeighbor { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Message(self) - } -} - -#[derive(Clone,PartialEq,Eq,Debug,Hash)] -pub enum IPFamily { - v4 = 0, - v6 = 1, -} - -impl ::protobuf::ProtobufEnum for IPFamily { - fn value(&self) -> i32 { - *self as i32 - } - - fn from_i32(value: i32) -> ::std::option::Option { - match value { - 0 => ::std::option::Option::Some(IPFamily::v4), - 1 => ::std::option::Option::Some(IPFamily::v6), - _ => ::std::option::Option::None - } - } - - fn values() -> &'static [Self] { - static values: &'static [IPFamily] = &[ - IPFamily::v4, - IPFamily::v6, - ]; - values - } - - fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor { - static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT; - unsafe { - descriptor.get(|| { - ::protobuf::reflect::EnumDescriptor::new_pb_name::("IPFamily", file_descriptor_proto()) - }) - } - } -} - -impl ::std::marker::Copy for IPFamily { -} - -impl ::std::default::Default for IPFamily { - fn default() -> Self { - IPFamily::v4 - } -} - -impl ::protobuf::reflect::ProtobufValue for IPFamily { - fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef { - ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor()) - } -} - -static file_descriptor_proto_data: &'static [u8] = b"\ - \n|github.com/kata-containers/kata-containers/src/agent/protocols/protos\ - /github.com/kata-containers/agent/pkg/types/types.proto\x12\x05types\"b\ - \n\tIPAddress\x12'\n\x06family\x18\x01\x20\x01(\x0e2\x0f.types.IPFamilyR\ - \x06family\x12\x18\n\x07address\x18\x02\x20\x01(\tR\x07address\x12\x12\n\ - \x04mask\x18\x03\x20\x01(\tR\x04mask\"\xe0\x01\n\tInterface\x12\x16\n\ - \x06device\x18\x01\x20\x01(\tR\x06device\x12\x12\n\x04name\x18\x02\x20\ - \x01(\tR\x04name\x122\n\x0bIPAddresses\x18\x03\x20\x03(\x0b2\x10.types.I\ - PAddressR\x0bIPAddresses\x12\x10\n\x03mtu\x18\x04\x20\x01(\x04R\x03mtu\ - \x12\x16\n\x06hwAddr\x18\x05\x20\x01(\tR\x06hwAddr\x12\x18\n\x07pciAddr\ - \x18\x06\x20\x01(\tR\x07pciAddr\x12\x12\n\x04type\x18\x07\x20\x01(\tR\ - \x04type\x12\x1b\n\traw_flags\x18\x08\x20\x01(\rR\x08rawFlags\"{\n\x05Ro\ - ute\x12\x12\n\x04dest\x18\x01\x20\x01(\tR\x04dest\x12\x18\n\x07gateway\ - \x18\x02\x20\x01(\tR\x07gateway\x12\x16\n\x06device\x18\x03\x20\x01(\tR\ - \x06device\x12\x16\n\x06source\x18\x04\x20\x01(\tR\x06source\x12\x14\n\ - \x05scope\x18\x05\x20\x01(\rR\x05scope\"\x9d\x01\n\x0bARPNeighbor\x122\n\ - \x0btoIPAddress\x18\x01\x20\x01(\x0b2\x10.types.IPAddressR\x0btoIPAddres\ - s\x12\x16\n\x06device\x18\x02\x20\x01(\tR\x06device\x12\x16\n\x06lladdr\ - \x18\x03\x20\x01(\tR\x06lladdr\x12\x14\n\x05state\x18\x04\x20\x01(\x05R\ - \x05state\x12\x14\n\x05flags\x18\x05\x20\x01(\x05R\x05flags*\x1a\n\x08IP\ - Family\x12\x06\n\x02v4\x10\0\x12\x06\n\x02v6\x10\x01B[ZYgithub.com/kata-\ - containers/kata-containers/src/runtime/virtcontainers/pkg/agent/protocol\ - sJ\x97\x12\n\x06\x12\x04\x07\0:\x01\nw\n\x01\x0c\x12\x03\x07\0\x122m\n\ - \x20Copyright\x202018\x20Intel\x20Corporation.\n\x20Copyright\x20(c)\x20\ - 2019\x20Ant\x20Financial\n\n\x20SPDX-License-Identifier:\x20Apache-2.0\n\ - \n\n\x08\n\x01\x08\x12\x03\t\0p\n\t\n\x02\x08\x0b\x12\x03\t\0p\n\x08\n\ - \x01\x02\x12\x03\x0b\0\x0e\n\n\n\x02\x05\0\x12\x04\r\0\x10\x01\n\n\n\x03\ - \x05\0\x01\x12\x03\r\x05\r\n\x0b\n\x04\x05\0\x02\0\x12\x03\x0e\x08\x0f\n\ - \x0c\n\x05\x05\0\x02\0\x01\x12\x03\x0e\x08\n\n\x0c\n\x05\x05\0\x02\0\x02\ - \x12\x03\x0e\r\x0e\n\x0b\n\x04\x05\0\x02\x01\x12\x03\x0f\x08\x0f\n\x0c\n\ - \x05\x05\0\x02\x01\x01\x12\x03\x0f\x08\n\n\x0c\n\x05\x05\0\x02\x01\x02\ - \x12\x03\x0f\r\x0e\n\n\n\x02\x04\0\x12\x04\x12\0\x16\x01\n\n\n\x03\x04\0\ - \x01\x12\x03\x12\x08\x11\n\x0b\n\x04\x04\0\x02\0\x12\x03\x13\x08\x1c\n\r\ - \n\x05\x04\0\x02\0\x04\x12\x04\x13\x08\x12\x13\n\x0c\n\x05\x04\0\x02\0\ - \x06\x12\x03\x13\x08\x10\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x13\x11\x17\ - \n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x13\x1a\x1b\n\x0b\n\x04\x04\0\x02\ - \x01\x12\x03\x14\x08\x1b\n\r\n\x05\x04\0\x02\x01\x04\x12\x04\x14\x08\x13\ - \x1c\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03\x14\x08\x0e\n\x0c\n\x05\x04\0\ - \x02\x01\x01\x12\x03\x14\x0f\x16\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\ - \x14\x19\x1a\n\x0b\n\x04\x04\0\x02\x02\x12\x03\x15\x08\x18\n\r\n\x05\x04\ - \0\x02\x02\x04\x12\x04\x15\x08\x14\x1b\n\x0c\n\x05\x04\0\x02\x02\x05\x12\ - \x03\x15\x08\x0e\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x15\x0f\x13\n\x0c\ - \n\x05\x04\0\x02\x02\x03\x12\x03\x15\x16\x17\n\n\n\x02\x04\x01\x12\x04\ - \x18\0*\x01\n\n\n\x03\x04\x01\x01\x12\x03\x18\x08\x11\n\x0b\n\x04\x04\ - \x01\x02\0\x12\x03\x19\x08\x1a\n\r\n\x05\x04\x01\x02\0\x04\x12\x04\x19\ - \x08\x18\x13\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x19\x08\x0e\n\x0c\n\ - \x05\x04\x01\x02\0\x01\x12\x03\x19\x0f\x15\n\x0c\n\x05\x04\x01\x02\0\x03\ - \x12\x03\x19\x18\x19\n\x0b\n\x04\x04\x01\x02\x01\x12\x03\x1a\x08\x18\n\r\ - \n\x05\x04\x01\x02\x01\x04\x12\x04\x1a\x08\x19\x1a\n\x0c\n\x05\x04\x01\ - \x02\x01\x05\x12\x03\x1a\x08\x0e\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03\ - \x1a\x0f\x13\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03\x1a\x16\x17\n\x0b\n\ - \x04\x04\x01\x02\x02\x12\x03\x1b\x08+\n\x0c\n\x05\x04\x01\x02\x02\x04\ - \x12\x03\x1b\x08\x10\n\x0c\n\x05\x04\x01\x02\x02\x06\x12\x03\x1b\x11\x1a\ - \n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\x1b\x1b&\n\x0c\n\x05\x04\x01\ - \x02\x02\x03\x12\x03\x1b)*\n\x0b\n\x04\x04\x01\x02\x03\x12\x03\x1c\x08\ - \x17\n\r\n\x05\x04\x01\x02\x03\x04\x12\x04\x1c\x08\x1b+\n\x0c\n\x05\x04\ - \x01\x02\x03\x05\x12\x03\x1c\x08\x0e\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\ - \x03\x1c\x0f\x12\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03\x1c\x15\x16\n\ - \x0b\n\x04\x04\x01\x02\x04\x12\x03\x1d\x08\x1a\n\r\n\x05\x04\x01\x02\x04\ - \x04\x12\x04\x1d\x08\x1c\x17\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03\x1d\ - \x08\x0e\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03\x1d\x0f\x15\n\x0c\n\x05\ - \x04\x01\x02\x04\x03\x12\x03\x1d\x18\x19\n\xfc\x01\n\x04\x04\x01\x02\x05\ - \x12\x03\"\x08\x1b\x1a\xee\x01\x20pciAddr\x20is\x20the\x20PCI\x20address\ - \x20in\x20the\x20format\x20\x20\"bridgeAddr/deviceAddr\".\n\x20Here,\x20\ - bridgeAddr\x20is\x20the\x20address\x20at\x20which\x20the\x20bridge\x20is\ - \x20attached\x20on\x20the\x20root\x20bus,\n\x20while\x20deviceAddr\x20is\ - \x20the\x20address\x20at\x20which\x20the\x20network\x20device\x20is\x20a\ - ttached\x20on\x20the\x20bridge.\n\n\r\n\x05\x04\x01\x02\x05\x04\x12\x04\ - \"\x08\x1d\x1a\n\x0c\n\x05\x04\x01\x02\x05\x05\x12\x03\"\x08\x0e\n\x0c\n\ - \x05\x04\x01\x02\x05\x01\x12\x03\"\x0f\x16\n\x0c\n\x05\x04\x01\x02\x05\ - \x03\x12\x03\"\x19\x1a\n\x88\x02\n\x04\x04\x01\x02\x06\x12\x03(\x08\x18\ - \x1a\xfa\x01\x20Type\x20defines\x20the\x20type\x20of\x20interface\x20des\ - cribed\x20by\x20this\x20structure.\n\x20The\x20expected\x20values\x20are\ - \x20the\x20one\x20that\x20are\x20defined\x20by\x20the\x20netlink\n\x20li\ - brary,\x20regarding\x20each\x20type\x20of\x20link.\x20Here\x20is\x20a\ - \x20non\x20exhaustive\n\x20list:\x20\"veth\",\x20\"macvtap\",\x20\"vlan\ - \",\x20\"macvlan\",\x20\"tap\",\x20...\n\n\r\n\x05\x04\x01\x02\x06\x04\ - \x12\x04(\x08\"\x1b\n\x0c\n\x05\x04\x01\x02\x06\x05\x12\x03(\x08\x0e\n\ - \x0c\n\x05\x04\x01\x02\x06\x01\x12\x03(\x0f\x13\n\x0c\n\x05\x04\x01\x02\ - \x06\x03\x12\x03(\x16\x17\n\x0b\n\x04\x04\x01\x02\x07\x12\x03)\x08\x1d\n\ - \r\n\x05\x04\x01\x02\x07\x04\x12\x04)\x08(\x18\n\x0c\n\x05\x04\x01\x02\ - \x07\x05\x12\x03)\x08\x0e\n\x0c\n\x05\x04\x01\x02\x07\x01\x12\x03)\x0f\ - \x18\n\x0c\n\x05\x04\x01\x02\x07\x03\x12\x03)\x1b\x1c\n\n\n\x02\x04\x02\ - \x12\x04,\02\x01\n\n\n\x03\x04\x02\x01\x12\x03,\x08\r\n\x0b\n\x04\x04\ - \x02\x02\0\x12\x03-\x08\x18\n\r\n\x05\x04\x02\x02\0\x04\x12\x04-\x08,\ - \x0f\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03-\x08\x0e\n\x0c\n\x05\x04\x02\ - \x02\0\x01\x12\x03-\x0f\x13\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03-\x16\ - \x17\n\x0b\n\x04\x04\x02\x02\x01\x12\x03.\x08\x1b\n\r\n\x05\x04\x02\x02\ - \x01\x04\x12\x04.\x08-\x18\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03.\x08\ - \x0e\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03.\x0f\x16\n\x0c\n\x05\x04\ - \x02\x02\x01\x03\x12\x03.\x19\x1a\n\x0b\n\x04\x04\x02\x02\x02\x12\x03/\ - \x08\x1a\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04/\x08.\x1b\n\x0c\n\x05\x04\ - \x02\x02\x02\x05\x12\x03/\x08\x0e\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\ - \x03/\x0f\x15\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03/\x18\x19\n\x0b\n\ - \x04\x04\x02\x02\x03\x12\x030\x08\x1a\n\r\n\x05\x04\x02\x02\x03\x04\x12\ - \x040\x08/\x1a\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\x030\x08\x0e\n\x0c\n\ - \x05\x04\x02\x02\x03\x01\x12\x030\x0f\x15\n\x0c\n\x05\x04\x02\x02\x03\ - \x03\x12\x030\x18\x19\n\x0b\n\x04\x04\x02\x02\x04\x12\x031\x08\x19\n\r\n\ - \x05\x04\x02\x02\x04\x04\x12\x041\x080\x1a\n\x0c\n\x05\x04\x02\x02\x04\ - \x05\x12\x031\x08\x0e\n\x0c\n\x05\x04\x02\x02\x04\x01\x12\x031\x0f\x14\n\ - \x0c\n\x05\x04\x02\x02\x04\x03\x12\x031\x17\x18\n\n\n\x02\x04\x03\x12\ - \x044\0:\x01\n\n\n\x03\x04\x03\x01\x12\x034\x08\x13\n\x0b\n\x04\x04\x03\ - \x02\0\x12\x035\x08\"\n\r\n\x05\x04\x03\x02\0\x04\x12\x045\x084\x15\n\ - \x0c\n\x05\x04\x03\x02\0\x06\x12\x035\x08\x11\n\x0c\n\x05\x04\x03\x02\0\ - \x01\x12\x035\x12\x1d\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x035\x20!\n\x0b\ - \n\x04\x04\x03\x02\x01\x12\x036\x08\x1a\n\r\n\x05\x04\x03\x02\x01\x04\ - \x12\x046\x085\"\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x036\x08\x0e\n\x0c\ - \n\x05\x04\x03\x02\x01\x01\x12\x036\x0f\x15\n\x0c\n\x05\x04\x03\x02\x01\ - \x03\x12\x036\x18\x19\n\x0b\n\x04\x04\x03\x02\x02\x12\x037\x08\x1a\n\r\n\ - \x05\x04\x03\x02\x02\x04\x12\x047\x086\x1a\n\x0c\n\x05\x04\x03\x02\x02\ - \x05\x12\x037\x08\x0e\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\x037\x0f\x15\n\ - \x0c\n\x05\x04\x03\x02\x02\x03\x12\x037\x18\x19\n\x0b\n\x04\x04\x03\x02\ - \x03\x12\x038\x08\x18\n\r\n\x05\x04\x03\x02\x03\x04\x12\x048\x087\x1a\n\ - \x0c\n\x05\x04\x03\x02\x03\x05\x12\x038\x08\r\n\x0c\n\x05\x04\x03\x02\ - \x03\x01\x12\x038\x0e\x13\n\x0c\n\x05\x04\x03\x02\x03\x03\x12\x038\x16\ - \x17\n\x0b\n\x04\x04\x03\x02\x04\x12\x039\x08\x18\n\r\n\x05\x04\x03\x02\ - \x04\x04\x12\x049\x088\x18\n\x0c\n\x05\x04\x03\x02\x04\x05\x12\x039\x08\ - \r\n\x0c\n\x05\x04\x03\x02\x04\x01\x12\x039\x0e\x13\n\x0c\n\x05\x04\x03\ - \x02\x04\x03\x12\x039\x16\x17b\x06proto3\ -"; - -static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT; - -fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto { - ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap() -} - -pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { - unsafe { - file_descriptor_proto_lazy.get(|| { - parse_descriptor_proto() - }) - } -} From 0d58d91959c9f31877150dfd636ebb55b977401b Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Thu, 22 Oct 2020 14:27:42 +0800 Subject: [PATCH 3/5] agent/protocols: Stop generate agent proto files in the shellscript Because the job has been done by build.rs. Signed-off-by: Tim Zhang --- .../protocols/hack/update-generated-proto.sh | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/src/agent/protocols/hack/update-generated-proto.sh b/src/agent/protocols/hack/update-generated-proto.sh index 16b06424c..c7777d646 100755 --- a/src/agent/protocols/hack/update-generated-proto.sh +++ b/src/agent/protocols/hack/update-generated-proto.sh @@ -64,25 +64,6 @@ $GOPATH/src/github.com/kata-containers/kata-containers/src/agent/protocols/proto [ $? -eq 0 ] || die "Failed to generate golang file from $1" } -generate_rust_sources() { - local cmd="protoc --rust_out=./protocols/src/ \ ---ttrpc_out=./protocols/src/,plugins=ttrpc:./protocols/src/ \ ---plugin=protoc-gen-ttrpc=`which ttrpc_rust_plugin` \ --I $GOPATH/src/github.com/kata-containers/agent/vendor/github.com/gogo/protobuf:$GOPATH/src/github.com/kata-containers/agent/vendor:$GOPATH/src/github.com/gogo/protobuf:$GOPATH/src/github.com/gogo/googleapis:$GOPATH/src:$GOPATH/src/github.com/kata-containers/kata-containers/src/agent/protocols/protos \ -$GOPATH/src/github.com/kata-containers/kata-containers/src/agent/protocols/protos/$1" - - echo $cmd - $cmd - [ $? -eq 0 ] || die "Failed to generate rust file from $1" - - if [ "$1" = "oci.proto" ]; then - # Need change Box to ::std::boxed::Box because there is another struct Box - sed 's/fn into_any(self: Box) -> ::std::boxed::Box<::std::any::Any> {/fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box<::std::any::Any> {/g' ./protocols/src/oci.rs > ./protocols/src/new_oci.rs - sed 's/fn into_any(self: Box) -> ::std::boxed::Box {/fn into_any(self: ::std::boxed::Box) -> ::std::boxed::Box {/g' ./protocols/src/oci.rs > ./protocols/src/new_oci.rs - mv ./protocols/src/new_oci.rs ./protocols/src/oci.rs - fi; -} - if [ "$(basename $(pwd))" != "agent" ]; then die "Please go to directory of protocols before execute this shell" fi @@ -118,10 +99,6 @@ if [ "$target" = "all" ]; then echo -e "\n [golang] compiling ${f} ..." generate_go_sources $f echo -e " [golang] ${f} compiled\n" - - echo -e "\n [rust] compiling ${f} ..." - generate_rust_sources $f - echo -e " [rust] ${f} compiled\n" done else # compile individual proto file @@ -130,10 +107,6 @@ else echo -e "\n [golang] compiling ${target} ..." generate_go_sources $target echo -e " [golang] ${target} compiled\n" - - echo -e "\n [rust] compiling ${target} ..." - generate_rust_sources $target - echo -e " [rust] ${target} compiled\n" fi done fi; From 9cb41507774f5e06c6324499d687581e5f7ac08a Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Thu, 22 Oct 2020 16:15:01 +0800 Subject: [PATCH 4/5] agent/protocols: Fix copyright header checking Caused by: https://github.com/kata-containers/tests/commit/bb718ba1dd455207b8e46b4475d7d642c4599b3f Signed-off-by: Tim Zhang --- src/agent/protocols/hack/update-generated-proto.sh | 2 +- src/agent/protocols/protos/agent.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/agent/protocols/hack/update-generated-proto.sh b/src/agent/protocols/hack/update-generated-proto.sh index c7777d646..ad8aeb257 100755 --- a/src/agent/protocols/hack/update-generated-proto.sh +++ b/src/agent/protocols/hack/update-generated-proto.sh @@ -1,7 +1,7 @@ #!/bin/bash # // -# // Copyright 2020 Ant Financial +# // Copyright (c) 2020 Ant Financial # // # // SPDX-License-Identifier: Apache-2.0 # // diff --git a/src/agent/protocols/protos/agent.proto b/src/agent/protocols/protos/agent.proto index 52f253394..86852e20c 100644 --- a/src/agent/protocols/protos/agent.proto +++ b/src/agent/protocols/protos/agent.proto @@ -1,6 +1,6 @@ // // Copyright 2017 HyperHQ Inc. -// Copyright 2019 Ant Financial +// Copyright (c) 2019 Ant Financial // // SPDX-License-Identifier: Apache-2.0 // From 9e9988df291ed76444381f2de811352d9fb23bca Mon Sep 17 00:00:00 2001 From: Tim Zhang Date: Fri, 23 Oct 2020 15:01:56 +0800 Subject: [PATCH 5/5] agent/protocols: Move agent.proto out of the mock folder of agent Because the repos have been merged and the agent repo will be removed in the future, we do not need mock the file structure any more. Signed-off-by: Tim Zhang --- src/agent/protocols/build.rs | 2 +- src/agent/protocols/hack/update-generated-proto.sh | 6 +++--- src/agent/protocols/protos/agent.proto | 4 ++-- .../kata-containers/agent/pkg/types => }/types.proto | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) rename src/agent/protocols/protos/{github.com/kata-containers/agent/pkg/types => }/types.proto (97%) diff --git a/src/agent/protocols/build.rs b/src/agent/protocols/build.rs index c60aa9ba7..fcc443447 100644 --- a/src/agent/protocols/build.rs +++ b/src/agent/protocols/build.rs @@ -8,7 +8,7 @@ use std::io::{Read, Write}; fn main() { let protos = vec![ - "protos/github.com/kata-containers/agent/pkg/types/types.proto", + "protos/types.proto", "protos/agent.proto", "protos/health.proto", "protos/google/protobuf/empty.proto", diff --git a/src/agent/protocols/hack/update-generated-proto.sh b/src/agent/protocols/hack/update-generated-proto.sh index ad8aeb257..c8118e80c 100755 --- a/src/agent/protocols/hack/update-generated-proto.sh +++ b/src/agent/protocols/hack/update-generated-proto.sh @@ -1,7 +1,7 @@ #!/bin/bash # // -# // Copyright (c) 2020 Ant Financial +# // Copyright (c) 2020 Ant Group # // # // SPDX-License-Identifier: Apache-2.0 # // @@ -51,7 +51,7 @@ generate_go_sources() { --gogottrpc_out=plugins=ttrpc+fieldpath,\ import_path=github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/agent/protocols/grpc,\ \ -Mgithub.com/kata-containers/kata-containers/src/agent/protocols/protos/github.com/kata-containers/agent/pkg/types/types.proto=github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/agent/protocols,\ +Mgithub.com/kata-containers/kata-containers/src/agent/protocols/protos/types.proto=github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/agent/protocols,\ \ Mgithub.com/kata-containers/kata-containers/src/agent/protocols/protos/oci.proto=github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/agent/protocols/grpc,\ \ @@ -69,7 +69,7 @@ if [ "$(basename $(pwd))" != "agent" ]; then fi # Protocol buffer files required to generate golang/rust bindings. -proto_files_list=(agent.proto health.proto oci.proto github.com/kata-containers/agent/pkg/types/types.proto) +proto_files_list=(agent.proto health.proto oci.proto types.proto) if [ "$1" = "" ]; then show_usage "${proto_files_list[@]}" diff --git a/src/agent/protocols/protos/agent.proto b/src/agent/protocols/protos/agent.proto index 86852e20c..eb81e45e5 100644 --- a/src/agent/protocols/protos/agent.proto +++ b/src/agent/protocols/protos/agent.proto @@ -1,6 +1,6 @@ // // Copyright 2017 HyperHQ Inc. -// Copyright (c) 2019 Ant Financial +// Copyright (c) 2019-2020 Ant Group // // SPDX-License-Identifier: Apache-2.0 // @@ -12,7 +12,7 @@ option go_package = "github.com/kata-containers/kata-containers/src/runtime/virt package grpc; import "oci.proto"; -import "github.com/kata-containers/agent/pkg/types/types.proto"; +import "types.proto"; import "google/protobuf/empty.proto"; diff --git a/src/agent/protocols/protos/github.com/kata-containers/agent/pkg/types/types.proto b/src/agent/protocols/protos/types.proto similarity index 97% rename from src/agent/protocols/protos/github.com/kata-containers/agent/pkg/types/types.proto rename to src/agent/protocols/protos/types.proto index 9da2491a2..a639d8e1a 100644 --- a/src/agent/protocols/protos/github.com/kata-containers/agent/pkg/types/types.proto +++ b/src/agent/protocols/protos/types.proto @@ -1,6 +1,6 @@ // // Copyright 2018 Intel Corporation. -// Copyright (c) 2019 Ant Financial +// Copyright (c) 2019-2020 Ant Group // // SPDX-License-Identifier: Apache-2.0 //