Skip to main content

nominal_api_proto/proto/
nominal.authorization.markings.v1.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct AuthorizedGroups {
4    #[prost(string, repeated, tag = "1")]
5    pub group_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6}
7#[derive(Clone, PartialEq, ::prost::Message)]
8pub struct Marking {
9    #[prost(string, tag = "1")]
10    pub rid: ::prost::alloc::string::String,
11    #[prost(string, tag = "2")]
12    pub id: ::prost::alloc::string::String,
13    #[prost(string, tag = "3")]
14    pub description: ::prost::alloc::string::String,
15    #[prost(message, optional, tag = "4")]
16    pub authorized_groups: ::core::option::Option<AuthorizedGroups>,
17    #[prost(message, optional, tag = "5")]
18    pub symbol: ::core::option::Option<super::super::super::scout::elements::v1::Symbol>,
19    #[prost(message, optional, tag = "6")]
20    pub color: ::core::option::Option<super::super::super::scout::elements::v1::Color>,
21    #[prost(message, optional, tag = "7")]
22    pub created_at: ::core::option::Option<
23        super::super::super::super::google::protobuf::Timestamp,
24    >,
25    #[prost(message, optional, tag = "8")]
26    pub updated_at: ::core::option::Option<
27        super::super::super::super::google::protobuf::Timestamp,
28    >,
29    #[prost(bool, tag = "9")]
30    pub is_archived: bool,
31}
32#[derive(Clone, PartialEq, ::prost::Message)]
33pub struct MarkingMetadata {
34    #[prost(string, tag = "1")]
35    pub rid: ::prost::alloc::string::String,
36    #[prost(string, tag = "2")]
37    pub id: ::prost::alloc::string::String,
38    #[prost(string, tag = "3")]
39    pub description: ::prost::alloc::string::String,
40    #[prost(message, optional, tag = "4")]
41    pub symbol: ::core::option::Option<super::super::super::scout::elements::v1::Symbol>,
42    #[prost(message, optional, tag = "5")]
43    pub color: ::core::option::Option<super::super::super::scout::elements::v1::Color>,
44    #[prost(message, optional, tag = "6")]
45    pub created_at: ::core::option::Option<
46        super::super::super::super::google::protobuf::Timestamp,
47    >,
48    #[prost(message, optional, tag = "7")]
49    pub updated_at: ::core::option::Option<
50        super::super::super::super::google::protobuf::Timestamp,
51    >,
52    #[prost(bool, tag = "8")]
53    pub is_archived: bool,
54}
55#[derive(Clone, PartialEq, ::prost::Message)]
56pub struct CreateMarkingRequest {
57    #[prost(string, tag = "1")]
58    pub id: ::prost::alloc::string::String,
59    #[prost(string, tag = "2")]
60    pub description: ::prost::alloc::string::String,
61    #[prost(message, optional, tag = "3")]
62    pub authorized_groups: ::core::option::Option<AuthorizedGroups>,
63    #[prost(message, optional, tag = "4")]
64    pub symbol: ::core::option::Option<super::super::super::scout::elements::v1::Symbol>,
65    #[prost(message, optional, tag = "5")]
66    pub color: ::core::option::Option<super::super::super::scout::elements::v1::Color>,
67}
68#[derive(Clone, PartialEq, ::prost::Message)]
69pub struct CreateMarkingResponse {
70    #[prost(message, optional, tag = "1")]
71    pub marking: ::core::option::Option<Marking>,
72}
73#[derive(Clone, PartialEq, ::prost::Message)]
74pub struct GetMarkingRequest {
75    #[prost(string, tag = "1")]
76    pub rid: ::prost::alloc::string::String,
77}
78#[derive(Clone, PartialEq, ::prost::Message)]
79pub struct GetMarkingResponse {
80    #[prost(message, optional, tag = "1")]
81    pub marking: ::core::option::Option<Marking>,
82}
83#[derive(Clone, PartialEq, ::prost::Message)]
84pub struct GetMarkingByIdRequest {
85    #[prost(string, tag = "1")]
86    pub id: ::prost::alloc::string::String,
87}
88#[derive(Clone, PartialEq, ::prost::Message)]
89pub struct GetMarkingByIdResponse {
90    #[prost(message, optional, tag = "1")]
91    pub marking: ::core::option::Option<Marking>,
92}
93#[derive(Clone, PartialEq, ::prost::Message)]
94pub struct BatchGetMarkingsRequest {
95    #[prost(string, repeated, tag = "1")]
96    pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
97}
98#[derive(Clone, PartialEq, ::prost::Message)]
99pub struct BatchGetMarkingsResponse {
100    #[prost(message, repeated, tag = "1")]
101    pub markings: ::prost::alloc::vec::Vec<Marking>,
102}
103#[derive(Clone, PartialEq, ::prost::Message)]
104pub struct BatchGetMarkingMetadataRequest {
105    #[prost(string, repeated, tag = "1")]
106    pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
107}
108#[derive(Clone, PartialEq, ::prost::Message)]
109pub struct BatchGetMarkingMetadataResponse {
110    #[prost(message, repeated, tag = "1")]
111    pub marking_metadatas: ::prost::alloc::vec::Vec<MarkingMetadata>,
112}
113#[derive(Clone, PartialEq, ::prost::Message)]
114pub struct GetAuthorizedGroupsByMarkingRequest {
115    #[prost(string, repeated, tag = "1")]
116    pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
117}
118#[derive(Clone, PartialEq, ::prost::Message)]
119pub struct GetAuthorizedGroupsByMarkingResponse {
120    #[prost(map = "string, message", tag = "1")]
121    pub authorized_groups_by_marking: ::std::collections::HashMap<
122        ::prost::alloc::string::String,
123        AuthorizedGroups,
124    >,
125}
126#[derive(Clone, PartialEq, ::prost::Message)]
127pub struct SearchMarkingsQuery {
128    #[prost(oneof = "search_markings_query::Query", tags = "1, 2, 3")]
129    pub query: ::core::option::Option<search_markings_query::Query>,
130}
131/// Nested message and enum types in `SearchMarkingsQuery`.
132pub mod search_markings_query {
133    #[derive(Clone, PartialEq, ::prost::Oneof)]
134    pub enum Query {
135        #[prost(string, tag = "1")]
136        IdExactSubstringSearch(::prost::alloc::string::String),
137        #[prost(message, tag = "2")]
138        And(super::SearchMarkingsQueryList),
139        #[prost(message, tag = "3")]
140        Or(super::SearchMarkingsQueryList),
141    }
142}
143#[derive(Clone, PartialEq, ::prost::Message)]
144pub struct SearchMarkingsQueryList {
145    #[prost(message, repeated, tag = "1")]
146    pub queries: ::prost::alloc::vec::Vec<SearchMarkingsQuery>,
147}
148#[derive(Clone, PartialEq, ::prost::Message)]
149pub struct SearchMarkingsRequest {
150    #[prost(message, optional, tag = "1")]
151    pub query: ::core::option::Option<SearchMarkingsQuery>,
152    #[prost(int32, optional, tag = "2")]
153    pub page_size: ::core::option::Option<i32>,
154    #[prost(string, optional, tag = "3")]
155    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
156}
157#[derive(Clone, PartialEq, ::prost::Message)]
158pub struct SearchMarkingsResponse {
159    #[prost(message, repeated, tag = "1")]
160    pub marking_metadatas: ::prost::alloc::vec::Vec<MarkingMetadata>,
161    #[prost(string, optional, tag = "2")]
162    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
163}
164#[derive(Clone, PartialEq, ::prost::Message)]
165pub struct UpdateMarkingRequest {
166    #[prost(string, tag = "1")]
167    pub rid: ::prost::alloc::string::String,
168    #[prost(string, optional, tag = "2")]
169    pub id: ::core::option::Option<::prost::alloc::string::String>,
170    #[prost(string, optional, tag = "3")]
171    pub description: ::core::option::Option<::prost::alloc::string::String>,
172    #[prost(message, optional, tag = "4")]
173    pub authorized_groups: ::core::option::Option<AuthorizedGroups>,
174    #[prost(message, optional, tag = "5")]
175    pub symbol: ::core::option::Option<
176        update_marking_request::UpdateMarkingSymbolWrapper,
177    >,
178    #[prost(message, optional, tag = "6")]
179    pub color: ::core::option::Option<update_marking_request::UpdateMarkingColorWrapper>,
180}
181/// Nested message and enum types in `UpdateMarkingRequest`.
182pub mod update_marking_request {
183    #[derive(Clone, PartialEq, ::prost::Message)]
184    pub struct UpdateMarkingSymbolWrapper {
185        #[prost(message, optional, tag = "1")]
186        pub value: ::core::option::Option<
187            super::super::super::super::scout::elements::v1::Symbol,
188        >,
189    }
190    #[derive(Clone, PartialEq, ::prost::Message)]
191    pub struct UpdateMarkingColorWrapper {
192        #[prost(message, optional, tag = "1")]
193        pub value: ::core::option::Option<
194            super::super::super::super::scout::elements::v1::Color,
195        >,
196    }
197}
198#[derive(Clone, PartialEq, ::prost::Message)]
199pub struct UpdateMarkingResponse {
200    #[prost(message, optional, tag = "1")]
201    pub marking: ::core::option::Option<Marking>,
202}
203#[derive(Clone, PartialEq, ::prost::Message)]
204pub struct ArchiveMarkingsRequest {
205    #[prost(string, repeated, tag = "1")]
206    pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
207}
208#[derive(Clone, Copy, PartialEq, ::prost::Message)]
209pub struct ArchiveMarkingsResponse {}
210#[derive(Clone, PartialEq, ::prost::Message)]
211pub struct UnarchiveMarkingsRequest {
212    #[prost(string, repeated, tag = "1")]
213    pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
214}
215#[derive(Clone, Copy, PartialEq, ::prost::Message)]
216pub struct UnarchiveMarkingsResponse {}
217#[derive(Clone, PartialEq, ::prost::Message)]
218pub struct UpdateMarkingsOnResourceRequest {
219    #[prost(string, tag = "1")]
220    pub resource: ::prost::alloc::string::String,
221    #[prost(string, repeated, tag = "2")]
222    pub markings_to_apply: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
223    #[prost(string, repeated, tag = "3")]
224    pub markings_to_remove: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
225}
226#[derive(Clone, Copy, PartialEq, ::prost::Message)]
227pub struct UpdateMarkingsOnResourceResponse {}
228#[derive(Clone, PartialEq, ::prost::Message)]
229pub struct GetResourcesForMarkingRequest {
230    #[prost(string, tag = "1")]
231    pub marking_rid: ::prost::alloc::string::String,
232    #[prost(int32, optional, tag = "2")]
233    pub page_size: ::core::option::Option<i32>,
234    #[prost(string, optional, tag = "3")]
235    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
236}
237#[derive(Clone, PartialEq, ::prost::Message)]
238pub struct GetResourcesForMarkingResponse {
239    #[prost(message, repeated, tag = "1")]
240    pub resources: ::prost::alloc::vec::Vec<
241        get_resources_for_marking_response::MarkedResource,
242    >,
243    #[prost(string, optional, tag = "2")]
244    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
245}
246/// Nested message and enum types in `GetResourcesForMarkingResponse`.
247pub mod get_resources_for_marking_response {
248    #[derive(Clone, PartialEq, ::prost::Message)]
249    pub struct MarkedResource {
250        #[prost(string, tag = "2")]
251        pub resource: ::prost::alloc::string::String,
252        #[prost(message, optional, tag = "3")]
253        pub applied_at: ::core::option::Option<
254            super::super::super::super::super::google::protobuf::Timestamp,
255        >,
256    }
257}
258#[derive(Clone, PartialEq, ::prost::Message)]
259pub struct GetMarkingsForResourcesRequest {
260    #[prost(string, repeated, tag = "1")]
261    pub resources: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
262}
263#[derive(Clone, PartialEq, ::prost::Message)]
264pub struct GetMarkingsForResourcesResponse {
265    #[prost(map = "string, message", tag = "1")]
266    pub resource_to_markings: ::std::collections::HashMap<
267        ::prost::alloc::string::String,
268        get_markings_for_resources_response::ResourceMarkingsList,
269    >,
270}
271/// Nested message and enum types in `GetMarkingsForResourcesResponse`.
272pub mod get_markings_for_resources_response {
273    #[derive(Clone, PartialEq, ::prost::Message)]
274    pub struct ResourceMarkingsList {
275        #[prost(message, repeated, tag = "1")]
276        pub applied_markings: ::prost::alloc::vec::Vec<
277            resource_markings_list::AppliedMarking,
278        >,
279    }
280    /// Nested message and enum types in `ResourceMarkingsList`.
281    pub mod resource_markings_list {
282        #[derive(Clone, PartialEq, ::prost::Message)]
283        pub struct AppliedMarking {
284            #[prost(string, tag = "1")]
285            pub marking_rid: ::prost::alloc::string::String,
286            #[prost(message, optional, tag = "3")]
287            pub applied_at: ::core::option::Option<
288                super::super::super::super::super::super::google::protobuf::Timestamp,
289            >,
290        }
291    }
292}
293/// Generated client implementations.
294pub mod marking_service_client {
295    #![allow(
296        unused_variables,
297        dead_code,
298        missing_docs,
299        clippy::wildcard_imports,
300        clippy::let_unit_value,
301    )]
302    use tonic::codegen::*;
303    use tonic::codegen::http::Uri;
304    #[derive(Debug, Clone)]
305    pub struct MarkingServiceClient<T> {
306        inner: tonic::client::Grpc<T>,
307    }
308    impl MarkingServiceClient<tonic::transport::Channel> {
309        /// Attempt to create a new client by connecting to a given endpoint.
310        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
311        where
312            D: TryInto<tonic::transport::Endpoint>,
313            D::Error: Into<StdError>,
314        {
315            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
316            Ok(Self::new(conn))
317        }
318    }
319    impl<T> MarkingServiceClient<T>
320    where
321        T: tonic::client::GrpcService<tonic::body::Body>,
322        T::Error: Into<StdError>,
323        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
324        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
325    {
326        pub fn new(inner: T) -> Self {
327            let inner = tonic::client::Grpc::new(inner);
328            Self { inner }
329        }
330        pub fn with_origin(inner: T, origin: Uri) -> Self {
331            let inner = tonic::client::Grpc::with_origin(inner, origin);
332            Self { inner }
333        }
334        pub fn with_interceptor<F>(
335            inner: T,
336            interceptor: F,
337        ) -> MarkingServiceClient<InterceptedService<T, F>>
338        where
339            F: tonic::service::Interceptor,
340            T::ResponseBody: Default,
341            T: tonic::codegen::Service<
342                http::Request<tonic::body::Body>,
343                Response = http::Response<
344                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
345                >,
346            >,
347            <T as tonic::codegen::Service<
348                http::Request<tonic::body::Body>,
349            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
350        {
351            MarkingServiceClient::new(InterceptedService::new(inner, interceptor))
352        }
353        /// Compress requests with the given encoding.
354        ///
355        /// This requires the server to support it otherwise it might respond with an
356        /// error.
357        #[must_use]
358        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
359            self.inner = self.inner.send_compressed(encoding);
360            self
361        }
362        /// Enable decompressing responses.
363        #[must_use]
364        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
365            self.inner = self.inner.accept_compressed(encoding);
366            self
367        }
368        /// Limits the maximum size of a decoded message.
369        ///
370        /// Default: `4MB`
371        #[must_use]
372        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
373            self.inner = self.inner.max_decoding_message_size(limit);
374            self
375        }
376        /// Limits the maximum size of an encoded message.
377        ///
378        /// Default: `usize::MAX`
379        #[must_use]
380        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
381            self.inner = self.inner.max_encoding_message_size(limit);
382            self
383        }
384        pub async fn create_marking(
385            &mut self,
386            request: impl tonic::IntoRequest<super::CreateMarkingRequest>,
387        ) -> std::result::Result<
388            tonic::Response<super::CreateMarkingResponse>,
389            tonic::Status,
390        > {
391            self.inner
392                .ready()
393                .await
394                .map_err(|e| {
395                    tonic::Status::unknown(
396                        format!("Service was not ready: {}", e.into()),
397                    )
398                })?;
399            let codec = tonic::codec::ProstCodec::default();
400            let path = http::uri::PathAndQuery::from_static(
401                "/nominal.authorization.markings.v1.MarkingService/CreateMarking",
402            );
403            let mut req = request.into_request();
404            req.extensions_mut()
405                .insert(
406                    GrpcMethod::new(
407                        "nominal.authorization.markings.v1.MarkingService",
408                        "CreateMarking",
409                    ),
410                );
411            self.inner.unary(req, path, codec).await
412        }
413        pub async fn get_marking(
414            &mut self,
415            request: impl tonic::IntoRequest<super::GetMarkingRequest>,
416        ) -> std::result::Result<
417            tonic::Response<super::GetMarkingResponse>,
418            tonic::Status,
419        > {
420            self.inner
421                .ready()
422                .await
423                .map_err(|e| {
424                    tonic::Status::unknown(
425                        format!("Service was not ready: {}", e.into()),
426                    )
427                })?;
428            let codec = tonic::codec::ProstCodec::default();
429            let path = http::uri::PathAndQuery::from_static(
430                "/nominal.authorization.markings.v1.MarkingService/GetMarking",
431            );
432            let mut req = request.into_request();
433            req.extensions_mut()
434                .insert(
435                    GrpcMethod::new(
436                        "nominal.authorization.markings.v1.MarkingService",
437                        "GetMarking",
438                    ),
439                );
440            self.inner.unary(req, path, codec).await
441        }
442        pub async fn get_marking_by_id(
443            &mut self,
444            request: impl tonic::IntoRequest<super::GetMarkingByIdRequest>,
445        ) -> std::result::Result<
446            tonic::Response<super::GetMarkingByIdResponse>,
447            tonic::Status,
448        > {
449            self.inner
450                .ready()
451                .await
452                .map_err(|e| {
453                    tonic::Status::unknown(
454                        format!("Service was not ready: {}", e.into()),
455                    )
456                })?;
457            let codec = tonic::codec::ProstCodec::default();
458            let path = http::uri::PathAndQuery::from_static(
459                "/nominal.authorization.markings.v1.MarkingService/GetMarkingById",
460            );
461            let mut req = request.into_request();
462            req.extensions_mut()
463                .insert(
464                    GrpcMethod::new(
465                        "nominal.authorization.markings.v1.MarkingService",
466                        "GetMarkingById",
467                    ),
468                );
469            self.inner.unary(req, path, codec).await
470        }
471        pub async fn batch_get_markings(
472            &mut self,
473            request: impl tonic::IntoRequest<super::BatchGetMarkingsRequest>,
474        ) -> std::result::Result<
475            tonic::Response<super::BatchGetMarkingsResponse>,
476            tonic::Status,
477        > {
478            self.inner
479                .ready()
480                .await
481                .map_err(|e| {
482                    tonic::Status::unknown(
483                        format!("Service was not ready: {}", e.into()),
484                    )
485                })?;
486            let codec = tonic::codec::ProstCodec::default();
487            let path = http::uri::PathAndQuery::from_static(
488                "/nominal.authorization.markings.v1.MarkingService/BatchGetMarkings",
489            );
490            let mut req = request.into_request();
491            req.extensions_mut()
492                .insert(
493                    GrpcMethod::new(
494                        "nominal.authorization.markings.v1.MarkingService",
495                        "BatchGetMarkings",
496                    ),
497                );
498            self.inner.unary(req, path, codec).await
499        }
500        pub async fn batch_get_marking_metadata(
501            &mut self,
502            request: impl tonic::IntoRequest<super::BatchGetMarkingMetadataRequest>,
503        ) -> std::result::Result<
504            tonic::Response<super::BatchGetMarkingMetadataResponse>,
505            tonic::Status,
506        > {
507            self.inner
508                .ready()
509                .await
510                .map_err(|e| {
511                    tonic::Status::unknown(
512                        format!("Service was not ready: {}", e.into()),
513                    )
514                })?;
515            let codec = tonic::codec::ProstCodec::default();
516            let path = http::uri::PathAndQuery::from_static(
517                "/nominal.authorization.markings.v1.MarkingService/BatchGetMarkingMetadata",
518            );
519            let mut req = request.into_request();
520            req.extensions_mut()
521                .insert(
522                    GrpcMethod::new(
523                        "nominal.authorization.markings.v1.MarkingService",
524                        "BatchGetMarkingMetadata",
525                    ),
526                );
527            self.inner.unary(req, path, codec).await
528        }
529        pub async fn get_authorized_groups_by_marking(
530            &mut self,
531            request: impl tonic::IntoRequest<super::GetAuthorizedGroupsByMarkingRequest>,
532        ) -> std::result::Result<
533            tonic::Response<super::GetAuthorizedGroupsByMarkingResponse>,
534            tonic::Status,
535        > {
536            self.inner
537                .ready()
538                .await
539                .map_err(|e| {
540                    tonic::Status::unknown(
541                        format!("Service was not ready: {}", e.into()),
542                    )
543                })?;
544            let codec = tonic::codec::ProstCodec::default();
545            let path = http::uri::PathAndQuery::from_static(
546                "/nominal.authorization.markings.v1.MarkingService/GetAuthorizedGroupsByMarking",
547            );
548            let mut req = request.into_request();
549            req.extensions_mut()
550                .insert(
551                    GrpcMethod::new(
552                        "nominal.authorization.markings.v1.MarkingService",
553                        "GetAuthorizedGroupsByMarking",
554                    ),
555                );
556            self.inner.unary(req, path, codec).await
557        }
558        pub async fn search_markings(
559            &mut self,
560            request: impl tonic::IntoRequest<super::SearchMarkingsRequest>,
561        ) -> std::result::Result<
562            tonic::Response<super::SearchMarkingsResponse>,
563            tonic::Status,
564        > {
565            self.inner
566                .ready()
567                .await
568                .map_err(|e| {
569                    tonic::Status::unknown(
570                        format!("Service was not ready: {}", e.into()),
571                    )
572                })?;
573            let codec = tonic::codec::ProstCodec::default();
574            let path = http::uri::PathAndQuery::from_static(
575                "/nominal.authorization.markings.v1.MarkingService/SearchMarkings",
576            );
577            let mut req = request.into_request();
578            req.extensions_mut()
579                .insert(
580                    GrpcMethod::new(
581                        "nominal.authorization.markings.v1.MarkingService",
582                        "SearchMarkings",
583                    ),
584                );
585            self.inner.unary(req, path, codec).await
586        }
587        pub async fn update_marking(
588            &mut self,
589            request: impl tonic::IntoRequest<super::UpdateMarkingRequest>,
590        ) -> std::result::Result<
591            tonic::Response<super::UpdateMarkingResponse>,
592            tonic::Status,
593        > {
594            self.inner
595                .ready()
596                .await
597                .map_err(|e| {
598                    tonic::Status::unknown(
599                        format!("Service was not ready: {}", e.into()),
600                    )
601                })?;
602            let codec = tonic::codec::ProstCodec::default();
603            let path = http::uri::PathAndQuery::from_static(
604                "/nominal.authorization.markings.v1.MarkingService/UpdateMarking",
605            );
606            let mut req = request.into_request();
607            req.extensions_mut()
608                .insert(
609                    GrpcMethod::new(
610                        "nominal.authorization.markings.v1.MarkingService",
611                        "UpdateMarking",
612                    ),
613                );
614            self.inner.unary(req, path, codec).await
615        }
616        pub async fn archive_markings(
617            &mut self,
618            request: impl tonic::IntoRequest<super::ArchiveMarkingsRequest>,
619        ) -> std::result::Result<
620            tonic::Response<super::ArchiveMarkingsResponse>,
621            tonic::Status,
622        > {
623            self.inner
624                .ready()
625                .await
626                .map_err(|e| {
627                    tonic::Status::unknown(
628                        format!("Service was not ready: {}", e.into()),
629                    )
630                })?;
631            let codec = tonic::codec::ProstCodec::default();
632            let path = http::uri::PathAndQuery::from_static(
633                "/nominal.authorization.markings.v1.MarkingService/ArchiveMarkings",
634            );
635            let mut req = request.into_request();
636            req.extensions_mut()
637                .insert(
638                    GrpcMethod::new(
639                        "nominal.authorization.markings.v1.MarkingService",
640                        "ArchiveMarkings",
641                    ),
642                );
643            self.inner.unary(req, path, codec).await
644        }
645        pub async fn unarchive_markings(
646            &mut self,
647            request: impl tonic::IntoRequest<super::UnarchiveMarkingsRequest>,
648        ) -> std::result::Result<
649            tonic::Response<super::UnarchiveMarkingsResponse>,
650            tonic::Status,
651        > {
652            self.inner
653                .ready()
654                .await
655                .map_err(|e| {
656                    tonic::Status::unknown(
657                        format!("Service was not ready: {}", e.into()),
658                    )
659                })?;
660            let codec = tonic::codec::ProstCodec::default();
661            let path = http::uri::PathAndQuery::from_static(
662                "/nominal.authorization.markings.v1.MarkingService/UnarchiveMarkings",
663            );
664            let mut req = request.into_request();
665            req.extensions_mut()
666                .insert(
667                    GrpcMethod::new(
668                        "nominal.authorization.markings.v1.MarkingService",
669                        "UnarchiveMarkings",
670                    ),
671                );
672            self.inner.unary(req, path, codec).await
673        }
674        pub async fn update_markings_on_resource(
675            &mut self,
676            request: impl tonic::IntoRequest<super::UpdateMarkingsOnResourceRequest>,
677        ) -> std::result::Result<
678            tonic::Response<super::UpdateMarkingsOnResourceResponse>,
679            tonic::Status,
680        > {
681            self.inner
682                .ready()
683                .await
684                .map_err(|e| {
685                    tonic::Status::unknown(
686                        format!("Service was not ready: {}", e.into()),
687                    )
688                })?;
689            let codec = tonic::codec::ProstCodec::default();
690            let path = http::uri::PathAndQuery::from_static(
691                "/nominal.authorization.markings.v1.MarkingService/UpdateMarkingsOnResource",
692            );
693            let mut req = request.into_request();
694            req.extensions_mut()
695                .insert(
696                    GrpcMethod::new(
697                        "nominal.authorization.markings.v1.MarkingService",
698                        "UpdateMarkingsOnResource",
699                    ),
700                );
701            self.inner.unary(req, path, codec).await
702        }
703        pub async fn get_resources_for_marking(
704            &mut self,
705            request: impl tonic::IntoRequest<super::GetResourcesForMarkingRequest>,
706        ) -> std::result::Result<
707            tonic::Response<super::GetResourcesForMarkingResponse>,
708            tonic::Status,
709        > {
710            self.inner
711                .ready()
712                .await
713                .map_err(|e| {
714                    tonic::Status::unknown(
715                        format!("Service was not ready: {}", e.into()),
716                    )
717                })?;
718            let codec = tonic::codec::ProstCodec::default();
719            let path = http::uri::PathAndQuery::from_static(
720                "/nominal.authorization.markings.v1.MarkingService/GetResourcesForMarking",
721            );
722            let mut req = request.into_request();
723            req.extensions_mut()
724                .insert(
725                    GrpcMethod::new(
726                        "nominal.authorization.markings.v1.MarkingService",
727                        "GetResourcesForMarking",
728                    ),
729                );
730            self.inner.unary(req, path, codec).await
731        }
732        pub async fn get_markings_for_resources(
733            &mut self,
734            request: impl tonic::IntoRequest<super::GetMarkingsForResourcesRequest>,
735        ) -> std::result::Result<
736            tonic::Response<super::GetMarkingsForResourcesResponse>,
737            tonic::Status,
738        > {
739            self.inner
740                .ready()
741                .await
742                .map_err(|e| {
743                    tonic::Status::unknown(
744                        format!("Service was not ready: {}", e.into()),
745                    )
746                })?;
747            let codec = tonic::codec::ProstCodec::default();
748            let path = http::uri::PathAndQuery::from_static(
749                "/nominal.authorization.markings.v1.MarkingService/GetMarkingsForResources",
750            );
751            let mut req = request.into_request();
752            req.extensions_mut()
753                .insert(
754                    GrpcMethod::new(
755                        "nominal.authorization.markings.v1.MarkingService",
756                        "GetMarkingsForResources",
757                    ),
758                );
759            self.inner.unary(req, path, codec).await
760        }
761    }
762}