nominal_api_proto/proto/
nominal.application.v1.rs1#[derive(Clone, Copy, PartialEq, ::prost::Message)]
3pub struct GetApplicationUrlRequest {}
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct GetApplicationUrlResponse {
6 #[prost(string, tag = "1")]
7 pub url: ::prost::alloc::string::String,
8}
9pub mod application_service_client {
11 #![allow(
12 unused_variables,
13 dead_code,
14 missing_docs,
15 clippy::wildcard_imports,
16 clippy::let_unit_value,
17 )]
18 use tonic::codegen::*;
19 use tonic::codegen::http::Uri;
20 #[derive(Debug, Clone)]
21 pub struct ApplicationServiceClient<T> {
22 inner: tonic::client::Grpc<T>,
23 }
24 impl ApplicationServiceClient<tonic::transport::Channel> {
25 pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
27 where
28 D: TryInto<tonic::transport::Endpoint>,
29 D::Error: Into<StdError>,
30 {
31 let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
32 Ok(Self::new(conn))
33 }
34 }
35 impl<T> ApplicationServiceClient<T>
36 where
37 T: tonic::client::GrpcService<tonic::body::Body>,
38 T::Error: Into<StdError>,
39 T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
40 <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
41 {
42 pub fn new(inner: T) -> Self {
43 let inner = tonic::client::Grpc::new(inner);
44 Self { inner }
45 }
46 pub fn with_origin(inner: T, origin: Uri) -> Self {
47 let inner = tonic::client::Grpc::with_origin(inner, origin);
48 Self { inner }
49 }
50 pub fn with_interceptor<F>(
51 inner: T,
52 interceptor: F,
53 ) -> ApplicationServiceClient<InterceptedService<T, F>>
54 where
55 F: tonic::service::Interceptor,
56 T::ResponseBody: Default,
57 T: tonic::codegen::Service<
58 http::Request<tonic::body::Body>,
59 Response = http::Response<
60 <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
61 >,
62 >,
63 <T as tonic::codegen::Service<
64 http::Request<tonic::body::Body>,
65 >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
66 {
67 ApplicationServiceClient::new(InterceptedService::new(inner, interceptor))
68 }
69 #[must_use]
74 pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
75 self.inner = self.inner.send_compressed(encoding);
76 self
77 }
78 #[must_use]
80 pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
81 self.inner = self.inner.accept_compressed(encoding);
82 self
83 }
84 #[must_use]
88 pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
89 self.inner = self.inner.max_decoding_message_size(limit);
90 self
91 }
92 #[must_use]
96 pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
97 self.inner = self.inner.max_encoding_message_size(limit);
98 self
99 }
100 pub async fn get_application_url(
101 &mut self,
102 request: impl tonic::IntoRequest<super::GetApplicationUrlRequest>,
103 ) -> std::result::Result<
104 tonic::Response<super::GetApplicationUrlResponse>,
105 tonic::Status,
106 > {
107 self.inner
108 .ready()
109 .await
110 .map_err(|e| {
111 tonic::Status::unknown(
112 format!("Service was not ready: {}", e.into()),
113 )
114 })?;
115 let codec = tonic::codec::ProstCodec::default();
116 let path = http::uri::PathAndQuery::from_static(
117 "/nominal.application.v1.ApplicationService/GetApplicationUrl",
118 );
119 let mut req = request.into_request();
120 req.extensions_mut()
121 .insert(
122 GrpcMethod::new(
123 "nominal.application.v1.ApplicationService",
124 "GetApplicationUrl",
125 ),
126 );
127 self.inner.unary(req, path, codec).await
128 }
129 }
130}