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