cx_api/generated/
com.coralogixapis.notification_center.presets.v1.rs

1// This file is @generated by prost-build.
2#[derive(serde::Serialize, serde::Deserialize)]
3#[serde(rename_all = "snake_case")]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Preset {
6    /// A unique identifier - automatically generated unless provided by the user
7    #[prost(string, optional, tag = "1")]
8    pub id: ::core::option::Option<::prost::alloc::string::String>,
9    #[prost(enumeration = "super::super::ConnectorType", tag = "4")]
10    pub connector_type: i32,
11    /// A list of of configuration override templates, each associated with a specific output schema and condition
12    #[prost(message, repeated, tag = "5")]
13    pub config_overrides: ::prost::alloc::vec::Vec<super::super::ConfigOverrides>,
14    #[prost(string, tag = "7")]
15    pub name: ::prost::alloc::string::String,
16    #[prost(string, tag = "8")]
17    pub description: ::prost::alloc::string::String,
18    /// System-generated timestamp for when the preset was created
19    #[prost(message, optional, tag = "9")]
20    pub create_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
21    /// System-generated timestamp for when the preset was last updated
22    #[prost(message, optional, tag = "10")]
23    pub update_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
24    /// Indicates whether the preset is system-provided or custom-created by the user
25    #[prost(enumeration = "PresetType", optional, tag = "11")]
26    pub preset_type: ::core::option::Option<i32>,
27    #[prost(enumeration = "super::super::EntityType", tag = "12")]
28    pub entity_type: i32,
29    #[prost(string, optional, tag = "13")]
30    pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
31}
32#[derive(serde::Serialize, serde::Deserialize)]
33#[serde(rename_all = "snake_case")]
34#[derive(Clone, PartialEq, ::prost::Message)]
35pub struct PresetSummary {
36    #[prost(string, tag = "1")]
37    pub id: ::prost::alloc::string::String,
38    #[prost(enumeration = "super::super::ConnectorType", tag = "4")]
39    pub connector_type: i32,
40    #[prost(string, optional, tag = "5")]
41    pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
42    #[prost(string, tag = "6")]
43    pub name: ::prost::alloc::string::String,
44    #[prost(string, tag = "7")]
45    pub description: ::prost::alloc::string::String,
46    #[prost(message, optional, tag = "8")]
47    pub create_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
48    #[prost(message, optional, tag = "9")]
49    pub update_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
50    #[prost(enumeration = "PresetType", tag = "10")]
51    pub preset_type: i32,
52    #[prost(enumeration = "super::super::EntityType", tag = "11")]
53    pub entity_type: i32,
54}
55#[derive(serde::Serialize, serde::Deserialize)]
56#[serde(rename_all = "snake_case")]
57#[derive(Clone, PartialEq, ::prost::Message)]
58pub struct PresetIdentifier {
59    #[prost(oneof = "preset_identifier::Value", tags = "1, 2")]
60    pub value: ::core::option::Option<preset_identifier::Value>,
61}
62/// Nested message and enum types in `PresetIdentifier`.
63pub mod preset_identifier {
64    #[derive(serde::Serialize, serde::Deserialize)]
65    #[serde(rename_all = "snake_case")]
66    #[derive(Clone, PartialEq, ::prost::Oneof)]
67    pub enum Value {
68        #[prost(string, tag = "1")]
69        Id(::prost::alloc::string::String),
70        #[prost(string, tag = "2")]
71        UserFacingId(::prost::alloc::string::String),
72    }
73}
74#[derive(serde::Serialize, serde::Deserialize)]
75#[serde(rename_all = "snake_case")]
76#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
77#[repr(i32)]
78pub enum PresetType {
79    Unspecified = 0,
80    System = 1,
81    Custom = 2,
82}
83impl PresetType {
84    /// String value of the enum field names used in the ProtoBuf definition.
85    ///
86    /// The values are not transformed in any way and thus are considered stable
87    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
88    pub fn as_str_name(&self) -> &'static str {
89        match self {
90            Self::Unspecified => "PRESET_TYPE_UNSPECIFIED",
91            Self::System => "SYSTEM",
92            Self::Custom => "CUSTOM",
93        }
94    }
95    /// Creates an enum from field names used in the ProtoBuf definition.
96    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
97        match value {
98            "PRESET_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
99            "SYSTEM" => Some(Self::System),
100            "CUSTOM" => Some(Self::Custom),
101            _ => None,
102        }
103    }
104}
105#[derive(serde::Serialize, serde::Deserialize)]
106#[serde(rename_all = "snake_case")]
107#[derive(Clone, PartialEq, ::prost::Message)]
108pub struct CreateCustomPresetRequest {
109    #[prost(message, optional, tag = "1")]
110    pub preset: ::core::option::Option<Preset>,
111}
112#[derive(serde::Serialize, serde::Deserialize)]
113#[serde(rename_all = "snake_case")]
114#[derive(Clone, PartialEq, ::prost::Message)]
115pub struct CreateCustomPresetResponse {
116    #[prost(message, optional, tag = "1")]
117    pub preset: ::core::option::Option<Preset>,
118}
119#[derive(serde::Serialize, serde::Deserialize)]
120#[serde(rename_all = "snake_case")]
121#[derive(Clone, PartialEq, ::prost::Message)]
122pub struct ReplaceCustomPresetRequest {
123    #[prost(message, optional, tag = "1")]
124    pub preset: ::core::option::Option<Preset>,
125}
126#[derive(serde::Serialize, serde::Deserialize)]
127#[serde(rename_all = "snake_case")]
128#[derive(Clone, PartialEq, ::prost::Message)]
129pub struct ReplaceCustomPresetResponse {
130    #[prost(message, optional, tag = "1")]
131    pub preset: ::core::option::Option<Preset>,
132}
133#[derive(serde::Serialize, serde::Deserialize)]
134#[serde(rename_all = "snake_case")]
135#[derive(Clone, PartialEq, ::prost::Message)]
136pub struct DeleteCustomPresetRequest {
137    #[prost(string, tag = "4")]
138    pub id: ::prost::alloc::string::String,
139}
140#[derive(serde::Serialize, serde::Deserialize)]
141#[serde(rename_all = "snake_case")]
142#[derive(Clone, Copy, PartialEq, ::prost::Message)]
143pub struct DeleteCustomPresetResponse {}
144#[derive(serde::Serialize, serde::Deserialize)]
145#[serde(rename_all = "snake_case")]
146#[derive(Clone, PartialEq, ::prost::Message)]
147pub struct SetCustomPresetAsDefaultRequest {
148    #[prost(string, tag = "4")]
149    pub id: ::prost::alloc::string::String,
150}
151#[derive(serde::Serialize, serde::Deserialize)]
152#[serde(rename_all = "snake_case")]
153#[derive(Clone, Copy, PartialEq, ::prost::Message)]
154pub struct SetCustomPresetAsDefaultResponse {}
155#[derive(serde::Serialize, serde::Deserialize)]
156#[serde(rename_all = "snake_case")]
157#[derive(Clone, PartialEq, ::prost::Message)]
158pub struct SetPresetAsDefaultRequest {
159    #[prost(string, tag = "3")]
160    pub id: ::prost::alloc::string::String,
161}
162#[derive(serde::Serialize, serde::Deserialize)]
163#[serde(rename_all = "snake_case")]
164#[derive(Clone, Copy, PartialEq, ::prost::Message)]
165pub struct SetPresetAsDefaultResponse {}
166#[derive(serde::Serialize, serde::Deserialize)]
167#[serde(rename_all = "snake_case")]
168#[derive(Clone, PartialEq, ::prost::Message)]
169pub struct GetPresetRequest {
170    #[prost(string, tag = "4")]
171    pub id: ::prost::alloc::string::String,
172}
173#[derive(serde::Serialize, serde::Deserialize)]
174#[serde(rename_all = "snake_case")]
175#[derive(Clone, PartialEq, ::prost::Message)]
176pub struct GetPresetResponse {
177    #[prost(message, optional, tag = "1")]
178    pub preset: ::core::option::Option<Preset>,
179}
180#[derive(serde::Serialize, serde::Deserialize)]
181#[serde(rename_all = "snake_case")]
182#[derive(Clone, Copy, PartialEq, ::prost::Message)]
183pub struct ListPresetSummariesRequest {
184    #[prost(enumeration = "super::super::ConnectorType", optional, tag = "1")]
185    pub connector_type: ::core::option::Option<i32>,
186    #[prost(enumeration = "super::super::EntityType", tag = "4")]
187    pub entity_type: i32,
188}
189#[derive(serde::Serialize, serde::Deserialize)]
190#[serde(rename_all = "snake_case")]
191#[derive(Clone, PartialEq, ::prost::Message)]
192pub struct ListPresetSummariesResponse {
193    #[prost(message, repeated, tag = "1")]
194    pub preset_summaries: ::prost::alloc::vec::Vec<PresetSummary>,
195}
196#[derive(serde::Serialize, serde::Deserialize)]
197#[serde(rename_all = "snake_case")]
198#[derive(Clone, PartialEq, ::prost::Message)]
199pub struct BatchGetPresetsRequest {
200    #[prost(string, repeated, tag = "3")]
201    pub preset_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
202}
203#[derive(serde::Serialize, serde::Deserialize)]
204#[serde(rename_all = "snake_case")]
205#[derive(Clone, PartialEq, ::prost::Message)]
206pub struct BatchGetPresetsResponse {
207    #[prost(map = "string, message", tag = "1")]
208    pub presets: ::std::collections::HashMap<::prost::alloc::string::String, Preset>,
209    #[prost(string, repeated, tag = "2")]
210    pub not_found_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
211}
212#[derive(serde::Serialize, serde::Deserialize)]
213#[serde(rename_all = "snake_case")]
214#[derive(Clone, Copy, PartialEq, ::prost::Message)]
215pub struct GetDefaultPresetSummaryRequest {
216    #[prost(enumeration = "super::super::ConnectorType", tag = "1")]
217    pub connector_type: i32,
218    #[prost(enumeration = "super::super::EntityType", tag = "3")]
219    pub entity_type: i32,
220}
221#[derive(serde::Serialize, serde::Deserialize)]
222#[serde(rename_all = "snake_case")]
223#[derive(Clone, PartialEq, ::prost::Message)]
224pub struct GetDefaultPresetSummaryResponse {
225    #[prost(message, optional, tag = "1")]
226    pub preset_summary: ::core::option::Option<PresetSummary>,
227}
228#[derive(serde::Serialize, serde::Deserialize)]
229#[serde(rename_all = "snake_case")]
230#[derive(Clone, Copy, PartialEq, ::prost::Message)]
231pub struct GetSystemDefaultPresetSummaryRequest {
232    #[prost(enumeration = "super::super::ConnectorType", tag = "1")]
233    pub connector_type: i32,
234    #[prost(enumeration = "super::super::EntityType", tag = "3")]
235    pub entity_type: i32,
236}
237#[derive(serde::Serialize, serde::Deserialize)]
238#[serde(rename_all = "snake_case")]
239#[derive(Clone, PartialEq, ::prost::Message)]
240pub struct GetSystemDefaultPresetSummaryResponse {
241    #[prost(message, optional, tag = "1")]
242    pub preset_summary: ::core::option::Option<PresetSummary>,
243}
244/// Generated client implementations.
245pub mod presets_service_client {
246    #![allow(
247        unused_variables,
248        dead_code,
249        missing_docs,
250        clippy::wildcard_imports,
251        clippy::let_unit_value,
252    )]
253    use tonic::codegen::*;
254    use tonic::codegen::http::Uri;
255    /// Public API that allows retrieving available presets and managing custom presets.
256    #[derive(Debug, Clone)]
257    pub struct PresetsServiceClient<T> {
258        inner: tonic::client::Grpc<T>,
259    }
260    impl PresetsServiceClient<tonic::transport::Channel> {
261        /// Attempt to create a new client by connecting to a given endpoint.
262        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
263        where
264            D: TryInto<tonic::transport::Endpoint>,
265            D::Error: Into<StdError>,
266        {
267            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
268            Ok(Self::new(conn))
269        }
270    }
271    impl<T> PresetsServiceClient<T>
272    where
273        T: tonic::client::GrpcService<tonic::body::BoxBody>,
274        T::Error: Into<StdError>,
275        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
276        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
277    {
278        pub fn new(inner: T) -> Self {
279            let inner = tonic::client::Grpc::new(inner);
280            Self { inner }
281        }
282        pub fn with_origin(inner: T, origin: Uri) -> Self {
283            let inner = tonic::client::Grpc::with_origin(inner, origin);
284            Self { inner }
285        }
286        pub fn with_interceptor<F>(
287            inner: T,
288            interceptor: F,
289        ) -> PresetsServiceClient<InterceptedService<T, F>>
290        where
291            F: tonic::service::Interceptor,
292            T::ResponseBody: Default,
293            T: tonic::codegen::Service<
294                http::Request<tonic::body::BoxBody>,
295                Response = http::Response<
296                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
297                >,
298            >,
299            <T as tonic::codegen::Service<
300                http::Request<tonic::body::BoxBody>,
301            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
302        {
303            PresetsServiceClient::new(InterceptedService::new(inner, interceptor))
304        }
305        /// Compress requests with the given encoding.
306        ///
307        /// This requires the server to support it otherwise it might respond with an
308        /// error.
309        #[must_use]
310        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
311            self.inner = self.inner.send_compressed(encoding);
312            self
313        }
314        /// Enable decompressing responses.
315        #[must_use]
316        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
317            self.inner = self.inner.accept_compressed(encoding);
318            self
319        }
320        /// Limits the maximum size of a decoded message.
321        ///
322        /// Default: `4MB`
323        #[must_use]
324        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
325            self.inner = self.inner.max_decoding_message_size(limit);
326            self
327        }
328        /// Limits the maximum size of an encoded message.
329        ///
330        /// Default: `usize::MAX`
331        #[must_use]
332        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
333            self.inner = self.inner.max_encoding_message_size(limit);
334            self
335        }
336        pub async fn create_custom_preset(
337            &mut self,
338            request: impl tonic::IntoRequest<super::CreateCustomPresetRequest>,
339        ) -> std::result::Result<
340            tonic::Response<super::CreateCustomPresetResponse>,
341            tonic::Status,
342        > {
343            self.inner
344                .ready()
345                .await
346                .map_err(|e| {
347                    tonic::Status::unknown(
348                        format!("Service was not ready: {}", e.into()),
349                    )
350                })?;
351            let codec = tonic::codec::ProstCodec::default();
352            let path = http::uri::PathAndQuery::from_static(
353                "/com.coralogixapis.notification_center.presets.v1.PresetsService/CreateCustomPreset",
354            );
355            let mut req = request.into_request();
356            req.extensions_mut()
357                .insert(
358                    GrpcMethod::new(
359                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
360                        "CreateCustomPreset",
361                    ),
362                );
363            self.inner.unary(req, path, codec).await
364        }
365        pub async fn replace_custom_preset(
366            &mut self,
367            request: impl tonic::IntoRequest<super::ReplaceCustomPresetRequest>,
368        ) -> std::result::Result<
369            tonic::Response<super::ReplaceCustomPresetResponse>,
370            tonic::Status,
371        > {
372            self.inner
373                .ready()
374                .await
375                .map_err(|e| {
376                    tonic::Status::unknown(
377                        format!("Service was not ready: {}", e.into()),
378                    )
379                })?;
380            let codec = tonic::codec::ProstCodec::default();
381            let path = http::uri::PathAndQuery::from_static(
382                "/com.coralogixapis.notification_center.presets.v1.PresetsService/ReplaceCustomPreset",
383            );
384            let mut req = request.into_request();
385            req.extensions_mut()
386                .insert(
387                    GrpcMethod::new(
388                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
389                        "ReplaceCustomPreset",
390                    ),
391                );
392            self.inner.unary(req, path, codec).await
393        }
394        pub async fn delete_custom_preset(
395            &mut self,
396            request: impl tonic::IntoRequest<super::DeleteCustomPresetRequest>,
397        ) -> std::result::Result<
398            tonic::Response<super::DeleteCustomPresetResponse>,
399            tonic::Status,
400        > {
401            self.inner
402                .ready()
403                .await
404                .map_err(|e| {
405                    tonic::Status::unknown(
406                        format!("Service was not ready: {}", e.into()),
407                    )
408                })?;
409            let codec = tonic::codec::ProstCodec::default();
410            let path = http::uri::PathAndQuery::from_static(
411                "/com.coralogixapis.notification_center.presets.v1.PresetsService/DeleteCustomPreset",
412            );
413            let mut req = request.into_request();
414            req.extensions_mut()
415                .insert(
416                    GrpcMethod::new(
417                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
418                        "DeleteCustomPreset",
419                    ),
420                );
421            self.inner.unary(req, path, codec).await
422        }
423        #[deprecated]
424        pub async fn set_custom_preset_as_default(
425            &mut self,
426            request: impl tonic::IntoRequest<super::SetCustomPresetAsDefaultRequest>,
427        ) -> std::result::Result<
428            tonic::Response<super::SetCustomPresetAsDefaultResponse>,
429            tonic::Status,
430        > {
431            self.inner
432                .ready()
433                .await
434                .map_err(|e| {
435                    tonic::Status::unknown(
436                        format!("Service was not ready: {}", e.into()),
437                    )
438                })?;
439            let codec = tonic::codec::ProstCodec::default();
440            let path = http::uri::PathAndQuery::from_static(
441                "/com.coralogixapis.notification_center.presets.v1.PresetsService/SetCustomPresetAsDefault",
442            );
443            let mut req = request.into_request();
444            req.extensions_mut()
445                .insert(
446                    GrpcMethod::new(
447                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
448                        "SetCustomPresetAsDefault",
449                    ),
450                );
451            self.inner.unary(req, path, codec).await
452        }
453        pub async fn set_preset_as_default(
454            &mut self,
455            request: impl tonic::IntoRequest<super::SetPresetAsDefaultRequest>,
456        ) -> std::result::Result<
457            tonic::Response<super::SetPresetAsDefaultResponse>,
458            tonic::Status,
459        > {
460            self.inner
461                .ready()
462                .await
463                .map_err(|e| {
464                    tonic::Status::unknown(
465                        format!("Service was not ready: {}", e.into()),
466                    )
467                })?;
468            let codec = tonic::codec::ProstCodec::default();
469            let path = http::uri::PathAndQuery::from_static(
470                "/com.coralogixapis.notification_center.presets.v1.PresetsService/SetPresetAsDefault",
471            );
472            let mut req = request.into_request();
473            req.extensions_mut()
474                .insert(
475                    GrpcMethod::new(
476                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
477                        "SetPresetAsDefault",
478                    ),
479                );
480            self.inner.unary(req, path, codec).await
481        }
482        pub async fn get_preset(
483            &mut self,
484            request: impl tonic::IntoRequest<super::GetPresetRequest>,
485        ) -> std::result::Result<
486            tonic::Response<super::GetPresetResponse>,
487            tonic::Status,
488        > {
489            self.inner
490                .ready()
491                .await
492                .map_err(|e| {
493                    tonic::Status::unknown(
494                        format!("Service was not ready: {}", e.into()),
495                    )
496                })?;
497            let codec = tonic::codec::ProstCodec::default();
498            let path = http::uri::PathAndQuery::from_static(
499                "/com.coralogixapis.notification_center.presets.v1.PresetsService/GetPreset",
500            );
501            let mut req = request.into_request();
502            req.extensions_mut()
503                .insert(
504                    GrpcMethod::new(
505                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
506                        "GetPreset",
507                    ),
508                );
509            self.inner.unary(req, path, codec).await
510        }
511        pub async fn list_preset_summaries(
512            &mut self,
513            request: impl tonic::IntoRequest<super::ListPresetSummariesRequest>,
514        ) -> std::result::Result<
515            tonic::Response<super::ListPresetSummariesResponse>,
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::codec::ProstCodec::default();
527            let path = http::uri::PathAndQuery::from_static(
528                "/com.coralogixapis.notification_center.presets.v1.PresetsService/ListPresetSummaries",
529            );
530            let mut req = request.into_request();
531            req.extensions_mut()
532                .insert(
533                    GrpcMethod::new(
534                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
535                        "ListPresetSummaries",
536                    ),
537                );
538            self.inner.unary(req, path, codec).await
539        }
540        pub async fn batch_get_presets(
541            &mut self,
542            request: impl tonic::IntoRequest<super::BatchGetPresetsRequest>,
543        ) -> std::result::Result<
544            tonic::Response<super::BatchGetPresetsResponse>,
545            tonic::Status,
546        > {
547            self.inner
548                .ready()
549                .await
550                .map_err(|e| {
551                    tonic::Status::unknown(
552                        format!("Service was not ready: {}", e.into()),
553                    )
554                })?;
555            let codec = tonic::codec::ProstCodec::default();
556            let path = http::uri::PathAndQuery::from_static(
557                "/com.coralogixapis.notification_center.presets.v1.PresetsService/BatchGetPresets",
558            );
559            let mut req = request.into_request();
560            req.extensions_mut()
561                .insert(
562                    GrpcMethod::new(
563                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
564                        "BatchGetPresets",
565                    ),
566                );
567            self.inner.unary(req, path, codec).await
568        }
569        pub async fn get_default_preset_summary(
570            &mut self,
571            request: impl tonic::IntoRequest<super::GetDefaultPresetSummaryRequest>,
572        ) -> std::result::Result<
573            tonic::Response<super::GetDefaultPresetSummaryResponse>,
574            tonic::Status,
575        > {
576            self.inner
577                .ready()
578                .await
579                .map_err(|e| {
580                    tonic::Status::unknown(
581                        format!("Service was not ready: {}", e.into()),
582                    )
583                })?;
584            let codec = tonic::codec::ProstCodec::default();
585            let path = http::uri::PathAndQuery::from_static(
586                "/com.coralogixapis.notification_center.presets.v1.PresetsService/GetDefaultPresetSummary",
587            );
588            let mut req = request.into_request();
589            req.extensions_mut()
590                .insert(
591                    GrpcMethod::new(
592                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
593                        "GetDefaultPresetSummary",
594                    ),
595                );
596            self.inner.unary(req, path, codec).await
597        }
598        pub async fn get_system_default_preset_summary(
599            &mut self,
600            request: impl tonic::IntoRequest<super::GetSystemDefaultPresetSummaryRequest>,
601        ) -> std::result::Result<
602            tonic::Response<super::GetSystemDefaultPresetSummaryResponse>,
603            tonic::Status,
604        > {
605            self.inner
606                .ready()
607                .await
608                .map_err(|e| {
609                    tonic::Status::unknown(
610                        format!("Service was not ready: {}", e.into()),
611                    )
612                })?;
613            let codec = tonic::codec::ProstCodec::default();
614            let path = http::uri::PathAndQuery::from_static(
615                "/com.coralogixapis.notification_center.presets.v1.PresetsService/GetSystemDefaultPresetSummary",
616            );
617            let mut req = request.into_request();
618            req.extensions_mut()
619                .insert(
620                    GrpcMethod::new(
621                        "com.coralogixapis.notification_center.presets.v1.PresetsService",
622                        "GetSystemDefaultPresetSummary",
623                    ),
624                );
625            self.inner.unary(req, path, codec).await
626        }
627    }
628}