#[doc = r" Generated client implementations."] pub mod gateway_service_client { #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)] use tonic::codegen::*; #[doc = " Gateway service is a public API which works as a Kubernetes resource model"] #[doc = " proxy between end users and registered Kubernetes clusters. Each RPC in this"] #[doc = " service matches with an HTTP verb. End user will initiate kubectl commands"] #[doc = " against the Gateway service, and Gateway service will forward user requests"] #[doc = " to clusters."] #[derive(Debug, Clone)] pub struct GatewayServiceClient { inner: tonic::client::Grpc, } impl GatewayServiceClient where T: tonic::client::GrpcService, T::ResponseBody: Body + Send + 'static, T::Error: Into, ::Error: Into + Send, { pub fn new(inner: T) -> Self { let inner = tonic::client::Grpc::new(inner); Self { inner } } pub fn with_interceptor( inner: T, interceptor: F, ) -> GatewayServiceClient> where F: tonic::service::Interceptor, T: tonic::codegen::Service< http::Request, Response = http::Response< >::ResponseBody, >, >, >>::Error: Into + Send + Sync, { GatewayServiceClient::new(InterceptedService::new(inner, interceptor)) } #[doc = r" Compress requests with `gzip`."] #[doc = r""] #[doc = r" This requires the server to support it otherwise it might respond with an"] #[doc = r" error."] pub fn send_gzip(mut self) -> Self { self.inner = self.inner.send_gzip(); self } #[doc = r" Enable decompressing responses with `gzip`."] pub fn accept_gzip(mut self) -> Self { self.inner = self.inner.accept_gzip(); self } } }