Skip to main content

risingwave_pb/
monitor_service.rs

1// This file is @generated by prost-build.
2/// Controls the process-wide stdout/stderr filter. Query-log files and tracing
3/// exporters keep their own filters. Overrides are lost when the process restarts.
4#[derive(prost_helpers::AnyPB)]
5#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
6pub struct SetLogFilterRequest {
7    /// Same target/level syntax as RUST_LOG. Omit to restore the startup filter.
8    /// Each update replaces startup RUST_LOG and previous runtime directives,
9    /// applying the new directives on top of built-in defaults and logger settings.
10    #[prost(string, optional, tag = "1")]
11    pub filter: ::core::option::Option<::prost::alloc::string::String>,
12}
13#[derive(prost_helpers::AnyPB)]
14#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
15pub struct GetLogFilterRequest {}
16#[derive(prost_helpers::AnyPB)]
17#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
18pub struct LogFilterState {
19    /// Effective startup filter, restored by reset.
20    #[prost(string, tag = "1")]
21    pub startup_filter: ::prost::alloc::string::String,
22    /// Effective filter currently applied to stdout/stderr.
23    #[prost(string, tag = "2")]
24    pub current_filter: ::prost::alloc::string::String,
25}
26#[derive(prost_helpers::AnyPB)]
27#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
28pub struct StackTraceRequest {
29    #[prost(enumeration = "stack_trace_request::ActorTracesFormat", tag = "1")]
30    pub actor_traces_format: i32,
31}
32/// Nested message and enum types in `StackTraceRequest`.
33pub mod stack_trace_request {
34    #[derive(prost_helpers::AnyPB)]
35    #[derive(
36        Clone,
37        Copy,
38        Debug,
39        PartialEq,
40        Eq,
41        Hash,
42        PartialOrd,
43        Ord,
44        ::prost::Enumeration
45    )]
46    #[repr(i32)]
47    pub enum ActorTracesFormat {
48        Unspecified = 0,
49        Json = 1,
50        Text = 2,
51    }
52    impl ActorTracesFormat {
53        /// String value of the enum field names used in the ProtoBuf definition.
54        ///
55        /// The values are not transformed in any way and thus are considered stable
56        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
57        pub fn as_str_name(&self) -> &'static str {
58            match self {
59                Self::Unspecified => "UNSPECIFIED",
60                Self::Json => "JSON",
61                Self::Text => "TEXT",
62            }
63        }
64        /// Creates an enum from field names used in the ProtoBuf definition.
65        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
66            match value {
67                "UNSPECIFIED" => Some(Self::Unspecified),
68                "JSON" => Some(Self::Json),
69                "TEXT" => Some(Self::Text),
70                _ => None,
71            }
72        }
73    }
74}
75#[derive(prost_helpers::AnyPB)]
76#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct StackTraceResponse {
78    #[prost(btree_map = "uint32, string", tag = "1")]
79    pub actor_traces: ::prost::alloc::collections::BTreeMap<
80        u32,
81        ::prost::alloc::string::String,
82    >,
83    #[prost(btree_map = "string, string", tag = "2")]
84    pub rpc_traces: ::prost::alloc::collections::BTreeMap<
85        ::prost::alloc::string::String,
86        ::prost::alloc::string::String,
87    >,
88    #[prost(btree_map = "string, string", tag = "3")]
89    pub compaction_task_traces: ::prost::alloc::collections::BTreeMap<
90        ::prost::alloc::string::String,
91        ::prost::alloc::string::String,
92    >,
93    #[prost(btree_map = "uint64, string", tag = "4")]
94    pub inflight_barrier_traces: ::prost::alloc::collections::BTreeMap<
95        u64,
96        ::prost::alloc::string::String,
97    >,
98    /// key: worker id
99    #[prost(btree_map = "uint32, string", tag = "5", wrapper = "crate::id::WorkerId")]
100    pub barrier_worker_state: ::prost::alloc::collections::BTreeMap<
101        crate::id::WorkerId,
102        ::prost::alloc::string::String,
103    >,
104    /// key: worker id. Might be empty if the worker doesn't run JVM.
105    #[prost(btree_map = "uint32, string", tag = "6", wrapper = "crate::id::WorkerId")]
106    pub jvm_stack_traces: ::prost::alloc::collections::BTreeMap<
107        crate::id::WorkerId,
108        ::prost::alloc::string::String,
109    >,
110    #[prost(btree_map = "string, string", tag = "7")]
111    pub meta_traces: ::prost::alloc::collections::BTreeMap<
112        ::prost::alloc::string::String,
113        ::prost::alloc::string::String,
114    >,
115    /// Per-worker error messages when collecting stack traces from the cluster.
116    /// Key: worker id.
117    #[prost(btree_map = "uint32, string", tag = "8", wrapper = "crate::id::WorkerId")]
118    pub node_errors: ::prost::alloc::collections::BTreeMap<
119        crate::id::WorkerId,
120        ::prost::alloc::string::String,
121    >,
122    /// Key: batch task id in the format of "{query_id}-{stage_id}-{task_id}".
123    #[prost(btree_map = "string, string", tag = "9")]
124    pub batch_traces: ::prost::alloc::collections::BTreeMap<
125        ::prost::alloc::string::String,
126        ::prost::alloc::string::String,
127    >,
128}
129/// CPU profiling
130#[derive(prost_helpers::AnyPB)]
131#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
132pub struct ProfilingRequest {
133    /// How long the profiling should last.
134    #[prost(uint64, tag = "1")]
135    pub sleep_s: u64,
136}
137#[derive(prost_helpers::AnyPB)]
138#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
139pub struct ProfilingResponse {
140    #[prost(bytes = "vec", tag = "1")]
141    pub result: ::prost::alloc::vec::Vec<u8>,
142}
143/// Heap profiling
144#[derive(prost_helpers::AnyPB)]
145#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
146pub struct HeapProfilingRequest {
147    /// The directory that the dumped file in
148    #[prost(string, tag = "1")]
149    pub dir: ::prost::alloc::string::String,
150}
151#[derive(prost_helpers::AnyPB)]
152#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
153pub struct HeapProfilingResponse {}
154#[derive(prost_helpers::AnyPB)]
155#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
156pub struct ListHeapProfilingRequest {}
157#[derive(prost_helpers::AnyPB)]
158#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
159pub struct ListHeapProfilingResponse {
160    #[prost(string, tag = "1")]
161    pub dir: ::prost::alloc::string::String,
162    #[prost(string, repeated, tag = "2")]
163    pub name_manually: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
164    #[prost(string, repeated, tag = "3")]
165    pub name_auto: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
166}
167/// Analyze dumped files
168#[derive(prost_helpers::AnyPB)]
169#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
170pub struct AnalyzeHeapRequest {
171    /// The file path
172    #[prost(string, tag = "1")]
173    pub path: ::prost::alloc::string::String,
174}
175#[derive(prost_helpers::AnyPB)]
176#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
177pub struct AnalyzeHeapResponse {
178    #[prost(bytes = "vec", tag = "1")]
179    pub result: ::prost::alloc::vec::Vec<u8>,
180}
181/// Streaming Runtime Stats
182#[derive(prost_helpers::AnyPB)]
183#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
184pub struct GetStreamingStatsRequest {}
185#[derive(prost_helpers::AnyPB)]
186#[derive(Clone, Copy, PartialEq, ::prost::Message)]
187pub struct ChannelStats {
188    /// Total number of actors. This field is very important because the rest fields are `SUM` of all the actors.
189    ///
190    /// Use shorter name in JSON to reduce message size.
191    #[prost(uint32, tag = "1")]
192    pub actor_count: u32,
193    /// Sum of output blocking duration of all actors in nanoseconds
194    #[prost(double, tag = "2")]
195    pub output_blocking_duration: f64,
196    /// Sum of input row count of all actors
197    #[prost(uint64, tag = "3")]
198    pub recv_row_count: u64,
199    /// Sum of output row count of all actors
200    #[prost(uint64, tag = "4")]
201    pub send_row_count: u64,
202}
203#[derive(prost_helpers::AnyPB)]
204#[derive(Clone, Copy, PartialEq, ::prost::Message)]
205pub struct ChannelDeltaStats {
206    #[prost(uint32, tag = "1")]
207    pub actor_count: u32,
208    /// Sum of output blocking duration of all actors in nanoseconds
209    #[prost(double, tag = "2")]
210    pub backpressure_rate: f64,
211    /// Sum of input row count of all actors
212    #[prost(double, tag = "3")]
213    pub recv_throughput: f64,
214    /// Sum of output row count of all actors
215    #[prost(double, tag = "4")]
216    pub send_throughput: f64,
217}
218#[derive(prost_helpers::AnyPB)]
219#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
220pub struct FragmentStats {
221    #[prost(uint32, tag = "2")]
222    pub actor_count: u32,
223    #[prost(uint64, tag = "3")]
224    pub current_epoch: u64,
225}
226#[derive(prost_helpers::AnyPB)]
227#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
228pub struct RelationStats {
229    #[prost(uint32, tag = "2")]
230    pub actor_count: u32,
231    #[prost(uint64, tag = "3")]
232    pub current_epoch: u64,
233}
234#[derive(prost_helpers::AnyPB)]
235#[derive(Clone, PartialEq, ::prost::Message)]
236pub struct GetStreamingStatsResponse {
237    /// Key: "\<upstream_fragment_id>\_\<downstream_fragment_id>"
238    #[prost(map = "string, message", tag = "1")]
239    pub channel_stats: ::std::collections::HashMap<
240        ::prost::alloc::string::String,
241        ChannelStats,
242    >,
243    #[prost(map = "uint32, message", tag = "2")]
244    pub fragment_stats: ::std::collections::HashMap<u32, FragmentStats>,
245    #[prost(map = "uint32, message", tag = "3")]
246    pub relation_stats: ::std::collections::HashMap<u32, RelationStats>,
247}
248#[derive(prost_helpers::AnyPB)]
249#[derive(Clone, PartialEq, ::prost::Message)]
250pub struct GetStreamingPrometheusStatsResponse {
251    /// Key: "\<upstream_fragment_id>\_\<downstream_fragment_id>"
252    #[prost(map = "string, message", tag = "1")]
253    pub channel_stats: ::std::collections::HashMap<
254        ::prost::alloc::string::String,
255        ChannelDeltaStats,
256    >,
257    #[prost(map = "uint32, message", tag = "2")]
258    pub fragment_stats: ::std::collections::HashMap<u32, FragmentStats>,
259    #[prost(map = "uint32, message", tag = "3")]
260    pub relation_stats: ::std::collections::HashMap<u32, RelationStats>,
261}
262#[derive(prost_helpers::AnyPB)]
263#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
264pub struct TieredCacheTracingRequest {
265    #[prost(bool, tag = "1")]
266    pub enable: bool,
267    #[prost(uint32, optional, tag = "2")]
268    pub record_hybrid_insert_threshold_ms: ::core::option::Option<u32>,
269    #[prost(uint32, optional, tag = "3")]
270    pub record_hybrid_get_threshold_ms: ::core::option::Option<u32>,
271    #[prost(uint32, optional, tag = "4")]
272    pub record_hybrid_obtain_threshold_ms: ::core::option::Option<u32>,
273    #[prost(uint32, optional, tag = "5")]
274    pub record_hybrid_remove_threshold_ms: ::core::option::Option<u32>,
275    #[prost(uint32, optional, tag = "6")]
276    pub record_hybrid_fetch_threshold_ms: ::core::option::Option<u32>,
277}
278#[derive(prost_helpers::AnyPB)]
279#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
280pub struct TieredCacheTracingResponse {}
281#[derive(prost_helpers::AnyPB)]
282#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
283pub struct GetProfileStatsRequest {
284    /// Executors to fetch statistics for.
285    #[prost(uint64, repeated, tag = "1", wrapper = "crate::id::ExecutorId")]
286    pub executor_ids: ::prost::alloc::vec::Vec<crate::id::ExecutorId>,
287    /// Dispatchers do not have executors.
288    /// We have to fetch their statistics separately.
289    #[prost(uint32, repeated, tag = "2", wrapper = "crate::id::FragmentId")]
290    pub dispatcher_fragment_ids: ::prost::alloc::vec::Vec<crate::id::FragmentId>,
291}
292#[derive(prost_helpers::AnyPB)]
293#[derive(Clone, PartialEq, ::prost::Message)]
294pub struct GetProfileStatsResponse {
295    #[prost(map = "uint64, uint64", tag = "1", wrapper = "crate::id::ExecutorId")]
296    pub stream_node_output_row_count: ::std::collections::HashMap<
297        crate::id::ExecutorId,
298        u64,
299    >,
300    #[prost(map = "uint64, uint64", tag = "2", wrapper = "crate::id::ExecutorId")]
301    pub stream_node_output_blocking_duration_ns: ::std::collections::HashMap<
302        crate::id::ExecutorId,
303        u64,
304    >,
305    #[prost(map = "uint32, uint64", tag = "3", wrapper = "crate::id::FragmentId")]
306    pub dispatch_fragment_output_row_count: ::std::collections::HashMap<
307        crate::id::FragmentId,
308        u64,
309    >,
310    #[prost(map = "uint32, uint64", tag = "4", wrapper = "crate::id::FragmentId")]
311    pub dispatch_fragment_output_blocking_duration_ns: ::std::collections::HashMap<
312        crate::id::FragmentId,
313        u64,
314    >,
315}
316#[derive(prost_helpers::AnyPB)]
317#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
318pub struct GetTableCacheRefillStatsRequest {}
319#[derive(prost_helpers::AnyPB)]
320#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
321pub struct GetTableCacheRefillStatsResponse {
322    /// json statistics
323    #[prost(string, tag = "1")]
324    pub stats: ::prost::alloc::string::String,
325}
326/// Generated client implementations.
327pub mod monitor_service_client {
328    #![allow(
329        unused_variables,
330        dead_code,
331        missing_docs,
332        clippy::wildcard_imports,
333        clippy::let_unit_value,
334    )]
335    use tonic::codegen::*;
336    use tonic::codegen::http::Uri;
337    #[derive(Debug, Clone)]
338    pub struct MonitorServiceClient<T> {
339        inner: tonic::client::Grpc<T>,
340    }
341    impl MonitorServiceClient<tonic::transport::Channel> {
342        /// Attempt to create a new client by connecting to a given endpoint.
343        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
344        where
345            D: TryInto<tonic::transport::Endpoint>,
346            D::Error: Into<StdError>,
347        {
348            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
349            Ok(Self::new(conn))
350        }
351    }
352    impl<T> MonitorServiceClient<T>
353    where
354        T: tonic::client::GrpcService<tonic::body::Body>,
355        T::Error: Into<StdError>,
356        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
357        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
358    {
359        pub fn new(inner: T) -> Self {
360            let inner = tonic::client::Grpc::new(inner);
361            Self { inner }
362        }
363        pub fn with_origin(inner: T, origin: Uri) -> Self {
364            let inner = tonic::client::Grpc::with_origin(inner, origin);
365            Self { inner }
366        }
367        pub fn with_interceptor<F>(
368            inner: T,
369            interceptor: F,
370        ) -> MonitorServiceClient<InterceptedService<T, F>>
371        where
372            F: tonic::service::Interceptor,
373            T::ResponseBody: Default,
374            T: tonic::codegen::Service<
375                http::Request<tonic::body::Body>,
376                Response = http::Response<
377                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
378                >,
379            >,
380            <T as tonic::codegen::Service<
381                http::Request<tonic::body::Body>,
382            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
383        {
384            MonitorServiceClient::new(InterceptedService::new(inner, interceptor))
385        }
386        /// Compress requests with the given encoding.
387        ///
388        /// This requires the server to support it otherwise it might respond with an
389        /// error.
390        #[must_use]
391        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
392            self.inner = self.inner.send_compressed(encoding);
393            self
394        }
395        /// Enable decompressing responses.
396        #[must_use]
397        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
398            self.inner = self.inner.accept_compressed(encoding);
399            self
400        }
401        /// Limits the maximum size of a decoded message.
402        ///
403        /// Default: `4MB`
404        #[must_use]
405        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
406            self.inner = self.inner.max_decoding_message_size(limit);
407            self
408        }
409        /// Limits the maximum size of an encoded message.
410        ///
411        /// Default: `usize::MAX`
412        #[must_use]
413        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
414            self.inner = self.inner.max_encoding_message_size(limit);
415            self
416        }
417        pub async fn set_log_filter(
418            &mut self,
419            request: impl tonic::IntoRequest<super::SetLogFilterRequest>,
420        ) -> std::result::Result<tonic::Response<super::LogFilterState>, tonic::Status> {
421            self.inner
422                .ready()
423                .await
424                .map_err(|e| {
425                    tonic::Status::unknown(
426                        format!("Service was not ready: {}", e.into()),
427                    )
428                })?;
429            let codec = tonic_prost::ProstCodec::default();
430            let path = http::uri::PathAndQuery::from_static(
431                "/monitor_service.MonitorService/SetLogFilter",
432            );
433            let mut req = request.into_request();
434            req.extensions_mut()
435                .insert(
436                    GrpcMethod::new("monitor_service.MonitorService", "SetLogFilter"),
437                );
438            self.inner.unary(req, path, codec).await
439        }
440        pub async fn get_log_filter(
441            &mut self,
442            request: impl tonic::IntoRequest<super::GetLogFilterRequest>,
443        ) -> std::result::Result<tonic::Response<super::LogFilterState>, tonic::Status> {
444            self.inner
445                .ready()
446                .await
447                .map_err(|e| {
448                    tonic::Status::unknown(
449                        format!("Service was not ready: {}", e.into()),
450                    )
451                })?;
452            let codec = tonic_prost::ProstCodec::default();
453            let path = http::uri::PathAndQuery::from_static(
454                "/monitor_service.MonitorService/GetLogFilter",
455            );
456            let mut req = request.into_request();
457            req.extensions_mut()
458                .insert(
459                    GrpcMethod::new("monitor_service.MonitorService", "GetLogFilter"),
460                );
461            self.inner.unary(req, path, codec).await
462        }
463        pub async fn stack_trace(
464            &mut self,
465            request: impl tonic::IntoRequest<super::StackTraceRequest>,
466        ) -> std::result::Result<
467            tonic::Response<super::StackTraceResponse>,
468            tonic::Status,
469        > {
470            self.inner
471                .ready()
472                .await
473                .map_err(|e| {
474                    tonic::Status::unknown(
475                        format!("Service was not ready: {}", e.into()),
476                    )
477                })?;
478            let codec = tonic_prost::ProstCodec::default();
479            let path = http::uri::PathAndQuery::from_static(
480                "/monitor_service.MonitorService/StackTrace",
481            );
482            let mut req = request.into_request();
483            req.extensions_mut()
484                .insert(GrpcMethod::new("monitor_service.MonitorService", "StackTrace"));
485            self.inner.unary(req, path, codec).await
486        }
487        pub async fn profiling(
488            &mut self,
489            request: impl tonic::IntoRequest<super::ProfilingRequest>,
490        ) -> std::result::Result<
491            tonic::Response<super::ProfilingResponse>,
492            tonic::Status,
493        > {
494            self.inner
495                .ready()
496                .await
497                .map_err(|e| {
498                    tonic::Status::unknown(
499                        format!("Service was not ready: {}", e.into()),
500                    )
501                })?;
502            let codec = tonic_prost::ProstCodec::default();
503            let path = http::uri::PathAndQuery::from_static(
504                "/monitor_service.MonitorService/Profiling",
505            );
506            let mut req = request.into_request();
507            req.extensions_mut()
508                .insert(GrpcMethod::new("monitor_service.MonitorService", "Profiling"));
509            self.inner.unary(req, path, codec).await
510        }
511        pub async fn heap_profiling(
512            &mut self,
513            request: impl tonic::IntoRequest<super::HeapProfilingRequest>,
514        ) -> std::result::Result<
515            tonic::Response<super::HeapProfilingResponse>,
516            tonic::Status,
517        > {
518            self.inner
519                .ready()
520                .await
521                .map_err(|e| {
522                    tonic::Status::unknown(
523                        format!("Service was not ready: {}", e.into()),
524                    )
525                })?;
526            let codec = tonic_prost::ProstCodec::default();
527            let path = http::uri::PathAndQuery::from_static(
528                "/monitor_service.MonitorService/HeapProfiling",
529            );
530            let mut req = request.into_request();
531            req.extensions_mut()
532                .insert(
533                    GrpcMethod::new("monitor_service.MonitorService", "HeapProfiling"),
534                );
535            self.inner.unary(req, path, codec).await
536        }
537        pub async fn list_heap_profiling(
538            &mut self,
539            request: impl tonic::IntoRequest<super::ListHeapProfilingRequest>,
540        ) -> std::result::Result<
541            tonic::Response<super::ListHeapProfilingResponse>,
542            tonic::Status,
543        > {
544            self.inner
545                .ready()
546                .await
547                .map_err(|e| {
548                    tonic::Status::unknown(
549                        format!("Service was not ready: {}", e.into()),
550                    )
551                })?;
552            let codec = tonic_prost::ProstCodec::default();
553            let path = http::uri::PathAndQuery::from_static(
554                "/monitor_service.MonitorService/ListHeapProfiling",
555            );
556            let mut req = request.into_request();
557            req.extensions_mut()
558                .insert(
559                    GrpcMethod::new(
560                        "monitor_service.MonitorService",
561                        "ListHeapProfiling",
562                    ),
563                );
564            self.inner.unary(req, path, codec).await
565        }
566        pub async fn analyze_heap(
567            &mut self,
568            request: impl tonic::IntoRequest<super::AnalyzeHeapRequest>,
569        ) -> std::result::Result<
570            tonic::Response<super::AnalyzeHeapResponse>,
571            tonic::Status,
572        > {
573            self.inner
574                .ready()
575                .await
576                .map_err(|e| {
577                    tonic::Status::unknown(
578                        format!("Service was not ready: {}", e.into()),
579                    )
580                })?;
581            let codec = tonic_prost::ProstCodec::default();
582            let path = http::uri::PathAndQuery::from_static(
583                "/monitor_service.MonitorService/AnalyzeHeap",
584            );
585            let mut req = request.into_request();
586            req.extensions_mut()
587                .insert(
588                    GrpcMethod::new("monitor_service.MonitorService", "AnalyzeHeap"),
589                );
590            self.inner.unary(req, path, codec).await
591        }
592        pub async fn get_streaming_stats(
593            &mut self,
594            request: impl tonic::IntoRequest<super::GetStreamingStatsRequest>,
595        ) -> std::result::Result<
596            tonic::Response<super::GetStreamingStatsResponse>,
597            tonic::Status,
598        > {
599            self.inner
600                .ready()
601                .await
602                .map_err(|e| {
603                    tonic::Status::unknown(
604                        format!("Service was not ready: {}", e.into()),
605                    )
606                })?;
607            let codec = tonic_prost::ProstCodec::default();
608            let path = http::uri::PathAndQuery::from_static(
609                "/monitor_service.MonitorService/GetStreamingStats",
610            );
611            let mut req = request.into_request();
612            req.extensions_mut()
613                .insert(
614                    GrpcMethod::new(
615                        "monitor_service.MonitorService",
616                        "GetStreamingStats",
617                    ),
618                );
619            self.inner.unary(req, path, codec).await
620        }
621        pub async fn tiered_cache_tracing(
622            &mut self,
623            request: impl tonic::IntoRequest<super::TieredCacheTracingRequest>,
624        ) -> std::result::Result<
625            tonic::Response<super::TieredCacheTracingResponse>,
626            tonic::Status,
627        > {
628            self.inner
629                .ready()
630                .await
631                .map_err(|e| {
632                    tonic::Status::unknown(
633                        format!("Service was not ready: {}", e.into()),
634                    )
635                })?;
636            let codec = tonic_prost::ProstCodec::default();
637            let path = http::uri::PathAndQuery::from_static(
638                "/monitor_service.MonitorService/TieredCacheTracing",
639            );
640            let mut req = request.into_request();
641            req.extensions_mut()
642                .insert(
643                    GrpcMethod::new(
644                        "monitor_service.MonitorService",
645                        "TieredCacheTracing",
646                    ),
647                );
648            self.inner.unary(req, path, codec).await
649        }
650        pub async fn get_profile_stats(
651            &mut self,
652            request: impl tonic::IntoRequest<super::GetProfileStatsRequest>,
653        ) -> std::result::Result<
654            tonic::Response<super::GetProfileStatsResponse>,
655            tonic::Status,
656        > {
657            self.inner
658                .ready()
659                .await
660                .map_err(|e| {
661                    tonic::Status::unknown(
662                        format!("Service was not ready: {}", e.into()),
663                    )
664                })?;
665            let codec = tonic_prost::ProstCodec::default();
666            let path = http::uri::PathAndQuery::from_static(
667                "/monitor_service.MonitorService/GetProfileStats",
668            );
669            let mut req = request.into_request();
670            req.extensions_mut()
671                .insert(
672                    GrpcMethod::new("monitor_service.MonitorService", "GetProfileStats"),
673                );
674            self.inner.unary(req, path, codec).await
675        }
676        pub async fn get_table_cache_refill_stats(
677            &mut self,
678            request: impl tonic::IntoRequest<super::GetTableCacheRefillStatsRequest>,
679        ) -> std::result::Result<
680            tonic::Response<super::GetTableCacheRefillStatsResponse>,
681            tonic::Status,
682        > {
683            self.inner
684                .ready()
685                .await
686                .map_err(|e| {
687                    tonic::Status::unknown(
688                        format!("Service was not ready: {}", e.into()),
689                    )
690                })?;
691            let codec = tonic_prost::ProstCodec::default();
692            let path = http::uri::PathAndQuery::from_static(
693                "/monitor_service.MonitorService/GetTableCacheRefillStats",
694            );
695            let mut req = request.into_request();
696            req.extensions_mut()
697                .insert(
698                    GrpcMethod::new(
699                        "monitor_service.MonitorService",
700                        "GetTableCacheRefillStats",
701                    ),
702                );
703            self.inner.unary(req, path, codec).await
704        }
705    }
706}
707/// Generated server implementations.
708pub mod monitor_service_server {
709    #![allow(
710        unused_variables,
711        dead_code,
712        missing_docs,
713        clippy::wildcard_imports,
714        clippy::let_unit_value,
715    )]
716    use tonic::codegen::*;
717    /// Generated trait containing gRPC methods that should be implemented for use with MonitorServiceServer.
718    #[async_trait]
719    pub trait MonitorService: std::marker::Send + std::marker::Sync + 'static {
720        async fn set_log_filter(
721            &self,
722            request: tonic::Request<super::SetLogFilterRequest>,
723        ) -> std::result::Result<tonic::Response<super::LogFilterState>, tonic::Status>;
724        async fn get_log_filter(
725            &self,
726            request: tonic::Request<super::GetLogFilterRequest>,
727        ) -> std::result::Result<tonic::Response<super::LogFilterState>, tonic::Status>;
728        async fn stack_trace(
729            &self,
730            request: tonic::Request<super::StackTraceRequest>,
731        ) -> std::result::Result<
732            tonic::Response<super::StackTraceResponse>,
733            tonic::Status,
734        >;
735        async fn profiling(
736            &self,
737            request: tonic::Request<super::ProfilingRequest>,
738        ) -> std::result::Result<
739            tonic::Response<super::ProfilingResponse>,
740            tonic::Status,
741        >;
742        async fn heap_profiling(
743            &self,
744            request: tonic::Request<super::HeapProfilingRequest>,
745        ) -> std::result::Result<
746            tonic::Response<super::HeapProfilingResponse>,
747            tonic::Status,
748        >;
749        async fn list_heap_profiling(
750            &self,
751            request: tonic::Request<super::ListHeapProfilingRequest>,
752        ) -> std::result::Result<
753            tonic::Response<super::ListHeapProfilingResponse>,
754            tonic::Status,
755        >;
756        async fn analyze_heap(
757            &self,
758            request: tonic::Request<super::AnalyzeHeapRequest>,
759        ) -> std::result::Result<
760            tonic::Response<super::AnalyzeHeapResponse>,
761            tonic::Status,
762        >;
763        async fn get_streaming_stats(
764            &self,
765            request: tonic::Request<super::GetStreamingStatsRequest>,
766        ) -> std::result::Result<
767            tonic::Response<super::GetStreamingStatsResponse>,
768            tonic::Status,
769        >;
770        async fn tiered_cache_tracing(
771            &self,
772            request: tonic::Request<super::TieredCacheTracingRequest>,
773        ) -> std::result::Result<
774            tonic::Response<super::TieredCacheTracingResponse>,
775            tonic::Status,
776        >;
777        async fn get_profile_stats(
778            &self,
779            request: tonic::Request<super::GetProfileStatsRequest>,
780        ) -> std::result::Result<
781            tonic::Response<super::GetProfileStatsResponse>,
782            tonic::Status,
783        >;
784        async fn get_table_cache_refill_stats(
785            &self,
786            request: tonic::Request<super::GetTableCacheRefillStatsRequest>,
787        ) -> std::result::Result<
788            tonic::Response<super::GetTableCacheRefillStatsResponse>,
789            tonic::Status,
790        >;
791    }
792    #[derive(Debug)]
793    pub struct MonitorServiceServer<T> {
794        inner: Arc<T>,
795        accept_compression_encodings: EnabledCompressionEncodings,
796        send_compression_encodings: EnabledCompressionEncodings,
797        max_decoding_message_size: Option<usize>,
798        max_encoding_message_size: Option<usize>,
799    }
800    impl<T> MonitorServiceServer<T> {
801        pub fn new(inner: T) -> Self {
802            Self::from_arc(Arc::new(inner))
803        }
804        pub fn from_arc(inner: Arc<T>) -> Self {
805            Self {
806                inner,
807                accept_compression_encodings: Default::default(),
808                send_compression_encodings: Default::default(),
809                max_decoding_message_size: None,
810                max_encoding_message_size: None,
811            }
812        }
813        pub fn with_interceptor<F>(
814            inner: T,
815            interceptor: F,
816        ) -> InterceptedService<Self, F>
817        where
818            F: tonic::service::Interceptor,
819        {
820            InterceptedService::new(Self::new(inner), interceptor)
821        }
822        /// Enable decompressing requests with the given encoding.
823        #[must_use]
824        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
825            self.accept_compression_encodings.enable(encoding);
826            self
827        }
828        /// Compress responses with the given encoding, if the client supports it.
829        #[must_use]
830        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
831            self.send_compression_encodings.enable(encoding);
832            self
833        }
834        /// Limits the maximum size of a decoded message.
835        ///
836        /// Default: `4MB`
837        #[must_use]
838        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
839            self.max_decoding_message_size = Some(limit);
840            self
841        }
842        /// Limits the maximum size of an encoded message.
843        ///
844        /// Default: `usize::MAX`
845        #[must_use]
846        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
847            self.max_encoding_message_size = Some(limit);
848            self
849        }
850    }
851    impl<T, B> tonic::codegen::Service<http::Request<B>> for MonitorServiceServer<T>
852    where
853        T: MonitorService,
854        B: Body + std::marker::Send + 'static,
855        B::Error: Into<StdError> + std::marker::Send + 'static,
856    {
857        type Response = http::Response<tonic::body::Body>;
858        type Error = std::convert::Infallible;
859        type Future = BoxFuture<Self::Response, Self::Error>;
860        fn poll_ready(
861            &mut self,
862            _cx: &mut Context<'_>,
863        ) -> Poll<std::result::Result<(), Self::Error>> {
864            Poll::Ready(Ok(()))
865        }
866        fn call(&mut self, req: http::Request<B>) -> Self::Future {
867            match req.uri().path() {
868                "/monitor_service.MonitorService/SetLogFilter" => {
869                    #[allow(non_camel_case_types)]
870                    struct SetLogFilterSvc<T: MonitorService>(pub Arc<T>);
871                    impl<
872                        T: MonitorService,
873                    > tonic::server::UnaryService<super::SetLogFilterRequest>
874                    for SetLogFilterSvc<T> {
875                        type Response = super::LogFilterState;
876                        type Future = BoxFuture<
877                            tonic::Response<Self::Response>,
878                            tonic::Status,
879                        >;
880                        fn call(
881                            &mut self,
882                            request: tonic::Request<super::SetLogFilterRequest>,
883                        ) -> Self::Future {
884                            let inner = Arc::clone(&self.0);
885                            let fut = async move {
886                                <T as MonitorService>::set_log_filter(&inner, request).await
887                            };
888                            Box::pin(fut)
889                        }
890                    }
891                    let accept_compression_encodings = self.accept_compression_encodings;
892                    let send_compression_encodings = self.send_compression_encodings;
893                    let max_decoding_message_size = self.max_decoding_message_size;
894                    let max_encoding_message_size = self.max_encoding_message_size;
895                    let inner = self.inner.clone();
896                    let fut = async move {
897                        let method = SetLogFilterSvc(inner);
898                        let codec = tonic_prost::ProstCodec::default();
899                        let mut grpc = tonic::server::Grpc::new(codec)
900                            .apply_compression_config(
901                                accept_compression_encodings,
902                                send_compression_encodings,
903                            )
904                            .apply_max_message_size_config(
905                                max_decoding_message_size,
906                                max_encoding_message_size,
907                            );
908                        let res = grpc.unary(method, req).await;
909                        Ok(res)
910                    };
911                    Box::pin(fut)
912                }
913                "/monitor_service.MonitorService/GetLogFilter" => {
914                    #[allow(non_camel_case_types)]
915                    struct GetLogFilterSvc<T: MonitorService>(pub Arc<T>);
916                    impl<
917                        T: MonitorService,
918                    > tonic::server::UnaryService<super::GetLogFilterRequest>
919                    for GetLogFilterSvc<T> {
920                        type Response = super::LogFilterState;
921                        type Future = BoxFuture<
922                            tonic::Response<Self::Response>,
923                            tonic::Status,
924                        >;
925                        fn call(
926                            &mut self,
927                            request: tonic::Request<super::GetLogFilterRequest>,
928                        ) -> Self::Future {
929                            let inner = Arc::clone(&self.0);
930                            let fut = async move {
931                                <T as MonitorService>::get_log_filter(&inner, request).await
932                            };
933                            Box::pin(fut)
934                        }
935                    }
936                    let accept_compression_encodings = self.accept_compression_encodings;
937                    let send_compression_encodings = self.send_compression_encodings;
938                    let max_decoding_message_size = self.max_decoding_message_size;
939                    let max_encoding_message_size = self.max_encoding_message_size;
940                    let inner = self.inner.clone();
941                    let fut = async move {
942                        let method = GetLogFilterSvc(inner);
943                        let codec = tonic_prost::ProstCodec::default();
944                        let mut grpc = tonic::server::Grpc::new(codec)
945                            .apply_compression_config(
946                                accept_compression_encodings,
947                                send_compression_encodings,
948                            )
949                            .apply_max_message_size_config(
950                                max_decoding_message_size,
951                                max_encoding_message_size,
952                            );
953                        let res = grpc.unary(method, req).await;
954                        Ok(res)
955                    };
956                    Box::pin(fut)
957                }
958                "/monitor_service.MonitorService/StackTrace" => {
959                    #[allow(non_camel_case_types)]
960                    struct StackTraceSvc<T: MonitorService>(pub Arc<T>);
961                    impl<
962                        T: MonitorService,
963                    > tonic::server::UnaryService<super::StackTraceRequest>
964                    for StackTraceSvc<T> {
965                        type Response = super::StackTraceResponse;
966                        type Future = BoxFuture<
967                            tonic::Response<Self::Response>,
968                            tonic::Status,
969                        >;
970                        fn call(
971                            &mut self,
972                            request: tonic::Request<super::StackTraceRequest>,
973                        ) -> Self::Future {
974                            let inner = Arc::clone(&self.0);
975                            let fut = async move {
976                                <T as MonitorService>::stack_trace(&inner, request).await
977                            };
978                            Box::pin(fut)
979                        }
980                    }
981                    let accept_compression_encodings = self.accept_compression_encodings;
982                    let send_compression_encodings = self.send_compression_encodings;
983                    let max_decoding_message_size = self.max_decoding_message_size;
984                    let max_encoding_message_size = self.max_encoding_message_size;
985                    let inner = self.inner.clone();
986                    let fut = async move {
987                        let method = StackTraceSvc(inner);
988                        let codec = tonic_prost::ProstCodec::default();
989                        let mut grpc = tonic::server::Grpc::new(codec)
990                            .apply_compression_config(
991                                accept_compression_encodings,
992                                send_compression_encodings,
993                            )
994                            .apply_max_message_size_config(
995                                max_decoding_message_size,
996                                max_encoding_message_size,
997                            );
998                        let res = grpc.unary(method, req).await;
999                        Ok(res)
1000                    };
1001                    Box::pin(fut)
1002                }
1003                "/monitor_service.MonitorService/Profiling" => {
1004                    #[allow(non_camel_case_types)]
1005                    struct ProfilingSvc<T: MonitorService>(pub Arc<T>);
1006                    impl<
1007                        T: MonitorService,
1008                    > tonic::server::UnaryService<super::ProfilingRequest>
1009                    for ProfilingSvc<T> {
1010                        type Response = super::ProfilingResponse;
1011                        type Future = BoxFuture<
1012                            tonic::Response<Self::Response>,
1013                            tonic::Status,
1014                        >;
1015                        fn call(
1016                            &mut self,
1017                            request: tonic::Request<super::ProfilingRequest>,
1018                        ) -> Self::Future {
1019                            let inner = Arc::clone(&self.0);
1020                            let fut = async move {
1021                                <T as MonitorService>::profiling(&inner, request).await
1022                            };
1023                            Box::pin(fut)
1024                        }
1025                    }
1026                    let accept_compression_encodings = self.accept_compression_encodings;
1027                    let send_compression_encodings = self.send_compression_encodings;
1028                    let max_decoding_message_size = self.max_decoding_message_size;
1029                    let max_encoding_message_size = self.max_encoding_message_size;
1030                    let inner = self.inner.clone();
1031                    let fut = async move {
1032                        let method = ProfilingSvc(inner);
1033                        let codec = tonic_prost::ProstCodec::default();
1034                        let mut grpc = tonic::server::Grpc::new(codec)
1035                            .apply_compression_config(
1036                                accept_compression_encodings,
1037                                send_compression_encodings,
1038                            )
1039                            .apply_max_message_size_config(
1040                                max_decoding_message_size,
1041                                max_encoding_message_size,
1042                            );
1043                        let res = grpc.unary(method, req).await;
1044                        Ok(res)
1045                    };
1046                    Box::pin(fut)
1047                }
1048                "/monitor_service.MonitorService/HeapProfiling" => {
1049                    #[allow(non_camel_case_types)]
1050                    struct HeapProfilingSvc<T: MonitorService>(pub Arc<T>);
1051                    impl<
1052                        T: MonitorService,
1053                    > tonic::server::UnaryService<super::HeapProfilingRequest>
1054                    for HeapProfilingSvc<T> {
1055                        type Response = super::HeapProfilingResponse;
1056                        type Future = BoxFuture<
1057                            tonic::Response<Self::Response>,
1058                            tonic::Status,
1059                        >;
1060                        fn call(
1061                            &mut self,
1062                            request: tonic::Request<super::HeapProfilingRequest>,
1063                        ) -> Self::Future {
1064                            let inner = Arc::clone(&self.0);
1065                            let fut = async move {
1066                                <T as MonitorService>::heap_profiling(&inner, request).await
1067                            };
1068                            Box::pin(fut)
1069                        }
1070                    }
1071                    let accept_compression_encodings = self.accept_compression_encodings;
1072                    let send_compression_encodings = self.send_compression_encodings;
1073                    let max_decoding_message_size = self.max_decoding_message_size;
1074                    let max_encoding_message_size = self.max_encoding_message_size;
1075                    let inner = self.inner.clone();
1076                    let fut = async move {
1077                        let method = HeapProfilingSvc(inner);
1078                        let codec = tonic_prost::ProstCodec::default();
1079                        let mut grpc = tonic::server::Grpc::new(codec)
1080                            .apply_compression_config(
1081                                accept_compression_encodings,
1082                                send_compression_encodings,
1083                            )
1084                            .apply_max_message_size_config(
1085                                max_decoding_message_size,
1086                                max_encoding_message_size,
1087                            );
1088                        let res = grpc.unary(method, req).await;
1089                        Ok(res)
1090                    };
1091                    Box::pin(fut)
1092                }
1093                "/monitor_service.MonitorService/ListHeapProfiling" => {
1094                    #[allow(non_camel_case_types)]
1095                    struct ListHeapProfilingSvc<T: MonitorService>(pub Arc<T>);
1096                    impl<
1097                        T: MonitorService,
1098                    > tonic::server::UnaryService<super::ListHeapProfilingRequest>
1099                    for ListHeapProfilingSvc<T> {
1100                        type Response = super::ListHeapProfilingResponse;
1101                        type Future = BoxFuture<
1102                            tonic::Response<Self::Response>,
1103                            tonic::Status,
1104                        >;
1105                        fn call(
1106                            &mut self,
1107                            request: tonic::Request<super::ListHeapProfilingRequest>,
1108                        ) -> Self::Future {
1109                            let inner = Arc::clone(&self.0);
1110                            let fut = async move {
1111                                <T as MonitorService>::list_heap_profiling(&inner, request)
1112                                    .await
1113                            };
1114                            Box::pin(fut)
1115                        }
1116                    }
1117                    let accept_compression_encodings = self.accept_compression_encodings;
1118                    let send_compression_encodings = self.send_compression_encodings;
1119                    let max_decoding_message_size = self.max_decoding_message_size;
1120                    let max_encoding_message_size = self.max_encoding_message_size;
1121                    let inner = self.inner.clone();
1122                    let fut = async move {
1123                        let method = ListHeapProfilingSvc(inner);
1124                        let codec = tonic_prost::ProstCodec::default();
1125                        let mut grpc = tonic::server::Grpc::new(codec)
1126                            .apply_compression_config(
1127                                accept_compression_encodings,
1128                                send_compression_encodings,
1129                            )
1130                            .apply_max_message_size_config(
1131                                max_decoding_message_size,
1132                                max_encoding_message_size,
1133                            );
1134                        let res = grpc.unary(method, req).await;
1135                        Ok(res)
1136                    };
1137                    Box::pin(fut)
1138                }
1139                "/monitor_service.MonitorService/AnalyzeHeap" => {
1140                    #[allow(non_camel_case_types)]
1141                    struct AnalyzeHeapSvc<T: MonitorService>(pub Arc<T>);
1142                    impl<
1143                        T: MonitorService,
1144                    > tonic::server::UnaryService<super::AnalyzeHeapRequest>
1145                    for AnalyzeHeapSvc<T> {
1146                        type Response = super::AnalyzeHeapResponse;
1147                        type Future = BoxFuture<
1148                            tonic::Response<Self::Response>,
1149                            tonic::Status,
1150                        >;
1151                        fn call(
1152                            &mut self,
1153                            request: tonic::Request<super::AnalyzeHeapRequest>,
1154                        ) -> Self::Future {
1155                            let inner = Arc::clone(&self.0);
1156                            let fut = async move {
1157                                <T as MonitorService>::analyze_heap(&inner, request).await
1158                            };
1159                            Box::pin(fut)
1160                        }
1161                    }
1162                    let accept_compression_encodings = self.accept_compression_encodings;
1163                    let send_compression_encodings = self.send_compression_encodings;
1164                    let max_decoding_message_size = self.max_decoding_message_size;
1165                    let max_encoding_message_size = self.max_encoding_message_size;
1166                    let inner = self.inner.clone();
1167                    let fut = async move {
1168                        let method = AnalyzeHeapSvc(inner);
1169                        let codec = tonic_prost::ProstCodec::default();
1170                        let mut grpc = tonic::server::Grpc::new(codec)
1171                            .apply_compression_config(
1172                                accept_compression_encodings,
1173                                send_compression_encodings,
1174                            )
1175                            .apply_max_message_size_config(
1176                                max_decoding_message_size,
1177                                max_encoding_message_size,
1178                            );
1179                        let res = grpc.unary(method, req).await;
1180                        Ok(res)
1181                    };
1182                    Box::pin(fut)
1183                }
1184                "/monitor_service.MonitorService/GetStreamingStats" => {
1185                    #[allow(non_camel_case_types)]
1186                    struct GetStreamingStatsSvc<T: MonitorService>(pub Arc<T>);
1187                    impl<
1188                        T: MonitorService,
1189                    > tonic::server::UnaryService<super::GetStreamingStatsRequest>
1190                    for GetStreamingStatsSvc<T> {
1191                        type Response = super::GetStreamingStatsResponse;
1192                        type Future = BoxFuture<
1193                            tonic::Response<Self::Response>,
1194                            tonic::Status,
1195                        >;
1196                        fn call(
1197                            &mut self,
1198                            request: tonic::Request<super::GetStreamingStatsRequest>,
1199                        ) -> Self::Future {
1200                            let inner = Arc::clone(&self.0);
1201                            let fut = async move {
1202                                <T as MonitorService>::get_streaming_stats(&inner, request)
1203                                    .await
1204                            };
1205                            Box::pin(fut)
1206                        }
1207                    }
1208                    let accept_compression_encodings = self.accept_compression_encodings;
1209                    let send_compression_encodings = self.send_compression_encodings;
1210                    let max_decoding_message_size = self.max_decoding_message_size;
1211                    let max_encoding_message_size = self.max_encoding_message_size;
1212                    let inner = self.inner.clone();
1213                    let fut = async move {
1214                        let method = GetStreamingStatsSvc(inner);
1215                        let codec = tonic_prost::ProstCodec::default();
1216                        let mut grpc = tonic::server::Grpc::new(codec)
1217                            .apply_compression_config(
1218                                accept_compression_encodings,
1219                                send_compression_encodings,
1220                            )
1221                            .apply_max_message_size_config(
1222                                max_decoding_message_size,
1223                                max_encoding_message_size,
1224                            );
1225                        let res = grpc.unary(method, req).await;
1226                        Ok(res)
1227                    };
1228                    Box::pin(fut)
1229                }
1230                "/monitor_service.MonitorService/TieredCacheTracing" => {
1231                    #[allow(non_camel_case_types)]
1232                    struct TieredCacheTracingSvc<T: MonitorService>(pub Arc<T>);
1233                    impl<
1234                        T: MonitorService,
1235                    > tonic::server::UnaryService<super::TieredCacheTracingRequest>
1236                    for TieredCacheTracingSvc<T> {
1237                        type Response = super::TieredCacheTracingResponse;
1238                        type Future = BoxFuture<
1239                            tonic::Response<Self::Response>,
1240                            tonic::Status,
1241                        >;
1242                        fn call(
1243                            &mut self,
1244                            request: tonic::Request<super::TieredCacheTracingRequest>,
1245                        ) -> Self::Future {
1246                            let inner = Arc::clone(&self.0);
1247                            let fut = async move {
1248                                <T as MonitorService>::tiered_cache_tracing(&inner, request)
1249                                    .await
1250                            };
1251                            Box::pin(fut)
1252                        }
1253                    }
1254                    let accept_compression_encodings = self.accept_compression_encodings;
1255                    let send_compression_encodings = self.send_compression_encodings;
1256                    let max_decoding_message_size = self.max_decoding_message_size;
1257                    let max_encoding_message_size = self.max_encoding_message_size;
1258                    let inner = self.inner.clone();
1259                    let fut = async move {
1260                        let method = TieredCacheTracingSvc(inner);
1261                        let codec = tonic_prost::ProstCodec::default();
1262                        let mut grpc = tonic::server::Grpc::new(codec)
1263                            .apply_compression_config(
1264                                accept_compression_encodings,
1265                                send_compression_encodings,
1266                            )
1267                            .apply_max_message_size_config(
1268                                max_decoding_message_size,
1269                                max_encoding_message_size,
1270                            );
1271                        let res = grpc.unary(method, req).await;
1272                        Ok(res)
1273                    };
1274                    Box::pin(fut)
1275                }
1276                "/monitor_service.MonitorService/GetProfileStats" => {
1277                    #[allow(non_camel_case_types)]
1278                    struct GetProfileStatsSvc<T: MonitorService>(pub Arc<T>);
1279                    impl<
1280                        T: MonitorService,
1281                    > tonic::server::UnaryService<super::GetProfileStatsRequest>
1282                    for GetProfileStatsSvc<T> {
1283                        type Response = super::GetProfileStatsResponse;
1284                        type Future = BoxFuture<
1285                            tonic::Response<Self::Response>,
1286                            tonic::Status,
1287                        >;
1288                        fn call(
1289                            &mut self,
1290                            request: tonic::Request<super::GetProfileStatsRequest>,
1291                        ) -> Self::Future {
1292                            let inner = Arc::clone(&self.0);
1293                            let fut = async move {
1294                                <T as MonitorService>::get_profile_stats(&inner, request)
1295                                    .await
1296                            };
1297                            Box::pin(fut)
1298                        }
1299                    }
1300                    let accept_compression_encodings = self.accept_compression_encodings;
1301                    let send_compression_encodings = self.send_compression_encodings;
1302                    let max_decoding_message_size = self.max_decoding_message_size;
1303                    let max_encoding_message_size = self.max_encoding_message_size;
1304                    let inner = self.inner.clone();
1305                    let fut = async move {
1306                        let method = GetProfileStatsSvc(inner);
1307                        let codec = tonic_prost::ProstCodec::default();
1308                        let mut grpc = tonic::server::Grpc::new(codec)
1309                            .apply_compression_config(
1310                                accept_compression_encodings,
1311                                send_compression_encodings,
1312                            )
1313                            .apply_max_message_size_config(
1314                                max_decoding_message_size,
1315                                max_encoding_message_size,
1316                            );
1317                        let res = grpc.unary(method, req).await;
1318                        Ok(res)
1319                    };
1320                    Box::pin(fut)
1321                }
1322                "/monitor_service.MonitorService/GetTableCacheRefillStats" => {
1323                    #[allow(non_camel_case_types)]
1324                    struct GetTableCacheRefillStatsSvc<T: MonitorService>(pub Arc<T>);
1325                    impl<
1326                        T: MonitorService,
1327                    > tonic::server::UnaryService<super::GetTableCacheRefillStatsRequest>
1328                    for GetTableCacheRefillStatsSvc<T> {
1329                        type Response = super::GetTableCacheRefillStatsResponse;
1330                        type Future = BoxFuture<
1331                            tonic::Response<Self::Response>,
1332                            tonic::Status,
1333                        >;
1334                        fn call(
1335                            &mut self,
1336                            request: tonic::Request<
1337                                super::GetTableCacheRefillStatsRequest,
1338                            >,
1339                        ) -> Self::Future {
1340                            let inner = Arc::clone(&self.0);
1341                            let fut = async move {
1342                                <T as MonitorService>::get_table_cache_refill_stats(
1343                                        &inner,
1344                                        request,
1345                                    )
1346                                    .await
1347                            };
1348                            Box::pin(fut)
1349                        }
1350                    }
1351                    let accept_compression_encodings = self.accept_compression_encodings;
1352                    let send_compression_encodings = self.send_compression_encodings;
1353                    let max_decoding_message_size = self.max_decoding_message_size;
1354                    let max_encoding_message_size = self.max_encoding_message_size;
1355                    let inner = self.inner.clone();
1356                    let fut = async move {
1357                        let method = GetTableCacheRefillStatsSvc(inner);
1358                        let codec = tonic_prost::ProstCodec::default();
1359                        let mut grpc = tonic::server::Grpc::new(codec)
1360                            .apply_compression_config(
1361                                accept_compression_encodings,
1362                                send_compression_encodings,
1363                            )
1364                            .apply_max_message_size_config(
1365                                max_decoding_message_size,
1366                                max_encoding_message_size,
1367                            );
1368                        let res = grpc.unary(method, req).await;
1369                        Ok(res)
1370                    };
1371                    Box::pin(fut)
1372                }
1373                _ => {
1374                    Box::pin(async move {
1375                        let mut response = http::Response::new(
1376                            tonic::body::Body::default(),
1377                        );
1378                        let headers = response.headers_mut();
1379                        headers
1380                            .insert(
1381                                tonic::Status::GRPC_STATUS,
1382                                (tonic::Code::Unimplemented as i32).into(),
1383                            );
1384                        headers
1385                            .insert(
1386                                http::header::CONTENT_TYPE,
1387                                tonic::metadata::GRPC_CONTENT_TYPE,
1388                            );
1389                        Ok(response)
1390                    })
1391                }
1392            }
1393        }
1394    }
1395    impl<T> Clone for MonitorServiceServer<T> {
1396        fn clone(&self) -> Self {
1397            let inner = self.inner.clone();
1398            Self {
1399                inner,
1400                accept_compression_encodings: self.accept_compression_encodings,
1401                send_compression_encodings: self.send_compression_encodings,
1402                max_decoding_message_size: self.max_decoding_message_size,
1403                max_encoding_message_size: self.max_encoding_message_size,
1404            }
1405        }
1406    }
1407    /// Generated gRPC service name
1408    pub const SERVICE_NAME: &str = "monitor_service.MonitorService";
1409    impl<T> tonic::server::NamedService for MonitorServiceServer<T> {
1410        const NAME: &'static str = SERVICE_NAME;
1411    }
1412}