// This file is @generated by prost-build.
/// Generated client implementations.
pub mod db_service_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value
    )]
    use tonic::codegen::http::Uri;
    use tonic::codegen::*;
    #[derive(Debug, Clone)]
    pub struct DbServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl DbServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> DbServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> DbServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<http::Request<tonic::body::BoxBody>>>::Error:
                Into<StdError> + std::marker::Send + std::marker::Sync,
        {
            DbServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// * Create methods *
        pub async fn create_store(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::CreateStore>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::Unit>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/CreateStore");
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "CreateStore",
            ));
            self.inner.unary(req, path, codec).await
        }
        pub async fn create_pred_index(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::CreatePredIndex>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::CreateIndex>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/services.db_service.DBService/CreatePredIndex",
            );
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "CreatePredIndex",
            ));
            self.inner.unary(req, path, codec).await
        }
        pub async fn create_non_linear_algorithm_index(
            &mut self,
            request: impl tonic::IntoRequest<
                super::super::super::db::query::CreateNonLinearAlgorithmIndex,
            >,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::CreateIndex>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/services.db_service.DBService/CreateNonLinearAlgorithmIndex",
            );
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "CreateNonLinearAlgorithmIndex",
            ));
            self.inner.unary(req, path, codec).await
        }
        /// * Read methods *
        pub async fn get_key(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::GetKey>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Get>, tonic::Status>
        {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/GetKey");
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("services.db_service.DBService", "GetKey"));
            self.inner.unary(req, path, codec).await
        }
        pub async fn get_pred(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::GetPred>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Get>, tonic::Status>
        {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/GetPred");
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("services.db_service.DBService", "GetPred"));
            self.inner.unary(req, path, codec).await
        }
        pub async fn get_sim_n(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::GetSimN>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::GetSimN>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/GetSimN");
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("services.db_service.DBService", "GetSimN"));
            self.inner.unary(req, path, codec).await
        }
        /// * Update methods *
        pub async fn set(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::Set>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Set>, tonic::Status>
        {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static("/services.db_service.DBService/Set");
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("services.db_service.DBService", "Set"));
            self.inner.unary(req, path, codec).await
        }
        /// * Delete methods *
        pub async fn drop_pred_index(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::DropPredIndex>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>
        {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/services.db_service.DBService/DropPredIndex",
            );
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "DropPredIndex",
            ));
            self.inner.unary(req, path, codec).await
        }
        pub async fn drop_non_linear_algorithm_index(
            &mut self,
            request: impl tonic::IntoRequest<
                super::super::super::db::query::DropNonLinearAlgorithmIndex,
            >,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>
        {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/services.db_service.DBService/DropNonLinearAlgorithmIndex",
            );
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "DropNonLinearAlgorithmIndex",
            ));
            self.inner.unary(req, path, codec).await
        }
        pub async fn del_key(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::DelKey>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>
        {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/DelKey");
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("services.db_service.DBService", "DelKey"));
            self.inner.unary(req, path, codec).await
        }
        pub async fn del_pred(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::DelPred>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>
        {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/DelPred");
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("services.db_service.DBService", "DelPred"));
            self.inner.unary(req, path, codec).await
        }
        pub async fn drop_store(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::DropStore>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>
        {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/DropStore");
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "DropStore",
            ));
            self.inner.unary(req, path, codec).await
        }
        /// * Ancillary info methods *
        pub async fn list_clients(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::ListClients>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::ClientList>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/ListClients");
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "ListClients",
            ));
            self.inner.unary(req, path, codec).await
        }
        pub async fn list_stores(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::ListStores>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::StoreList>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/ListStores");
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "ListStores",
            ));
            self.inner.unary(req, path, codec).await
        }
        pub async fn info_server(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::InfoServer>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::InfoServer>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/InfoServer");
            let mut req = request.into_request();
            req.extensions_mut().insert(GrpcMethod::new(
                "services.db_service.DBService",
                "InfoServer",
            ));
            self.inner.unary(req, path, codec).await
        }
        pub async fn ping(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::query::Ping>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::Pong>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static("/services.db_service.DBService/Ping");
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("services.db_service.DBService", "Ping"));
            self.inner.unary(req, path, codec).await
        }
        /// * Pipeline method for all methods *
        pub async fn pipeline(
            &mut self,
            request: impl tonic::IntoRequest<super::super::super::db::pipeline::DbRequestPipeline>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::pipeline::DbResponsePipeline>,
            tonic::Status,
        > {
            self.inner.ready().await.map_err(|e| {
                tonic::Status::unknown(format!("Service was not ready: {}", e.into()))
            })?;
            let codec = tonic::codec::ProstCodec::default();
            let path =
                http::uri::PathAndQuery::from_static("/services.db_service.DBService/Pipeline");
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("services.db_service.DBService", "Pipeline"));
            self.inner.unary(req, path, codec).await
        }
    }
}
/// Generated server implementations.
pub mod db_service_server {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value
    )]
    use tonic::codegen::*;
    /// Generated trait containing gRPC methods that should be implemented for use with DbServiceServer.
    #[async_trait]
    pub trait DbService: std::marker::Send + std::marker::Sync + 'static {
        /// * Create methods *
        async fn create_store(
            &self,
            request: tonic::Request<super::super::super::db::query::CreateStore>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::Unit>,
            tonic::Status,
        >;
        async fn create_pred_index(
            &self,
            request: tonic::Request<super::super::super::db::query::CreatePredIndex>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::CreateIndex>,
            tonic::Status,
        >;
        async fn create_non_linear_algorithm_index(
            &self,
            request: tonic::Request<super::super::super::db::query::CreateNonLinearAlgorithmIndex>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::CreateIndex>,
            tonic::Status,
        >;
        /// * Read methods *
        async fn get_key(
            &self,
            request: tonic::Request<super::super::super::db::query::GetKey>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Get>, tonic::Status>;
        async fn get_pred(
            &self,
            request: tonic::Request<super::super::super::db::query::GetPred>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Get>, tonic::Status>;
        async fn get_sim_n(
            &self,
            request: tonic::Request<super::super::super::db::query::GetSimN>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::GetSimN>,
            tonic::Status,
        >;
        /// * Update methods *
        async fn set(
            &self,
            request: tonic::Request<super::super::super::db::query::Set>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Set>, tonic::Status>;
        /// * Delete methods *
        async fn drop_pred_index(
            &self,
            request: tonic::Request<super::super::super::db::query::DropPredIndex>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>;
        async fn drop_non_linear_algorithm_index(
            &self,
            request: tonic::Request<super::super::super::db::query::DropNonLinearAlgorithmIndex>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>;
        async fn del_key(
            &self,
            request: tonic::Request<super::super::super::db::query::DelKey>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>;
        async fn del_pred(
            &self,
            request: tonic::Request<super::super::super::db::query::DelPred>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>;
        async fn drop_store(
            &self,
            request: tonic::Request<super::super::super::db::query::DropStore>,
        ) -> std::result::Result<tonic::Response<super::super::super::db::server::Del>, tonic::Status>;
        /// * Ancillary info methods *
        async fn list_clients(
            &self,
            request: tonic::Request<super::super::super::db::query::ListClients>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::ClientList>,
            tonic::Status,
        >;
        async fn list_stores(
            &self,
            request: tonic::Request<super::super::super::db::query::ListStores>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::StoreList>,
            tonic::Status,
        >;
        async fn info_server(
            &self,
            request: tonic::Request<super::super::super::db::query::InfoServer>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::InfoServer>,
            tonic::Status,
        >;
        async fn ping(
            &self,
            request: tonic::Request<super::super::super::db::query::Ping>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::server::Pong>,
            tonic::Status,
        >;
        /// * Pipeline method for all methods *
        async fn pipeline(
            &self,
            request: tonic::Request<super::super::super::db::pipeline::DbRequestPipeline>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::db::pipeline::DbResponsePipeline>,
            tonic::Status,
        >;
    }
    #[derive(Debug)]
    pub struct DbServiceServer<T> {
        inner: Arc<T>,
        accept_compression_encodings: EnabledCompressionEncodings,
        send_compression_encodings: EnabledCompressionEncodings,
        max_decoding_message_size: Option<usize>,
        max_encoding_message_size: Option<usize>,
    }
    impl<T> DbServiceServer<T> {
        pub fn new(inner: T) -> Self {
            Self::from_arc(Arc::new(inner))
        }
        pub fn from_arc(inner: Arc<T>) -> Self {
            Self {
                inner,
                accept_compression_encodings: Default::default(),
                send_compression_encodings: Default::default(),
                max_decoding_message_size: None,
                max_encoding_message_size: None,
            }
        }
        pub fn with_interceptor<F>(inner: T, interceptor: F) -> InterceptedService<Self, F>
        where
            F: tonic::service::Interceptor,
        {
            InterceptedService::new(Self::new(inner), interceptor)
        }
        /// Enable decompressing requests with the given encoding.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.accept_compression_encodings.enable(encoding);
            self
        }
        /// Compress responses with the given encoding, if the client supports it.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.send_compression_encodings.enable(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.max_decoding_message_size = Some(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.max_encoding_message_size = Some(limit);
            self
        }
    }
    impl<T, B> tonic::codegen::Service<http::Request<B>> for DbServiceServer<T>
    where
        T: DbService,
        B: Body + std::marker::Send + 'static,
        B::Error: Into<StdError> + std::marker::Send + 'static,
    {
        type Response = http::Response<tonic::body::BoxBody>;
        type Error = std::convert::Infallible;
        type Future = BoxFuture<Self::Response, Self::Error>;
        fn poll_ready(
            &mut self,
            _cx: &mut Context<'_>,
        ) -> Poll<std::result::Result<(), Self::Error>> {
            Poll::Ready(Ok(()))
        }
        fn call(&mut self, req: http::Request<B>) -> Self::Future {
            match req.uri().path() {
                "/services.db_service.DBService/CreateStore" => {
                    #[allow(non_camel_case_types)]
                    struct CreateStoreSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::CreateStore>
                        for CreateStoreSvc<T>
                    {
                        type Response = super::super::super::db::server::Unit;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::CreateStore>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as DbService>::create_store(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = CreateStoreSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/CreatePredIndex" => {
                    #[allow(non_camel_case_types)]
                    struct CreatePredIndexSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::CreatePredIndex>
                        for CreatePredIndexSvc<T>
                    {
                        type Response = super::super::super::db::server::CreateIndex;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<
                                super::super::super::db::query::CreatePredIndex,
                            >,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as DbService>::create_pred_index(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = CreatePredIndexSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/CreateNonLinearAlgorithmIndex" => {
                    #[allow(non_camel_case_types)]
                    struct CreateNonLinearAlgorithmIndexSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<
                            super::super::super::db::query::CreateNonLinearAlgorithmIndex,
                        > for CreateNonLinearAlgorithmIndexSvc<T>
                    {
                        type Response = super::super::super::db::server::CreateIndex;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<
                                super::super::super::db::query::CreateNonLinearAlgorithmIndex,
                            >,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as DbService>::create_non_linear_algorithm_index(&inner, request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = CreateNonLinearAlgorithmIndexSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/GetKey" => {
                    #[allow(non_camel_case_types)]
                    struct GetKeySvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::GetKey>
                        for GetKeySvc<T>
                    {
                        type Response = super::super::super::db::server::Get;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::GetKey>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::get_key(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = GetKeySvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/GetPred" => {
                    #[allow(non_camel_case_types)]
                    struct GetPredSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::GetPred>
                        for GetPredSvc<T>
                    {
                        type Response = super::super::super::db::server::Get;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::GetPred>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::get_pred(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = GetPredSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/GetSimN" => {
                    #[allow(non_camel_case_types)]
                    struct GetSimNSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::GetSimN>
                        for GetSimNSvc<T>
                    {
                        type Response = super::super::super::db::server::GetSimN;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::GetSimN>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::get_sim_n(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = GetSimNSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/Set" => {
                    #[allow(non_camel_case_types)]
                    struct SetSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::Set>
                        for SetSvc<T>
                    {
                        type Response = super::super::super::db::server::Set;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::Set>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move { <T as DbService>::set(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = SetSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/DropPredIndex" => {
                    #[allow(non_camel_case_types)]
                    struct DropPredIndexSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::DropPredIndex>
                        for DropPredIndexSvc<T>
                    {
                        type Response = super::super::super::db::server::Del;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::DropPredIndex>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as DbService>::drop_pred_index(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DropPredIndexSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/DropNonLinearAlgorithmIndex" => {
                    #[allow(non_camel_case_types)]
                    struct DropNonLinearAlgorithmIndexSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<
                            super::super::super::db::query::DropNonLinearAlgorithmIndex,
                        > for DropNonLinearAlgorithmIndexSvc<T>
                    {
                        type Response = super::super::super::db::server::Del;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<
                                super::super::super::db::query::DropNonLinearAlgorithmIndex,
                            >,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as DbService>::drop_non_linear_algorithm_index(&inner, request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DropNonLinearAlgorithmIndexSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/DelKey" => {
                    #[allow(non_camel_case_types)]
                    struct DelKeySvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::DelKey>
                        for DelKeySvc<T>
                    {
                        type Response = super::super::super::db::server::Del;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::DelKey>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::del_key(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DelKeySvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/DelPred" => {
                    #[allow(non_camel_case_types)]
                    struct DelPredSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::DelPred>
                        for DelPredSvc<T>
                    {
                        type Response = super::super::super::db::server::Del;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::DelPred>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::del_pred(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DelPredSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/DropStore" => {
                    #[allow(non_camel_case_types)]
                    struct DropStoreSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::DropStore>
                        for DropStoreSvc<T>
                    {
                        type Response = super::super::super::db::server::Del;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::DropStore>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::drop_store(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DropStoreSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/ListClients" => {
                    #[allow(non_camel_case_types)]
                    struct ListClientsSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::ListClients>
                        for ListClientsSvc<T>
                    {
                        type Response = super::super::super::db::server::ClientList;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::ListClients>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as DbService>::list_clients(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListClientsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/ListStores" => {
                    #[allow(non_camel_case_types)]
                    struct ListStoresSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::ListStores>
                        for ListStoresSvc<T>
                    {
                        type Response = super::super::super::db::server::StoreList;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::ListStores>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::list_stores(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListStoresSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/InfoServer" => {
                    #[allow(non_camel_case_types)]
                    struct InfoServerSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::InfoServer>
                        for InfoServerSvc<T>
                    {
                        type Response = super::super::super::db::server::InfoServer;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::InfoServer>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::info_server(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = InfoServerSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/Ping" => {
                    #[allow(non_camel_case_types)]
                    struct PingSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<super::super::super::db::query::Ping>
                        for PingSvc<T>
                    {
                        type Response = super::super::super::db::server::Pong;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::super::super::db::query::Ping>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move { <T as DbService>::ping(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = PingSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/services.db_service.DBService/Pipeline" => {
                    #[allow(non_camel_case_types)]
                    struct PipelineSvc<T: DbService>(pub Arc<T>);
                    impl<T: DbService>
                        tonic::server::UnaryService<
                            super::super::super::db::pipeline::DbRequestPipeline,
                        > for PipelineSvc<T>
                    {
                        type Response = super::super::super::db::pipeline::DbResponsePipeline;
                        type Future = BoxFuture<tonic::Response<Self::Response>, tonic::Status>;
                        fn call(
                            &mut self,
                            request: tonic::Request<
                                super::super::super::db::pipeline::DbRequestPipeline,
                            >,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut =
                                async move { <T as DbService>::pipeline(&inner, request).await };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = PipelineSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                _ => Box::pin(async move {
                    let mut response = http::Response::new(empty_body());
                    let headers = response.headers_mut();
                    headers.insert(
                        tonic::Status::GRPC_STATUS,
                        (tonic::Code::Unimplemented as i32).into(),
                    );
                    headers.insert(
                        http::header::CONTENT_TYPE,
                        tonic::metadata::GRPC_CONTENT_TYPE,
                    );
                    Ok(response)
                }),
            }
        }
    }
    impl<T> Clone for DbServiceServer<T> {
        fn clone(&self) -> Self {
            let inner = self.inner.clone();
            Self {
                inner,
                accept_compression_encodings: self.accept_compression_encodings,
                send_compression_encodings: self.send_compression_encodings,
                max_decoding_message_size: self.max_decoding_message_size,
                max_encoding_message_size: self.max_encoding_message_size,
            }
        }
    }
    /// Generated gRPC service name
    pub const SERVICE_NAME: &str = "services.db_service.DBService";
    impl<T> tonic::server::NamedService for DbServiceServer<T> {
        const NAME: &'static str = SERVICE_NAME;
    }
}
