envoy-types 0.7.3

Collection of protobuf types and other assets to work with the Envoy Proxy through Rust gRPC services.
Documentation
// This file is @generated by prost-build.
/// Configuration to instantiate or select a singleton `AsyncFileManager`.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct AsyncFileManagerConfig {
    /// An optional identifier for the manager. An empty string is a valid identifier
    /// for a common, default `AsyncFileManager`.
    ///
    /// Reusing the same id with different configurations in the same envoy instance
    /// is an error.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    #[prost(oneof = "async_file_manager_config::ManagerType", tags = "2")]
    pub manager_type: ::core::option::Option<async_file_manager_config::ManagerType>,
}
/// Nested message and enum types in `AsyncFileManagerConfig`.
pub mod async_file_manager_config {
    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
    pub struct ThreadPool {
        /// The number of threads to use. If unset or zero, will default to the number
        /// of concurrent threads the hardware supports. This default is subject to
        /// change if performance analysis suggests it.
        #[prost(uint32, tag = "1")]
        pub thread_count: u32,
    }
    impl ::prost::Name for ThreadPool {
        const NAME: &'static str = "ThreadPool";
        const PACKAGE: &'static str = "envoy.extensions.common.async_files.v3";
        fn full_name() -> ::prost::alloc::string::String {
            "envoy.extensions.common.async_files.v3.AsyncFileManagerConfig.ThreadPool"
                .into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "type.googleapis.com/envoy.extensions.common.async_files.v3.AsyncFileManagerConfig.ThreadPool"
                .into()
        }
    }
    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum ManagerType {
        /// Configuration for a thread-pool based async file manager.
        #[prost(message, tag = "2")]
        ThreadPool(ThreadPool),
    }
}
impl ::prost::Name for AsyncFileManagerConfig {
    const NAME: &'static str = "AsyncFileManagerConfig";
    const PACKAGE: &'static str = "envoy.extensions.common.async_files.v3";
    fn full_name() -> ::prost::alloc::string::String {
        "envoy.extensions.common.async_files.v3.AsyncFileManagerConfig".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "type.googleapis.com/envoy.extensions.common.async_files.v3.AsyncFileManagerConfig"
            .into()
    }
}