#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthorizedGroups {
#[prost(string, repeated, tag = "1")]
pub group_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Marking {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub authorized_groups: ::core::option::Option<AuthorizedGroups>,
#[prost(message, optional, tag = "5")]
pub symbol: ::core::option::Option<super::super::super::scout::elements::v1::Symbol>,
#[prost(message, optional, tag = "6")]
pub color: ::core::option::Option<super::super::super::scout::elements::v1::Color>,
#[prost(message, optional, tag = "7")]
pub created_at: ::core::option::Option<
super::super::super::super::google::protobuf::Timestamp,
>,
#[prost(message, optional, tag = "8")]
pub updated_at: ::core::option::Option<
super::super::super::super::google::protobuf::Timestamp,
>,
#[prost(bool, tag = "9")]
pub is_archived: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MarkingMetadata {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub symbol: ::core::option::Option<super::super::super::scout::elements::v1::Symbol>,
#[prost(message, optional, tag = "5")]
pub color: ::core::option::Option<super::super::super::scout::elements::v1::Color>,
#[prost(message, optional, tag = "6")]
pub created_at: ::core::option::Option<
super::super::super::super::google::protobuf::Timestamp,
>,
#[prost(message, optional, tag = "7")]
pub updated_at: ::core::option::Option<
super::super::super::super::google::protobuf::Timestamp,
>,
#[prost(bool, tag = "8")]
pub is_archived: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMarkingRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub authorized_groups: ::core::option::Option<AuthorizedGroups>,
#[prost(message, optional, tag = "4")]
pub symbol: ::core::option::Option<super::super::super::scout::elements::v1::Symbol>,
#[prost(message, optional, tag = "5")]
pub color: ::core::option::Option<super::super::super::scout::elements::v1::Color>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateMarkingResponse {
#[prost(message, optional, tag = "1")]
pub marking: ::core::option::Option<Marking>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMarkingRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMarkingResponse {
#[prost(message, optional, tag = "1")]
pub marking: ::core::option::Option<Marking>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMarkingByIdRequest {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMarkingByIdResponse {
#[prost(message, optional, tag = "1")]
pub marking: ::core::option::Option<Marking>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetMarkingsRequest {
#[prost(string, repeated, tag = "1")]
pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetMarkingsResponse {
#[prost(message, repeated, tag = "1")]
pub markings: ::prost::alloc::vec::Vec<Marking>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetMarkingMetadataRequest {
#[prost(string, repeated, tag = "1")]
pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetMarkingMetadataResponse {
#[prost(message, repeated, tag = "1")]
pub marking_metadatas: ::prost::alloc::vec::Vec<MarkingMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAuthorizedGroupsByMarkingRequest {
#[prost(string, repeated, tag = "1")]
pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetAuthorizedGroupsByMarkingResponse {
#[prost(map = "string, message", tag = "1")]
pub authorized_groups_by_marking: ::std::collections::HashMap<
::prost::alloc::string::String,
AuthorizedGroups,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchMarkingsQuery {
#[prost(oneof = "search_markings_query::Query", tags = "1, 2, 3")]
pub query: ::core::option::Option<search_markings_query::Query>,
}
pub mod search_markings_query {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Query {
#[prost(string, tag = "1")]
IdExactSubstringSearch(::prost::alloc::string::String),
#[prost(message, tag = "2")]
And(super::SearchMarkingsQueryList),
#[prost(message, tag = "3")]
Or(super::SearchMarkingsQueryList),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchMarkingsQueryList {
#[prost(message, repeated, tag = "1")]
pub queries: ::prost::alloc::vec::Vec<SearchMarkingsQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchMarkingsRequest {
#[prost(message, optional, tag = "1")]
pub query: ::core::option::Option<SearchMarkingsQuery>,
#[prost(int32, optional, tag = "2")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, optional, tag = "3")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchMarkingsResponse {
#[prost(message, repeated, tag = "1")]
pub marking_metadatas: ::prost::alloc::vec::Vec<MarkingMetadata>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMarkingRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub authorized_groups: ::core::option::Option<AuthorizedGroups>,
#[prost(message, optional, tag = "5")]
pub symbol: ::core::option::Option<
update_marking_request::UpdateMarkingSymbolWrapper,
>,
#[prost(message, optional, tag = "6")]
pub color: ::core::option::Option<update_marking_request::UpdateMarkingColorWrapper>,
}
pub mod update_marking_request {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMarkingSymbolWrapper {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<
super::super::super::super::scout::elements::v1::Symbol,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMarkingColorWrapper {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<
super::super::super::super::scout::elements::v1::Color,
>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMarkingResponse {
#[prost(message, optional, tag = "1")]
pub marking: ::core::option::Option<Marking>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveMarkingsRequest {
#[prost(string, repeated, tag = "1")]
pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ArchiveMarkingsResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnarchiveMarkingsRequest {
#[prost(string, repeated, tag = "1")]
pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnarchiveMarkingsResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMarkingsOnResourceRequest {
#[prost(string, tag = "1")]
pub resource: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub markings_to_apply: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "3")]
pub markings_to_remove: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateMarkingsOnResourceResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetResourcesForMarkingRequest {
#[prost(string, tag = "1")]
pub marking_rid: ::prost::alloc::string::String,
#[prost(int32, optional, tag = "2")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, optional, tag = "3")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetResourcesForMarkingResponse {
#[prost(message, repeated, tag = "1")]
pub resources: ::prost::alloc::vec::Vec<
get_resources_for_marking_response::MarkedResource,
>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
pub mod get_resources_for_marking_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MarkedResource {
#[prost(string, tag = "2")]
pub resource: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub applied_at: ::core::option::Option<
super::super::super::super::super::google::protobuf::Timestamp,
>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMarkingsForResourcesRequest {
#[prost(string, repeated, tag = "1")]
pub resources: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetMarkingsForResourcesResponse {
#[prost(map = "string, message", tag = "1")]
pub resource_to_markings: ::std::collections::HashMap<
::prost::alloc::string::String,
get_markings_for_resources_response::ResourceMarkingsList,
>,
}
pub mod get_markings_for_resources_response {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceMarkingsList {
#[prost(message, repeated, tag = "1")]
pub applied_markings: ::prost::alloc::vec::Vec<
resource_markings_list::AppliedMarking,
>,
}
pub mod resource_markings_list {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AppliedMarking {
#[prost(string, tag = "1")]
pub marking_rid: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub applied_at: ::core::option::Option<
super::super::super::super::super::super::google::protobuf::Timestamp,
>,
}
}
}
pub mod marking_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 MarkingServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl MarkingServiceClient<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> MarkingServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::Body>,
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,
) -> MarkingServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::Body>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::Body>,
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
{
MarkingServiceClient::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 create_marking(
&mut self,
request: impl tonic::IntoRequest<super::CreateMarkingRequest>,
) -> std::result::Result<
tonic::Response<super::CreateMarkingResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/CreateMarking",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"CreateMarking",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_marking(
&mut self,
request: impl tonic::IntoRequest<super::GetMarkingRequest>,
) -> std::result::Result<
tonic::Response<super::GetMarkingResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/GetMarking",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"GetMarking",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_marking_by_id(
&mut self,
request: impl tonic::IntoRequest<super::GetMarkingByIdRequest>,
) -> std::result::Result<
tonic::Response<super::GetMarkingByIdResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/GetMarkingById",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"GetMarkingById",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn batch_get_markings(
&mut self,
request: impl tonic::IntoRequest<super::BatchGetMarkingsRequest>,
) -> std::result::Result<
tonic::Response<super::BatchGetMarkingsResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/BatchGetMarkings",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"BatchGetMarkings",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn batch_get_marking_metadata(
&mut self,
request: impl tonic::IntoRequest<super::BatchGetMarkingMetadataRequest>,
) -> std::result::Result<
tonic::Response<super::BatchGetMarkingMetadataResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/BatchGetMarkingMetadata",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"BatchGetMarkingMetadata",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_authorized_groups_by_marking(
&mut self,
request: impl tonic::IntoRequest<super::GetAuthorizedGroupsByMarkingRequest>,
) -> std::result::Result<
tonic::Response<super::GetAuthorizedGroupsByMarkingResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/GetAuthorizedGroupsByMarking",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"GetAuthorizedGroupsByMarking",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn search_markings(
&mut self,
request: impl tonic::IntoRequest<super::SearchMarkingsRequest>,
) -> std::result::Result<
tonic::Response<super::SearchMarkingsResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/SearchMarkings",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"SearchMarkings",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_marking(
&mut self,
request: impl tonic::IntoRequest<super::UpdateMarkingRequest>,
) -> std::result::Result<
tonic::Response<super::UpdateMarkingResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/UpdateMarking",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"UpdateMarking",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn archive_markings(
&mut self,
request: impl tonic::IntoRequest<super::ArchiveMarkingsRequest>,
) -> std::result::Result<
tonic::Response<super::ArchiveMarkingsResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/ArchiveMarkings",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"ArchiveMarkings",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn unarchive_markings(
&mut self,
request: impl tonic::IntoRequest<super::UnarchiveMarkingsRequest>,
) -> std::result::Result<
tonic::Response<super::UnarchiveMarkingsResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/UnarchiveMarkings",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"UnarchiveMarkings",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_markings_on_resource(
&mut self,
request: impl tonic::IntoRequest<super::UpdateMarkingsOnResourceRequest>,
) -> std::result::Result<
tonic::Response<super::UpdateMarkingsOnResourceResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/UpdateMarkingsOnResource",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"UpdateMarkingsOnResource",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_resources_for_marking(
&mut self,
request: impl tonic::IntoRequest<super::GetResourcesForMarkingRequest>,
) -> std::result::Result<
tonic::Response<super::GetResourcesForMarkingResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/GetResourcesForMarking",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"GetResourcesForMarking",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_markings_for_resources(
&mut self,
request: impl tonic::IntoRequest<super::GetMarkingsForResourcesRequest>,
) -> std::result::Result<
tonic::Response<super::GetMarkingsForResourcesResponse>,
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(
"/nominal.authorization.markings.v1.MarkingService/GetMarkingsForResources",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.authorization.markings.v1.MarkingService",
"GetMarkingsForResources",
),
);
self.inner.unary(req, path, codec).await
}
}
}