#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationTarget {
#[prost(oneof = "notification_target::Target", tags = "1, 2")]
pub target: ::core::option::Option<notification_target::Target>,
}
pub mod notification_target {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalRouterConfig {
#[prost(message, optional, tag = "1")]
pub identifier: ::core::option::Option<
super::super::super::routing::GlobalRouterIdentifier,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrivateRouterConfig {
#[prost(string, tag = "1")]
pub router_key: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Target {
#[prost(message, tag = "1")]
Private(PrivateRouterConfig),
#[prost(message, tag = "2")]
Global(GlobalRouterConfig),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationOperation {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(oneof = "notification_operation::OperationType", tags = "100")]
pub operation_type: ::core::option::Option<notification_operation::OperationType>,
}
pub mod notification_operation {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpOperation {
#[prost(string, tag = "1")]
pub url: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub method: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "3")]
pub headers: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum OperationType {
#[prost(message, tag = "100")]
Http(HttpOperation),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationAttachment {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub content_type: ::prost::alloc::string::String,
#[prost(oneof = "notification_attachment::Content", tags = "100, 101")]
pub content: ::core::option::Option<notification_attachment::Content>,
}
pub mod notification_attachment {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Raw {
#[prost(bytes = "vec", tag = "1")]
pub bytes: ::prost::alloc::vec::Vec<u8>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Url {
#[prost(string, tag = "1")]
pub url: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub content_length: u32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Content {
#[prost(message, tag = "100")]
Raw(Raw),
#[prost(message, tag = "101")]
Url(Url),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Trigger {
#[prost(string, tag = "1")]
pub client_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub cx_service_name: ::prost::alloc::string::String,
#[prost(oneof = "trigger::TriggerDetail", tags = "100, 101")]
pub trigger_detail: ::core::option::Option<trigger::TriggerDetail>,
}
pub mod trigger {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManualTrigger {
#[prost(string, tag = "1")]
pub user_email: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AutomaticTrigger {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TriggerDetail {
#[prost(message, tag = "100")]
ManualTrigger(ManualTrigger),
#[prost(message, tag = "101")]
AutomaticTrigger(AutomaticTrigger),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TriggerType {
Unspecified = 0,
Manual = 1,
Automatic = 2,
}
impl TriggerType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TRIGGER_TYPE_UNSPECIFIED",
Self::Manual => "MANUAL",
Self::Automatic => "AUTOMATIC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TRIGGER_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"MANUAL" => Some(Self::Manual),
"AUTOMATIC" => Some(Self::Automatic),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestResult {
#[prost(oneof = "test_result::Result", tags = "1, 2")]
pub result: ::core::option::Option<test_result::Result>,
}
pub mod test_result {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Success {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
#[prost(string, tag = "1")]
pub message: ::prost::alloc::string::String,
#[prost(uint32, optional, tag = "2")]
pub status_code: ::core::option::Option<u32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "1")]
Success(Success),
#[prost(message, tag = "2")]
Failure(Failure),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestNotification {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(uint32, tag = "2")]
pub team_id: u32,
#[prost(string, tag = "3")]
pub connector_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub output_schema_id: ::prost::alloc::string::String,
#[deprecated]
#[prost(message, optional, tag = "5")]
pub deprecated_entity_data: ::core::option::Option<::prost_wkt_types::Struct>,
#[prost(message, repeated, tag = "6")]
pub connector_config: ::prost::alloc::vec::Vec<super::super::ConnectorConfigField>,
#[prost(message, repeated, tag = "7")]
pub message_config: ::prost::alloc::vec::Vec<super::super::MessageConfigField>,
#[prost(message, repeated, tag = "8")]
pub available_operations: ::prost::alloc::vec::Vec<NotificationOperation>,
#[prost(message, repeated, tag = "9")]
pub attachments: ::prost::alloc::vec::Vec<NotificationAttachment>,
#[prost(string, tag = "10")]
pub entity_data: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestConnectorConfigRequest {
#[prost(enumeration = "super::super::ConnectorType", tag = "1")]
pub r#type: i32,
#[prost(string, tag = "2")]
pub output_schema_id: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub fields: ::prost::alloc::vec::Vec<super::super::ConnectorConfigField>,
#[prost(string, optional, tag = "4")]
pub entity_type: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestConnectorConfigResponse {
#[prost(message, optional, tag = "1")]
pub result: ::core::option::Option<TestResult>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestExistingConnectorRequest {
#[prost(string, tag = "1")]
pub connector_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub output_schema_id: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestExistingConnectorResponse {
#[prost(message, optional, tag = "1")]
pub result: ::core::option::Option<TestResult>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestPresetConfigRequest {
#[prost(string, tag = "1")]
pub entity_type: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub entity_sub_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub connector_id: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub preset_id: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "7")]
pub config_overrides: ::prost::alloc::vec::Vec<super::super::ConfigOverrides>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestPresetConfigResponse {
#[prost(message, optional, tag = "1")]
pub result: ::core::option::Option<TestResult>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestExistingPresetRequest {
#[prost(string, tag = "1")]
pub entity_type: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub entity_sub_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub preset_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub connector_id: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestExistingPresetResponse {
#[prost(message, optional, tag = "1")]
pub result: ::core::option::Option<TestResult>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestDestinationRequest {
#[prost(string, tag = "1")]
pub entity_type: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub entity_sub_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub connector_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub preset_id: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub output_schema_id: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "6")]
pub connector_config_fields: ::prost::alloc::vec::Vec<
super::super::ConnectorConfigField,
>,
#[prost(message, repeated, tag = "7")]
pub message_config_fields: ::prost::alloc::vec::Vec<
super::super::MessageConfigField,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestDestinationResponse {
#[prost(message, optional, tag = "1")]
pub result: ::core::option::Option<TestResult>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestTemplateRenderRequest {
#[prost(string, tag = "1")]
pub entity_type: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub entity_sub_type: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "3")]
pub template: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestTemplateRenderResult {
#[prost(oneof = "test_template_render_result::Result", tags = "1, 2")]
pub result: ::core::option::Option<test_template_render_result::Result>,
}
pub mod test_template_render_result {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Success {
#[prost(string, tag = "1")]
pub rendered_value: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
#[prost(string, tag = "1")]
pub message: ::prost::alloc::string::String,
#[prost(enumeration = "FailureReason", tag = "2")]
pub reason: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum FailureReason {
Unspecified = 0,
InvalidTemplate = 1,
FieldNotFound = 2,
TemplateExceedsMaxLength = 3,
RenderedValueExceedsMaxLength = 4,
}
impl FailureReason {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "FAILURE_REASON_UNSPECIFIED",
Self::InvalidTemplate => "INVALID_TEMPLATE",
Self::FieldNotFound => "FIELD_NOT_FOUND",
Self::TemplateExceedsMaxLength => "TEMPLATE_EXCEEDS_MAX_LENGTH",
Self::RenderedValueExceedsMaxLength => {
"RENDERED_VALUE_EXCEEDS_MAX_LENGTH"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"FAILURE_REASON_UNSPECIFIED" => Some(Self::Unspecified),
"INVALID_TEMPLATE" => Some(Self::InvalidTemplate),
"FIELD_NOT_FOUND" => Some(Self::FieldNotFound),
"TEMPLATE_EXCEEDS_MAX_LENGTH" => Some(Self::TemplateExceedsMaxLength),
"RENDERED_VALUE_EXCEEDS_MAX_LENGTH" => {
Some(Self::RenderedValueExceedsMaxLength)
}
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "1")]
Success(Success),
#[prost(message, tag = "2")]
Failure(Failure),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestTemplateRenderResponse {
#[prost(message, optional, tag = "1")]
pub result: ::core::option::Option<TestTemplateRenderResult>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestRoutingConditionValidRequest {
#[prost(string, tag = "1")]
pub entity_type: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub template: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TestRoutingConditionValidResponse {
#[prost(oneof = "test_routing_condition_valid_response::Result", tags = "1, 2")]
pub result: ::core::option::Option<test_routing_condition_valid_response::Result>,
}
pub mod test_routing_condition_valid_response {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Success {
#[prost(bool, tag = "1")]
pub result: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
#[prost(string, tag = "1")]
pub message: ::prost::alloc::string::String,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
#[prost(message, tag = "1")]
Success(Success),
#[prost(message, tag = "2")]
Failure(Failure),
}
}
pub mod testing_service_client {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct TestingServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl TestingServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> TestingServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TestingServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
{
TestingServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn test_connector_config(
&mut self,
request: impl tonic::IntoRequest<super::TestConnectorConfigRequest>,
) -> std::result::Result<
tonic::Response<super::TestConnectorConfigResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.notification_center.notifications.v1.TestingService/TestConnectorConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.notification_center.notifications.v1.TestingService",
"TestConnectorConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn test_existing_connector(
&mut self,
request: impl tonic::IntoRequest<super::TestExistingConnectorRequest>,
) -> std::result::Result<
tonic::Response<super::TestExistingConnectorResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.notification_center.notifications.v1.TestingService/TestExistingConnector",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.notification_center.notifications.v1.TestingService",
"TestExistingConnector",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn test_preset_config(
&mut self,
request: impl tonic::IntoRequest<super::TestPresetConfigRequest>,
) -> std::result::Result<
tonic::Response<super::TestPresetConfigResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.notification_center.notifications.v1.TestingService/TestPresetConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.notification_center.notifications.v1.TestingService",
"TestPresetConfig",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn test_existing_preset(
&mut self,
request: impl tonic::IntoRequest<super::TestExistingPresetRequest>,
) -> std::result::Result<
tonic::Response<super::TestExistingPresetResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.notification_center.notifications.v1.TestingService/TestExistingPreset",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.notification_center.notifications.v1.TestingService",
"TestExistingPreset",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn test_destination(
&mut self,
request: impl tonic::IntoRequest<super::TestDestinationRequest>,
) -> std::result::Result<
tonic::Response<super::TestDestinationResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.notification_center.notifications.v1.TestingService/TestDestination",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.notification_center.notifications.v1.TestingService",
"TestDestination",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn test_template_render(
&mut self,
request: impl tonic::IntoRequest<super::TestTemplateRenderRequest>,
) -> std::result::Result<
tonic::Response<super::TestTemplateRenderResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.notification_center.notifications.v1.TestingService/TestTemplateRender",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.notification_center.notifications.v1.TestingService",
"TestTemplateRender",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn test_routing_condition_valid(
&mut self,
request: impl tonic::IntoRequest<super::TestRoutingConditionValidRequest>,
) -> std::result::Result<
tonic::Response<super::TestRoutingConditionValidResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.notification_center.notifications.v1.TestingService/TestRoutingConditionValid",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.notification_center.notifications.v1.TestingService",
"TestRoutingConditionValid",
),
);
self.inner.unary(req, path, codec).await
}
}
}