Remove generated code from shim-protos
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
parent
97d00b4947
commit
d3d97df549
|
|
@ -13,10 +13,10 @@ homepage = "https://containerd.io"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
protobuf = "3.1"
|
protobuf = "3.1"
|
||||||
ttrpc = "0.7"
|
ttrpc = "0.7"
|
||||||
async-trait = { version = "0.1.48", optional = true}
|
async-trait = { version = "0.1.48", optional = true }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
ttrpc-codegen = { version = "0.4", optional = true }
|
ttrpc-codegen = "0.4"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ctrlc = { version = "3.0", features = ["termination"] }
|
ctrlc = { version = "3.0", features = ["termination"] }
|
||||||
|
|
@ -27,11 +27,6 @@ tokio = { version = "1.18", features = ["full"] }
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
async = ["ttrpc/async", "async-trait"]
|
async = ["ttrpc/async", "async-trait"]
|
||||||
# In current implementation we check in all generated TTRPC code because of the following Rust limitations:
|
|
||||||
# - `include!` doesn't handle well .rs files with attributes: https://github.com/rust-lang/rust/issues/18810
|
|
||||||
# - `cargo publish` will complain on modified `src` directory if it's modified from `build.rs` - https://github.com/rust-lang/cargo/issues/5073
|
|
||||||
# - There is now way to include the whole module from `OUT_DIR`, not just individual files.
|
|
||||||
generate_bindings = ["ttrpc-codegen", "async-trait", "ttrpc/async"]
|
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "shim-proto-server"
|
name = "shim-proto-server"
|
||||||
|
|
|
||||||
|
|
@ -13,13 +13,6 @@ The `containerd-shim-protos` crate provides [Protobuf](https://github.com/protoc
|
||||||
and [TTRPC](https://github.com/containerd/ttrpc.git) service definitions for the
|
and [TTRPC](https://github.com/containerd/ttrpc.git) service definitions for the
|
||||||
[Containerd shim v2](https://github.com/containerd/containerd/blob/main/runtime/v2/task/shim.proto) protocol.
|
[Containerd shim v2](https://github.com/containerd/containerd/blob/main/runtime/v2/task/shim.proto) protocol.
|
||||||
|
|
||||||
The message and service definitions are auto-generated from protobuf source files under `vendor/`
|
|
||||||
by using [ttrpc-codegen](https://github.com/containerd/ttrpc-rust/tree/master/ttrpc-codegen). So please do not
|
|
||||||
edit those auto-generated source files. If upgrading/modification is needed, please follow the steps:
|
|
||||||
- Synchronize the latest protobuf source files from the upstream projects into directory 'vendor/'.
|
|
||||||
- Re-generate the source files by `cargo build --features=generate_bindings`.
|
|
||||||
- Commit the synchronized protobuf source files and auto-generated source files, keeping them in synchronization.
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
Add `containerd-shim-client` as a dependency in your `Cargo.toml`
|
Add `containerd-shim-client` as a dependency in your `Cargo.toml`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,34 +14,36 @@
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#![allow(unused_imports)]
|
use std::fs::File;
|
||||||
|
use std::io::{BufRead, BufReader};
|
||||||
|
use std::path::PathBuf;
|
||||||
|
use std::{env, fs};
|
||||||
|
|
||||||
use std::fs;
|
|
||||||
use std::io::Write;
|
|
||||||
use std::path::Path;
|
|
||||||
#[cfg(feature = "generate_bindings")]
|
|
||||||
use ttrpc_codegen::{Codegen, Customize, ProtobufCustomize};
|
use ttrpc_codegen::{Codegen, Customize, ProtobufCustomize};
|
||||||
|
|
||||||
#[cfg(not(feature = "generate_bindings"))]
|
|
||||||
fn main() {}
|
|
||||||
|
|
||||||
#[cfg(feature = "generate_bindings")]
|
|
||||||
fn main() {
|
fn main() {
|
||||||
codegen(
|
genmodule(
|
||||||
"src/cgroups",
|
"types",
|
||||||
&[
|
&[
|
||||||
"vendor/gogoproto/gogo.proto",
|
"vendor/gogoproto/gogo.proto",
|
||||||
"vendor/github.com/containerd/cgroups/stats/v1/metrics.proto",
|
"vendor/google/protobuf/empty.proto",
|
||||||
|
"vendor/github.com/containerd/containerd/protobuf/plugin/fieldpath.proto",
|
||||||
|
"vendor/github.com/containerd/containerd/api/types/mount.proto",
|
||||||
|
"vendor/github.com/containerd/containerd/api/types/task/task.proto",
|
||||||
],
|
],
|
||||||
true,
|
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
codegen(
|
genmodule(
|
||||||
"src/events",
|
"cgroups",
|
||||||
|
&["vendor/github.com/containerd/cgroups/stats/v1/metrics.proto"],
|
||||||
|
false,
|
||||||
|
);
|
||||||
|
|
||||||
|
genmodule(
|
||||||
|
"events",
|
||||||
&[
|
&[
|
||||||
"vendor/gogoproto/gogo.proto",
|
"vendor/github.com/containerd/containerd/api/types/mount.proto",
|
||||||
"vendor/github.com/containerd/containerd/protobuf/plugin/fieldpath.proto",
|
|
||||||
"vendor/github.com/containerd/containerd/api/events/container.proto",
|
"vendor/github.com/containerd/containerd/api/events/container.proto",
|
||||||
"vendor/github.com/containerd/containerd/api/events/content.proto",
|
"vendor/github.com/containerd/containerd/api/events/content.proto",
|
||||||
"vendor/github.com/containerd/containerd/api/events/image.proto",
|
"vendor/github.com/containerd/containerd/api/events/image.proto",
|
||||||
|
|
@ -50,58 +52,36 @@ fn main() {
|
||||||
"vendor/github.com/containerd/containerd/api/events/task.proto",
|
"vendor/github.com/containerd/containerd/api/events/task.proto",
|
||||||
],
|
],
|
||||||
false,
|
false,
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// generate async service
|
genmodule(
|
||||||
codegen(
|
"shim",
|
||||||
"src/shim",
|
|
||||||
&[
|
|
||||||
"vendor/gogoproto/gogo.proto",
|
|
||||||
"vendor/github.com/containerd/containerd/protobuf/plugin/fieldpath.proto",
|
|
||||||
"vendor/github.com/containerd/containerd/runtime/v2/task/shim.proto",
|
|
||||||
"vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto",
|
|
||||||
],
|
|
||||||
false,
|
|
||||||
true,
|
|
||||||
);
|
|
||||||
fs::rename("src/shim/shim_ttrpc.rs", "src/shim/shim_ttrpc_async.rs").unwrap();
|
|
||||||
fs::rename("src/shim/events_ttrpc.rs", "src/shim/events_ttrpc_async.rs").unwrap();
|
|
||||||
|
|
||||||
codegen(
|
|
||||||
"src/shim",
|
|
||||||
&[
|
&[
|
||||||
"vendor/github.com/containerd/containerd/runtime/v2/runc/options/oci.proto",
|
"vendor/github.com/containerd/containerd/runtime/v2/runc/options/oci.proto",
|
||||||
"vendor/github.com/containerd/containerd/runtime/v2/task/shim.proto",
|
"vendor/github.com/containerd/containerd/runtime/v2/task/shim.proto",
|
||||||
"vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto",
|
"vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto",
|
||||||
],
|
],
|
||||||
false,
|
false,
|
||||||
false,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
codegen(
|
#[cfg(feature = "async")]
|
||||||
"src/types",
|
{
|
||||||
&[
|
genmodule(
|
||||||
"vendor/gogoproto/gogo.proto",
|
"shim_async",
|
||||||
"vendor/github.com/containerd/containerd/api/types/mount.proto",
|
&[
|
||||||
"vendor/github.com/containerd/containerd/api/types/task/task.proto",
|
"vendor/github.com/containerd/containerd/runtime/v2/task/shim.proto",
|
||||||
"vendor/google/protobuf/empty.proto",
|
"vendor/github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto",
|
||||||
],
|
],
|
||||||
true,
|
true,
|
||||||
false,
|
);
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "generate_bindings")]
|
fn genmodule(name: &str, inputs: &[&str], async_all: bool) {
|
||||||
fn codegen(
|
let mut out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
|
||||||
path: impl AsRef<Path>,
|
out_path.push(name);
|
||||||
inputs: impl IntoIterator<Item = impl AsRef<Path>>,
|
|
||||||
gen_mod_rs: bool,
|
|
||||||
async_all: bool,
|
|
||||||
) {
|
|
||||||
let path = path.as_ref();
|
|
||||||
|
|
||||||
fs::create_dir_all(&path).unwrap();
|
fs::create_dir_all(&out_path).unwrap();
|
||||||
|
|
||||||
Codegen::new()
|
Codegen::new()
|
||||||
.inputs(inputs)
|
.inputs(inputs)
|
||||||
|
|
@ -109,14 +89,53 @@ fn codegen(
|
||||||
.rust_protobuf()
|
.rust_protobuf()
|
||||||
.rust_protobuf_customize(
|
.rust_protobuf_customize(
|
||||||
ProtobufCustomize::default()
|
ProtobufCustomize::default()
|
||||||
.gen_mod_rs(gen_mod_rs)
|
.gen_mod_rs(true)
|
||||||
.generate_accessors(true),
|
.generate_accessors(true),
|
||||||
)
|
)
|
||||||
.customize(Customize {
|
.customize(Customize {
|
||||||
async_all,
|
async_all,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
})
|
})
|
||||||
.out_dir(path)
|
.out_dir(&out_path)
|
||||||
.run()
|
.run()
|
||||||
.expect("Failed to generate protos");
|
.expect("Failed to generate protos");
|
||||||
|
|
||||||
|
// Find all *.rs files generated by TTRPC codegen
|
||||||
|
let files = fs::read_dir(&out_path)
|
||||||
|
.unwrap()
|
||||||
|
.filter_map(|entry| {
|
||||||
|
let entry = entry.unwrap();
|
||||||
|
if !entry.file_type().unwrap().is_file() {
|
||||||
|
None
|
||||||
|
} else {
|
||||||
|
Some(entry.path())
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
|
// `include!` doesn't handle files with attributes:
|
||||||
|
// - https://github.com/rust-lang/rust/issues/18810
|
||||||
|
// - https://github.com/rust-lang/rfcs/issues/752
|
||||||
|
// Remove all lines that start with:
|
||||||
|
// - #![allow(unknown_lints)]
|
||||||
|
// - #![cfg_attr(rustfmt, rustfmt::skip)]
|
||||||
|
//
|
||||||
|
for path in files {
|
||||||
|
let file = File::open(&path).unwrap();
|
||||||
|
|
||||||
|
let joined = BufReader::new(file)
|
||||||
|
.lines()
|
||||||
|
.filter_map(|line| {
|
||||||
|
let line = line.unwrap();
|
||||||
|
if line.starts_with("#!") || line.starts_with("//!") {
|
||||||
|
None
|
||||||
|
} else {
|
||||||
|
Some(line)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.collect::<Vec<_>>()
|
||||||
|
.join("\r\n");
|
||||||
|
|
||||||
|
fs::write(&path, joined).unwrap();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,23 @@
|
||||||
|
/*
|
||||||
|
Copyright The containerd Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pub mod metrics {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/cgroups/metrics.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
mod gogo {
|
||||||
|
pub use crate::types::gogo::*;
|
||||||
|
}
|
||||||
|
|
@ -1,327 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `gogoproto/gogo.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
/// Extension fields
|
|
||||||
pub mod exts {
|
|
||||||
|
|
||||||
pub const goproto_enum_prefix: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62021, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62022, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(62023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const enumdecl: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enumvalue_customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumValueOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(66001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const goproto_getters_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_prefix_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63002, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const verbose_equal_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const face_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gostring_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const populate_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const onlyone_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const equal_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63013, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const description_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63014, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const testgen_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63015, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const benchgen_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63016, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63017, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unmarshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63018, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stable_marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63019, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const sizer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63020, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63021, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63022, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_unmarshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_extensions_map_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63025, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unrecognized_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63026, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gogoproto_import: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63027, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const protosizer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63028, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const compare_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63029, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const typedecl_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63030, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enumdecl_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63031, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_registration: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63032, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const messagename_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63033, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_sizecache_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63034, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unkeyed_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63035, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_getters: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const verbose_equal: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const face: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gostring: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const populate: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(67008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const onlyone: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const equal: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64013, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const description: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64014, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const testgen: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64015, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const benchgen: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64016, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64017, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unmarshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64018, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stable_marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64019, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const sizer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64020, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_unmarshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_extensions_map: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64025, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unrecognized: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64026, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const protosizer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64028, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const compare: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64029, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const typedecl: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64030, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const messagename: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64033, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_sizecache: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64034, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unkeyed: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64035, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const nullable: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const embed: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65002, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const customtype: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const jsontag: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const moretags: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const casttype: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const castkey: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const castvalue: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const stdtime: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65010, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stdduration: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65011, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const wktpointer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65012, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n\x14gogoproto/gogo.proto\x12\tgogoproto\x1a\x20google/protobuf/descrip\
|
|
||||||
tor.proto:N\n\x13goproto_enum_prefix\x18\xb1\xe4\x03\x20\x01(\x08\x12\
|
|
||||||
\x1c.google.protobuf.EnumOptionsR\x11goprotoEnumPrefix:R\n\x15goproto_en\
|
|
||||||
um_stringer\x18\xc5\xe4\x03\x20\x01(\x08\x12\x1c.google.protobuf.EnumOpt\
|
|
||||||
ionsR\x13goprotoEnumStringer:C\n\renum_stringer\x18\xc6\xe4\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.EnumOptionsR\x0cenumStringer:G\n\x0fenum_cu\
|
|
||||||
stomname\x18\xc7\xe4\x03\x20\x01(\t\x12\x1c.google.protobuf.EnumOptionsR\
|
|
||||||
\x0eenumCustomname::\n\x08enumdecl\x18\xc8\xe4\x03\x20\x01(\x08\x12\x1c.\
|
|
||||||
google.protobuf.EnumOptionsR\x08enumdecl:V\n\x14enumvalue_customname\x18\
|
|
||||||
\xd1\x83\x04\x20\x01(\t\x12!.google.protobuf.EnumValueOptionsR\x13enumva\
|
|
||||||
lueCustomname:N\n\x13goproto_getters_all\x18\x99\xec\x03\x20\x01(\x08\
|
|
||||||
\x12\x1c.google.protobuf.FileOptionsR\x11goprotoGettersAll:U\n\x17goprot\
|
|
||||||
o_enum_prefix_all\x18\x9a\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.F\
|
|
||||||
ileOptionsR\x14goprotoEnumPrefixAll:P\n\x14goproto_stringer_all\x18\x9b\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x12goprotoStr\
|
|
||||||
ingerAll:J\n\x11verbose_equal_all\x18\x9c\xec\x03\x20\x01(\x08\x12\x1c.g\
|
|
||||||
oogle.protobuf.FileOptionsR\x0fverboseEqualAll:9\n\x08face_all\x18\x9d\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x07faceAll:A\
|
|
||||||
\n\x0cgostring_all\x18\x9e\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.\
|
|
||||||
FileOptionsR\x0bgostringAll:A\n\x0cpopulate_all\x18\x9f\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x0bpopulateAll:A\n\x0cstringer\
|
|
||||||
_all\x18\xa0\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0bstringerAll:?\n\x0bonlyone_all\x18\xa1\xec\x03\x20\x01(\x08\x12\x1c.\
|
|
||||||
google.protobuf.FileOptionsR\nonlyoneAll:;\n\tequal_all\x18\xa5\xec\x03\
|
|
||||||
\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x08equalAll:G\n\x0fde\
|
|
||||||
scription_all\x18\xa6\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileO\
|
|
||||||
ptionsR\x0edescriptionAll:?\n\x0btestgen_all\x18\xa7\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\ntestgenAll:A\n\x0cbenchgen_al\
|
|
||||||
l\x18\xa8\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x0bb\
|
|
||||||
enchgenAll:C\n\rmarshaler_all\x18\xa9\xec\x03\x20\x01(\x08\x12\x1c.googl\
|
|
||||||
e.protobuf.FileOptionsR\x0cmarshalerAll:G\n\x0funmarshaler_all\x18\xaa\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x0eunmarshale\
|
|
||||||
rAll:P\n\x14stable_marshaler_all\x18\xab\xec\x03\x20\x01(\x08\x12\x1c.go\
|
|
||||||
ogle.protobuf.FileOptionsR\x12stableMarshalerAll:;\n\tsizer_all\x18\xac\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x08sizerAll:Y\
|
|
||||||
\n\x19goproto_enum_stringer_all\x18\xad\xec\x03\x20\x01(\x08\x12\x1c.goo\
|
|
||||||
gle.protobuf.FileOptionsR\x16goprotoEnumStringerAll:J\n\x11enum_stringer\
|
|
||||||
_all\x18\xae\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0fenumStringerAll:P\n\x14unsafe_marshaler_all\x18\xaf\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x12unsafeMarshalerAll:T\n\x16u\
|
|
||||||
nsafe_unmarshaler_all\x18\xb0\xec\x03\x20\x01(\x08\x12\x1c.google.protob\
|
|
||||||
uf.FileOptionsR\x14unsafeUnmarshalerAll:[\n\x1agoproto_extensions_map_al\
|
|
||||||
l\x18\xb1\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x17g\
|
|
||||||
oprotoExtensionsMapAll:X\n\x18goproto_unrecognized_all\x18\xb2\xec\x03\
|
|
||||||
\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x16goprotoUnrecognize\
|
|
||||||
dAll:I\n\x10gogoproto_import\x18\xb3\xec\x03\x20\x01(\x08\x12\x1c.google\
|
|
||||||
.protobuf.FileOptionsR\x0fgogoprotoImport:E\n\x0eprotosizer_all\x18\xb4\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\rprotosizerAl\
|
|
||||||
l:?\n\x0bcompare_all\x18\xb5\xec\x03\x20\x01(\x08\x12\x1c.google.protobu\
|
|
||||||
f.FileOptionsR\ncompareAll:A\n\x0ctypedecl_all\x18\xb6\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x0btypedeclAll:A\n\x0cenumdecl\
|
|
||||||
_all\x18\xb7\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0benumdeclAll:Q\n\x14goproto_registration\x18\xb8\xec\x03\x20\x01(\x08\
|
|
||||||
\x12\x1c.google.protobuf.FileOptionsR\x13goprotoRegistration:G\n\x0fmess\
|
|
||||||
agename_all\x18\xb9\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOpt\
|
|
||||||
ionsR\x0emessagenameAll:R\n\x15goproto_sizecache_all\x18\xba\xec\x03\x20\
|
|
||||||
\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x13goprotoSizecacheAll:N\
|
|
||||||
\n\x13goproto_unkeyed_all\x18\xbb\xec\x03\x20\x01(\x08\x12\x1c.google.pr\
|
|
||||||
otobuf.FileOptionsR\x11goprotoUnkeyedAll:J\n\x0fgoproto_getters\x18\x81\
|
|
||||||
\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0egoproto\
|
|
||||||
Getters:L\n\x10goproto_stringer\x18\x83\xf4\x03\x20\x01(\x08\x12\x1f.goo\
|
|
||||||
gle.protobuf.MessageOptionsR\x0fgoprotoStringer:F\n\rverbose_equal\x18\
|
|
||||||
\x84\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0cver\
|
|
||||||
boseEqual:5\n\x04face\x18\x85\xf4\x03\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x04face:=\n\x08gostring\x18\x86\xf4\x03\x20\x01(\x08\
|
|
||||||
\x12\x1f.google.protobuf.MessageOptionsR\x08gostring:=\n\x08populate\x18\
|
|
||||||
\x87\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x08pop\
|
|
||||||
ulate:=\n\x08stringer\x18\xc0\x8b\x04\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x08stringer:;\n\x07onlyone\x18\x89\xf4\x03\x20\x01(\
|
|
||||||
\x08\x12\x1f.google.protobuf.MessageOptionsR\x07onlyone:7\n\x05equal\x18\
|
|
||||||
\x8d\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x05equ\
|
|
||||||
al:C\n\x0bdescription\x18\x8e\xf4\x03\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x0bdescription:;\n\x07testgen\x18\x8f\xf4\x03\x20\x01\
|
|
||||||
(\x08\x12\x1f.google.protobuf.MessageOptionsR\x07testgen:=\n\x08benchgen\
|
|
||||||
\x18\x90\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\
|
|
||||||
\x08benchgen:?\n\tmarshaler\x18\x91\xf4\x03\x20\x01(\x08\x12\x1f.google.\
|
|
||||||
protobuf.MessageOptionsR\tmarshaler:C\n\x0bunmarshaler\x18\x92\xf4\x03\
|
|
||||||
\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0bunmarshaler:L\n\
|
|
||||||
\x10stable_marshaler\x18\x93\xf4\x03\x20\x01(\x08\x12\x1f.google.protobu\
|
|
||||||
f.MessageOptionsR\x0fstableMarshaler:7\n\x05sizer\x18\x94\xf4\x03\x20\
|
|
||||||
\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x05sizer:L\n\x10unsafe\
|
|
||||||
_marshaler\x18\x97\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageO\
|
|
||||||
ptionsR\x0funsafeMarshaler:P\n\x12unsafe_unmarshaler\x18\x98\xf4\x03\x20\
|
|
||||||
\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x11unsafeUnmarshaler:W\
|
|
||||||
\n\x16goproto_extensions_map\x18\x99\xf4\x03\x20\x01(\x08\x12\x1f.google\
|
|
||||||
.protobuf.MessageOptionsR\x14goprotoExtensionsMap:T\n\x14goproto_unrecog\
|
|
||||||
nized\x18\x9a\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOption\
|
|
||||||
sR\x13goprotoUnrecognized:A\n\nprotosizer\x18\x9c\xf4\x03\x20\x01(\x08\
|
|
||||||
\x12\x1f.google.protobuf.MessageOptionsR\nprotosizer:;\n\x07compare\x18\
|
|
||||||
\x9d\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x07com\
|
|
||||||
pare:=\n\x08typedecl\x18\x9e\xf4\x03\x20\x01(\x08\x12\x1f.google.protobu\
|
|
||||||
f.MessageOptionsR\x08typedecl:C\n\x0bmessagename\x18\xa1\xf4\x03\x20\x01\
|
|
||||||
(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0bmessagename:N\n\x11gopr\
|
|
||||||
oto_sizecache\x18\xa2\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.Messa\
|
|
||||||
geOptionsR\x10goprotoSizecache:J\n\x0fgoproto_unkeyed\x18\xa3\xf4\x03\
|
|
||||||
\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0egoprotoUnkeyed:\
|
|
||||||
;\n\x08nullable\x18\xe9\xfb\x03\x20\x01(\x08\x12\x1d.google.protobuf.Fie\
|
|
||||||
ldOptionsR\x08nullable:5\n\x05embed\x18\xea\xfb\x03\x20\x01(\x08\x12\x1d\
|
|
||||||
.google.protobuf.FieldOptionsR\x05embed:?\n\ncustomtype\x18\xeb\xfb\x03\
|
|
||||||
\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\ncustomtype:?\n\ncusto\
|
|
||||||
mname\x18\xec\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\n\
|
|
||||||
customname:9\n\x07jsontag\x18\xed\xfb\x03\x20\x01(\t\x12\x1d.google.prot\
|
|
||||||
obuf.FieldOptionsR\x07jsontag:;\n\x08moretags\x18\xee\xfb\x03\x20\x01(\t\
|
|
||||||
\x12\x1d.google.protobuf.FieldOptionsR\x08moretags:;\n\x08casttype\x18\
|
|
||||||
\xef\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\x08casttyp\
|
|
||||||
e:9\n\x07castkey\x18\xf0\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.Fiel\
|
|
||||||
dOptionsR\x07castkey:=\n\tcastvalue\x18\xf1\xfb\x03\x20\x01(\t\x12\x1d.g\
|
|
||||||
oogle.protobuf.FieldOptionsR\tcastvalue:9\n\x07stdtime\x18\xf2\xfb\x03\
|
|
||||||
\x20\x01(\x08\x12\x1d.google.protobuf.FieldOptionsR\x07stdtime:A\n\x0bst\
|
|
||||||
dduration\x18\xf3\xfb\x03\x20\x01(\x08\x12\x1d.google.protobuf.FieldOpti\
|
|
||||||
onsR\x0bstdduration:?\n\nwktpointer\x18\xf4\xfb\x03\x20\x01(\x08\x12\x1d\
|
|
||||||
.google.protobuf.FieldOptionsR\nwktpointerBE\n\x13com.google.protobufB\n\
|
|
||||||
GoGoProtosZ\"github.com/gogo/protobuf/gogoprotob\x06proto2\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(::protobuf::descriptor::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(0);
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,4 +0,0 @@
|
||||||
// @generated
|
|
||||||
|
|
||||||
pub mod gogo;
|
|
||||||
pub mod metrics;
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
/*
|
||||||
|
Copyright The containerd Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pub mod container {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/events/container.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod content {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/events/content.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod image {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/events/image.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod namespace {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/events/namespace.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod snapshot {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/events/snapshot.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod task {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/events/task.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
mod mount {
|
||||||
|
pub use crate::types::mount::*;
|
||||||
|
}
|
||||||
|
|
||||||
|
mod gogo {
|
||||||
|
pub use crate::types::gogo::*;
|
||||||
|
}
|
||||||
|
|
||||||
|
mod fieldpath {
|
||||||
|
pub use crate::types::fieldpath::*;
|
||||||
|
}
|
||||||
|
|
@ -1,963 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/api/events/container.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.ContainerCreate)
|
|
||||||
pub struct ContainerCreate {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerCreate.id)
|
|
||||||
pub id: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerCreate.image)
|
|
||||||
pub image: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerCreate.runtime)
|
|
||||||
pub runtime: ::protobuf::MessageField<container_create::Runtime>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.ContainerCreate.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ContainerCreate {
|
|
||||||
fn default() -> &'a ContainerCreate {
|
|
||||||
<ContainerCreate as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ContainerCreate {
|
|
||||||
pub fn new() -> ContainerCreate {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string id = 1;
|
|
||||||
|
|
||||||
pub fn 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 image = 2;
|
|
||||||
|
|
||||||
pub fn image(&self) -> &str {
|
|
||||||
&self.image
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_image(&mut self) {
|
|
||||||
self.image.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_image(&mut self, v: ::std::string::String) {
|
|
||||||
self.image = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_image(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.image
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_image(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.image, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// .containerd.events.ContainerCreate.Runtime runtime = 3;
|
|
||||||
|
|
||||||
pub fn runtime(&self) -> &container_create::Runtime {
|
|
||||||
self.runtime.as_ref().unwrap_or_else(|| <container_create::Runtime as ::protobuf::Message>::default_instance())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_runtime(&mut self) {
|
|
||||||
self.runtime.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn has_runtime(&self) -> bool {
|
|
||||||
self.runtime.is_some()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_runtime(&mut self, v: container_create::Runtime) {
|
|
||||||
self.runtime = ::protobuf::MessageField::some(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_runtime(&mut self) -> &mut container_create::Runtime {
|
|
||||||
self.runtime.mut_or_insert_default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_runtime(&mut self) -> container_create::Runtime {
|
|
||||||
self.runtime.take().unwrap_or_else(|| container_create::Runtime::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(3);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"id",
|
|
||||||
|m: &ContainerCreate| { &m.id },
|
|
||||||
|m: &mut ContainerCreate| { &mut m.id },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"image",
|
|
||||||
|m: &ContainerCreate| { &m.image },
|
|
||||||
|m: &mut ContainerCreate| { &mut m.image },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, container_create::Runtime>(
|
|
||||||
"runtime",
|
|
||||||
|m: &ContainerCreate| { &m.runtime },
|
|
||||||
|m: &mut ContainerCreate| { &mut m.runtime },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ContainerCreate>(
|
|
||||||
"ContainerCreate",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ContainerCreate {
|
|
||||||
const NAME: &'static str = "ContainerCreate";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.id = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
self.image = is.read_string()?;
|
|
||||||
},
|
|
||||||
26 => {
|
|
||||||
::protobuf::rt::read_singular_message_into_field(is, &mut self.runtime)?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.id.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.id);
|
|
||||||
}
|
|
||||||
if !self.image.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(2, &self.image);
|
|
||||||
}
|
|
||||||
if let Some(v) = self.runtime.as_ref() {
|
|
||||||
let len = v.compute_size();
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.id.is_empty() {
|
|
||||||
os.write_string(1, &self.id)?;
|
|
||||||
}
|
|
||||||
if !self.image.is_empty() {
|
|
||||||
os.write_string(2, &self.image)?;
|
|
||||||
}
|
|
||||||
if let Some(v) = self.runtime.as_ref() {
|
|
||||||
::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ContainerCreate {
|
|
||||||
ContainerCreate::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.id.clear();
|
|
||||||
self.image.clear();
|
|
||||||
self.runtime.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ContainerCreate {
|
|
||||||
static instance: ContainerCreate = ContainerCreate {
|
|
||||||
id: ::std::string::String::new(),
|
|
||||||
image: ::std::string::String::new(),
|
|
||||||
runtime: ::protobuf::MessageField::none(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ContainerCreate {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ContainerCreate").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ContainerCreate {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ContainerCreate {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Nested message and enums of message `ContainerCreate`
|
|
||||||
pub mod container_create {
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.ContainerCreate.Runtime)
|
|
||||||
pub struct Runtime {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerCreate.Runtime.name)
|
|
||||||
pub name: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerCreate.Runtime.options)
|
|
||||||
pub options: ::protobuf::MessageField<::protobuf::well_known_types::any::Any>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.ContainerCreate.Runtime.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a Runtime {
|
|
||||||
fn default() -> &'a Runtime {
|
|
||||||
<Runtime as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Runtime {
|
|
||||||
pub fn new() -> Runtime {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string name = 1;
|
|
||||||
|
|
||||||
pub fn 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())
|
|
||||||
}
|
|
||||||
|
|
||||||
// .google.protobuf.Any options = 2;
|
|
||||||
|
|
||||||
pub fn options(&self) -> &::protobuf::well_known_types::any::Any {
|
|
||||||
self.options.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::any::Any as ::protobuf::Message>::default_instance())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_options(&mut self) {
|
|
||||||
self.options.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn has_options(&self) -> bool {
|
|
||||||
self.options.is_some()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_options(&mut self, v: ::protobuf::well_known_types::any::Any) {
|
|
||||||
self.options = ::protobuf::MessageField::some(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_options(&mut self) -> &mut ::protobuf::well_known_types::any::Any {
|
|
||||||
self.options.mut_or_insert_default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_options(&mut self) -> ::protobuf::well_known_types::any::Any {
|
|
||||||
self.options.take().unwrap_or_else(|| ::protobuf::well_known_types::any::Any::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(2);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"name",
|
|
||||||
|m: &Runtime| { &m.name },
|
|
||||||
|m: &mut Runtime| { &mut m.name },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::any::Any>(
|
|
||||||
"options",
|
|
||||||
|m: &Runtime| { &m.options },
|
|
||||||
|m: &mut Runtime| { &mut m.options },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Runtime>(
|
|
||||||
"ContainerCreate.Runtime",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for Runtime {
|
|
||||||
const NAME: &'static str = "Runtime";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.name = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
::protobuf::rt::read_singular_message_into_field(is, &mut self.options)?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.name);
|
|
||||||
}
|
|
||||||
if let Some(v) = self.options.as_ref() {
|
|
||||||
let len = v.compute_size();
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
os.write_string(1, &self.name)?;
|
|
||||||
}
|
|
||||||
if let Some(v) = self.options.as_ref() {
|
|
||||||
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> Runtime {
|
|
||||||
Runtime::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.name.clear();
|
|
||||||
self.options.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static Runtime {
|
|
||||||
static instance: Runtime = Runtime {
|
|
||||||
name: ::std::string::String::new(),
|
|
||||||
options: ::protobuf::MessageField::none(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for Runtime {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| super::file_descriptor().message_by_package_relative_name("ContainerCreate.Runtime").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for Runtime {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for Runtime {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.ContainerUpdate)
|
|
||||||
pub struct ContainerUpdate {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerUpdate.id)
|
|
||||||
pub id: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerUpdate.image)
|
|
||||||
pub image: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerUpdate.labels)
|
|
||||||
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerUpdate.snapshot_key)
|
|
||||||
pub snapshot_key: ::std::string::String,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.ContainerUpdate.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ContainerUpdate {
|
|
||||||
fn default() -> &'a ContainerUpdate {
|
|
||||||
<ContainerUpdate as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ContainerUpdate {
|
|
||||||
pub fn new() -> ContainerUpdate {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string id = 1;
|
|
||||||
|
|
||||||
pub fn 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 image = 2;
|
|
||||||
|
|
||||||
pub fn image(&self) -> &str {
|
|
||||||
&self.image
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_image(&mut self) {
|
|
||||||
self.image.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_image(&mut self, v: ::std::string::String) {
|
|
||||||
self.image = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_image(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.image
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_image(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.image, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// repeated .containerd.events.ContainerUpdate.LabelsEntry labels = 3;
|
|
||||||
|
|
||||||
pub fn labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_labels(&mut self) {
|
|
||||||
self.labels.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
|
|
||||||
self.labels = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&mut self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// string snapshot_key = 4;
|
|
||||||
|
|
||||||
pub fn snapshot_key(&self) -> &str {
|
|
||||||
&self.snapshot_key
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_snapshot_key(&mut self) {
|
|
||||||
self.snapshot_key.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_snapshot_key(&mut self, v: ::std::string::String) {
|
|
||||||
self.snapshot_key = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_snapshot_key(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.snapshot_key
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_snapshot_key(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.snapshot_key, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(4);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"id",
|
|
||||||
|m: &ContainerUpdate| { &m.id },
|
|
||||||
|m: &mut ContainerUpdate| { &mut m.id },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"image",
|
|
||||||
|m: &ContainerUpdate| { &m.image },
|
|
||||||
|m: &mut ContainerUpdate| { &mut m.image },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>(
|
|
||||||
"labels",
|
|
||||||
|m: &ContainerUpdate| { &m.labels },
|
|
||||||
|m: &mut ContainerUpdate| { &mut m.labels },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"snapshot_key",
|
|
||||||
|m: &ContainerUpdate| { &m.snapshot_key },
|
|
||||||
|m: &mut ContainerUpdate| { &mut m.snapshot_key },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ContainerUpdate>(
|
|
||||||
"ContainerUpdate",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ContainerUpdate {
|
|
||||||
const NAME: &'static str = "ContainerUpdate";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.id = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
self.image = is.read_string()?;
|
|
||||||
},
|
|
||||||
26 => {
|
|
||||||
let len = is.read_raw_varint32()?;
|
|
||||||
let old_limit = is.push_limit(len as u64)?;
|
|
||||||
let mut key = ::std::default::Default::default();
|
|
||||||
let mut value = ::std::default::Default::default();
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => key = is.read_string()?,
|
|
||||||
18 => value = is.read_string()?,
|
|
||||||
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
is.pop_limit(old_limit);
|
|
||||||
self.labels.insert(key, value);
|
|
||||||
},
|
|
||||||
34 => {
|
|
||||||
self.snapshot_key = is.read_string()?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.id.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.id);
|
|
||||||
}
|
|
||||||
if !self.image.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(2, &self.image);
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
|
|
||||||
};
|
|
||||||
if !self.snapshot_key.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(4, &self.snapshot_key);
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.id.is_empty() {
|
|
||||||
os.write_string(1, &self.id)?;
|
|
||||||
}
|
|
||||||
if !self.image.is_empty() {
|
|
||||||
os.write_string(2, &self.image)?;
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
os.write_raw_varint32(26)?; // Tag.
|
|
||||||
os.write_raw_varint32(entry_size as u32)?;
|
|
||||||
os.write_string(1, &k)?;
|
|
||||||
os.write_string(2, &v)?;
|
|
||||||
};
|
|
||||||
if !self.snapshot_key.is_empty() {
|
|
||||||
os.write_string(4, &self.snapshot_key)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ContainerUpdate {
|
|
||||||
ContainerUpdate::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.id.clear();
|
|
||||||
self.image.clear();
|
|
||||||
self.labels.clear();
|
|
||||||
self.snapshot_key.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ContainerUpdate {
|
|
||||||
static instance: ::protobuf::rt::Lazy<ContainerUpdate> = ::protobuf::rt::Lazy::new();
|
|
||||||
instance.get(ContainerUpdate::new)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ContainerUpdate {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ContainerUpdate").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ContainerUpdate {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ContainerUpdate {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.ContainerDelete)
|
|
||||||
pub struct ContainerDelete {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContainerDelete.id)
|
|
||||||
pub id: ::std::string::String,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.ContainerDelete.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ContainerDelete {
|
|
||||||
fn default() -> &'a ContainerDelete {
|
|
||||||
<ContainerDelete as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ContainerDelete {
|
|
||||||
pub fn new() -> ContainerDelete {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string id = 1;
|
|
||||||
|
|
||||||
pub fn 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())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(1);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"id",
|
|
||||||
|m: &ContainerDelete| { &m.id },
|
|
||||||
|m: &mut ContainerDelete| { &mut m.id },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ContainerDelete>(
|
|
||||||
"ContainerDelete",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ContainerDelete {
|
|
||||||
const NAME: &'static str = "ContainerDelete";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.id = is.read_string()?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.id.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.id);
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.id.is_empty() {
|
|
||||||
os.write_string(1, &self.id)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ContainerDelete {
|
|
||||||
ContainerDelete::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.id.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ContainerDelete {
|
|
||||||
static instance: ContainerDelete = ContainerDelete {
|
|
||||||
id: ::std::string::String::new(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ContainerDelete {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ContainerDelete").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ContainerDelete {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ContainerDelete {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n;github.com/containerd/containerd/api/events/container.proto\x12\x11co\
|
|
||||||
ntainerd.events\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.p\
|
|
||||||
roto\x1a@github.com/containerd/containerd/protobuf/plugin/fieldpath.prot\
|
|
||||||
oX\x01X\x02\"\xcc\x01\n\x0fContainerCreate\x12\x0e\n\x02id\x18\x01\x20\
|
|
||||||
\x01(\tR\x02id\x12\x14\n\x05image\x18\x02\x20\x01(\tR\x05image\x12D\n\
|
|
||||||
\x07runtime\x18\x03\x20\x01(\x0b2*.containerd.events.ContainerCreate.Run\
|
|
||||||
timeR\x07runtime\x1aM\n\x07Runtime\x12\x12\n\x04name\x18\x01\x20\x01(\tR\
|
|
||||||
\x04name\x12.\n\x07options\x18\x02\x20\x01(\x0b2\x14.google.protobuf.Any\
|
|
||||||
R\x07options\"\xdd\x01\n\x0fContainerUpdate\x12\x0e\n\x02id\x18\x01\x20\
|
|
||||||
\x01(\tR\x02id\x12\x14\n\x05image\x18\x02\x20\x01(\tR\x05image\x12F\n\
|
|
||||||
\x06labels\x18\x03\x20\x03(\x0b2..containerd.events.ContainerUpdate.Labe\
|
|
||||||
lsEntryR\x06labels\x12!\n\x0csnapshot_key\x18\x04\x20\x01(\tR\x0bsnapsho\
|
|
||||||
tKey\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\
|
|
||||||
\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"!\n\x0fConta\
|
|
||||||
inerDelete\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02idB8Z2github.com/conta\
|
|
||||||
inerd/containerd/api/events;events\xa0\xf4\x1e\x01b\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(3);
|
|
||||||
deps.push(::protobuf::well_known_types::any::file_descriptor().clone());
|
|
||||||
deps.push(super::gogo::file_descriptor().clone());
|
|
||||||
deps.push(super::fieldpath::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(4);
|
|
||||||
messages.push(ContainerCreate::generated_message_descriptor_data());
|
|
||||||
messages.push(ContainerUpdate::generated_message_descriptor_data());
|
|
||||||
messages.push(ContainerDelete::generated_message_descriptor_data());
|
|
||||||
messages.push(container_create::Runtime::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,214 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/api/events/content.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.ContentDelete)
|
|
||||||
pub struct ContentDelete {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.ContentDelete.digest)
|
|
||||||
pub digest: ::std::string::String,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.ContentDelete.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ContentDelete {
|
|
||||||
fn default() -> &'a ContentDelete {
|
|
||||||
<ContentDelete as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ContentDelete {
|
|
||||||
pub fn new() -> ContentDelete {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string digest = 1;
|
|
||||||
|
|
||||||
pub fn digest(&self) -> &str {
|
|
||||||
&self.digest
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_digest(&mut self) {
|
|
||||||
self.digest.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_digest(&mut self, v: ::std::string::String) {
|
|
||||||
self.digest = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_digest(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.digest
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_digest(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.digest, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(1);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"digest",
|
|
||||||
|m: &ContentDelete| { &m.digest },
|
|
||||||
|m: &mut ContentDelete| { &mut m.digest },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ContentDelete>(
|
|
||||||
"ContentDelete",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ContentDelete {
|
|
||||||
const NAME: &'static str = "ContentDelete";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.digest = is.read_string()?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.digest.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.digest);
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.digest.is_empty() {
|
|
||||||
os.write_string(1, &self.digest)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ContentDelete {
|
|
||||||
ContentDelete::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.digest.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ContentDelete {
|
|
||||||
static instance: ContentDelete = ContentDelete {
|
|
||||||
digest: ::std::string::String::new(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ContentDelete {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ContentDelete").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ContentDelete {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ContentDelete {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n9github.com/containerd/containerd/api/events/content.proto\x12\x11cont\
|
|
||||||
ainerd.events\x1a\x14gogoproto/gogo.proto\x1a@github.com/containerd/cont\
|
|
||||||
ainerd/protobuf/plugin/fieldpath.protoX\0X\x01\"[\n\rContentDelete\x12J\
|
|
||||||
\n\x06digest\x18\x01\x20\x01(\tR\x06digestB2\xda\xde\x1f*github.com/open\
|
|
||||||
containers/go-digest.Digest\xc8\xde\x1f\0B8Z2github.com/containerd/conta\
|
|
||||||
inerd/api/events;events\xa0\xf4\x1e\x01b\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(2);
|
|
||||||
deps.push(super::gogo::file_descriptor().clone());
|
|
||||||
deps.push(super::fieldpath::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(1);
|
|
||||||
messages.push(ContentDelete::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,71 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/protobuf/plugin/fieldpath.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
/// Extension fields
|
|
||||||
pub mod exts {
|
|
||||||
|
|
||||||
pub const fieldpath_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63300, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const fieldpath: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64400, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n@github.com/containerd/containerd/protobuf/plugin/fieldpath.proto\x12\
|
|
||||||
\x11containerd.plugin\x1a\x20google/protobuf/descriptor.proto:C\n\rfield\
|
|
||||||
path_all\x18\xc4\xee\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOption\
|
|
||||||
sR\x0cfieldpathAll:?\n\tfieldpath\x18\x90\xf7\x03\x20\x01(\x08\x12\x1f.g\
|
|
||||||
oogle.protobuf.MessageOptionsR\tfieldpathb\x06proto2\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(::protobuf::descriptor::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(0);
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,327 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `gogoproto/gogo.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
/// Extension fields
|
|
||||||
pub mod exts {
|
|
||||||
|
|
||||||
pub const goproto_enum_prefix: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62021, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62022, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(62023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const enumdecl: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enumvalue_customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumValueOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(66001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const goproto_getters_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_prefix_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63002, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const verbose_equal_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const face_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gostring_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const populate_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const onlyone_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const equal_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63013, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const description_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63014, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const testgen_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63015, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const benchgen_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63016, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63017, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unmarshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63018, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stable_marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63019, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const sizer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63020, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63021, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63022, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_unmarshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_extensions_map_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63025, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unrecognized_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63026, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gogoproto_import: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63027, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const protosizer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63028, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const compare_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63029, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const typedecl_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63030, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enumdecl_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63031, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_registration: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63032, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const messagename_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63033, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_sizecache_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63034, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unkeyed_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63035, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_getters: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const verbose_equal: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const face: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gostring: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const populate: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(67008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const onlyone: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const equal: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64013, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const description: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64014, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const testgen: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64015, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const benchgen: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64016, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64017, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unmarshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64018, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stable_marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64019, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const sizer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64020, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_unmarshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_extensions_map: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64025, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unrecognized: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64026, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const protosizer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64028, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const compare: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64029, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const typedecl: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64030, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const messagename: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64033, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_sizecache: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64034, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unkeyed: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64035, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const nullable: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const embed: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65002, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const customtype: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const jsontag: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const moretags: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const casttype: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const castkey: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const castvalue: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const stdtime: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65010, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stdduration: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65011, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const wktpointer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65012, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n\x14gogoproto/gogo.proto\x12\tgogoproto\x1a\x20google/protobuf/descrip\
|
|
||||||
tor.proto:N\n\x13goproto_enum_prefix\x18\xb1\xe4\x03\x20\x01(\x08\x12\
|
|
||||||
\x1c.google.protobuf.EnumOptionsR\x11goprotoEnumPrefix:R\n\x15goproto_en\
|
|
||||||
um_stringer\x18\xc5\xe4\x03\x20\x01(\x08\x12\x1c.google.protobuf.EnumOpt\
|
|
||||||
ionsR\x13goprotoEnumStringer:C\n\renum_stringer\x18\xc6\xe4\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.EnumOptionsR\x0cenumStringer:G\n\x0fenum_cu\
|
|
||||||
stomname\x18\xc7\xe4\x03\x20\x01(\t\x12\x1c.google.protobuf.EnumOptionsR\
|
|
||||||
\x0eenumCustomname::\n\x08enumdecl\x18\xc8\xe4\x03\x20\x01(\x08\x12\x1c.\
|
|
||||||
google.protobuf.EnumOptionsR\x08enumdecl:V\n\x14enumvalue_customname\x18\
|
|
||||||
\xd1\x83\x04\x20\x01(\t\x12!.google.protobuf.EnumValueOptionsR\x13enumva\
|
|
||||||
lueCustomname:N\n\x13goproto_getters_all\x18\x99\xec\x03\x20\x01(\x08\
|
|
||||||
\x12\x1c.google.protobuf.FileOptionsR\x11goprotoGettersAll:U\n\x17goprot\
|
|
||||||
o_enum_prefix_all\x18\x9a\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.F\
|
|
||||||
ileOptionsR\x14goprotoEnumPrefixAll:P\n\x14goproto_stringer_all\x18\x9b\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x12goprotoStr\
|
|
||||||
ingerAll:J\n\x11verbose_equal_all\x18\x9c\xec\x03\x20\x01(\x08\x12\x1c.g\
|
|
||||||
oogle.protobuf.FileOptionsR\x0fverboseEqualAll:9\n\x08face_all\x18\x9d\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x07faceAll:A\
|
|
||||||
\n\x0cgostring_all\x18\x9e\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.\
|
|
||||||
FileOptionsR\x0bgostringAll:A\n\x0cpopulate_all\x18\x9f\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x0bpopulateAll:A\n\x0cstringer\
|
|
||||||
_all\x18\xa0\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0bstringerAll:?\n\x0bonlyone_all\x18\xa1\xec\x03\x20\x01(\x08\x12\x1c.\
|
|
||||||
google.protobuf.FileOptionsR\nonlyoneAll:;\n\tequal_all\x18\xa5\xec\x03\
|
|
||||||
\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x08equalAll:G\n\x0fde\
|
|
||||||
scription_all\x18\xa6\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileO\
|
|
||||||
ptionsR\x0edescriptionAll:?\n\x0btestgen_all\x18\xa7\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\ntestgenAll:A\n\x0cbenchgen_al\
|
|
||||||
l\x18\xa8\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x0bb\
|
|
||||||
enchgenAll:C\n\rmarshaler_all\x18\xa9\xec\x03\x20\x01(\x08\x12\x1c.googl\
|
|
||||||
e.protobuf.FileOptionsR\x0cmarshalerAll:G\n\x0funmarshaler_all\x18\xaa\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x0eunmarshale\
|
|
||||||
rAll:P\n\x14stable_marshaler_all\x18\xab\xec\x03\x20\x01(\x08\x12\x1c.go\
|
|
||||||
ogle.protobuf.FileOptionsR\x12stableMarshalerAll:;\n\tsizer_all\x18\xac\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x08sizerAll:Y\
|
|
||||||
\n\x19goproto_enum_stringer_all\x18\xad\xec\x03\x20\x01(\x08\x12\x1c.goo\
|
|
||||||
gle.protobuf.FileOptionsR\x16goprotoEnumStringerAll:J\n\x11enum_stringer\
|
|
||||||
_all\x18\xae\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0fenumStringerAll:P\n\x14unsafe_marshaler_all\x18\xaf\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x12unsafeMarshalerAll:T\n\x16u\
|
|
||||||
nsafe_unmarshaler_all\x18\xb0\xec\x03\x20\x01(\x08\x12\x1c.google.protob\
|
|
||||||
uf.FileOptionsR\x14unsafeUnmarshalerAll:[\n\x1agoproto_extensions_map_al\
|
|
||||||
l\x18\xb1\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x17g\
|
|
||||||
oprotoExtensionsMapAll:X\n\x18goproto_unrecognized_all\x18\xb2\xec\x03\
|
|
||||||
\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x16goprotoUnrecognize\
|
|
||||||
dAll:I\n\x10gogoproto_import\x18\xb3\xec\x03\x20\x01(\x08\x12\x1c.google\
|
|
||||||
.protobuf.FileOptionsR\x0fgogoprotoImport:E\n\x0eprotosizer_all\x18\xb4\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\rprotosizerAl\
|
|
||||||
l:?\n\x0bcompare_all\x18\xb5\xec\x03\x20\x01(\x08\x12\x1c.google.protobu\
|
|
||||||
f.FileOptionsR\ncompareAll:A\n\x0ctypedecl_all\x18\xb6\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x0btypedeclAll:A\n\x0cenumdecl\
|
|
||||||
_all\x18\xb7\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0benumdeclAll:Q\n\x14goproto_registration\x18\xb8\xec\x03\x20\x01(\x08\
|
|
||||||
\x12\x1c.google.protobuf.FileOptionsR\x13goprotoRegistration:G\n\x0fmess\
|
|
||||||
agename_all\x18\xb9\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOpt\
|
|
||||||
ionsR\x0emessagenameAll:R\n\x15goproto_sizecache_all\x18\xba\xec\x03\x20\
|
|
||||||
\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x13goprotoSizecacheAll:N\
|
|
||||||
\n\x13goproto_unkeyed_all\x18\xbb\xec\x03\x20\x01(\x08\x12\x1c.google.pr\
|
|
||||||
otobuf.FileOptionsR\x11goprotoUnkeyedAll:J\n\x0fgoproto_getters\x18\x81\
|
|
||||||
\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0egoproto\
|
|
||||||
Getters:L\n\x10goproto_stringer\x18\x83\xf4\x03\x20\x01(\x08\x12\x1f.goo\
|
|
||||||
gle.protobuf.MessageOptionsR\x0fgoprotoStringer:F\n\rverbose_equal\x18\
|
|
||||||
\x84\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0cver\
|
|
||||||
boseEqual:5\n\x04face\x18\x85\xf4\x03\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x04face:=\n\x08gostring\x18\x86\xf4\x03\x20\x01(\x08\
|
|
||||||
\x12\x1f.google.protobuf.MessageOptionsR\x08gostring:=\n\x08populate\x18\
|
|
||||||
\x87\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x08pop\
|
|
||||||
ulate:=\n\x08stringer\x18\xc0\x8b\x04\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x08stringer:;\n\x07onlyone\x18\x89\xf4\x03\x20\x01(\
|
|
||||||
\x08\x12\x1f.google.protobuf.MessageOptionsR\x07onlyone:7\n\x05equal\x18\
|
|
||||||
\x8d\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x05equ\
|
|
||||||
al:C\n\x0bdescription\x18\x8e\xf4\x03\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x0bdescription:;\n\x07testgen\x18\x8f\xf4\x03\x20\x01\
|
|
||||||
(\x08\x12\x1f.google.protobuf.MessageOptionsR\x07testgen:=\n\x08benchgen\
|
|
||||||
\x18\x90\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\
|
|
||||||
\x08benchgen:?\n\tmarshaler\x18\x91\xf4\x03\x20\x01(\x08\x12\x1f.google.\
|
|
||||||
protobuf.MessageOptionsR\tmarshaler:C\n\x0bunmarshaler\x18\x92\xf4\x03\
|
|
||||||
\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0bunmarshaler:L\n\
|
|
||||||
\x10stable_marshaler\x18\x93\xf4\x03\x20\x01(\x08\x12\x1f.google.protobu\
|
|
||||||
f.MessageOptionsR\x0fstableMarshaler:7\n\x05sizer\x18\x94\xf4\x03\x20\
|
|
||||||
\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x05sizer:L\n\x10unsafe\
|
|
||||||
_marshaler\x18\x97\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageO\
|
|
||||||
ptionsR\x0funsafeMarshaler:P\n\x12unsafe_unmarshaler\x18\x98\xf4\x03\x20\
|
|
||||||
\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x11unsafeUnmarshaler:W\
|
|
||||||
\n\x16goproto_extensions_map\x18\x99\xf4\x03\x20\x01(\x08\x12\x1f.google\
|
|
||||||
.protobuf.MessageOptionsR\x14goprotoExtensionsMap:T\n\x14goproto_unrecog\
|
|
||||||
nized\x18\x9a\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOption\
|
|
||||||
sR\x13goprotoUnrecognized:A\n\nprotosizer\x18\x9c\xf4\x03\x20\x01(\x08\
|
|
||||||
\x12\x1f.google.protobuf.MessageOptionsR\nprotosizer:;\n\x07compare\x18\
|
|
||||||
\x9d\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x07com\
|
|
||||||
pare:=\n\x08typedecl\x18\x9e\xf4\x03\x20\x01(\x08\x12\x1f.google.protobu\
|
|
||||||
f.MessageOptionsR\x08typedecl:C\n\x0bmessagename\x18\xa1\xf4\x03\x20\x01\
|
|
||||||
(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0bmessagename:N\n\x11gopr\
|
|
||||||
oto_sizecache\x18\xa2\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.Messa\
|
|
||||||
geOptionsR\x10goprotoSizecache:J\n\x0fgoproto_unkeyed\x18\xa3\xf4\x03\
|
|
||||||
\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0egoprotoUnkeyed:\
|
|
||||||
;\n\x08nullable\x18\xe9\xfb\x03\x20\x01(\x08\x12\x1d.google.protobuf.Fie\
|
|
||||||
ldOptionsR\x08nullable:5\n\x05embed\x18\xea\xfb\x03\x20\x01(\x08\x12\x1d\
|
|
||||||
.google.protobuf.FieldOptionsR\x05embed:?\n\ncustomtype\x18\xeb\xfb\x03\
|
|
||||||
\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\ncustomtype:?\n\ncusto\
|
|
||||||
mname\x18\xec\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\n\
|
|
||||||
customname:9\n\x07jsontag\x18\xed\xfb\x03\x20\x01(\t\x12\x1d.google.prot\
|
|
||||||
obuf.FieldOptionsR\x07jsontag:;\n\x08moretags\x18\xee\xfb\x03\x20\x01(\t\
|
|
||||||
\x12\x1d.google.protobuf.FieldOptionsR\x08moretags:;\n\x08casttype\x18\
|
|
||||||
\xef\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\x08casttyp\
|
|
||||||
e:9\n\x07castkey\x18\xf0\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.Fiel\
|
|
||||||
dOptionsR\x07castkey:=\n\tcastvalue\x18\xf1\xfb\x03\x20\x01(\t\x12\x1d.g\
|
|
||||||
oogle.protobuf.FieldOptionsR\tcastvalue:9\n\x07stdtime\x18\xf2\xfb\x03\
|
|
||||||
\x20\x01(\x08\x12\x1d.google.protobuf.FieldOptionsR\x07stdtime:A\n\x0bst\
|
|
||||||
dduration\x18\xf3\xfb\x03\x20\x01(\x08\x12\x1d.google.protobuf.FieldOpti\
|
|
||||||
onsR\x0bstdduration:?\n\nwktpointer\x18\xf4\xfb\x03\x20\x01(\x08\x12\x1d\
|
|
||||||
.google.protobuf.FieldOptionsR\nwktpointerBE\n\x13com.google.protobufB\n\
|
|
||||||
GoGoProtosZ\"github.com/gogo/protobuf/gogoprotob\x06proto2\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(::protobuf::descriptor::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(0);
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,638 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/api/events/image.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.services.images.v1.ImageCreate)
|
|
||||||
pub struct ImageCreate {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.images.v1.ImageCreate.name)
|
|
||||||
pub name: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.images.v1.ImageCreate.labels)
|
|
||||||
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.services.images.v1.ImageCreate.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ImageCreate {
|
|
||||||
fn default() -> &'a ImageCreate {
|
|
||||||
<ImageCreate as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ImageCreate {
|
|
||||||
pub fn new() -> ImageCreate {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string name = 1;
|
|
||||||
|
|
||||||
pub fn 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 .containerd.services.images.v1.ImageCreate.LabelsEntry labels = 2;
|
|
||||||
|
|
||||||
pub fn labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_labels(&mut self) {
|
|
||||||
self.labels.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
|
|
||||||
self.labels = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&mut self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(2);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"name",
|
|
||||||
|m: &ImageCreate| { &m.name },
|
|
||||||
|m: &mut ImageCreate| { &mut m.name },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>(
|
|
||||||
"labels",
|
|
||||||
|m: &ImageCreate| { &m.labels },
|
|
||||||
|m: &mut ImageCreate| { &mut m.labels },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ImageCreate>(
|
|
||||||
"ImageCreate",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ImageCreate {
|
|
||||||
const NAME: &'static str = "ImageCreate";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.name = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
let len = is.read_raw_varint32()?;
|
|
||||||
let old_limit = is.push_limit(len as u64)?;
|
|
||||||
let mut key = ::std::default::Default::default();
|
|
||||||
let mut value = ::std::default::Default::default();
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => key = is.read_string()?,
|
|
||||||
18 => value = is.read_string()?,
|
|
||||||
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
is.pop_limit(old_limit);
|
|
||||||
self.labels.insert(key, value);
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.name);
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
|
|
||||||
};
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
os.write_string(1, &self.name)?;
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
os.write_raw_varint32(18)?; // Tag.
|
|
||||||
os.write_raw_varint32(entry_size as u32)?;
|
|
||||||
os.write_string(1, &k)?;
|
|
||||||
os.write_string(2, &v)?;
|
|
||||||
};
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ImageCreate {
|
|
||||||
ImageCreate::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.name.clear();
|
|
||||||
self.labels.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ImageCreate {
|
|
||||||
static instance: ::protobuf::rt::Lazy<ImageCreate> = ::protobuf::rt::Lazy::new();
|
|
||||||
instance.get(ImageCreate::new)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ImageCreate {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ImageCreate").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ImageCreate {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ImageCreate {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.services.images.v1.ImageUpdate)
|
|
||||||
pub struct ImageUpdate {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.images.v1.ImageUpdate.name)
|
|
||||||
pub name: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.images.v1.ImageUpdate.labels)
|
|
||||||
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.services.images.v1.ImageUpdate.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ImageUpdate {
|
|
||||||
fn default() -> &'a ImageUpdate {
|
|
||||||
<ImageUpdate as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ImageUpdate {
|
|
||||||
pub fn new() -> ImageUpdate {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string name = 1;
|
|
||||||
|
|
||||||
pub fn 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 .containerd.services.images.v1.ImageUpdate.LabelsEntry labels = 2;
|
|
||||||
|
|
||||||
pub fn labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_labels(&mut self) {
|
|
||||||
self.labels.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
|
|
||||||
self.labels = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&mut self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(2);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"name",
|
|
||||||
|m: &ImageUpdate| { &m.name },
|
|
||||||
|m: &mut ImageUpdate| { &mut m.name },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>(
|
|
||||||
"labels",
|
|
||||||
|m: &ImageUpdate| { &m.labels },
|
|
||||||
|m: &mut ImageUpdate| { &mut m.labels },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ImageUpdate>(
|
|
||||||
"ImageUpdate",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ImageUpdate {
|
|
||||||
const NAME: &'static str = "ImageUpdate";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.name = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
let len = is.read_raw_varint32()?;
|
|
||||||
let old_limit = is.push_limit(len as u64)?;
|
|
||||||
let mut key = ::std::default::Default::default();
|
|
||||||
let mut value = ::std::default::Default::default();
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => key = is.read_string()?,
|
|
||||||
18 => value = is.read_string()?,
|
|
||||||
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
is.pop_limit(old_limit);
|
|
||||||
self.labels.insert(key, value);
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.name);
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
|
|
||||||
};
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
os.write_string(1, &self.name)?;
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
os.write_raw_varint32(18)?; // Tag.
|
|
||||||
os.write_raw_varint32(entry_size as u32)?;
|
|
||||||
os.write_string(1, &k)?;
|
|
||||||
os.write_string(2, &v)?;
|
|
||||||
};
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ImageUpdate {
|
|
||||||
ImageUpdate::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.name.clear();
|
|
||||||
self.labels.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ImageUpdate {
|
|
||||||
static instance: ::protobuf::rt::Lazy<ImageUpdate> = ::protobuf::rt::Lazy::new();
|
|
||||||
instance.get(ImageUpdate::new)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ImageUpdate {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ImageUpdate").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ImageUpdate {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ImageUpdate {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.services.images.v1.ImageDelete)
|
|
||||||
pub struct ImageDelete {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.images.v1.ImageDelete.name)
|
|
||||||
pub name: ::std::string::String,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.services.images.v1.ImageDelete.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ImageDelete {
|
|
||||||
fn default() -> &'a ImageDelete {
|
|
||||||
<ImageDelete as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ImageDelete {
|
|
||||||
pub fn new() -> ImageDelete {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string name = 1;
|
|
||||||
|
|
||||||
pub fn 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())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(1);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"name",
|
|
||||||
|m: &ImageDelete| { &m.name },
|
|
||||||
|m: &mut ImageDelete| { &mut m.name },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ImageDelete>(
|
|
||||||
"ImageDelete",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ImageDelete {
|
|
||||||
const NAME: &'static str = "ImageDelete";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.name = is.read_string()?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.name);
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
os.write_string(1, &self.name)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ImageDelete {
|
|
||||||
ImageDelete::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.name.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ImageDelete {
|
|
||||||
static instance: ImageDelete = ImageDelete {
|
|
||||||
name: ::std::string::String::new(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ImageDelete {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ImageDelete").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ImageDelete {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ImageDelete {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n7github.com/containerd/containerd/api/events/image.proto\x12\x1dcontai\
|
|
||||||
nerd.services.images.v1\x1a@github.com/containerd/containerd/protobuf/pl\
|
|
||||||
ugin/fieldpath.protoX\0\"\xac\x01\n\x0bImageCreate\x12\x12\n\x04name\x18\
|
|
||||||
\x01\x20\x01(\tR\x04name\x12N\n\x06labels\x18\x02\x20\x03(\x0b26.contain\
|
|
||||||
erd.services.images.v1.ImageCreate.LabelsEntryR\x06labels\x1a9\n\x0bLabe\
|
|
||||||
lsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\
|
|
||||||
\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xac\x01\n\x0bImageUpdate\x12\
|
|
||||||
\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12N\n\x06labels\x18\x02\x20\
|
|
||||||
\x03(\x0b26.containerd.services.images.v1.ImageUpdate.LabelsEntryR\x06la\
|
|
||||||
bels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\
|
|
||||||
\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"!\n\x0bImage\
|
|
||||||
Delete\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04nameB8Z2github.com/conta\
|
|
||||||
inerd/containerd/api/events;events\xa0\xf4\x1e\x01b\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(super::fieldpath::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(3);
|
|
||||||
messages.push(ImageCreate::generated_message_descriptor_data());
|
|
||||||
messages.push(ImageUpdate::generated_message_descriptor_data());
|
|
||||||
messages.push(ImageDelete::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
pub mod container;
|
|
||||||
pub mod content;
|
|
||||||
pub mod image;
|
|
||||||
pub mod namespace;
|
|
||||||
pub mod snapshot;
|
|
||||||
pub mod task;
|
|
||||||
|
|
||||||
pub(crate) mod mount;
|
|
||||||
|
|
||||||
mod fieldpath;
|
|
||||||
mod gogo;
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
/// Reexport types::mount::* to avoid manually editing other auto-generated source files.
|
|
||||||
|
|
||||||
pub use crate::types::mount::*;
|
|
||||||
|
|
@ -1,640 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/api/events/namespace.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.NamespaceCreate)
|
|
||||||
pub struct NamespaceCreate {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.NamespaceCreate.name)
|
|
||||||
pub name: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.NamespaceCreate.labels)
|
|
||||||
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.NamespaceCreate.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a NamespaceCreate {
|
|
||||||
fn default() -> &'a NamespaceCreate {
|
|
||||||
<NamespaceCreate as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl NamespaceCreate {
|
|
||||||
pub fn new() -> NamespaceCreate {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string name = 1;
|
|
||||||
|
|
||||||
pub fn 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 .containerd.events.NamespaceCreate.LabelsEntry labels = 2;
|
|
||||||
|
|
||||||
pub fn labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_labels(&mut self) {
|
|
||||||
self.labels.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
|
|
||||||
self.labels = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&mut self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(2);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"name",
|
|
||||||
|m: &NamespaceCreate| { &m.name },
|
|
||||||
|m: &mut NamespaceCreate| { &mut m.name },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>(
|
|
||||||
"labels",
|
|
||||||
|m: &NamespaceCreate| { &m.labels },
|
|
||||||
|m: &mut NamespaceCreate| { &mut m.labels },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NamespaceCreate>(
|
|
||||||
"NamespaceCreate",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for NamespaceCreate {
|
|
||||||
const NAME: &'static str = "NamespaceCreate";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.name = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
let len = is.read_raw_varint32()?;
|
|
||||||
let old_limit = is.push_limit(len as u64)?;
|
|
||||||
let mut key = ::std::default::Default::default();
|
|
||||||
let mut value = ::std::default::Default::default();
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => key = is.read_string()?,
|
|
||||||
18 => value = is.read_string()?,
|
|
||||||
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
is.pop_limit(old_limit);
|
|
||||||
self.labels.insert(key, value);
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.name);
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
|
|
||||||
};
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
os.write_string(1, &self.name)?;
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
os.write_raw_varint32(18)?; // Tag.
|
|
||||||
os.write_raw_varint32(entry_size as u32)?;
|
|
||||||
os.write_string(1, &k)?;
|
|
||||||
os.write_string(2, &v)?;
|
|
||||||
};
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> NamespaceCreate {
|
|
||||||
NamespaceCreate::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.name.clear();
|
|
||||||
self.labels.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static NamespaceCreate {
|
|
||||||
static instance: ::protobuf::rt::Lazy<NamespaceCreate> = ::protobuf::rt::Lazy::new();
|
|
||||||
instance.get(NamespaceCreate::new)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for NamespaceCreate {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("NamespaceCreate").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for NamespaceCreate {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for NamespaceCreate {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.NamespaceUpdate)
|
|
||||||
pub struct NamespaceUpdate {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.NamespaceUpdate.name)
|
|
||||||
pub name: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.NamespaceUpdate.labels)
|
|
||||||
pub labels: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.NamespaceUpdate.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a NamespaceUpdate {
|
|
||||||
fn default() -> &'a NamespaceUpdate {
|
|
||||||
<NamespaceUpdate as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl NamespaceUpdate {
|
|
||||||
pub fn new() -> NamespaceUpdate {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string name = 1;
|
|
||||||
|
|
||||||
pub fn 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 .containerd.events.NamespaceUpdate.LabelsEntry labels = 2;
|
|
||||||
|
|
||||||
pub fn labels(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_labels(&mut self) {
|
|
||||||
self.labels.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_labels(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
|
|
||||||
self.labels = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
pub fn mut_labels(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
&mut self.labels
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_labels(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
|
|
||||||
::std::mem::replace(&mut self.labels, ::std::collections::HashMap::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(2);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"name",
|
|
||||||
|m: &NamespaceUpdate| { &m.name },
|
|
||||||
|m: &mut NamespaceUpdate| { &mut m.name },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>(
|
|
||||||
"labels",
|
|
||||||
|m: &NamespaceUpdate| { &m.labels },
|
|
||||||
|m: &mut NamespaceUpdate| { &mut m.labels },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NamespaceUpdate>(
|
|
||||||
"NamespaceUpdate",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for NamespaceUpdate {
|
|
||||||
const NAME: &'static str = "NamespaceUpdate";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.name = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
let len = is.read_raw_varint32()?;
|
|
||||||
let old_limit = is.push_limit(len as u64)?;
|
|
||||||
let mut key = ::std::default::Default::default();
|
|
||||||
let mut value = ::std::default::Default::default();
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => key = is.read_string()?,
|
|
||||||
18 => value = is.read_string()?,
|
|
||||||
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
is.pop_limit(old_limit);
|
|
||||||
self.labels.insert(key, value);
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.name);
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
|
|
||||||
};
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
os.write_string(1, &self.name)?;
|
|
||||||
}
|
|
||||||
for (k, v) in &self.labels {
|
|
||||||
let mut entry_size = 0;
|
|
||||||
entry_size += ::protobuf::rt::string_size(1, &k);
|
|
||||||
entry_size += ::protobuf::rt::string_size(2, &v);
|
|
||||||
os.write_raw_varint32(18)?; // Tag.
|
|
||||||
os.write_raw_varint32(entry_size as u32)?;
|
|
||||||
os.write_string(1, &k)?;
|
|
||||||
os.write_string(2, &v)?;
|
|
||||||
};
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> NamespaceUpdate {
|
|
||||||
NamespaceUpdate::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.name.clear();
|
|
||||||
self.labels.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static NamespaceUpdate {
|
|
||||||
static instance: ::protobuf::rt::Lazy<NamespaceUpdate> = ::protobuf::rt::Lazy::new();
|
|
||||||
instance.get(NamespaceUpdate::new)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for NamespaceUpdate {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("NamespaceUpdate").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for NamespaceUpdate {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for NamespaceUpdate {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.NamespaceDelete)
|
|
||||||
pub struct NamespaceDelete {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.NamespaceDelete.name)
|
|
||||||
pub name: ::std::string::String,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.NamespaceDelete.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a NamespaceDelete {
|
|
||||||
fn default() -> &'a NamespaceDelete {
|
|
||||||
<NamespaceDelete as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl NamespaceDelete {
|
|
||||||
pub fn new() -> NamespaceDelete {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string name = 1;
|
|
||||||
|
|
||||||
pub fn 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())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(1);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"name",
|
|
||||||
|m: &NamespaceDelete| { &m.name },
|
|
||||||
|m: &mut NamespaceDelete| { &mut m.name },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NamespaceDelete>(
|
|
||||||
"NamespaceDelete",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for NamespaceDelete {
|
|
||||||
const NAME: &'static str = "NamespaceDelete";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.name = is.read_string()?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.name);
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
os.write_string(1, &self.name)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> NamespaceDelete {
|
|
||||||
NamespaceDelete::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.name.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static NamespaceDelete {
|
|
||||||
static instance: NamespaceDelete = NamespaceDelete {
|
|
||||||
name: ::std::string::String::new(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for NamespaceDelete {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("NamespaceDelete").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for NamespaceDelete {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for NamespaceDelete {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n;github.com/containerd/containerd/api/events/namespace.proto\x12\x11co\
|
|
||||||
ntainerd.events\x1a\x14gogoproto/gogo.proto\x1a@github.com/containerd/co\
|
|
||||||
ntainerd/protobuf/plugin/fieldpath.protoX\0X\x01\"\xa8\x01\n\x0fNamespac\
|
|
||||||
eCreate\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12F\n\x06labels\
|
|
||||||
\x18\x02\x20\x03(\x0b2..containerd.events.NamespaceCreate.LabelsEntryR\
|
|
||||||
\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\
|
|
||||||
\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\xa8\
|
|
||||||
\x01\n\x0fNamespaceUpdate\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\
|
|
||||||
\x12F\n\x06labels\x18\x02\x20\x03(\x0b2..containerd.events.NamespaceUpda\
|
|
||||||
te.LabelsEntryR\x06labels\x1a9\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01\
|
|
||||||
\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x02\
|
|
||||||
8\x01\"%\n\x0fNamespaceDelete\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04n\
|
|
||||||
ameB8Z2github.com/containerd/containerd/api/events;events\xa0\xf4\x1e\
|
|
||||||
\x01b\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(2);
|
|
||||||
deps.push(super::gogo::file_descriptor().clone());
|
|
||||||
deps.push(super::fieldpath::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(3);
|
|
||||||
messages.push(NamespaceCreate::generated_message_descriptor_data());
|
|
||||||
messages.push(NamespaceUpdate::generated_message_descriptor_data());
|
|
||||||
messages.push(NamespaceDelete::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,601 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/api/events/snapshot.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.SnapshotPrepare)
|
|
||||||
pub struct SnapshotPrepare {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.SnapshotPrepare.key)
|
|
||||||
pub key: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.SnapshotPrepare.parent)
|
|
||||||
pub parent: ::std::string::String,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.SnapshotPrepare.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a SnapshotPrepare {
|
|
||||||
fn default() -> &'a SnapshotPrepare {
|
|
||||||
<SnapshotPrepare as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SnapshotPrepare {
|
|
||||||
pub fn new() -> SnapshotPrepare {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string key = 1;
|
|
||||||
|
|
||||||
pub fn key(&self) -> &str {
|
|
||||||
&self.key
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_key(&mut self) {
|
|
||||||
self.key.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_key(&mut self, v: ::std::string::String) {
|
|
||||||
self.key = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_key(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.key
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_key(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.key, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// string parent = 2;
|
|
||||||
|
|
||||||
pub fn parent(&self) -> &str {
|
|
||||||
&self.parent
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_parent(&mut self) {
|
|
||||||
self.parent.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_parent(&mut self, v: ::std::string::String) {
|
|
||||||
self.parent = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_parent(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.parent
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_parent(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.parent, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(2);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"key",
|
|
||||||
|m: &SnapshotPrepare| { &m.key },
|
|
||||||
|m: &mut SnapshotPrepare| { &mut m.key },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"parent",
|
|
||||||
|m: &SnapshotPrepare| { &m.parent },
|
|
||||||
|m: &mut SnapshotPrepare| { &mut m.parent },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<SnapshotPrepare>(
|
|
||||||
"SnapshotPrepare",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for SnapshotPrepare {
|
|
||||||
const NAME: &'static str = "SnapshotPrepare";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.key = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
self.parent = is.read_string()?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.key.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.key);
|
|
||||||
}
|
|
||||||
if !self.parent.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(2, &self.parent);
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.key.is_empty() {
|
|
||||||
os.write_string(1, &self.key)?;
|
|
||||||
}
|
|
||||||
if !self.parent.is_empty() {
|
|
||||||
os.write_string(2, &self.parent)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> SnapshotPrepare {
|
|
||||||
SnapshotPrepare::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.key.clear();
|
|
||||||
self.parent.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static SnapshotPrepare {
|
|
||||||
static instance: SnapshotPrepare = SnapshotPrepare {
|
|
||||||
key: ::std::string::String::new(),
|
|
||||||
parent: ::std::string::String::new(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for SnapshotPrepare {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("SnapshotPrepare").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for SnapshotPrepare {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for SnapshotPrepare {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.SnapshotCommit)
|
|
||||||
pub struct SnapshotCommit {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.SnapshotCommit.key)
|
|
||||||
pub key: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.SnapshotCommit.name)
|
|
||||||
pub name: ::std::string::String,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.SnapshotCommit.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a SnapshotCommit {
|
|
||||||
fn default() -> &'a SnapshotCommit {
|
|
||||||
<SnapshotCommit as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SnapshotCommit {
|
|
||||||
pub fn new() -> SnapshotCommit {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string key = 1;
|
|
||||||
|
|
||||||
pub fn key(&self) -> &str {
|
|
||||||
&self.key
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_key(&mut self) {
|
|
||||||
self.key.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_key(&mut self, v: ::std::string::String) {
|
|
||||||
self.key = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_key(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.key
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_key(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.key, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// string name = 2;
|
|
||||||
|
|
||||||
pub fn 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())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(2);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"key",
|
|
||||||
|m: &SnapshotCommit| { &m.key },
|
|
||||||
|m: &mut SnapshotCommit| { &mut m.key },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"name",
|
|
||||||
|m: &SnapshotCommit| { &m.name },
|
|
||||||
|m: &mut SnapshotCommit| { &mut m.name },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<SnapshotCommit>(
|
|
||||||
"SnapshotCommit",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for SnapshotCommit {
|
|
||||||
const NAME: &'static str = "SnapshotCommit";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.key = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
self.name = is.read_string()?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.key.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.key);
|
|
||||||
}
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(2, &self.name);
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.key.is_empty() {
|
|
||||||
os.write_string(1, &self.key)?;
|
|
||||||
}
|
|
||||||
if !self.name.is_empty() {
|
|
||||||
os.write_string(2, &self.name)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> SnapshotCommit {
|
|
||||||
SnapshotCommit::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.key.clear();
|
|
||||||
self.name.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static SnapshotCommit {
|
|
||||||
static instance: SnapshotCommit = SnapshotCommit {
|
|
||||||
key: ::std::string::String::new(),
|
|
||||||
name: ::std::string::String::new(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for SnapshotCommit {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("SnapshotCommit").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for SnapshotCommit {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for SnapshotCommit {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.events.SnapshotRemove)
|
|
||||||
pub struct SnapshotRemove {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.events.SnapshotRemove.key)
|
|
||||||
pub key: ::std::string::String,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.events.SnapshotRemove.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a SnapshotRemove {
|
|
||||||
fn default() -> &'a SnapshotRemove {
|
|
||||||
<SnapshotRemove as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl SnapshotRemove {
|
|
||||||
pub fn new() -> SnapshotRemove {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string key = 1;
|
|
||||||
|
|
||||||
pub fn key(&self) -> &str {
|
|
||||||
&self.key
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_key(&mut self) {
|
|
||||||
self.key.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_key(&mut self, v: ::std::string::String) {
|
|
||||||
self.key = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_key(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.key
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_key(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.key, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(1);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"key",
|
|
||||||
|m: &SnapshotRemove| { &m.key },
|
|
||||||
|m: &mut SnapshotRemove| { &mut m.key },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<SnapshotRemove>(
|
|
||||||
"SnapshotRemove",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for SnapshotRemove {
|
|
||||||
const NAME: &'static str = "SnapshotRemove";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.key = is.read_string()?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.key.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.key);
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.key.is_empty() {
|
|
||||||
os.write_string(1, &self.key)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> SnapshotRemove {
|
|
||||||
SnapshotRemove::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.key.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static SnapshotRemove {
|
|
||||||
static instance: SnapshotRemove = SnapshotRemove {
|
|
||||||
key: ::std::string::String::new(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for SnapshotRemove {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("SnapshotRemove").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for SnapshotRemove {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for SnapshotRemove {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n:github.com/containerd/containerd/api/events/snapshot.proto\x12\x11con\
|
|
||||||
tainerd.events\x1a@github.com/containerd/containerd/protobuf/plugin/fiel\
|
|
||||||
dpath.protoX\0\";\n\x0fSnapshotPrepare\x12\x10\n\x03key\x18\x01\x20\x01(\
|
|
||||||
\tR\x03key\x12\x16\n\x06parent\x18\x02\x20\x01(\tR\x06parent\"6\n\x0eSna\
|
|
||||||
pshotCommit\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x12\n\x04nam\
|
|
||||||
e\x18\x02\x20\x01(\tR\x04name\"\"\n\x0eSnapshotRemove\x12\x10\n\x03key\
|
|
||||||
\x18\x01\x20\x01(\tR\x03keyB8Z2github.com/containerd/containerd/api/even\
|
|
||||||
ts;events\xa0\xf4\x1e\x01b\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(super::fieldpath::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(3);
|
|
||||||
messages.push(SnapshotPrepare::generated_message_descriptor_data());
|
|
||||||
messages.push(SnapshotCommit::generated_message_descriptor_data());
|
|
||||||
messages.push(SnapshotRemove::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -60,20 +60,14 @@
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
|
||||||
// Supress warning: redundant field names in struct initialization
|
#![allow(warnings)]
|
||||||
#![allow(clippy::redundant_field_names)]
|
|
||||||
|
|
||||||
pub use protobuf;
|
pub use protobuf;
|
||||||
pub use ttrpc;
|
pub use ttrpc;
|
||||||
|
|
||||||
/// Generated event structures.
|
|
||||||
#[rustfmt::skip]
|
|
||||||
pub mod events;
|
|
||||||
#[rustfmt::skip]
|
|
||||||
pub mod cgroups;
|
pub mod cgroups;
|
||||||
#[rustfmt::skip]
|
pub mod events;
|
||||||
pub mod shim;
|
pub mod shim;
|
||||||
#[rustfmt::skip]
|
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|
||||||
/// Includes event names shims can publish to containerd.
|
/// Includes event names shims can publish to containerd.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,71 @@
|
||||||
|
/*
|
||||||
|
Copyright The containerd Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pub mod oci {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/shim/oci.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod events {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/shim/events.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod events_ttrpc {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/shim/events_ttrpc.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "async")]
|
||||||
|
pub mod events_ttrpc_async {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/shim_async/events_ttrpc.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod shim {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/shim/shim.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod shim_ttrpc {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/shim/shim_ttrpc.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "async")]
|
||||||
|
pub mod shim_ttrpc_async {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/shim_async/shim_ttrpc.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub(crate) mod empty {
|
||||||
|
pub use crate::types::empty::*;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub(crate) mod mount {
|
||||||
|
pub use crate::types::mount::*;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub(crate) mod task {
|
||||||
|
pub use crate::types::task::*;
|
||||||
|
}
|
||||||
|
|
||||||
|
mod fieldpath {
|
||||||
|
pub use crate::types::fieldpath::*;
|
||||||
|
}
|
||||||
|
|
||||||
|
mod gogo {
|
||||||
|
pub use crate::types::gogo::*;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Shim task service.
|
||||||
|
pub use shim_ttrpc::{create_task, Task, TaskClient};
|
||||||
|
|
||||||
|
/// Shim events service.
|
||||||
|
pub use events_ttrpc::{create_events, Events, EventsClient};
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
/// Reexport types::empty::* to avoid manually editing other auto-generated source files.
|
|
||||||
|
|
||||||
pub use crate::types::empty::*;
|
|
||||||
|
|
@ -1,521 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/api/services/ttrpc/events/v1/events.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.services.events.ttrpc.v1.ForwardRequest)
|
|
||||||
pub struct ForwardRequest {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.events.ttrpc.v1.ForwardRequest.envelope)
|
|
||||||
pub envelope: ::protobuf::MessageField<Envelope>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.services.events.ttrpc.v1.ForwardRequest.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ForwardRequest {
|
|
||||||
fn default() -> &'a ForwardRequest {
|
|
||||||
<ForwardRequest as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ForwardRequest {
|
|
||||||
pub fn new() -> ForwardRequest {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// .containerd.services.events.ttrpc.v1.Envelope envelope = 1;
|
|
||||||
|
|
||||||
pub fn envelope(&self) -> &Envelope {
|
|
||||||
self.envelope.as_ref().unwrap_or_else(|| <Envelope as ::protobuf::Message>::default_instance())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_envelope(&mut self) {
|
|
||||||
self.envelope.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn has_envelope(&self) -> bool {
|
|
||||||
self.envelope.is_some()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_envelope(&mut self, v: Envelope) {
|
|
||||||
self.envelope = ::protobuf::MessageField::some(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_envelope(&mut self) -> &mut Envelope {
|
|
||||||
self.envelope.mut_or_insert_default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_envelope(&mut self) -> Envelope {
|
|
||||||
self.envelope.take().unwrap_or_else(|| Envelope::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(1);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Envelope>(
|
|
||||||
"envelope",
|
|
||||||
|m: &ForwardRequest| { &m.envelope },
|
|
||||||
|m: &mut ForwardRequest| { &mut m.envelope },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ForwardRequest>(
|
|
||||||
"ForwardRequest",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ForwardRequest {
|
|
||||||
const NAME: &'static str = "ForwardRequest";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
::protobuf::rt::read_singular_message_into_field(is, &mut self.envelope)?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if let Some(v) = self.envelope.as_ref() {
|
|
||||||
let len = v.compute_size();
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if let Some(v) = self.envelope.as_ref() {
|
|
||||||
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ForwardRequest {
|
|
||||||
ForwardRequest::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.envelope.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ForwardRequest {
|
|
||||||
static instance: ForwardRequest = ForwardRequest {
|
|
||||||
envelope: ::protobuf::MessageField::none(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ForwardRequest {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ForwardRequest").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ForwardRequest {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ForwardRequest {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.services.events.ttrpc.v1.Envelope)
|
|
||||||
pub struct Envelope {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.events.ttrpc.v1.Envelope.timestamp)
|
|
||||||
pub timestamp: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>,
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.events.ttrpc.v1.Envelope.namespace)
|
|
||||||
pub namespace: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.events.ttrpc.v1.Envelope.topic)
|
|
||||||
pub topic: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.services.events.ttrpc.v1.Envelope.event)
|
|
||||||
pub event: ::protobuf::MessageField<::protobuf::well_known_types::any::Any>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.services.events.ttrpc.v1.Envelope.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a Envelope {
|
|
||||||
fn default() -> &'a Envelope {
|
|
||||||
<Envelope as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Envelope {
|
|
||||||
pub fn new() -> Envelope {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// .google.protobuf.Timestamp timestamp = 1;
|
|
||||||
|
|
||||||
pub fn timestamp(&self) -> &::protobuf::well_known_types::timestamp::Timestamp {
|
|
||||||
self.timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::timestamp::Timestamp as ::protobuf::Message>::default_instance())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_timestamp(&mut self) {
|
|
||||||
self.timestamp.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn has_timestamp(&self) -> bool {
|
|
||||||
self.timestamp.is_some()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_timestamp(&mut self, v: ::protobuf::well_known_types::timestamp::Timestamp) {
|
|
||||||
self.timestamp = ::protobuf::MessageField::some(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_timestamp(&mut self) -> &mut ::protobuf::well_known_types::timestamp::Timestamp {
|
|
||||||
self.timestamp.mut_or_insert_default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_timestamp(&mut self) -> ::protobuf::well_known_types::timestamp::Timestamp {
|
|
||||||
self.timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::timestamp::Timestamp::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// string namespace = 2;
|
|
||||||
|
|
||||||
pub fn namespace(&self) -> &str {
|
|
||||||
&self.namespace
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_namespace(&mut self) {
|
|
||||||
self.namespace.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_namespace(&mut self, v: ::std::string::String) {
|
|
||||||
self.namespace = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_namespace(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.namespace
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_namespace(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.namespace, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// string topic = 3;
|
|
||||||
|
|
||||||
pub fn topic(&self) -> &str {
|
|
||||||
&self.topic
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_topic(&mut self) {
|
|
||||||
self.topic.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_topic(&mut self, v: ::std::string::String) {
|
|
||||||
self.topic = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.topic
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_topic(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.topic, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// .google.protobuf.Any event = 4;
|
|
||||||
|
|
||||||
pub fn event(&self) -> &::protobuf::well_known_types::any::Any {
|
|
||||||
self.event.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::any::Any as ::protobuf::Message>::default_instance())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_event(&mut self) {
|
|
||||||
self.event.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn has_event(&self) -> bool {
|
|
||||||
self.event.is_some()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_event(&mut self, v: ::protobuf::well_known_types::any::Any) {
|
|
||||||
self.event = ::protobuf::MessageField::some(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_event(&mut self) -> &mut ::protobuf::well_known_types::any::Any {
|
|
||||||
self.event.mut_or_insert_default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_event(&mut self) -> ::protobuf::well_known_types::any::Any {
|
|
||||||
self.event.take().unwrap_or_else(|| ::protobuf::well_known_types::any::Any::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(4);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>(
|
|
||||||
"timestamp",
|
|
||||||
|m: &Envelope| { &m.timestamp },
|
|
||||||
|m: &mut Envelope| { &mut m.timestamp },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"namespace",
|
|
||||||
|m: &Envelope| { &m.namespace },
|
|
||||||
|m: &mut Envelope| { &mut m.namespace },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"topic",
|
|
||||||
|m: &Envelope| { &m.topic },
|
|
||||||
|m: &mut Envelope| { &mut m.topic },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::any::Any>(
|
|
||||||
"event",
|
|
||||||
|m: &Envelope| { &m.event },
|
|
||||||
|m: &mut Envelope| { &mut m.event },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Envelope>(
|
|
||||||
"Envelope",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for Envelope {
|
|
||||||
const NAME: &'static str = "Envelope";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
::protobuf::rt::read_singular_message_into_field(is, &mut self.timestamp)?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
self.namespace = is.read_string()?;
|
|
||||||
},
|
|
||||||
26 => {
|
|
||||||
self.topic = is.read_string()?;
|
|
||||||
},
|
|
||||||
34 => {
|
|
||||||
::protobuf::rt::read_singular_message_into_field(is, &mut self.event)?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if let Some(v) = self.timestamp.as_ref() {
|
|
||||||
let len = v.compute_size();
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
|
|
||||||
}
|
|
||||||
if !self.namespace.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(2, &self.namespace);
|
|
||||||
}
|
|
||||||
if !self.topic.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(3, &self.topic);
|
|
||||||
}
|
|
||||||
if let Some(v) = self.event.as_ref() {
|
|
||||||
let len = v.compute_size();
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if let Some(v) = self.timestamp.as_ref() {
|
|
||||||
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
|
|
||||||
}
|
|
||||||
if !self.namespace.is_empty() {
|
|
||||||
os.write_string(2, &self.namespace)?;
|
|
||||||
}
|
|
||||||
if !self.topic.is_empty() {
|
|
||||||
os.write_string(3, &self.topic)?;
|
|
||||||
}
|
|
||||||
if let Some(v) = self.event.as_ref() {
|
|
||||||
::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> Envelope {
|
|
||||||
Envelope::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.timestamp.clear();
|
|
||||||
self.namespace.clear();
|
|
||||||
self.topic.clear();
|
|
||||||
self.event.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static Envelope {
|
|
||||||
static instance: Envelope = Envelope {
|
|
||||||
timestamp: ::protobuf::MessageField::none(),
|
|
||||||
namespace: ::std::string::String::new(),
|
|
||||||
topic: ::std::string::String::new(),
|
|
||||||
event: ::protobuf::MessageField::none(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for Envelope {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("Envelope").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for Envelope {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for Envelope {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\nJgithub.com/containerd/containerd/api/services/ttrpc/events/v1/events.\
|
|
||||||
proto\x12#containerd.services.events.ttrpc.v1\x1a@github.com/containerd/\
|
|
||||||
containerd/protobuf/plugin/fieldpath.proto\x1a\x14gogoproto/gogo.proto\
|
|
||||||
\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\
|
|
||||||
\x1fgoogle/protobuf/timestamp.protoX\0X\x01\"[\n\x0eForwardRequest\x12I\
|
|
||||||
\n\x08envelope\x18\x01\x20\x01(\x0b2-.containerd.services.events.ttrpc.v\
|
|
||||||
1.EnvelopeR\x08envelope\"\xb4\x01\n\x08Envelope\x12B\n\ttimestamp\x18\
|
|
||||||
\x01\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ttimestampB\x08\x90\
|
|
||||||
\xdf\x1f\x01\xc8\xde\x1f\0\x12\x1c\n\tnamespace\x18\x02\x20\x01(\tR\tnam\
|
|
||||||
espace\x12\x14\n\x05topic\x18\x03\x20\x01(\tR\x05topic\x12*\n\x05event\
|
|
||||||
\x18\x04\x20\x01(\x0b2\x14.google.protobuf.AnyR\x05event:\x04\x80\xb9\
|
|
||||||
\x1f\x012`\n\x06Events\x12V\n\x07Forward\x123.containerd.services.events\
|
|
||||||
.ttrpc.v1.ForwardRequest\x1a\x16.google.protobuf.EmptyBFZDgithub.com/con\
|
|
||||||
tainerd/containerd/api/services/ttrpc/events/v1;eventsb\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(5);
|
|
||||||
deps.push(super::fieldpath::file_descriptor().clone());
|
|
||||||
deps.push(super::gogo::file_descriptor().clone());
|
|
||||||
deps.push(::protobuf::well_known_types::any::file_descriptor().clone());
|
|
||||||
deps.push(::protobuf::well_known_types::empty::file_descriptor().clone());
|
|
||||||
deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(2);
|
|
||||||
messages.push(ForwardRequest::generated_message_descriptor_data());
|
|
||||||
messages.push(Envelope::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
||||||
// This file is generated by ttrpc-compiler 0.6.1. 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 EventsClient {
|
|
||||||
client: ::ttrpc::Client,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl EventsClient {
|
|
||||||
pub fn new(client: ::ttrpc::Client) -> Self {
|
|
||||||
EventsClient {
|
|
||||||
client: client,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn forward(&self, ctx: ttrpc::context::Context, req: &super::events::ForwardRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.services.events.ttrpc.v1.Events", "Forward", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ForwardMethod {
|
|
||||||
service: Arc<Box<dyn Events + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for ForwardMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, events, ForwardRequest, forward);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub trait Events {
|
|
||||||
fn forward(&self, _ctx: &::ttrpc::TtrpcContext, _: super::events::ForwardRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.services.events.ttrpc.v1.Events/Forward is not supported".to_string())))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn create_events(service: Arc<Box<dyn Events + Send + Sync>>) -> HashMap<String, Box<dyn ::ttrpc::MethodHandler + Send + Sync>> {
|
|
||||||
let mut methods = HashMap::new();
|
|
||||||
|
|
||||||
methods.insert("/containerd.services.events.ttrpc.v1.Events/Forward".to_string(),
|
|
||||||
Box::new(ForwardMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods
|
|
||||||
}
|
|
||||||
|
|
@ -1,71 +0,0 @@
|
||||||
// This file is generated by ttrpc-compiler 0.6.1. 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;
|
|
||||||
use async_trait::async_trait;
|
|
||||||
|
|
||||||
#[derive(Clone)]
|
|
||||||
pub struct EventsClient {
|
|
||||||
client: ::ttrpc::r#async::Client,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl EventsClient {
|
|
||||||
pub fn new(client: ::ttrpc::r#async::Client) -> Self {
|
|
||||||
EventsClient {
|
|
||||||
client: client,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn forward(&self, ctx: ttrpc::context::Context, req: &super::events::ForwardRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.services.events.ttrpc.v1.Events", "Forward", cres);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ForwardMethod {
|
|
||||||
service: Arc<Box<dyn Events + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for ForwardMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, events, ForwardRequest, forward);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
pub trait Events: Sync {
|
|
||||||
async fn forward(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::events::ForwardRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.services.events.ttrpc.v1.Events/Forward is not supported".to_string())))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn create_events(service: Arc<Box<dyn Events + Send + Sync>>) -> HashMap<String, ::ttrpc::r#async::Service> {
|
|
||||||
let mut ret = HashMap::new();
|
|
||||||
let mut methods = HashMap::new();
|
|
||||||
let streams = HashMap::new();
|
|
||||||
|
|
||||||
methods.insert("Forward".to_string(),
|
|
||||||
Box::new(ForwardMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
ret.insert("containerd.services.events.ttrpc.v1.Events".to_string(), ::ttrpc::r#async::Service{ methods, streams });
|
|
||||||
ret
|
|
||||||
}
|
|
||||||
|
|
@ -1,71 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/protobuf/plugin/fieldpath.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
/// Extension fields
|
|
||||||
pub mod exts {
|
|
||||||
|
|
||||||
pub const fieldpath_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63300, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const fieldpath: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64400, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n@github.com/containerd/containerd/protobuf/plugin/fieldpath.proto\x12\
|
|
||||||
\x11containerd.plugin\x1a\x20google/protobuf/descriptor.proto:C\n\rfield\
|
|
||||||
path_all\x18\xc4\xee\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOption\
|
|
||||||
sR\x0cfieldpathAll:?\n\tfieldpath\x18\x90\xf7\x03\x20\x01(\x08\x12\x1f.g\
|
|
||||||
oogle.protobuf.MessageOptionsR\tfieldpathb\x06proto2\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(::protobuf::descriptor::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(0);
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,327 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `gogoproto/gogo.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
/// Extension fields
|
|
||||||
pub mod exts {
|
|
||||||
|
|
||||||
pub const goproto_enum_prefix: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62021, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62022, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(62023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const enumdecl: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enumvalue_customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumValueOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(66001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const goproto_getters_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_prefix_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63002, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const verbose_equal_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const face_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gostring_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const populate_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const onlyone_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const equal_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63013, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const description_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63014, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const testgen_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63015, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const benchgen_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63016, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63017, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unmarshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63018, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stable_marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63019, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const sizer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63020, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63021, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63022, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_unmarshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_extensions_map_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63025, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unrecognized_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63026, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gogoproto_import: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63027, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const protosizer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63028, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const compare_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63029, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const typedecl_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63030, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enumdecl_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63031, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_registration: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63032, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const messagename_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63033, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_sizecache_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63034, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unkeyed_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63035, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_getters: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const verbose_equal: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const face: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gostring: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const populate: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(67008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const onlyone: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const equal: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64013, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const description: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64014, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const testgen: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64015, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const benchgen: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64016, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64017, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unmarshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64018, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stable_marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64019, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const sizer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64020, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_unmarshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_extensions_map: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64025, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unrecognized: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64026, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const protosizer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64028, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const compare: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64029, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const typedecl: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64030, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const messagename: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64033, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_sizecache: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64034, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unkeyed: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64035, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const nullable: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const embed: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65002, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const customtype: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const jsontag: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const moretags: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const casttype: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const castkey: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const castvalue: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const stdtime: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65010, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stdduration: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65011, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const wktpointer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65012, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n\x14gogoproto/gogo.proto\x12\tgogoproto\x1a\x20google/protobuf/descrip\
|
|
||||||
tor.proto:N\n\x13goproto_enum_prefix\x18\xb1\xe4\x03\x20\x01(\x08\x12\
|
|
||||||
\x1c.google.protobuf.EnumOptionsR\x11goprotoEnumPrefix:R\n\x15goproto_en\
|
|
||||||
um_stringer\x18\xc5\xe4\x03\x20\x01(\x08\x12\x1c.google.protobuf.EnumOpt\
|
|
||||||
ionsR\x13goprotoEnumStringer:C\n\renum_stringer\x18\xc6\xe4\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.EnumOptionsR\x0cenumStringer:G\n\x0fenum_cu\
|
|
||||||
stomname\x18\xc7\xe4\x03\x20\x01(\t\x12\x1c.google.protobuf.EnumOptionsR\
|
|
||||||
\x0eenumCustomname::\n\x08enumdecl\x18\xc8\xe4\x03\x20\x01(\x08\x12\x1c.\
|
|
||||||
google.protobuf.EnumOptionsR\x08enumdecl:V\n\x14enumvalue_customname\x18\
|
|
||||||
\xd1\x83\x04\x20\x01(\t\x12!.google.protobuf.EnumValueOptionsR\x13enumva\
|
|
||||||
lueCustomname:N\n\x13goproto_getters_all\x18\x99\xec\x03\x20\x01(\x08\
|
|
||||||
\x12\x1c.google.protobuf.FileOptionsR\x11goprotoGettersAll:U\n\x17goprot\
|
|
||||||
o_enum_prefix_all\x18\x9a\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.F\
|
|
||||||
ileOptionsR\x14goprotoEnumPrefixAll:P\n\x14goproto_stringer_all\x18\x9b\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x12goprotoStr\
|
|
||||||
ingerAll:J\n\x11verbose_equal_all\x18\x9c\xec\x03\x20\x01(\x08\x12\x1c.g\
|
|
||||||
oogle.protobuf.FileOptionsR\x0fverboseEqualAll:9\n\x08face_all\x18\x9d\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x07faceAll:A\
|
|
||||||
\n\x0cgostring_all\x18\x9e\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.\
|
|
||||||
FileOptionsR\x0bgostringAll:A\n\x0cpopulate_all\x18\x9f\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x0bpopulateAll:A\n\x0cstringer\
|
|
||||||
_all\x18\xa0\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0bstringerAll:?\n\x0bonlyone_all\x18\xa1\xec\x03\x20\x01(\x08\x12\x1c.\
|
|
||||||
google.protobuf.FileOptionsR\nonlyoneAll:;\n\tequal_all\x18\xa5\xec\x03\
|
|
||||||
\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x08equalAll:G\n\x0fde\
|
|
||||||
scription_all\x18\xa6\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileO\
|
|
||||||
ptionsR\x0edescriptionAll:?\n\x0btestgen_all\x18\xa7\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\ntestgenAll:A\n\x0cbenchgen_al\
|
|
||||||
l\x18\xa8\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x0bb\
|
|
||||||
enchgenAll:C\n\rmarshaler_all\x18\xa9\xec\x03\x20\x01(\x08\x12\x1c.googl\
|
|
||||||
e.protobuf.FileOptionsR\x0cmarshalerAll:G\n\x0funmarshaler_all\x18\xaa\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x0eunmarshale\
|
|
||||||
rAll:P\n\x14stable_marshaler_all\x18\xab\xec\x03\x20\x01(\x08\x12\x1c.go\
|
|
||||||
ogle.protobuf.FileOptionsR\x12stableMarshalerAll:;\n\tsizer_all\x18\xac\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x08sizerAll:Y\
|
|
||||||
\n\x19goproto_enum_stringer_all\x18\xad\xec\x03\x20\x01(\x08\x12\x1c.goo\
|
|
||||||
gle.protobuf.FileOptionsR\x16goprotoEnumStringerAll:J\n\x11enum_stringer\
|
|
||||||
_all\x18\xae\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0fenumStringerAll:P\n\x14unsafe_marshaler_all\x18\xaf\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x12unsafeMarshalerAll:T\n\x16u\
|
|
||||||
nsafe_unmarshaler_all\x18\xb0\xec\x03\x20\x01(\x08\x12\x1c.google.protob\
|
|
||||||
uf.FileOptionsR\x14unsafeUnmarshalerAll:[\n\x1agoproto_extensions_map_al\
|
|
||||||
l\x18\xb1\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x17g\
|
|
||||||
oprotoExtensionsMapAll:X\n\x18goproto_unrecognized_all\x18\xb2\xec\x03\
|
|
||||||
\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x16goprotoUnrecognize\
|
|
||||||
dAll:I\n\x10gogoproto_import\x18\xb3\xec\x03\x20\x01(\x08\x12\x1c.google\
|
|
||||||
.protobuf.FileOptionsR\x0fgogoprotoImport:E\n\x0eprotosizer_all\x18\xb4\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\rprotosizerAl\
|
|
||||||
l:?\n\x0bcompare_all\x18\xb5\xec\x03\x20\x01(\x08\x12\x1c.google.protobu\
|
|
||||||
f.FileOptionsR\ncompareAll:A\n\x0ctypedecl_all\x18\xb6\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x0btypedeclAll:A\n\x0cenumdecl\
|
|
||||||
_all\x18\xb7\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0benumdeclAll:Q\n\x14goproto_registration\x18\xb8\xec\x03\x20\x01(\x08\
|
|
||||||
\x12\x1c.google.protobuf.FileOptionsR\x13goprotoRegistration:G\n\x0fmess\
|
|
||||||
agename_all\x18\xb9\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOpt\
|
|
||||||
ionsR\x0emessagenameAll:R\n\x15goproto_sizecache_all\x18\xba\xec\x03\x20\
|
|
||||||
\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x13goprotoSizecacheAll:N\
|
|
||||||
\n\x13goproto_unkeyed_all\x18\xbb\xec\x03\x20\x01(\x08\x12\x1c.google.pr\
|
|
||||||
otobuf.FileOptionsR\x11goprotoUnkeyedAll:J\n\x0fgoproto_getters\x18\x81\
|
|
||||||
\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0egoproto\
|
|
||||||
Getters:L\n\x10goproto_stringer\x18\x83\xf4\x03\x20\x01(\x08\x12\x1f.goo\
|
|
||||||
gle.protobuf.MessageOptionsR\x0fgoprotoStringer:F\n\rverbose_equal\x18\
|
|
||||||
\x84\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0cver\
|
|
||||||
boseEqual:5\n\x04face\x18\x85\xf4\x03\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x04face:=\n\x08gostring\x18\x86\xf4\x03\x20\x01(\x08\
|
|
||||||
\x12\x1f.google.protobuf.MessageOptionsR\x08gostring:=\n\x08populate\x18\
|
|
||||||
\x87\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x08pop\
|
|
||||||
ulate:=\n\x08stringer\x18\xc0\x8b\x04\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x08stringer:;\n\x07onlyone\x18\x89\xf4\x03\x20\x01(\
|
|
||||||
\x08\x12\x1f.google.protobuf.MessageOptionsR\x07onlyone:7\n\x05equal\x18\
|
|
||||||
\x8d\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x05equ\
|
|
||||||
al:C\n\x0bdescription\x18\x8e\xf4\x03\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x0bdescription:;\n\x07testgen\x18\x8f\xf4\x03\x20\x01\
|
|
||||||
(\x08\x12\x1f.google.protobuf.MessageOptionsR\x07testgen:=\n\x08benchgen\
|
|
||||||
\x18\x90\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\
|
|
||||||
\x08benchgen:?\n\tmarshaler\x18\x91\xf4\x03\x20\x01(\x08\x12\x1f.google.\
|
|
||||||
protobuf.MessageOptionsR\tmarshaler:C\n\x0bunmarshaler\x18\x92\xf4\x03\
|
|
||||||
\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0bunmarshaler:L\n\
|
|
||||||
\x10stable_marshaler\x18\x93\xf4\x03\x20\x01(\x08\x12\x1f.google.protobu\
|
|
||||||
f.MessageOptionsR\x0fstableMarshaler:7\n\x05sizer\x18\x94\xf4\x03\x20\
|
|
||||||
\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x05sizer:L\n\x10unsafe\
|
|
||||||
_marshaler\x18\x97\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageO\
|
|
||||||
ptionsR\x0funsafeMarshaler:P\n\x12unsafe_unmarshaler\x18\x98\xf4\x03\x20\
|
|
||||||
\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x11unsafeUnmarshaler:W\
|
|
||||||
\n\x16goproto_extensions_map\x18\x99\xf4\x03\x20\x01(\x08\x12\x1f.google\
|
|
||||||
.protobuf.MessageOptionsR\x14goprotoExtensionsMap:T\n\x14goproto_unrecog\
|
|
||||||
nized\x18\x9a\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOption\
|
|
||||||
sR\x13goprotoUnrecognized:A\n\nprotosizer\x18\x9c\xf4\x03\x20\x01(\x08\
|
|
||||||
\x12\x1f.google.protobuf.MessageOptionsR\nprotosizer:;\n\x07compare\x18\
|
|
||||||
\x9d\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x07com\
|
|
||||||
pare:=\n\x08typedecl\x18\x9e\xf4\x03\x20\x01(\x08\x12\x1f.google.protobu\
|
|
||||||
f.MessageOptionsR\x08typedecl:C\n\x0bmessagename\x18\xa1\xf4\x03\x20\x01\
|
|
||||||
(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0bmessagename:N\n\x11gopr\
|
|
||||||
oto_sizecache\x18\xa2\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.Messa\
|
|
||||||
geOptionsR\x10goprotoSizecache:J\n\x0fgoproto_unkeyed\x18\xa3\xf4\x03\
|
|
||||||
\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0egoprotoUnkeyed:\
|
|
||||||
;\n\x08nullable\x18\xe9\xfb\x03\x20\x01(\x08\x12\x1d.google.protobuf.Fie\
|
|
||||||
ldOptionsR\x08nullable:5\n\x05embed\x18\xea\xfb\x03\x20\x01(\x08\x12\x1d\
|
|
||||||
.google.protobuf.FieldOptionsR\x05embed:?\n\ncustomtype\x18\xeb\xfb\x03\
|
|
||||||
\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\ncustomtype:?\n\ncusto\
|
|
||||||
mname\x18\xec\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\n\
|
|
||||||
customname:9\n\x07jsontag\x18\xed\xfb\x03\x20\x01(\t\x12\x1d.google.prot\
|
|
||||||
obuf.FieldOptionsR\x07jsontag:;\n\x08moretags\x18\xee\xfb\x03\x20\x01(\t\
|
|
||||||
\x12\x1d.google.protobuf.FieldOptionsR\x08moretags:;\n\x08casttype\x18\
|
|
||||||
\xef\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\x08casttyp\
|
|
||||||
e:9\n\x07castkey\x18\xf0\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.Fiel\
|
|
||||||
dOptionsR\x07castkey:=\n\tcastvalue\x18\xf1\xfb\x03\x20\x01(\t\x12\x1d.g\
|
|
||||||
oogle.protobuf.FieldOptionsR\tcastvalue:9\n\x07stdtime\x18\xf2\xfb\x03\
|
|
||||||
\x20\x01(\x08\x12\x1d.google.protobuf.FieldOptionsR\x07stdtime:A\n\x0bst\
|
|
||||||
dduration\x18\xf3\xfb\x03\x20\x01(\x08\x12\x1d.google.protobuf.FieldOpti\
|
|
||||||
onsR\x0bstdduration:?\n\nwktpointer\x18\xf4\xfb\x03\x20\x01(\x08\x12\x1d\
|
|
||||||
.google.protobuf.FieldOptionsR\nwktpointerBE\n\x13com.google.protobufB\n\
|
|
||||||
GoGoProtosZ\"github.com/gogo/protobuf/gogoprotob\x06proto2\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(::protobuf::descriptor::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(0);
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
pub mod oci;
|
|
||||||
|
|
||||||
pub mod events;
|
|
||||||
pub mod events_ttrpc;
|
|
||||||
#[cfg(feature = "async")]
|
|
||||||
pub mod events_ttrpc_async;
|
|
||||||
|
|
||||||
pub mod shim;
|
|
||||||
pub mod shim_ttrpc;
|
|
||||||
#[cfg(feature = "async")]
|
|
||||||
pub mod shim_ttrpc_async;
|
|
||||||
|
|
||||||
pub(crate) mod empty;
|
|
||||||
pub(crate) mod mount;
|
|
||||||
pub(crate) mod task;
|
|
||||||
|
|
||||||
mod fieldpath;
|
|
||||||
mod gogo;
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
/// Reexport types::mount::* to avoid manually editing other auto-generated source files.
|
|
||||||
|
|
||||||
pub use crate::types::mount::*;
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1,435 +0,0 @@
|
||||||
// This file is generated by ttrpc-compiler 0.6.1. 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 TaskClient {
|
|
||||||
client: ::ttrpc::Client,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl TaskClient {
|
|
||||||
pub fn new(client: ::ttrpc::Client) -> Self {
|
|
||||||
TaskClient {
|
|
||||||
client: client,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn state(&self, ctx: ttrpc::context::Context, req: &super::shim::StateRequest) -> ::ttrpc::Result<super::shim::StateResponse> {
|
|
||||||
let mut cres = super::shim::StateResponse::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "State", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn create(&self, ctx: ttrpc::context::Context, req: &super::shim::CreateTaskRequest) -> ::ttrpc::Result<super::shim::CreateTaskResponse> {
|
|
||||||
let mut cres = super::shim::CreateTaskResponse::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Create", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn start(&self, ctx: ttrpc::context::Context, req: &super::shim::StartRequest) -> ::ttrpc::Result<super::shim::StartResponse> {
|
|
||||||
let mut cres = super::shim::StartResponse::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Start", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn delete(&self, ctx: ttrpc::context::Context, req: &super::shim::DeleteRequest) -> ::ttrpc::Result<super::shim::DeleteResponse> {
|
|
||||||
let mut cres = super::shim::DeleteResponse::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Delete", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn pids(&self, ctx: ttrpc::context::Context, req: &super::shim::PidsRequest) -> ::ttrpc::Result<super::shim::PidsResponse> {
|
|
||||||
let mut cres = super::shim::PidsResponse::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Pids", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn pause(&self, ctx: ttrpc::context::Context, req: &super::shim::PauseRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Pause", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn resume(&self, ctx: ttrpc::context::Context, req: &super::shim::ResumeRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Resume", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn checkpoint(&self, ctx: ttrpc::context::Context, req: &super::shim::CheckpointTaskRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Checkpoint", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn kill(&self, ctx: ttrpc::context::Context, req: &super::shim::KillRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Kill", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn exec(&self, ctx: ttrpc::context::Context, req: &super::shim::ExecProcessRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Exec", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn resize_pty(&self, ctx: ttrpc::context::Context, req: &super::shim::ResizePtyRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "ResizePty", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn close_io(&self, ctx: ttrpc::context::Context, req: &super::shim::CloseIORequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "CloseIO", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn update(&self, ctx: ttrpc::context::Context, req: &super::shim::UpdateTaskRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Update", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn wait(&self, ctx: ttrpc::context::Context, req: &super::shim::WaitRequest) -> ::ttrpc::Result<super::shim::WaitResponse> {
|
|
||||||
let mut cres = super::shim::WaitResponse::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Wait", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn stats(&self, ctx: ttrpc::context::Context, req: &super::shim::StatsRequest) -> ::ttrpc::Result<super::shim::StatsResponse> {
|
|
||||||
let mut cres = super::shim::StatsResponse::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Stats", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn connect(&self, ctx: ttrpc::context::Context, req: &super::shim::ConnectRequest) -> ::ttrpc::Result<super::shim::ConnectResponse> {
|
|
||||||
let mut cres = super::shim::ConnectResponse::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Connect", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn shutdown(&self, ctx: ttrpc::context::Context, req: &super::shim::ShutdownRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::client_request!(self, ctx, req, "containerd.task.v2.Task", "Shutdown", cres);
|
|
||||||
Ok(cres)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct StateMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for StateMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, StateRequest, state);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct CreateMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for CreateMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, CreateTaskRequest, create);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct StartMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for StartMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, StartRequest, start);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct DeleteMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for DeleteMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, DeleteRequest, delete);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct PidsMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for PidsMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, PidsRequest, pids);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct PauseMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for PauseMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, PauseRequest, pause);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ResumeMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for ResumeMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, ResumeRequest, resume);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct CheckpointMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for CheckpointMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, CheckpointTaskRequest, checkpoint);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct KillMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for KillMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, KillRequest, kill);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ExecMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for ExecMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, ExecProcessRequest, exec);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ResizePtyMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for ResizePtyMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, ResizePtyRequest, resize_pty);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct CloseIoMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for CloseIoMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, CloseIORequest, close_io);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct UpdateMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for UpdateMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, UpdateTaskRequest, update);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct WaitMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for WaitMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, WaitRequest, wait);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct StatsMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for StatsMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, StatsRequest, stats);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ConnectMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for ConnectMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, ConnectRequest, connect);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ShutdownMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::ttrpc::MethodHandler for ShutdownMethod {
|
|
||||||
fn handler(&self, ctx: ::ttrpc::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<()> {
|
|
||||||
::ttrpc::request_handler!(self, ctx, req, shim, ShutdownRequest, shutdown);
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub trait Task {
|
|
||||||
fn state(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::StateRequest) -> ::ttrpc::Result<super::shim::StateResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/State is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn create(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::CreateTaskRequest) -> ::ttrpc::Result<super::shim::CreateTaskResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Create is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn start(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::StartRequest) -> ::ttrpc::Result<super::shim::StartResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Start is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn delete(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::DeleteRequest) -> ::ttrpc::Result<super::shim::DeleteResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Delete is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn pids(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::PidsRequest) -> ::ttrpc::Result<super::shim::PidsResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Pids is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn pause(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::PauseRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Pause is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn resume(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::ResumeRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Resume is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn checkpoint(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::CheckpointTaskRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Checkpoint is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn kill(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::KillRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Kill is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn exec(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::ExecProcessRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Exec is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn resize_pty(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::ResizePtyRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/ResizePty is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn close_io(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::CloseIORequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/CloseIO is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn update(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::UpdateTaskRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Update is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn wait(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::WaitRequest) -> ::ttrpc::Result<super::shim::WaitResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Wait is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn stats(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::StatsRequest) -> ::ttrpc::Result<super::shim::StatsResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Stats is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn connect(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::ConnectRequest) -> ::ttrpc::Result<super::shim::ConnectResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Connect is not supported".to_string())))
|
|
||||||
}
|
|
||||||
fn shutdown(&self, _ctx: &::ttrpc::TtrpcContext, _: super::shim::ShutdownRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Shutdown is not supported".to_string())))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn create_task(service: Arc<Box<dyn Task + Send + Sync>>) -> HashMap<String, Box<dyn ::ttrpc::MethodHandler + Send + Sync>> {
|
|
||||||
let mut methods = HashMap::new();
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/State".to_string(),
|
|
||||||
Box::new(StateMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Create".to_string(),
|
|
||||||
Box::new(CreateMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Start".to_string(),
|
|
||||||
Box::new(StartMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Delete".to_string(),
|
|
||||||
Box::new(DeleteMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Pids".to_string(),
|
|
||||||
Box::new(PidsMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Pause".to_string(),
|
|
||||||
Box::new(PauseMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Resume".to_string(),
|
|
||||||
Box::new(ResumeMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Checkpoint".to_string(),
|
|
||||||
Box::new(CheckpointMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Kill".to_string(),
|
|
||||||
Box::new(KillMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Exec".to_string(),
|
|
||||||
Box::new(ExecMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/ResizePty".to_string(),
|
|
||||||
Box::new(ResizePtyMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/CloseIO".to_string(),
|
|
||||||
Box::new(CloseIoMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Update".to_string(),
|
|
||||||
Box::new(UpdateMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Wait".to_string(),
|
|
||||||
Box::new(WaitMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Stats".to_string(),
|
|
||||||
Box::new(StatsMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Connect".to_string(),
|
|
||||||
Box::new(ConnectMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("/containerd.task.v2.Task/Shutdown".to_string(),
|
|
||||||
Box::new(ShutdownMethod{service: service.clone()}) as Box<dyn ::ttrpc::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods
|
|
||||||
}
|
|
||||||
|
|
@ -1,423 +0,0 @@
|
||||||
// This file is generated by ttrpc-compiler 0.6.1. 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;
|
|
||||||
use async_trait::async_trait;
|
|
||||||
|
|
||||||
#[derive(Clone)]
|
|
||||||
pub struct TaskClient {
|
|
||||||
client: ::ttrpc::r#async::Client,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl TaskClient {
|
|
||||||
pub fn new(client: ::ttrpc::r#async::Client) -> Self {
|
|
||||||
TaskClient {
|
|
||||||
client: client,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn state(&self, ctx: ttrpc::context::Context, req: &super::shim::StateRequest) -> ::ttrpc::Result<super::shim::StateResponse> {
|
|
||||||
let mut cres = super::shim::StateResponse::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "State", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn create(&self, ctx: ttrpc::context::Context, req: &super::shim::CreateTaskRequest) -> ::ttrpc::Result<super::shim::CreateTaskResponse> {
|
|
||||||
let mut cres = super::shim::CreateTaskResponse::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Create", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn start(&self, ctx: ttrpc::context::Context, req: &super::shim::StartRequest) -> ::ttrpc::Result<super::shim::StartResponse> {
|
|
||||||
let mut cres = super::shim::StartResponse::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Start", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn delete(&self, ctx: ttrpc::context::Context, req: &super::shim::DeleteRequest) -> ::ttrpc::Result<super::shim::DeleteResponse> {
|
|
||||||
let mut cres = super::shim::DeleteResponse::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Delete", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn pids(&self, ctx: ttrpc::context::Context, req: &super::shim::PidsRequest) -> ::ttrpc::Result<super::shim::PidsResponse> {
|
|
||||||
let mut cres = super::shim::PidsResponse::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Pids", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn pause(&self, ctx: ttrpc::context::Context, req: &super::shim::PauseRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Pause", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn resume(&self, ctx: ttrpc::context::Context, req: &super::shim::ResumeRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Resume", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn checkpoint(&self, ctx: ttrpc::context::Context, req: &super::shim::CheckpointTaskRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Checkpoint", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn kill(&self, ctx: ttrpc::context::Context, req: &super::shim::KillRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Kill", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn exec(&self, ctx: ttrpc::context::Context, req: &super::shim::ExecProcessRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Exec", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn resize_pty(&self, ctx: ttrpc::context::Context, req: &super::shim::ResizePtyRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "ResizePty", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn close_io(&self, ctx: ttrpc::context::Context, req: &super::shim::CloseIORequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "CloseIO", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn update(&self, ctx: ttrpc::context::Context, req: &super::shim::UpdateTaskRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Update", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn wait(&self, ctx: ttrpc::context::Context, req: &super::shim::WaitRequest) -> ::ttrpc::Result<super::shim::WaitResponse> {
|
|
||||||
let mut cres = super::shim::WaitResponse::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Wait", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn stats(&self, ctx: ttrpc::context::Context, req: &super::shim::StatsRequest) -> ::ttrpc::Result<super::shim::StatsResponse> {
|
|
||||||
let mut cres = super::shim::StatsResponse::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Stats", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn connect(&self, ctx: ttrpc::context::Context, req: &super::shim::ConnectRequest) -> ::ttrpc::Result<super::shim::ConnectResponse> {
|
|
||||||
let mut cres = super::shim::ConnectResponse::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Connect", cres);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn shutdown(&self, ctx: ttrpc::context::Context, req: &super::shim::ShutdownRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
let mut cres = super::empty::Empty::new();
|
|
||||||
::ttrpc::async_client_request!(self, ctx, req, "containerd.task.v2.Task", "Shutdown", cres);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct StateMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for StateMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, StateRequest, state);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct CreateMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for CreateMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, CreateTaskRequest, create);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct StartMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for StartMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, StartRequest, start);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct DeleteMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for DeleteMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, DeleteRequest, delete);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct PidsMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for PidsMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, PidsRequest, pids);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct PauseMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for PauseMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, PauseRequest, pause);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ResumeMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for ResumeMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, ResumeRequest, resume);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct CheckpointMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for CheckpointMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, CheckpointTaskRequest, checkpoint);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct KillMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for KillMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, KillRequest, kill);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ExecMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for ExecMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, ExecProcessRequest, exec);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ResizePtyMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for ResizePtyMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, ResizePtyRequest, resize_pty);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct CloseIoMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for CloseIoMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, CloseIORequest, close_io);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct UpdateMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for UpdateMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, UpdateTaskRequest, update);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct WaitMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for WaitMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, WaitRequest, wait);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct StatsMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for StatsMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, StatsRequest, stats);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ConnectMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for ConnectMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, ConnectRequest, connect);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct ShutdownMethod {
|
|
||||||
service: Arc<Box<dyn Task + Send + Sync>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
impl ::ttrpc::r#async::MethodHandler for ShutdownMethod {
|
|
||||||
async fn handler(&self, ctx: ::ttrpc::r#async::TtrpcContext, req: ::ttrpc::Request) -> ::ttrpc::Result<::ttrpc::Response> {
|
|
||||||
::ttrpc::async_request_handler!(self, ctx, req, shim, ShutdownRequest, shutdown);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[async_trait]
|
|
||||||
pub trait Task: Sync {
|
|
||||||
async fn state(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::StateRequest) -> ::ttrpc::Result<super::shim::StateResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/State is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn create(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::CreateTaskRequest) -> ::ttrpc::Result<super::shim::CreateTaskResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Create is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn start(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::StartRequest) -> ::ttrpc::Result<super::shim::StartResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Start is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn delete(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::DeleteRequest) -> ::ttrpc::Result<super::shim::DeleteResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Delete is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn pids(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::PidsRequest) -> ::ttrpc::Result<super::shim::PidsResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Pids is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn pause(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::PauseRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Pause is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn resume(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::ResumeRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Resume is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn checkpoint(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::CheckpointTaskRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Checkpoint is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn kill(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::KillRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Kill is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn exec(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::ExecProcessRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Exec is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn resize_pty(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::ResizePtyRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/ResizePty is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn close_io(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::CloseIORequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/CloseIO is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn update(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::UpdateTaskRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Update is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn wait(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::WaitRequest) -> ::ttrpc::Result<super::shim::WaitResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Wait is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn stats(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::StatsRequest) -> ::ttrpc::Result<super::shim::StatsResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Stats is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn connect(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::ConnectRequest) -> ::ttrpc::Result<super::shim::ConnectResponse> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Connect is not supported".to_string())))
|
|
||||||
}
|
|
||||||
async fn shutdown(&self, _ctx: &::ttrpc::r#async::TtrpcContext, _: super::shim::ShutdownRequest) -> ::ttrpc::Result<super::empty::Empty> {
|
|
||||||
Err(::ttrpc::Error::RpcStatus(::ttrpc::get_status(::ttrpc::Code::NOT_FOUND, "/containerd.task.v2.Task/Shutdown is not supported".to_string())))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn create_task(service: Arc<Box<dyn Task + Send + Sync>>) -> HashMap<String, ::ttrpc::r#async::Service> {
|
|
||||||
let mut ret = HashMap::new();
|
|
||||||
let mut methods = HashMap::new();
|
|
||||||
let streams = HashMap::new();
|
|
||||||
|
|
||||||
methods.insert("State".to_string(),
|
|
||||||
Box::new(StateMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Create".to_string(),
|
|
||||||
Box::new(CreateMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Start".to_string(),
|
|
||||||
Box::new(StartMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Delete".to_string(),
|
|
||||||
Box::new(DeleteMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Pids".to_string(),
|
|
||||||
Box::new(PidsMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Pause".to_string(),
|
|
||||||
Box::new(PauseMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Resume".to_string(),
|
|
||||||
Box::new(ResumeMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Checkpoint".to_string(),
|
|
||||||
Box::new(CheckpointMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Kill".to_string(),
|
|
||||||
Box::new(KillMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Exec".to_string(),
|
|
||||||
Box::new(ExecMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("ResizePty".to_string(),
|
|
||||||
Box::new(ResizePtyMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("CloseIO".to_string(),
|
|
||||||
Box::new(CloseIoMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Update".to_string(),
|
|
||||||
Box::new(UpdateMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Wait".to_string(),
|
|
||||||
Box::new(WaitMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Stats".to_string(),
|
|
||||||
Box::new(StatsMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Connect".to_string(),
|
|
||||||
Box::new(ConnectMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
methods.insert("Shutdown".to_string(),
|
|
||||||
Box::new(ShutdownMethod{service: service.clone()}) as Box<dyn ::ttrpc::r#async::MethodHandler + Send + Sync>);
|
|
||||||
|
|
||||||
ret.insert("containerd.task.v2.Task".to_string(), ::ttrpc::r#async::Service{ methods, streams });
|
|
||||||
ret
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
/// Reexport types::task::* to avoid manually editing other auto-generated source files.
|
|
||||||
|
|
||||||
pub use crate::types::task::*;
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
/*
|
||||||
|
Copyright The containerd Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pub mod empty {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/types/empty.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod gogo {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/types/gogo.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod mount {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/types/mount.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod task {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/types/task.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
pub mod fieldpath {
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/types/fieldpath.rs"));
|
||||||
|
}
|
||||||
|
|
@ -1,165 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `google/protobuf/empty.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:google.protobuf.Empty)
|
|
||||||
pub struct Empty {
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:google.protobuf.Empty.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a Empty {
|
|
||||||
fn default() -> &'a Empty {
|
|
||||||
<Empty as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Empty {
|
|
||||||
pub fn new() -> Empty {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(0);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Empty>(
|
|
||||||
"Empty",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for Empty {
|
|
||||||
const NAME: &'static str = "Empty";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> Empty {
|
|
||||||
Empty::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static Empty {
|
|
||||||
static instance: Empty = Empty {
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for Empty {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("Empty").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display 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 {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n\x1bgoogle/protobuf/empty.proto\x12\x0fgoogle.protobuf\"\x07\n\x05Empt\
|
|
||||||
yB}\n\x13com.google.protobufB\nEmptyProtoP\x01Z.google.golang.org/protob\
|
|
||||||
uf/types/known/emptypb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Prot\
|
|
||||||
obuf.WellKnownTypesb\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(0);
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(1);
|
|
||||||
messages.push(Empty::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,327 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `gogoproto/gogo.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
/// Extension fields
|
|
||||||
pub mod exts {
|
|
||||||
|
|
||||||
pub const goproto_enum_prefix: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62021, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62022, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(62023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const enumdecl: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(62024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enumvalue_customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::EnumValueOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(66001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const goproto_getters_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_prefix_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63002, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const verbose_equal_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const face_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gostring_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const populate_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const onlyone_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const equal_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63013, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const description_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63014, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const testgen_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63015, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const benchgen_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63016, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63017, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unmarshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63018, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stable_marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63019, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const sizer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63020, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_enum_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63021, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enum_stringer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63022, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_marshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_unmarshaler_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_extensions_map_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63025, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unrecognized_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63026, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gogoproto_import: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63027, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const protosizer_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63028, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const compare_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63029, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const typedecl_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63030, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const enumdecl_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63031, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_registration: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63032, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const messagename_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63033, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_sizecache_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63034, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unkeyed_all: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FileOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(63035, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_getters: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const verbose_equal: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const face: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const gostring: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const populate: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stringer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(67008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const onlyone: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const equal: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64013, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const description: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64014, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const testgen: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64015, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const benchgen: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64016, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64017, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unmarshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64018, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stable_marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64019, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const sizer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64020, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_marshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64023, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const unsafe_unmarshaler: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64024, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_extensions_map: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64025, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unrecognized: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64026, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const protosizer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64028, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const compare: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64029, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const typedecl: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64030, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const messagename: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64033, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_sizecache: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64034, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const goproto_unkeyed: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::MessageOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(64035, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const nullable: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65001, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const embed: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65002, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const customtype: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65003, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const customname: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65004, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const jsontag: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65005, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const moretags: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65006, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const casttype: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65007, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const castkey: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65008, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const castvalue: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, ::std::string::String> = ::protobuf::ext::ExtFieldOptional::new(65009, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_STRING);
|
|
||||||
|
|
||||||
pub const stdtime: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65010, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const stdduration: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65011, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
|
|
||||||
pub const wktpointer: ::protobuf::ext::ExtFieldOptional<::protobuf::descriptor::FieldOptions, bool> = ::protobuf::ext::ExtFieldOptional::new(65012, ::protobuf::descriptor::field_descriptor_proto::Type::TYPE_BOOL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n\x14gogoproto/gogo.proto\x12\tgogoproto\x1a\x20google/protobuf/descrip\
|
|
||||||
tor.proto:N\n\x13goproto_enum_prefix\x18\xb1\xe4\x03\x20\x01(\x08\x12\
|
|
||||||
\x1c.google.protobuf.EnumOptionsR\x11goprotoEnumPrefix:R\n\x15goproto_en\
|
|
||||||
um_stringer\x18\xc5\xe4\x03\x20\x01(\x08\x12\x1c.google.protobuf.EnumOpt\
|
|
||||||
ionsR\x13goprotoEnumStringer:C\n\renum_stringer\x18\xc6\xe4\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.EnumOptionsR\x0cenumStringer:G\n\x0fenum_cu\
|
|
||||||
stomname\x18\xc7\xe4\x03\x20\x01(\t\x12\x1c.google.protobuf.EnumOptionsR\
|
|
||||||
\x0eenumCustomname::\n\x08enumdecl\x18\xc8\xe4\x03\x20\x01(\x08\x12\x1c.\
|
|
||||||
google.protobuf.EnumOptionsR\x08enumdecl:V\n\x14enumvalue_customname\x18\
|
|
||||||
\xd1\x83\x04\x20\x01(\t\x12!.google.protobuf.EnumValueOptionsR\x13enumva\
|
|
||||||
lueCustomname:N\n\x13goproto_getters_all\x18\x99\xec\x03\x20\x01(\x08\
|
|
||||||
\x12\x1c.google.protobuf.FileOptionsR\x11goprotoGettersAll:U\n\x17goprot\
|
|
||||||
o_enum_prefix_all\x18\x9a\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.F\
|
|
||||||
ileOptionsR\x14goprotoEnumPrefixAll:P\n\x14goproto_stringer_all\x18\x9b\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x12goprotoStr\
|
|
||||||
ingerAll:J\n\x11verbose_equal_all\x18\x9c\xec\x03\x20\x01(\x08\x12\x1c.g\
|
|
||||||
oogle.protobuf.FileOptionsR\x0fverboseEqualAll:9\n\x08face_all\x18\x9d\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x07faceAll:A\
|
|
||||||
\n\x0cgostring_all\x18\x9e\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.\
|
|
||||||
FileOptionsR\x0bgostringAll:A\n\x0cpopulate_all\x18\x9f\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x0bpopulateAll:A\n\x0cstringer\
|
|
||||||
_all\x18\xa0\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0bstringerAll:?\n\x0bonlyone_all\x18\xa1\xec\x03\x20\x01(\x08\x12\x1c.\
|
|
||||||
google.protobuf.FileOptionsR\nonlyoneAll:;\n\tequal_all\x18\xa5\xec\x03\
|
|
||||||
\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x08equalAll:G\n\x0fde\
|
|
||||||
scription_all\x18\xa6\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileO\
|
|
||||||
ptionsR\x0edescriptionAll:?\n\x0btestgen_all\x18\xa7\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\ntestgenAll:A\n\x0cbenchgen_al\
|
|
||||||
l\x18\xa8\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x0bb\
|
|
||||||
enchgenAll:C\n\rmarshaler_all\x18\xa9\xec\x03\x20\x01(\x08\x12\x1c.googl\
|
|
||||||
e.protobuf.FileOptionsR\x0cmarshalerAll:G\n\x0funmarshaler_all\x18\xaa\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x0eunmarshale\
|
|
||||||
rAll:P\n\x14stable_marshaler_all\x18\xab\xec\x03\x20\x01(\x08\x12\x1c.go\
|
|
||||||
ogle.protobuf.FileOptionsR\x12stableMarshalerAll:;\n\tsizer_all\x18\xac\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x08sizerAll:Y\
|
|
||||||
\n\x19goproto_enum_stringer_all\x18\xad\xec\x03\x20\x01(\x08\x12\x1c.goo\
|
|
||||||
gle.protobuf.FileOptionsR\x16goprotoEnumStringerAll:J\n\x11enum_stringer\
|
|
||||||
_all\x18\xae\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0fenumStringerAll:P\n\x14unsafe_marshaler_all\x18\xaf\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x12unsafeMarshalerAll:T\n\x16u\
|
|
||||||
nsafe_unmarshaler_all\x18\xb0\xec\x03\x20\x01(\x08\x12\x1c.google.protob\
|
|
||||||
uf.FileOptionsR\x14unsafeUnmarshalerAll:[\n\x1agoproto_extensions_map_al\
|
|
||||||
l\x18\xb1\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x17g\
|
|
||||||
oprotoExtensionsMapAll:X\n\x18goproto_unrecognized_all\x18\xb2\xec\x03\
|
|
||||||
\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x16goprotoUnrecognize\
|
|
||||||
dAll:I\n\x10gogoproto_import\x18\xb3\xec\x03\x20\x01(\x08\x12\x1c.google\
|
|
||||||
.protobuf.FileOptionsR\x0fgogoprotoImport:E\n\x0eprotosizer_all\x18\xb4\
|
|
||||||
\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\rprotosizerAl\
|
|
||||||
l:?\n\x0bcompare_all\x18\xb5\xec\x03\x20\x01(\x08\x12\x1c.google.protobu\
|
|
||||||
f.FileOptionsR\ncompareAll:A\n\x0ctypedecl_all\x18\xb6\xec\x03\x20\x01(\
|
|
||||||
\x08\x12\x1c.google.protobuf.FileOptionsR\x0btypedeclAll:A\n\x0cenumdecl\
|
|
||||||
_all\x18\xb7\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\
|
|
||||||
\x0benumdeclAll:Q\n\x14goproto_registration\x18\xb8\xec\x03\x20\x01(\x08\
|
|
||||||
\x12\x1c.google.protobuf.FileOptionsR\x13goprotoRegistration:G\n\x0fmess\
|
|
||||||
agename_all\x18\xb9\xec\x03\x20\x01(\x08\x12\x1c.google.protobuf.FileOpt\
|
|
||||||
ionsR\x0emessagenameAll:R\n\x15goproto_sizecache_all\x18\xba\xec\x03\x20\
|
|
||||||
\x01(\x08\x12\x1c.google.protobuf.FileOptionsR\x13goprotoSizecacheAll:N\
|
|
||||||
\n\x13goproto_unkeyed_all\x18\xbb\xec\x03\x20\x01(\x08\x12\x1c.google.pr\
|
|
||||||
otobuf.FileOptionsR\x11goprotoUnkeyedAll:J\n\x0fgoproto_getters\x18\x81\
|
|
||||||
\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0egoproto\
|
|
||||||
Getters:L\n\x10goproto_stringer\x18\x83\xf4\x03\x20\x01(\x08\x12\x1f.goo\
|
|
||||||
gle.protobuf.MessageOptionsR\x0fgoprotoStringer:F\n\rverbose_equal\x18\
|
|
||||||
\x84\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0cver\
|
|
||||||
boseEqual:5\n\x04face\x18\x85\xf4\x03\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x04face:=\n\x08gostring\x18\x86\xf4\x03\x20\x01(\x08\
|
|
||||||
\x12\x1f.google.protobuf.MessageOptionsR\x08gostring:=\n\x08populate\x18\
|
|
||||||
\x87\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x08pop\
|
|
||||||
ulate:=\n\x08stringer\x18\xc0\x8b\x04\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x08stringer:;\n\x07onlyone\x18\x89\xf4\x03\x20\x01(\
|
|
||||||
\x08\x12\x1f.google.protobuf.MessageOptionsR\x07onlyone:7\n\x05equal\x18\
|
|
||||||
\x8d\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x05equ\
|
|
||||||
al:C\n\x0bdescription\x18\x8e\xf4\x03\x20\x01(\x08\x12\x1f.google.protob\
|
|
||||||
uf.MessageOptionsR\x0bdescription:;\n\x07testgen\x18\x8f\xf4\x03\x20\x01\
|
|
||||||
(\x08\x12\x1f.google.protobuf.MessageOptionsR\x07testgen:=\n\x08benchgen\
|
|
||||||
\x18\x90\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\
|
|
||||||
\x08benchgen:?\n\tmarshaler\x18\x91\xf4\x03\x20\x01(\x08\x12\x1f.google.\
|
|
||||||
protobuf.MessageOptionsR\tmarshaler:C\n\x0bunmarshaler\x18\x92\xf4\x03\
|
|
||||||
\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0bunmarshaler:L\n\
|
|
||||||
\x10stable_marshaler\x18\x93\xf4\x03\x20\x01(\x08\x12\x1f.google.protobu\
|
|
||||||
f.MessageOptionsR\x0fstableMarshaler:7\n\x05sizer\x18\x94\xf4\x03\x20\
|
|
||||||
\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x05sizer:L\n\x10unsafe\
|
|
||||||
_marshaler\x18\x97\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageO\
|
|
||||||
ptionsR\x0funsafeMarshaler:P\n\x12unsafe_unmarshaler\x18\x98\xf4\x03\x20\
|
|
||||||
\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x11unsafeUnmarshaler:W\
|
|
||||||
\n\x16goproto_extensions_map\x18\x99\xf4\x03\x20\x01(\x08\x12\x1f.google\
|
|
||||||
.protobuf.MessageOptionsR\x14goprotoExtensionsMap:T\n\x14goproto_unrecog\
|
|
||||||
nized\x18\x9a\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOption\
|
|
||||||
sR\x13goprotoUnrecognized:A\n\nprotosizer\x18\x9c\xf4\x03\x20\x01(\x08\
|
|
||||||
\x12\x1f.google.protobuf.MessageOptionsR\nprotosizer:;\n\x07compare\x18\
|
|
||||||
\x9d\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x07com\
|
|
||||||
pare:=\n\x08typedecl\x18\x9e\xf4\x03\x20\x01(\x08\x12\x1f.google.protobu\
|
|
||||||
f.MessageOptionsR\x08typedecl:C\n\x0bmessagename\x18\xa1\xf4\x03\x20\x01\
|
|
||||||
(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0bmessagename:N\n\x11gopr\
|
|
||||||
oto_sizecache\x18\xa2\xf4\x03\x20\x01(\x08\x12\x1f.google.protobuf.Messa\
|
|
||||||
geOptionsR\x10goprotoSizecache:J\n\x0fgoproto_unkeyed\x18\xa3\xf4\x03\
|
|
||||||
\x20\x01(\x08\x12\x1f.google.protobuf.MessageOptionsR\x0egoprotoUnkeyed:\
|
|
||||||
;\n\x08nullable\x18\xe9\xfb\x03\x20\x01(\x08\x12\x1d.google.protobuf.Fie\
|
|
||||||
ldOptionsR\x08nullable:5\n\x05embed\x18\xea\xfb\x03\x20\x01(\x08\x12\x1d\
|
|
||||||
.google.protobuf.FieldOptionsR\x05embed:?\n\ncustomtype\x18\xeb\xfb\x03\
|
|
||||||
\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\ncustomtype:?\n\ncusto\
|
|
||||||
mname\x18\xec\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\n\
|
|
||||||
customname:9\n\x07jsontag\x18\xed\xfb\x03\x20\x01(\t\x12\x1d.google.prot\
|
|
||||||
obuf.FieldOptionsR\x07jsontag:;\n\x08moretags\x18\xee\xfb\x03\x20\x01(\t\
|
|
||||||
\x12\x1d.google.protobuf.FieldOptionsR\x08moretags:;\n\x08casttype\x18\
|
|
||||||
\xef\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.FieldOptionsR\x08casttyp\
|
|
||||||
e:9\n\x07castkey\x18\xf0\xfb\x03\x20\x01(\t\x12\x1d.google.protobuf.Fiel\
|
|
||||||
dOptionsR\x07castkey:=\n\tcastvalue\x18\xf1\xfb\x03\x20\x01(\t\x12\x1d.g\
|
|
||||||
oogle.protobuf.FieldOptionsR\tcastvalue:9\n\x07stdtime\x18\xf2\xfb\x03\
|
|
||||||
\x20\x01(\x08\x12\x1d.google.protobuf.FieldOptionsR\x07stdtime:A\n\x0bst\
|
|
||||||
dduration\x18\xf3\xfb\x03\x20\x01(\x08\x12\x1d.google.protobuf.FieldOpti\
|
|
||||||
onsR\x0bstdduration:?\n\nwktpointer\x18\xf4\xfb\x03\x20\x01(\x08\x12\x1d\
|
|
||||||
.google.protobuf.FieldOptionsR\nwktpointerBE\n\x13com.google.protobufB\n\
|
|
||||||
GoGoProtosZ\"github.com/gogo/protobuf/gogoprotob\x06proto2\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(::protobuf::descriptor::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(0);
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
// @generated
|
|
||||||
|
|
||||||
pub mod empty;
|
|
||||||
pub mod gogo;
|
|
||||||
pub mod mount;
|
|
||||||
pub mod task;
|
|
||||||
|
|
@ -1,344 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/api/types/mount.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.types.Mount)
|
|
||||||
pub struct Mount {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.types.Mount.type)
|
|
||||||
pub type_: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.types.Mount.source)
|
|
||||||
pub source: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.types.Mount.target)
|
|
||||||
pub target: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.types.Mount.options)
|
|
||||||
pub options: ::std::vec::Vec<::std::string::String>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.types.Mount.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a Mount {
|
|
||||||
fn default() -> &'a Mount {
|
|
||||||
<Mount as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Mount {
|
|
||||||
pub fn new() -> Mount {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string type = 1;
|
|
||||||
|
|
||||||
pub fn 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 source = 2;
|
|
||||||
|
|
||||||
pub fn 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 target = 3;
|
|
||||||
|
|
||||||
pub fn target(&self) -> &str {
|
|
||||||
&self.target
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_target(&mut self) {
|
|
||||||
self.target.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_target(&mut self, v: ::std::string::String) {
|
|
||||||
self.target = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_target(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.target
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_target(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.target, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// repeated string options = 4;
|
|
||||||
|
|
||||||
pub fn 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: ::std::vec::Vec<::std::string::String>) {
|
|
||||||
self.options = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
pub fn mut_options(&mut self) -> &mut ::std::vec::Vec<::std::string::String> {
|
|
||||||
&mut self.options
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_options(&mut self) -> ::std::vec::Vec<::std::string::String> {
|
|
||||||
::std::mem::replace(&mut self.options, ::std::vec::Vec::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(4);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"type",
|
|
||||||
|m: &Mount| { &m.type_ },
|
|
||||||
|m: &mut Mount| { &mut m.type_ },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"source",
|
|
||||||
|m: &Mount| { &m.source },
|
|
||||||
|m: &mut Mount| { &mut m.source },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"target",
|
|
||||||
|m: &Mount| { &m.target },
|
|
||||||
|m: &mut Mount| { &mut m.target },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
|
|
||||||
"options",
|
|
||||||
|m: &Mount| { &m.options },
|
|
||||||
|m: &mut Mount| { &mut m.options },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Mount>(
|
|
||||||
"Mount",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for Mount {
|
|
||||||
const NAME: &'static str = "Mount";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.type_ = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
self.source = is.read_string()?;
|
|
||||||
},
|
|
||||||
26 => {
|
|
||||||
self.target = is.read_string()?;
|
|
||||||
},
|
|
||||||
34 => {
|
|
||||||
self.options.push(is.read_string()?);
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.type_.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.type_);
|
|
||||||
}
|
|
||||||
if !self.source.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(2, &self.source);
|
|
||||||
}
|
|
||||||
if !self.target.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(3, &self.target);
|
|
||||||
}
|
|
||||||
for value in &self.options {
|
|
||||||
my_size += ::protobuf::rt::string_size(4, &value);
|
|
||||||
};
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.type_.is_empty() {
|
|
||||||
os.write_string(1, &self.type_)?;
|
|
||||||
}
|
|
||||||
if !self.source.is_empty() {
|
|
||||||
os.write_string(2, &self.source)?;
|
|
||||||
}
|
|
||||||
if !self.target.is_empty() {
|
|
||||||
os.write_string(3, &self.target)?;
|
|
||||||
}
|
|
||||||
for v in &self.options {
|
|
||||||
os.write_string(4, &v)?;
|
|
||||||
};
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> Mount {
|
|
||||||
Mount::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.type_.clear();
|
|
||||||
self.source.clear();
|
|
||||||
self.target.clear();
|
|
||||||
self.options.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static Mount {
|
|
||||||
static instance: Mount = Mount {
|
|
||||||
type_: ::std::string::String::new(),
|
|
||||||
source: ::std::string::String::new(),
|
|
||||||
target: ::std::string::String::new(),
|
|
||||||
options: ::std::vec::Vec::new(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for Mount {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("Mount").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display 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 {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n6github.com/containerd/containerd/api/types/mount.proto\x12\x10contain\
|
|
||||||
erd.types\x1a\x14gogoproto/gogo.protoX\0\"e\n\x05Mount\x12\x12\n\x04type\
|
|
||||||
\x18\x01\x20\x01(\tR\x04type\x12\x16\n\x06source\x18\x02\x20\x01(\tR\x06\
|
|
||||||
source\x12\x16\n\x06target\x18\x03\x20\x01(\tR\x06target\x12\x18\n\x07op\
|
|
||||||
tions\x18\x04\x20\x03(\tR\x07optionsB2Z0github.com/containerd/containerd\
|
|
||||||
/api/types;typesb\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(1);
|
|
||||||
deps.push(super::gogo::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(1);
|
|
||||||
messages.push(Mount::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(0);
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
@ -1,844 +0,0 @@
|
||||||
// This file is generated by rust-protobuf 3.1.0. Do not edit
|
|
||||||
// .proto file is parsed by pure
|
|
||||||
// @generated
|
|
||||||
|
|
||||||
// https://github.com/rust-lang/rust-clippy/issues/702
|
|
||||||
#![allow(unknown_lints)]
|
|
||||||
#![allow(clippy::all)]
|
|
||||||
|
|
||||||
#![allow(unused_attributes)]
|
|
||||||
#![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(unused_results)]
|
|
||||||
#![allow(unused_mut)]
|
|
||||||
|
|
||||||
//! Generated file from `github.com/containerd/containerd/api/types/task/task.proto`
|
|
||||||
|
|
||||||
/// Generated files are compatible only with the same version
|
|
||||||
/// of protobuf runtime.
|
|
||||||
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_1_0;
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.v1.types.Process)
|
|
||||||
pub struct Process {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.container_id)
|
|
||||||
pub container_id: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.id)
|
|
||||||
pub id: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.pid)
|
|
||||||
pub pid: u32,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.status)
|
|
||||||
pub status: ::protobuf::EnumOrUnknown<Status>,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.stdin)
|
|
||||||
pub stdin: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.stdout)
|
|
||||||
pub stdout: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.stderr)
|
|
||||||
pub stderr: ::std::string::String,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.terminal)
|
|
||||||
pub terminal: bool,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.exit_status)
|
|
||||||
pub exit_status: u32,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.Process.exited_at)
|
|
||||||
pub exited_at: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.v1.types.Process.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a Process {
|
|
||||||
fn default() -> &'a Process {
|
|
||||||
<Process as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Process {
|
|
||||||
pub fn new() -> Process {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// string container_id = 1;
|
|
||||||
|
|
||||||
pub fn 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 id = 2;
|
|
||||||
|
|
||||||
pub fn 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())
|
|
||||||
}
|
|
||||||
|
|
||||||
// uint32 pid = 3;
|
|
||||||
|
|
||||||
pub fn pid(&self) -> u32 {
|
|
||||||
self.pid
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_pid(&mut self) {
|
|
||||||
self.pid = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_pid(&mut self, v: u32) {
|
|
||||||
self.pid = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// .containerd.v1.types.Status status = 4;
|
|
||||||
|
|
||||||
pub fn status(&self) -> Status {
|
|
||||||
self.status.enum_value_or_default()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_status(&mut self) {
|
|
||||||
self.status = ::protobuf::EnumOrUnknown::new(Status::UNKNOWN);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_status(&mut self, v: Status) {
|
|
||||||
self.status = ::protobuf::EnumOrUnknown::new(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// string stdin = 5;
|
|
||||||
|
|
||||||
pub fn stdin(&self) -> &str {
|
|
||||||
&self.stdin
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_stdin(&mut self) {
|
|
||||||
self.stdin.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_stdin(&mut self, v: ::std::string::String) {
|
|
||||||
self.stdin = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_stdin(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.stdin
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_stdin(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.stdin, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// string stdout = 6;
|
|
||||||
|
|
||||||
pub fn stdout(&self) -> &str {
|
|
||||||
&self.stdout
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_stdout(&mut self) {
|
|
||||||
self.stdout.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_stdout(&mut self, v: ::std::string::String) {
|
|
||||||
self.stdout = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_stdout(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.stdout
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_stdout(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.stdout, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// string stderr = 7;
|
|
||||||
|
|
||||||
pub fn stderr(&self) -> &str {
|
|
||||||
&self.stderr
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_stderr(&mut self) {
|
|
||||||
self.stderr.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_stderr(&mut self, v: ::std::string::String) {
|
|
||||||
self.stderr = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_stderr(&mut self) -> &mut ::std::string::String {
|
|
||||||
&mut self.stderr
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_stderr(&mut self) -> ::std::string::String {
|
|
||||||
::std::mem::replace(&mut self.stderr, ::std::string::String::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
// bool terminal = 8;
|
|
||||||
|
|
||||||
pub fn 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
// uint32 exit_status = 9;
|
|
||||||
|
|
||||||
pub fn exit_status(&self) -> u32 {
|
|
||||||
self.exit_status
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_exit_status(&mut self) {
|
|
||||||
self.exit_status = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_exit_status(&mut self, v: u32) {
|
|
||||||
self.exit_status = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// .google.protobuf.Timestamp exited_at = 10;
|
|
||||||
|
|
||||||
pub fn exited_at(&self) -> &::protobuf::well_known_types::timestamp::Timestamp {
|
|
||||||
self.exited_at.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::timestamp::Timestamp as ::protobuf::Message>::default_instance())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_exited_at(&mut self) {
|
|
||||||
self.exited_at.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn has_exited_at(&self) -> bool {
|
|
||||||
self.exited_at.is_some()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_exited_at(&mut self, v: ::protobuf::well_known_types::timestamp::Timestamp) {
|
|
||||||
self.exited_at = ::protobuf::MessageField::some(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_exited_at(&mut self) -> &mut ::protobuf::well_known_types::timestamp::Timestamp {
|
|
||||||
self.exited_at.mut_or_insert_default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_exited_at(&mut self) -> ::protobuf::well_known_types::timestamp::Timestamp {
|
|
||||||
self.exited_at.take().unwrap_or_else(|| ::protobuf::well_known_types::timestamp::Timestamp::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(10);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"container_id",
|
|
||||||
|m: &Process| { &m.container_id },
|
|
||||||
|m: &mut Process| { &mut m.container_id },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"id",
|
|
||||||
|m: &Process| { &m.id },
|
|
||||||
|m: &mut Process| { &mut m.id },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"pid",
|
|
||||||
|m: &Process| { &m.pid },
|
|
||||||
|m: &mut Process| { &mut m.pid },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"status",
|
|
||||||
|m: &Process| { &m.status },
|
|
||||||
|m: &mut Process| { &mut m.status },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"stdin",
|
|
||||||
|m: &Process| { &m.stdin },
|
|
||||||
|m: &mut Process| { &mut m.stdin },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"stdout",
|
|
||||||
|m: &Process| { &m.stdout },
|
|
||||||
|m: &mut Process| { &mut m.stdout },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"stderr",
|
|
||||||
|m: &Process| { &m.stderr },
|
|
||||||
|m: &mut Process| { &mut m.stderr },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"terminal",
|
|
||||||
|m: &Process| { &m.terminal },
|
|
||||||
|m: &mut Process| { &mut m.terminal },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"exit_status",
|
|
||||||
|m: &Process| { &m.exit_status },
|
|
||||||
|m: &mut Process| { &mut m.exit_status },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>(
|
|
||||||
"exited_at",
|
|
||||||
|m: &Process| { &m.exited_at },
|
|
||||||
|m: &mut Process| { &mut m.exited_at },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Process>(
|
|
||||||
"Process",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for Process {
|
|
||||||
const NAME: &'static str = "Process";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
10 => {
|
|
||||||
self.container_id = is.read_string()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
self.id = is.read_string()?;
|
|
||||||
},
|
|
||||||
24 => {
|
|
||||||
self.pid = is.read_uint32()?;
|
|
||||||
},
|
|
||||||
32 => {
|
|
||||||
self.status = is.read_enum_or_unknown()?;
|
|
||||||
},
|
|
||||||
42 => {
|
|
||||||
self.stdin = is.read_string()?;
|
|
||||||
},
|
|
||||||
50 => {
|
|
||||||
self.stdout = is.read_string()?;
|
|
||||||
},
|
|
||||||
58 => {
|
|
||||||
self.stderr = is.read_string()?;
|
|
||||||
},
|
|
||||||
64 => {
|
|
||||||
self.terminal = is.read_bool()?;
|
|
||||||
},
|
|
||||||
72 => {
|
|
||||||
self.exit_status = is.read_uint32()?;
|
|
||||||
},
|
|
||||||
82 => {
|
|
||||||
::protobuf::rt::read_singular_message_into_field(is, &mut self.exited_at)?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if !self.container_id.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(1, &self.container_id);
|
|
||||||
}
|
|
||||||
if !self.id.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(2, &self.id);
|
|
||||||
}
|
|
||||||
if self.pid != 0 {
|
|
||||||
my_size += ::protobuf::rt::uint32_size(3, self.pid);
|
|
||||||
}
|
|
||||||
if self.status != ::protobuf::EnumOrUnknown::new(Status::UNKNOWN) {
|
|
||||||
my_size += ::protobuf::rt::int32_size(4, self.status.value());
|
|
||||||
}
|
|
||||||
if !self.stdin.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(5, &self.stdin);
|
|
||||||
}
|
|
||||||
if !self.stdout.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(6, &self.stdout);
|
|
||||||
}
|
|
||||||
if !self.stderr.is_empty() {
|
|
||||||
my_size += ::protobuf::rt::string_size(7, &self.stderr);
|
|
||||||
}
|
|
||||||
if self.terminal != false {
|
|
||||||
my_size += 1 + 1;
|
|
||||||
}
|
|
||||||
if self.exit_status != 0 {
|
|
||||||
my_size += ::protobuf::rt::uint32_size(9, self.exit_status);
|
|
||||||
}
|
|
||||||
if let Some(v) = self.exited_at.as_ref() {
|
|
||||||
let len = v.compute_size();
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if !self.container_id.is_empty() {
|
|
||||||
os.write_string(1, &self.container_id)?;
|
|
||||||
}
|
|
||||||
if !self.id.is_empty() {
|
|
||||||
os.write_string(2, &self.id)?;
|
|
||||||
}
|
|
||||||
if self.pid != 0 {
|
|
||||||
os.write_uint32(3, self.pid)?;
|
|
||||||
}
|
|
||||||
if self.status != ::protobuf::EnumOrUnknown::new(Status::UNKNOWN) {
|
|
||||||
os.write_enum(4, ::protobuf::EnumOrUnknown::value(&self.status))?;
|
|
||||||
}
|
|
||||||
if !self.stdin.is_empty() {
|
|
||||||
os.write_string(5, &self.stdin)?;
|
|
||||||
}
|
|
||||||
if !self.stdout.is_empty() {
|
|
||||||
os.write_string(6, &self.stdout)?;
|
|
||||||
}
|
|
||||||
if !self.stderr.is_empty() {
|
|
||||||
os.write_string(7, &self.stderr)?;
|
|
||||||
}
|
|
||||||
if self.terminal != false {
|
|
||||||
os.write_bool(8, self.terminal)?;
|
|
||||||
}
|
|
||||||
if self.exit_status != 0 {
|
|
||||||
os.write_uint32(9, self.exit_status)?;
|
|
||||||
}
|
|
||||||
if let Some(v) = self.exited_at.as_ref() {
|
|
||||||
::protobuf::rt::write_message_field_with_cached_size(10, v, os)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> Process {
|
|
||||||
Process::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.container_id.clear();
|
|
||||||
self.id.clear();
|
|
||||||
self.pid = 0;
|
|
||||||
self.status = ::protobuf::EnumOrUnknown::new(Status::UNKNOWN);
|
|
||||||
self.stdin.clear();
|
|
||||||
self.stdout.clear();
|
|
||||||
self.stderr.clear();
|
|
||||||
self.terminal = false;
|
|
||||||
self.exit_status = 0;
|
|
||||||
self.exited_at.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static Process {
|
|
||||||
static instance: Process = Process {
|
|
||||||
container_id: ::std::string::String::new(),
|
|
||||||
id: ::std::string::String::new(),
|
|
||||||
pid: 0,
|
|
||||||
status: ::protobuf::EnumOrUnknown::from_i32(0),
|
|
||||||
stdin: ::std::string::String::new(),
|
|
||||||
stdout: ::std::string::String::new(),
|
|
||||||
stderr: ::std::string::String::new(),
|
|
||||||
terminal: false,
|
|
||||||
exit_status: 0,
|
|
||||||
exited_at: ::protobuf::MessageField::none(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for Process {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("Process").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display 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 {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(PartialEq,Clone,Default,Debug)]
|
|
||||||
// @@protoc_insertion_point(message:containerd.v1.types.ProcessInfo)
|
|
||||||
pub struct ProcessInfo {
|
|
||||||
// message fields
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.ProcessInfo.pid)
|
|
||||||
pub pid: u32,
|
|
||||||
// @@protoc_insertion_point(field:containerd.v1.types.ProcessInfo.info)
|
|
||||||
pub info: ::protobuf::MessageField<::protobuf::well_known_types::any::Any>,
|
|
||||||
// special fields
|
|
||||||
// @@protoc_insertion_point(special_field:containerd.v1.types.ProcessInfo.special_fields)
|
|
||||||
pub special_fields: ::protobuf::SpecialFields,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<'a> ::std::default::Default for &'a ProcessInfo {
|
|
||||||
fn default() -> &'a ProcessInfo {
|
|
||||||
<ProcessInfo as ::protobuf::Message>::default_instance()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ProcessInfo {
|
|
||||||
pub fn new() -> ProcessInfo {
|
|
||||||
::std::default::Default::default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// uint32 pid = 1;
|
|
||||||
|
|
||||||
pub fn pid(&self) -> u32 {
|
|
||||||
self.pid
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_pid(&mut self) {
|
|
||||||
self.pid = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_pid(&mut self, v: u32) {
|
|
||||||
self.pid = v;
|
|
||||||
}
|
|
||||||
|
|
||||||
// .google.protobuf.Any info = 2;
|
|
||||||
|
|
||||||
pub fn info(&self) -> &::protobuf::well_known_types::any::Any {
|
|
||||||
self.info.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::any::Any as ::protobuf::Message>::default_instance())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn clear_info(&mut self) {
|
|
||||||
self.info.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn has_info(&self) -> bool {
|
|
||||||
self.info.is_some()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Param is passed by value, moved
|
|
||||||
pub fn set_info(&mut self, v: ::protobuf::well_known_types::any::Any) {
|
|
||||||
self.info = ::protobuf::MessageField::some(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mutable pointer to the field.
|
|
||||||
// If field is not initialized, it is initialized with default value first.
|
|
||||||
pub fn mut_info(&mut self) -> &mut ::protobuf::well_known_types::any::Any {
|
|
||||||
self.info.mut_or_insert_default()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Take field
|
|
||||||
pub fn take_info(&mut self) -> ::protobuf::well_known_types::any::Any {
|
|
||||||
self.info.take().unwrap_or_else(|| ::protobuf::well_known_types::any::Any::new())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
|
|
||||||
let mut fields = ::std::vec::Vec::with_capacity(2);
|
|
||||||
let mut oneofs = ::std::vec::Vec::with_capacity(0);
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
|
|
||||||
"pid",
|
|
||||||
|m: &ProcessInfo| { &m.pid },
|
|
||||||
|m: &mut ProcessInfo| { &mut m.pid },
|
|
||||||
));
|
|
||||||
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::any::Any>(
|
|
||||||
"info",
|
|
||||||
|m: &ProcessInfo| { &m.info },
|
|
||||||
|m: &mut ProcessInfo| { &mut m.info },
|
|
||||||
));
|
|
||||||
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ProcessInfo>(
|
|
||||||
"ProcessInfo",
|
|
||||||
fields,
|
|
||||||
oneofs,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Message for ProcessInfo {
|
|
||||||
const NAME: &'static str = "ProcessInfo";
|
|
||||||
|
|
||||||
fn is_initialized(&self) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
|
|
||||||
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
while let Some(tag) = is.read_raw_tag_or_eof()? {
|
|
||||||
match tag {
|
|
||||||
8 => {
|
|
||||||
self.pid = is.read_uint32()?;
|
|
||||||
},
|
|
||||||
18 => {
|
|
||||||
::protobuf::rt::read_singular_message_into_field(is, &mut self.info)?;
|
|
||||||
},
|
|
||||||
tag => {
|
|
||||||
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
|
|
||||||
},
|
|
||||||
};
|
|
||||||
}
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compute sizes of nested messages
|
|
||||||
#[allow(unused_variables)]
|
|
||||||
fn compute_size(&self) -> u64 {
|
|
||||||
let mut my_size = 0;
|
|
||||||
if self.pid != 0 {
|
|
||||||
my_size += ::protobuf::rt::uint32_size(1, self.pid);
|
|
||||||
}
|
|
||||||
if let Some(v) = self.info.as_ref() {
|
|
||||||
let len = v.compute_size();
|
|
||||||
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
|
|
||||||
}
|
|
||||||
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
|
|
||||||
self.special_fields.cached_size().set(my_size as u32);
|
|
||||||
my_size
|
|
||||||
}
|
|
||||||
|
|
||||||
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
|
|
||||||
if self.pid != 0 {
|
|
||||||
os.write_uint32(1, self.pid)?;
|
|
||||||
}
|
|
||||||
if let Some(v) = self.info.as_ref() {
|
|
||||||
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
|
|
||||||
}
|
|
||||||
os.write_unknown_fields(self.special_fields.unknown_fields())?;
|
|
||||||
::std::result::Result::Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn special_fields(&self) -> &::protobuf::SpecialFields {
|
|
||||||
&self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
|
|
||||||
&mut self.special_fields
|
|
||||||
}
|
|
||||||
|
|
||||||
fn new() -> ProcessInfo {
|
|
||||||
ProcessInfo::new()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn clear(&mut self) {
|
|
||||||
self.pid = 0;
|
|
||||||
self.info.clear();
|
|
||||||
self.special_fields.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
fn default_instance() -> &'static ProcessInfo {
|
|
||||||
static instance: ProcessInfo = ProcessInfo {
|
|
||||||
pid: 0,
|
|
||||||
info: ::protobuf::MessageField::none(),
|
|
||||||
special_fields: ::protobuf::SpecialFields::new(),
|
|
||||||
};
|
|
||||||
&instance
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::MessageFull for ProcessInfo {
|
|
||||||
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().message_by_package_relative_name("ProcessInfo").unwrap()).clone()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::fmt::Display for ProcessInfo {
|
|
||||||
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
||||||
::protobuf::text_format::fmt(self, f)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::reflect::ProtobufValue for ProcessInfo {
|
|
||||||
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
|
|
||||||
// @@protoc_insertion_point(enum:containerd.v1.types.Status)
|
|
||||||
pub enum Status {
|
|
||||||
// @@protoc_insertion_point(enum_value:containerd.v1.types.Status.UNKNOWN)
|
|
||||||
UNKNOWN = 0,
|
|
||||||
// @@protoc_insertion_point(enum_value:containerd.v1.types.Status.CREATED)
|
|
||||||
CREATED = 1,
|
|
||||||
// @@protoc_insertion_point(enum_value:containerd.v1.types.Status.RUNNING)
|
|
||||||
RUNNING = 2,
|
|
||||||
// @@protoc_insertion_point(enum_value:containerd.v1.types.Status.STOPPED)
|
|
||||||
STOPPED = 3,
|
|
||||||
// @@protoc_insertion_point(enum_value:containerd.v1.types.Status.PAUSED)
|
|
||||||
PAUSED = 4,
|
|
||||||
// @@protoc_insertion_point(enum_value:containerd.v1.types.Status.PAUSING)
|
|
||||||
PAUSING = 5,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::Enum for Status {
|
|
||||||
const NAME: &'static str = "Status";
|
|
||||||
|
|
||||||
fn value(&self) -> i32 {
|
|
||||||
*self as i32
|
|
||||||
}
|
|
||||||
|
|
||||||
fn from_i32(value: i32) -> ::std::option::Option<Status> {
|
|
||||||
match value {
|
|
||||||
0 => ::std::option::Option::Some(Status::UNKNOWN),
|
|
||||||
1 => ::std::option::Option::Some(Status::CREATED),
|
|
||||||
2 => ::std::option::Option::Some(Status::RUNNING),
|
|
||||||
3 => ::std::option::Option::Some(Status::STOPPED),
|
|
||||||
4 => ::std::option::Option::Some(Status::PAUSED),
|
|
||||||
5 => ::std::option::Option::Some(Status::PAUSING),
|
|
||||||
_ => ::std::option::Option::None
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const VALUES: &'static [Status] = &[
|
|
||||||
Status::UNKNOWN,
|
|
||||||
Status::CREATED,
|
|
||||||
Status::RUNNING,
|
|
||||||
Status::STOPPED,
|
|
||||||
Status::PAUSED,
|
|
||||||
Status::PAUSING,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::protobuf::EnumFull for Status {
|
|
||||||
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
|
|
||||||
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
descriptor.get(|| file_descriptor().enum_by_package_relative_name("Status").unwrap()).clone()
|
|
||||||
}
|
|
||||||
|
|
||||||
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
|
|
||||||
let index = *self as usize;
|
|
||||||
Self::enum_descriptor().value_by_index(index)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl ::std::default::Default for Status {
|
|
||||||
fn default() -> Self {
|
|
||||||
Status::UNKNOWN
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Status {
|
|
||||||
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
|
|
||||||
::protobuf::reflect::GeneratedEnumDescriptorData::new::<Status>("Status")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
||||||
\n:github.com/containerd/containerd/api/types/task/task.proto\x12\x13con\
|
|
||||||
tainerd.v1.types\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/time\
|
|
||||||
stamp.proto\x1a\x19google/protobuf/any.protoX\0\"\xc9\x02\n\x07Process\
|
|
||||||
\x12!\n\x0ccontainer_id\x18\x01\x20\x01(\tR\x0bcontainerId\x12\x0e\n\x02\
|
|
||||||
id\x18\x02\x20\x01(\tR\x02id\x12\x10\n\x03pid\x18\x03\x20\x01(\rR\x03pid\
|
|
||||||
\x123\n\x06status\x18\x04\x20\x01(\x0e2\x1b.containerd.v1.types.StatusR\
|
|
||||||
\x06status\x12\x14\n\x05stdin\x18\x05\x20\x01(\tR\x05stdin\x12\x16\n\x06\
|
|
||||||
stdout\x18\x06\x20\x01(\tR\x06stdout\x12\x16\n\x06stderr\x18\x07\x20\x01\
|
|
||||||
(\tR\x06stderr\x12\x1a\n\x08terminal\x18\x08\x20\x01(\x08R\x08terminal\
|
|
||||||
\x12\x1f\n\x0bexit_status\x18\t\x20\x01(\rR\nexitStatus\x12A\n\texited_a\
|
|
||||||
t\x18\n\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\x08exitedAtB\x08\
|
|
||||||
\x90\xdf\x1f\x01\xc8\xde\x1f\0\"I\n\x0bProcessInfo\x12\x10\n\x03pid\x18\
|
|
||||||
\x01\x20\x01(\rR\x03pid\x12(\n\x04info\x18\x02\x20\x01(\x0b2\x14.google.\
|
|
||||||
protobuf.AnyR\x04info*\xd6\x01\n\x06Status\x12\x1e\n\x07UNKNOWN\x10\0\
|
|
||||||
\x1a\x11\x8a\x9d\x20\rStatusUnknown\x12\x1e\n\x07CREATED\x10\x01\x1a\x11\
|
|
||||||
\x8a\x9d\x20\rStatusCreated\x12\x1e\n\x07RUNNING\x10\x02\x1a\x11\x8a\x9d\
|
|
||||||
\x20\rStatusRunning\x12\x1e\n\x07STOPPED\x10\x03\x1a\x11\x8a\x9d\x20\rSt\
|
|
||||||
atusStopped\x12\x1c\n\x06PAUSED\x10\x04\x1a\x10\x8a\x9d\x20\x0cStatusPau\
|
|
||||||
sed\x12\x1e\n\x07PAUSING\x10\x05\x1a\x11\x8a\x9d\x20\rStatusPausing\x1a\
|
|
||||||
\x0e\xba\xa4\x1e\x06Status\x88\xa3\x1e\0b\x06proto3\
|
|
||||||
";
|
|
||||||
|
|
||||||
/// `FileDescriptorProto` object which was a source for this generated file
|
|
||||||
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
|
|
||||||
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor_proto_lazy.get(|| {
|
|
||||||
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/// `FileDescriptor` object which allows dynamic access to files
|
|
||||||
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
|
|
||||||
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
|
|
||||||
file_descriptor.get(|| {
|
|
||||||
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
|
|
||||||
let mut deps = ::std::vec::Vec::with_capacity(3);
|
|
||||||
deps.push(super::gogo::file_descriptor().clone());
|
|
||||||
deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone());
|
|
||||||
deps.push(::protobuf::well_known_types::any::file_descriptor().clone());
|
|
||||||
let mut messages = ::std::vec::Vec::with_capacity(2);
|
|
||||||
messages.push(Process::generated_message_descriptor_data());
|
|
||||||
messages.push(ProcessInfo::generated_message_descriptor_data());
|
|
||||||
let mut enums = ::std::vec::Vec::with_capacity(1);
|
|
||||||
enums.push(Status::generated_enum_descriptor_data());
|
|
||||||
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
|
|
||||||
file_descriptor_proto(),
|
|
||||||
deps,
|
|
||||||
messages,
|
|
||||||
enums,
|
|
||||||
)
|
|
||||||
});
|
|
||||||
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue