Skip to main content

polyester/gen/connect/
chain.guard.v1.rs

1// @generated by connectrpc-codegen. DO NOT EDIT.
2
3///Shorthand for `OwnedView<CreateGuardSignerWalletRequestView<'static>>`.
4pub type OwnedCreateGuardSignerWalletRequestView = ::buffa::view::OwnedView<
5    crate::proto::chain::guard::v1::__buffa::view::CreateGuardSignerWalletRequestView<
6        'static,
7    >,
8>;
9///Shorthand for `OwnedView<CreateGuardSignerWalletResponseView<'static>>`.
10pub type OwnedCreateGuardSignerWalletResponseView = ::buffa::view::OwnedView<
11    crate::proto::chain::guard::v1::__buffa::view::CreateGuardSignerWalletResponseView<
12        'static,
13    >,
14>;
15///Shorthand for `OwnedView<GetGuardSignerStatusRequestView<'static>>`.
16pub type OwnedGetGuardSignerStatusRequestView = ::buffa::view::OwnedView<
17    crate::proto::chain::guard::v1::__buffa::view::GetGuardSignerStatusRequestView<
18        'static,
19    >,
20>;
21///Shorthand for `OwnedView<GetGuardSignerStatusResponseView<'static>>`.
22pub type OwnedGetGuardSignerStatusResponseView = ::buffa::view::OwnedView<
23    crate::proto::chain::guard::v1::__buffa::view::GetGuardSignerStatusResponseView<
24        'static,
25    >,
26>;
27///Shorthand for `OwnedView<SignProtectedActionRequestView<'static>>`.
28pub type OwnedSignProtectedActionRequestView = ::buffa::view::OwnedView<
29    crate::proto::chain::guard::v1::__buffa::view::SignProtectedActionRequestView<
30        'static,
31    >,
32>;
33///Shorthand for `OwnedView<SignProtectedActionResponseView<'static>>`.
34pub type OwnedSignProtectedActionResponseView = ::buffa::view::OwnedView<
35    crate::proto::chain::guard::v1::__buffa::view::SignProtectedActionResponseView<
36        'static,
37    >,
38>;
39///Shorthand for `OwnedView<BatchSignProtectedActionsRequestView<'static>>`.
40pub type OwnedBatchSignProtectedActionsRequestView = ::buffa::view::OwnedView<
41    crate::proto::chain::guard::v1::__buffa::view::BatchSignProtectedActionsRequestView<
42        'static,
43    >,
44>;
45///Shorthand for `OwnedView<BatchSignProtectedActionsResponseView<'static>>`.
46pub type OwnedBatchSignProtectedActionsResponseView = ::buffa::view::OwnedView<
47    crate::proto::chain::guard::v1::__buffa::view::BatchSignProtectedActionsResponseView<
48        'static,
49    >,
50>;
51///Shorthand for `OwnedView<RotateGuardSignerWalletRequestView<'static>>`.
52pub type OwnedRotateGuardSignerWalletRequestView = ::buffa::view::OwnedView<
53    crate::proto::chain::guard::v1::__buffa::view::RotateGuardSignerWalletRequestView<
54        'static,
55    >,
56>;
57///Shorthand for `OwnedView<RotateGuardSignerWalletResponseView<'static>>`.
58pub type OwnedRotateGuardSignerWalletResponseView = ::buffa::view::OwnedView<
59    crate::proto::chain::guard::v1::__buffa::view::RotateGuardSignerWalletResponseView<
60        'static,
61    >,
62>;
63///Shorthand for `OwnedView<ExportGuardSignerWalletRequestView<'static>>`.
64pub type OwnedExportGuardSignerWalletRequestView = ::buffa::view::OwnedView<
65    crate::proto::chain::guard::v1::__buffa::view::ExportGuardSignerWalletRequestView<
66        'static,
67    >,
68>;
69///Shorthand for `OwnedView<ExportGuardSignerWalletResponseView<'static>>`.
70pub type OwnedExportGuardSignerWalletResponseView = ::buffa::view::OwnedView<
71    crate::proto::chain::guard::v1::__buffa::view::ExportGuardSignerWalletResponseView<
72        'static,
73    >,
74>;
75impl ::connectrpc::Encodable<
76    crate::proto::chain::guard::v1::CreateGuardSignerWalletResponse,
77>
78for crate::proto::chain::guard::v1::__buffa::view::CreateGuardSignerWalletResponseView<
79    '_,
80> {
81    fn encode(
82        &self,
83        codec: ::connectrpc::CodecFormat,
84    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
85        ::connectrpc::__codegen::encode_view_body(self, codec)
86    }
87}
88impl ::connectrpc::Encodable<
89    crate::proto::chain::guard::v1::CreateGuardSignerWalletResponse,
90>
91for ::buffa::view::OwnedView<
92    crate::proto::chain::guard::v1::__buffa::view::CreateGuardSignerWalletResponseView<
93        'static,
94    >,
95> {
96    fn encode(
97        &self,
98        codec: ::connectrpc::CodecFormat,
99    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
100        ::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
101    }
102}
103impl ::connectrpc::Encodable<
104    crate::proto::chain::guard::v1::GetGuardSignerStatusResponse,
105>
106for crate::proto::chain::guard::v1::__buffa::view::GetGuardSignerStatusResponseView<'_> {
107    fn encode(
108        &self,
109        codec: ::connectrpc::CodecFormat,
110    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
111        ::connectrpc::__codegen::encode_view_body(self, codec)
112    }
113}
114impl ::connectrpc::Encodable<
115    crate::proto::chain::guard::v1::GetGuardSignerStatusResponse,
116>
117for ::buffa::view::OwnedView<
118    crate::proto::chain::guard::v1::__buffa::view::GetGuardSignerStatusResponseView<
119        'static,
120    >,
121> {
122    fn encode(
123        &self,
124        codec: ::connectrpc::CodecFormat,
125    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
126        ::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
127    }
128}
129impl ::connectrpc::Encodable<crate::proto::chain::guard::v1::SignProtectedActionResponse>
130for crate::proto::chain::guard::v1::__buffa::view::SignProtectedActionResponseView<'_> {
131    fn encode(
132        &self,
133        codec: ::connectrpc::CodecFormat,
134    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
135        ::connectrpc::__codegen::encode_view_body(self, codec)
136    }
137}
138impl ::connectrpc::Encodable<crate::proto::chain::guard::v1::SignProtectedActionResponse>
139for ::buffa::view::OwnedView<
140    crate::proto::chain::guard::v1::__buffa::view::SignProtectedActionResponseView<
141        'static,
142    >,
143> {
144    fn encode(
145        &self,
146        codec: ::connectrpc::CodecFormat,
147    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
148        ::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
149    }
150}
151impl ::connectrpc::Encodable<
152    crate::proto::chain::guard::v1::BatchSignProtectedActionsResponse,
153>
154for crate::proto::chain::guard::v1::__buffa::view::BatchSignProtectedActionsResponseView<
155    '_,
156> {
157    fn encode(
158        &self,
159        codec: ::connectrpc::CodecFormat,
160    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
161        ::connectrpc::__codegen::encode_view_body(self, codec)
162    }
163}
164impl ::connectrpc::Encodable<
165    crate::proto::chain::guard::v1::BatchSignProtectedActionsResponse,
166>
167for ::buffa::view::OwnedView<
168    crate::proto::chain::guard::v1::__buffa::view::BatchSignProtectedActionsResponseView<
169        'static,
170    >,
171> {
172    fn encode(
173        &self,
174        codec: ::connectrpc::CodecFormat,
175    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
176        ::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
177    }
178}
179impl ::connectrpc::Encodable<
180    crate::proto::chain::guard::v1::RotateGuardSignerWalletResponse,
181>
182for crate::proto::chain::guard::v1::__buffa::view::RotateGuardSignerWalletResponseView<
183    '_,
184> {
185    fn encode(
186        &self,
187        codec: ::connectrpc::CodecFormat,
188    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
189        ::connectrpc::__codegen::encode_view_body(self, codec)
190    }
191}
192impl ::connectrpc::Encodable<
193    crate::proto::chain::guard::v1::RotateGuardSignerWalletResponse,
194>
195for ::buffa::view::OwnedView<
196    crate::proto::chain::guard::v1::__buffa::view::RotateGuardSignerWalletResponseView<
197        'static,
198    >,
199> {
200    fn encode(
201        &self,
202        codec: ::connectrpc::CodecFormat,
203    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
204        ::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
205    }
206}
207impl ::connectrpc::Encodable<
208    crate::proto::chain::guard::v1::ExportGuardSignerWalletResponse,
209>
210for crate::proto::chain::guard::v1::__buffa::view::ExportGuardSignerWalletResponseView<
211    '_,
212> {
213    fn encode(
214        &self,
215        codec: ::connectrpc::CodecFormat,
216    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
217        ::connectrpc::__codegen::encode_view_body(self, codec)
218    }
219}
220impl ::connectrpc::Encodable<
221    crate::proto::chain::guard::v1::ExportGuardSignerWalletResponse,
222>
223for ::buffa::view::OwnedView<
224    crate::proto::chain::guard::v1::__buffa::view::ExportGuardSignerWalletResponseView<
225        'static,
226    >,
227> {
228    fn encode(
229        &self,
230        codec: ::connectrpc::CodecFormat,
231    ) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
232        ::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
233    }
234}
235/// Full service name for this service.
236pub const GUARD_SIGNER_SERVICE_SERVICE_NAME: &str = "chain.guard.v1.GuardSignerService";
237/// Static [`Spec`](::connectrpc::Spec) for the server-side `CreateGuardSignerWallet` RPC.
238///
239/// The dispatcher surfaces this on
240/// [`RequestContext::spec`](::connectrpc::RequestContext::spec).
241pub const GUARD_SIGNER_SERVICE_CREATE_GUARD_SIGNER_WALLET_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
242        "/chain.guard.v1.GuardSignerService/CreateGuardSignerWallet",
243        ::connectrpc::StreamType::Unary,
244    )
245    .with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
246/// Static [`Spec`](::connectrpc::Spec) for the server-side `GetGuardSignerStatus` RPC.
247///
248/// The dispatcher surfaces this on
249/// [`RequestContext::spec`](::connectrpc::RequestContext::spec).
250pub const GUARD_SIGNER_SERVICE_GET_GUARD_SIGNER_STATUS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
251        "/chain.guard.v1.GuardSignerService/GetGuardSignerStatus",
252        ::connectrpc::StreamType::Unary,
253    )
254    .with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
255/// Static [`Spec`](::connectrpc::Spec) for the server-side `SignProtectedAction` RPC.
256///
257/// The dispatcher surfaces this on
258/// [`RequestContext::spec`](::connectrpc::RequestContext::spec).
259pub const GUARD_SIGNER_SERVICE_SIGN_PROTECTED_ACTION_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
260        "/chain.guard.v1.GuardSignerService/SignProtectedAction",
261        ::connectrpc::StreamType::Unary,
262    )
263    .with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
264/// Static [`Spec`](::connectrpc::Spec) for the server-side `BatchSignProtectedActions` RPC.
265///
266/// The dispatcher surfaces this on
267/// [`RequestContext::spec`](::connectrpc::RequestContext::spec).
268pub const GUARD_SIGNER_SERVICE_BATCH_SIGN_PROTECTED_ACTIONS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
269        "/chain.guard.v1.GuardSignerService/BatchSignProtectedActions",
270        ::connectrpc::StreamType::Unary,
271    )
272    .with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
273/// Static [`Spec`](::connectrpc::Spec) for the server-side `RotateGuardSignerWallet` RPC.
274///
275/// The dispatcher surfaces this on
276/// [`RequestContext::spec`](::connectrpc::RequestContext::spec).
277pub const GUARD_SIGNER_SERVICE_ROTATE_GUARD_SIGNER_WALLET_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
278        "/chain.guard.v1.GuardSignerService/RotateGuardSignerWallet",
279        ::connectrpc::StreamType::Unary,
280    )
281    .with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
282/// Static [`Spec`](::connectrpc::Spec) for the server-side `ExportGuardSignerWallet` RPC.
283///
284/// The dispatcher surfaces this on
285/// [`RequestContext::spec`](::connectrpc::RequestContext::spec).
286pub const GUARD_SIGNER_SERVICE_EXPORT_GUARD_SIGNER_WALLET_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
287        "/chain.guard.v1.GuardSignerService/ExportGuardSignerWallet",
288        ::connectrpc::StreamType::Unary,
289    )
290    .with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
291/// GuardSignerService manages guard signer lifecycle and approval signatures.
292///
293/// # Implementing handlers
294///
295/// Implement methods with plain `async fn`; the returned future satisfies
296/// the `Send` bound automatically.
297///
298/// **Unary and server-streaming requests** arrive as
299/// [`ServiceRequest<'_, Req>`](::connectrpc::ServiceRequest): a zero-copy
300/// view of the request plus its body, valid for the duration of the call.
301/// Fields are read directly (`request.name` is a `&str` into the decoded
302/// buffer) and the borrow may be held across `.await` points. Anything
303/// that must outlive the call — `tokio::spawn`, channels, server state,
304/// or data captured by a returned response stream — takes owned data:
305/// call `request.to_owned_message()` (or copy the specific fields)
306/// first.
307///
308/// **Client-streaming and bidi requests** arrive as
309/// [`InboundStream<Req>`](::connectrpc::InboundStream) — a
310/// `ServiceStream` of [`StreamMessage`](::connectrpc::StreamMessage)s.
311/// Each item owns its decoded buffer and is `Send + 'static`, so items
312/// can be buffered or moved into spawned tasks; read fields zero-copy
313/// through the generated accessor methods (`item.name()`) or `.view()`,
314/// convert with `.to_owned_message()`, or yield an item back unchanged —
315/// `StreamMessage<M>` implements `Encodable<M>`.
316///
317/// Request types resolved through `extern_path` (e.g. well-known types
318/// from another crate) use the same wrappers; the crate that owns the
319/// type must be generated with buffa ≥ 0.8.0 and views enabled so the
320/// backing `HasMessageView` impl exists.
321///
322/// The `impl Encodable<Out>` return bound accepts the owned `Out`, the
323/// generated `OutView<'_>` / `OwnedOutView`,
324/// [`MaybeBorrowed`](::connectrpc::MaybeBorrowed), or
325/// [`PreEncoded`](::connectrpc::PreEncoded) for handlers that encode a
326/// non-`'static` view internally and pass the bytes across the handler
327/// boundary. View bodies are not emitted for output types mapped via
328/// `extern_path` (the impl would be an orphan); return owned for
329/// WKT/extern outputs.
330///
331/// Server-streaming and bidi-streaming methods return
332/// `ServiceStream<impl Encodable<Out> + Send + use<Self>>`. The
333/// `use<Self>` precise-capturing clause excludes `&self`'s lifetime and
334/// the request's lifetime (unary methods use `use<'a, Self>` and may
335/// borrow from `&self`), so stream items must be `'static` and cannot
336/// borrow from the request. To stream view-encoded data, encode each
337/// item inside the stream body and yield
338/// [`PreEncoded`](::connectrpc::PreEncoded) — see its `# Streaming
339/// example` doc.
340#[allow(clippy::type_complexity)]
341pub trait GuardSignerService: Send + Sync + 'static {
342    /// Handle the CreateGuardSignerWallet RPC.
343    ///
344    /// `'a` lets the response body borrow from `&self` (e.g. server-resident state).
345    ///
346    /// `request` is borrowed from the request body and is valid for the
347    /// duration of the call; message fields are read directly on it
348    /// (zero-copy). The response cannot borrow from `request` — use
349    /// `.to_owned_message()` (or copy the specific fields) for anything
350    /// returned, stored, or moved into `tokio::spawn`.
351    fn create_guard_signer_wallet<'a>(
352        &'a self,
353        ctx: ::connectrpc::RequestContext,
354        request: ::connectrpc::ServiceRequest<
355            '_,
356            crate::proto::chain::guard::v1::CreateGuardSignerWalletRequest,
357        >,
358    ) -> impl ::std::future::Future<
359        Output = ::connectrpc::ServiceResult<
360            impl ::connectrpc::Encodable<
361                crate::proto::chain::guard::v1::CreateGuardSignerWalletResponse,
362            > + Send + use<'a, Self>,
363        >,
364    > + Send;
365    /// Handle the GetGuardSignerStatus RPC.
366    ///
367    /// `'a` lets the response body borrow from `&self` (e.g. server-resident state).
368    ///
369    /// `request` is borrowed from the request body and is valid for the
370    /// duration of the call; message fields are read directly on it
371    /// (zero-copy). The response cannot borrow from `request` — use
372    /// `.to_owned_message()` (or copy the specific fields) for anything
373    /// returned, stored, or moved into `tokio::spawn`.
374    fn get_guard_signer_status<'a>(
375        &'a self,
376        ctx: ::connectrpc::RequestContext,
377        request: ::connectrpc::ServiceRequest<
378            '_,
379            crate::proto::chain::guard::v1::GetGuardSignerStatusRequest,
380        >,
381    ) -> impl ::std::future::Future<
382        Output = ::connectrpc::ServiceResult<
383            impl ::connectrpc::Encodable<
384                crate::proto::chain::guard::v1::GetGuardSignerStatusResponse,
385            > + Send + use<'a, Self>,
386        >,
387    > + Send;
388    /// Handle the SignProtectedAction RPC.
389    ///
390    /// `'a` lets the response body borrow from `&self` (e.g. server-resident state).
391    ///
392    /// `request` is borrowed from the request body and is valid for the
393    /// duration of the call; message fields are read directly on it
394    /// (zero-copy). The response cannot borrow from `request` — use
395    /// `.to_owned_message()` (or copy the specific fields) for anything
396    /// returned, stored, or moved into `tokio::spawn`.
397    fn sign_protected_action<'a>(
398        &'a self,
399        ctx: ::connectrpc::RequestContext,
400        request: ::connectrpc::ServiceRequest<
401            '_,
402            crate::proto::chain::guard::v1::SignProtectedActionRequest,
403        >,
404    ) -> impl ::std::future::Future<
405        Output = ::connectrpc::ServiceResult<
406            impl ::connectrpc::Encodable<
407                crate::proto::chain::guard::v1::SignProtectedActionResponse,
408            > + Send + use<'a, Self>,
409        >,
410    > + Send;
411    /// Handle the BatchSignProtectedActions RPC.
412    ///
413    /// `'a` lets the response body borrow from `&self` (e.g. server-resident state).
414    ///
415    /// `request` is borrowed from the request body and is valid for the
416    /// duration of the call; message fields are read directly on it
417    /// (zero-copy). The response cannot borrow from `request` — use
418    /// `.to_owned_message()` (or copy the specific fields) for anything
419    /// returned, stored, or moved into `tokio::spawn`.
420    fn batch_sign_protected_actions<'a>(
421        &'a self,
422        ctx: ::connectrpc::RequestContext,
423        request: ::connectrpc::ServiceRequest<
424            '_,
425            crate::proto::chain::guard::v1::BatchSignProtectedActionsRequest,
426        >,
427    ) -> impl ::std::future::Future<
428        Output = ::connectrpc::ServiceResult<
429            impl ::connectrpc::Encodable<
430                crate::proto::chain::guard::v1::BatchSignProtectedActionsResponse,
431            > + Send + use<'a, Self>,
432        >,
433    > + Send;
434    /// Handle the RotateGuardSignerWallet RPC.
435    ///
436    /// `'a` lets the response body borrow from `&self` (e.g. server-resident state).
437    ///
438    /// `request` is borrowed from the request body and is valid for the
439    /// duration of the call; message fields are read directly on it
440    /// (zero-copy). The response cannot borrow from `request` — use
441    /// `.to_owned_message()` (or copy the specific fields) for anything
442    /// returned, stored, or moved into `tokio::spawn`.
443    fn rotate_guard_signer_wallet<'a>(
444        &'a self,
445        ctx: ::connectrpc::RequestContext,
446        request: ::connectrpc::ServiceRequest<
447            '_,
448            crate::proto::chain::guard::v1::RotateGuardSignerWalletRequest,
449        >,
450    ) -> impl ::std::future::Future<
451        Output = ::connectrpc::ServiceResult<
452            impl ::connectrpc::Encodable<
453                crate::proto::chain::guard::v1::RotateGuardSignerWalletResponse,
454            > + Send + use<'a, Self>,
455        >,
456    > + Send;
457    /// Handle the ExportGuardSignerWallet RPC.
458    ///
459    /// `'a` lets the response body borrow from `&self` (e.g. server-resident state).
460    ///
461    /// `request` is borrowed from the request body and is valid for the
462    /// duration of the call; message fields are read directly on it
463    /// (zero-copy). The response cannot borrow from `request` — use
464    /// `.to_owned_message()` (or copy the specific fields) for anything
465    /// returned, stored, or moved into `tokio::spawn`.
466    fn export_guard_signer_wallet<'a>(
467        &'a self,
468        ctx: ::connectrpc::RequestContext,
469        request: ::connectrpc::ServiceRequest<
470            '_,
471            crate::proto::chain::guard::v1::ExportGuardSignerWalletRequest,
472        >,
473    ) -> impl ::std::future::Future<
474        Output = ::connectrpc::ServiceResult<
475            impl ::connectrpc::Encodable<
476                crate::proto::chain::guard::v1::ExportGuardSignerWalletResponse,
477            > + Send + use<'a, Self>,
478        >,
479    > + Send;
480}
481/// Extension trait for registering a service implementation with a Router.
482///
483/// This trait is automatically implemented for all types that implement the service trait.
484/// Prefer [`Router::add_service`](::connectrpc::Router::add_service) for
485/// top-down registration; `register` remains available for compatibility
486/// and cases where the service-first call shape is more convenient.
487///
488/// # Example
489///
490/// ```rust,ignore
491/// use std::sync::Arc;
492///
493/// let service = Arc::new(MyServiceImpl);
494/// let router = service.register(Router::new());
495/// ```
496pub trait GuardSignerServiceExt: GuardSignerService {
497    /// Register this service implementation with a Router.
498    ///
499    /// Takes ownership of the `Arc<Self>` and returns a new Router with
500    /// this service's methods registered.
501    fn register(
502        self: ::std::sync::Arc<Self>,
503        router: ::connectrpc::Router,
504    ) -> ::connectrpc::Router;
505}
506impl<S: GuardSignerService> GuardSignerServiceExt for S {
507    fn register(
508        self: ::std::sync::Arc<Self>,
509        router: ::connectrpc::Router,
510    ) -> ::connectrpc::Router {
511        router
512            .route_view(
513                GUARD_SIGNER_SERVICE_SERVICE_NAME,
514                "CreateGuardSignerWallet",
515                {
516                    let svc = ::std::sync::Arc::clone(&self);
517                    ::connectrpc::view_handler_fn(move |
518                        ctx,
519                        req: ::buffa::view::OwnedView<
520                            crate::proto::chain::guard::v1::__buffa::view::CreateGuardSignerWalletRequestView<
521                                'static,
522                            >,
523                        >,
524                        format|
525                    {
526                        let svc = ::std::sync::Arc::clone(&svc);
527                        async move {
528                            let sreq = ::connectrpc::ServiceRequest::<
529                                crate::proto::chain::guard::v1::CreateGuardSignerWalletRequest,
530                            >::from_parts(req.reborrow(), req.bytes());
531                            svc.create_guard_signer_wallet(ctx, sreq)
532                                .await?
533                                .encode::<
534                                    crate::proto::chain::guard::v1::CreateGuardSignerWalletResponse,
535                                >(format)
536                        }
537                    })
538                },
539            )
540            .with_spec(GUARD_SIGNER_SERVICE_CREATE_GUARD_SIGNER_WALLET_SPEC)
541            .route_view(
542                GUARD_SIGNER_SERVICE_SERVICE_NAME,
543                "GetGuardSignerStatus",
544                {
545                    let svc = ::std::sync::Arc::clone(&self);
546                    ::connectrpc::view_handler_fn(move |
547                        ctx,
548                        req: ::buffa::view::OwnedView<
549                            crate::proto::chain::guard::v1::__buffa::view::GetGuardSignerStatusRequestView<
550                                'static,
551                            >,
552                        >,
553                        format|
554                    {
555                        let svc = ::std::sync::Arc::clone(&svc);
556                        async move {
557                            let sreq = ::connectrpc::ServiceRequest::<
558                                crate::proto::chain::guard::v1::GetGuardSignerStatusRequest,
559                            >::from_parts(req.reborrow(), req.bytes());
560                            svc.get_guard_signer_status(ctx, sreq)
561                                .await?
562                                .encode::<
563                                    crate::proto::chain::guard::v1::GetGuardSignerStatusResponse,
564                                >(format)
565                        }
566                    })
567                },
568            )
569            .with_spec(GUARD_SIGNER_SERVICE_GET_GUARD_SIGNER_STATUS_SPEC)
570            .route_view(
571                GUARD_SIGNER_SERVICE_SERVICE_NAME,
572                "SignProtectedAction",
573                {
574                    let svc = ::std::sync::Arc::clone(&self);
575                    ::connectrpc::view_handler_fn(move |
576                        ctx,
577                        req: ::buffa::view::OwnedView<
578                            crate::proto::chain::guard::v1::__buffa::view::SignProtectedActionRequestView<
579                                'static,
580                            >,
581                        >,
582                        format|
583                    {
584                        let svc = ::std::sync::Arc::clone(&svc);
585                        async move {
586                            let sreq = ::connectrpc::ServiceRequest::<
587                                crate::proto::chain::guard::v1::SignProtectedActionRequest,
588                            >::from_parts(req.reborrow(), req.bytes());
589                            svc.sign_protected_action(ctx, sreq)
590                                .await?
591                                .encode::<
592                                    crate::proto::chain::guard::v1::SignProtectedActionResponse,
593                                >(format)
594                        }
595                    })
596                },
597            )
598            .with_spec(GUARD_SIGNER_SERVICE_SIGN_PROTECTED_ACTION_SPEC)
599            .route_view(
600                GUARD_SIGNER_SERVICE_SERVICE_NAME,
601                "BatchSignProtectedActions",
602                {
603                    let svc = ::std::sync::Arc::clone(&self);
604                    ::connectrpc::view_handler_fn(move |
605                        ctx,
606                        req: ::buffa::view::OwnedView<
607                            crate::proto::chain::guard::v1::__buffa::view::BatchSignProtectedActionsRequestView<
608                                'static,
609                            >,
610                        >,
611                        format|
612                    {
613                        let svc = ::std::sync::Arc::clone(&svc);
614                        async move {
615                            let sreq = ::connectrpc::ServiceRequest::<
616                                crate::proto::chain::guard::v1::BatchSignProtectedActionsRequest,
617                            >::from_parts(req.reborrow(), req.bytes());
618                            svc.batch_sign_protected_actions(ctx, sreq)
619                                .await?
620                                .encode::<
621                                    crate::proto::chain::guard::v1::BatchSignProtectedActionsResponse,
622                                >(format)
623                        }
624                    })
625                },
626            )
627            .with_spec(GUARD_SIGNER_SERVICE_BATCH_SIGN_PROTECTED_ACTIONS_SPEC)
628            .route_view(
629                GUARD_SIGNER_SERVICE_SERVICE_NAME,
630                "RotateGuardSignerWallet",
631                {
632                    let svc = ::std::sync::Arc::clone(&self);
633                    ::connectrpc::view_handler_fn(move |
634                        ctx,
635                        req: ::buffa::view::OwnedView<
636                            crate::proto::chain::guard::v1::__buffa::view::RotateGuardSignerWalletRequestView<
637                                'static,
638                            >,
639                        >,
640                        format|
641                    {
642                        let svc = ::std::sync::Arc::clone(&svc);
643                        async move {
644                            let sreq = ::connectrpc::ServiceRequest::<
645                                crate::proto::chain::guard::v1::RotateGuardSignerWalletRequest,
646                            >::from_parts(req.reborrow(), req.bytes());
647                            svc.rotate_guard_signer_wallet(ctx, sreq)
648                                .await?
649                                .encode::<
650                                    crate::proto::chain::guard::v1::RotateGuardSignerWalletResponse,
651                                >(format)
652                        }
653                    })
654                },
655            )
656            .with_spec(GUARD_SIGNER_SERVICE_ROTATE_GUARD_SIGNER_WALLET_SPEC)
657            .route_view(
658                GUARD_SIGNER_SERVICE_SERVICE_NAME,
659                "ExportGuardSignerWallet",
660                {
661                    let svc = ::std::sync::Arc::clone(&self);
662                    ::connectrpc::view_handler_fn(move |
663                        ctx,
664                        req: ::buffa::view::OwnedView<
665                            crate::proto::chain::guard::v1::__buffa::view::ExportGuardSignerWalletRequestView<
666                                'static,
667                            >,
668                        >,
669                        format|
670                    {
671                        let svc = ::std::sync::Arc::clone(&svc);
672                        async move {
673                            let sreq = ::connectrpc::ServiceRequest::<
674                                crate::proto::chain::guard::v1::ExportGuardSignerWalletRequest,
675                            >::from_parts(req.reborrow(), req.bytes());
676                            svc.export_guard_signer_wallet(ctx, sreq)
677                                .await?
678                                .encode::<
679                                    crate::proto::chain::guard::v1::ExportGuardSignerWalletResponse,
680                                >(format)
681                        }
682                    })
683                },
684            )
685            .with_spec(GUARD_SIGNER_SERVICE_EXPORT_GUARD_SIGNER_WALLET_SPEC)
686    }
687}
688/// Type-inference marker used by [`Router::add_service`](::connectrpc::Router::add_service).
689#[doc(hidden)]
690pub struct GuardSignerServiceRegisterMarker;
691impl<
692    S: GuardSignerService,
693> ::connectrpc::ServiceRegister<GuardSignerServiceRegisterMarker>
694for ::std::sync::Arc<S> {
695    fn register_service(self, router: ::connectrpc::Router) -> ::connectrpc::Router {
696        <S as GuardSignerServiceExt>::register(self, router)
697    }
698}
699/// Monomorphic dispatcher for `GuardSignerService`.
700///
701/// Unlike `.register(Router)` which type-erases each method into an `Arc<dyn ErasedHandler>` stored in a `HashMap`, this struct dispatches via a compile-time `match` on method name: no vtable, no hash lookup.
702///
703/// # Example
704///
705/// ```rust,ignore
706/// use connectrpc::ConnectRpcService;
707///
708/// let server = GuardSignerServiceServer::new(MyImpl);
709/// let service = ConnectRpcService::new(server);
710/// // hand `service` to axum/hyper as a fallback_service
711/// ```
712pub struct GuardSignerServiceServer<T> {
713    inner: ::std::sync::Arc<T>,
714}
715impl<T: GuardSignerService> GuardSignerServiceServer<T> {
716    /// Wrap a service implementation in a monomorphic dispatcher.
717    pub fn new(service: T) -> Self {
718        Self {
719            inner: ::std::sync::Arc::new(service),
720        }
721    }
722    /// Wrap an already-`Arc`'d service implementation.
723    pub fn from_arc(inner: ::std::sync::Arc<T>) -> Self {
724        Self { inner }
725    }
726}
727impl<T> Clone for GuardSignerServiceServer<T> {
728    fn clone(&self) -> Self {
729        Self {
730            inner: ::std::sync::Arc::clone(&self.inner),
731        }
732    }
733}
734impl<T: GuardSignerService> ::connectrpc::Dispatcher for GuardSignerServiceServer<T> {
735    #[inline]
736    fn lookup(
737        &self,
738        path: &str,
739    ) -> Option<::connectrpc::dispatcher::codegen::MethodDescriptor> {
740        let method = path.strip_prefix("chain.guard.v1.GuardSignerService/")?;
741        match method {
742            "CreateGuardSignerWallet" => {
743                Some(
744                    ::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
745                        .with_spec(GUARD_SIGNER_SERVICE_CREATE_GUARD_SIGNER_WALLET_SPEC),
746                )
747            }
748            "GetGuardSignerStatus" => {
749                Some(
750                    ::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
751                        .with_spec(GUARD_SIGNER_SERVICE_GET_GUARD_SIGNER_STATUS_SPEC),
752                )
753            }
754            "SignProtectedAction" => {
755                Some(
756                    ::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
757                        .with_spec(GUARD_SIGNER_SERVICE_SIGN_PROTECTED_ACTION_SPEC),
758                )
759            }
760            "BatchSignProtectedActions" => {
761                Some(
762                    ::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
763                        .with_spec(
764                            GUARD_SIGNER_SERVICE_BATCH_SIGN_PROTECTED_ACTIONS_SPEC,
765                        ),
766                )
767            }
768            "RotateGuardSignerWallet" => {
769                Some(
770                    ::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
771                        .with_spec(GUARD_SIGNER_SERVICE_ROTATE_GUARD_SIGNER_WALLET_SPEC),
772                )
773            }
774            "ExportGuardSignerWallet" => {
775                Some(
776                    ::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
777                        .with_spec(GUARD_SIGNER_SERVICE_EXPORT_GUARD_SIGNER_WALLET_SPEC),
778                )
779            }
780            _ => None,
781        }
782    }
783    fn call_unary(
784        &self,
785        path: &str,
786        ctx: ::connectrpc::RequestContext,
787        request: ::connectrpc::Payload,
788        format: ::connectrpc::CodecFormat,
789    ) -> ::connectrpc::dispatcher::codegen::UnaryResult {
790        let Some(method) = path.strip_prefix("chain.guard.v1.GuardSignerService/") else {
791            return ::connectrpc::dispatcher::codegen::unimplemented_unary(path);
792        };
793        let _ = (&ctx, &request, &format);
794        match method {
795            "CreateGuardSignerWallet" => {
796                let svc = ::std::sync::Arc::clone(&self.inner);
797                Box::pin(async move {
798                    let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
799                        crate::proto::chain::guard::v1::CreateGuardSignerWalletRequest,
800                    >(request.encoded()?, format)?;
801                    let req: crate::proto::chain::guard::v1::__buffa::view::CreateGuardSignerWalletRequestView<
802                        '_,
803                    > = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
804                        &body,
805                    )?;
806                    let req = ::connectrpc::ServiceRequest::<
807                        crate::proto::chain::guard::v1::CreateGuardSignerWalletRequest,
808                    >::from_parts(&req, &body);
809                    svc.create_guard_signer_wallet(ctx, req)
810                        .await?
811                        .encode::<
812                            crate::proto::chain::guard::v1::CreateGuardSignerWalletResponse,
813                        >(format)
814                })
815            }
816            "GetGuardSignerStatus" => {
817                let svc = ::std::sync::Arc::clone(&self.inner);
818                Box::pin(async move {
819                    let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
820                        crate::proto::chain::guard::v1::GetGuardSignerStatusRequest,
821                    >(request.encoded()?, format)?;
822                    let req: crate::proto::chain::guard::v1::__buffa::view::GetGuardSignerStatusRequestView<
823                        '_,
824                    > = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
825                        &body,
826                    )?;
827                    let req = ::connectrpc::ServiceRequest::<
828                        crate::proto::chain::guard::v1::GetGuardSignerStatusRequest,
829                    >::from_parts(&req, &body);
830                    svc.get_guard_signer_status(ctx, req)
831                        .await?
832                        .encode::<
833                            crate::proto::chain::guard::v1::GetGuardSignerStatusResponse,
834                        >(format)
835                })
836            }
837            "SignProtectedAction" => {
838                let svc = ::std::sync::Arc::clone(&self.inner);
839                Box::pin(async move {
840                    let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
841                        crate::proto::chain::guard::v1::SignProtectedActionRequest,
842                    >(request.encoded()?, format)?;
843                    let req: crate::proto::chain::guard::v1::__buffa::view::SignProtectedActionRequestView<
844                        '_,
845                    > = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
846                        &body,
847                    )?;
848                    let req = ::connectrpc::ServiceRequest::<
849                        crate::proto::chain::guard::v1::SignProtectedActionRequest,
850                    >::from_parts(&req, &body);
851                    svc.sign_protected_action(ctx, req)
852                        .await?
853                        .encode::<
854                            crate::proto::chain::guard::v1::SignProtectedActionResponse,
855                        >(format)
856                })
857            }
858            "BatchSignProtectedActions" => {
859                let svc = ::std::sync::Arc::clone(&self.inner);
860                Box::pin(async move {
861                    let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
862                        crate::proto::chain::guard::v1::BatchSignProtectedActionsRequest,
863                    >(request.encoded()?, format)?;
864                    let req: crate::proto::chain::guard::v1::__buffa::view::BatchSignProtectedActionsRequestView<
865                        '_,
866                    > = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
867                        &body,
868                    )?;
869                    let req = ::connectrpc::ServiceRequest::<
870                        crate::proto::chain::guard::v1::BatchSignProtectedActionsRequest,
871                    >::from_parts(&req, &body);
872                    svc.batch_sign_protected_actions(ctx, req)
873                        .await?
874                        .encode::<
875                            crate::proto::chain::guard::v1::BatchSignProtectedActionsResponse,
876                        >(format)
877                })
878            }
879            "RotateGuardSignerWallet" => {
880                let svc = ::std::sync::Arc::clone(&self.inner);
881                Box::pin(async move {
882                    let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
883                        crate::proto::chain::guard::v1::RotateGuardSignerWalletRequest,
884                    >(request.encoded()?, format)?;
885                    let req: crate::proto::chain::guard::v1::__buffa::view::RotateGuardSignerWalletRequestView<
886                        '_,
887                    > = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
888                        &body,
889                    )?;
890                    let req = ::connectrpc::ServiceRequest::<
891                        crate::proto::chain::guard::v1::RotateGuardSignerWalletRequest,
892                    >::from_parts(&req, &body);
893                    svc.rotate_guard_signer_wallet(ctx, req)
894                        .await?
895                        .encode::<
896                            crate::proto::chain::guard::v1::RotateGuardSignerWalletResponse,
897                        >(format)
898                })
899            }
900            "ExportGuardSignerWallet" => {
901                let svc = ::std::sync::Arc::clone(&self.inner);
902                Box::pin(async move {
903                    let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
904                        crate::proto::chain::guard::v1::ExportGuardSignerWalletRequest,
905                    >(request.encoded()?, format)?;
906                    let req: crate::proto::chain::guard::v1::__buffa::view::ExportGuardSignerWalletRequestView<
907                        '_,
908                    > = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
909                        &body,
910                    )?;
911                    let req = ::connectrpc::ServiceRequest::<
912                        crate::proto::chain::guard::v1::ExportGuardSignerWalletRequest,
913                    >::from_parts(&req, &body);
914                    svc.export_guard_signer_wallet(ctx, req)
915                        .await?
916                        .encode::<
917                            crate::proto::chain::guard::v1::ExportGuardSignerWalletResponse,
918                        >(format)
919                })
920            }
921            _ => ::connectrpc::dispatcher::codegen::unimplemented_unary(path),
922        }
923    }
924    fn call_server_streaming(
925        &self,
926        path: &str,
927        ctx: ::connectrpc::RequestContext,
928        request: ::buffa::bytes::Bytes,
929        format: ::connectrpc::CodecFormat,
930    ) -> ::connectrpc::dispatcher::codegen::StreamingResult {
931        let Some(method) = path.strip_prefix("chain.guard.v1.GuardSignerService/") else {
932            return ::connectrpc::dispatcher::codegen::unimplemented_streaming(path);
933        };
934        let _ = (&ctx, &request, &format);
935        match method {
936            _ => ::connectrpc::dispatcher::codegen::unimplemented_streaming(path),
937        }
938    }
939    fn call_client_streaming(
940        &self,
941        path: &str,
942        ctx: ::connectrpc::RequestContext,
943        requests: ::connectrpc::dispatcher::codegen::RequestStream,
944        format: ::connectrpc::CodecFormat,
945    ) -> ::connectrpc::dispatcher::codegen::UnaryResult {
946        let Some(method) = path.strip_prefix("chain.guard.v1.GuardSignerService/") else {
947            return ::connectrpc::dispatcher::codegen::unimplemented_unary(path);
948        };
949        let _ = (&ctx, &requests, &format);
950        match method {
951            _ => ::connectrpc::dispatcher::codegen::unimplemented_unary(path),
952        }
953    }
954    fn call_bidi_streaming(
955        &self,
956        path: &str,
957        ctx: ::connectrpc::RequestContext,
958        requests: ::connectrpc::dispatcher::codegen::RequestStream,
959        format: ::connectrpc::CodecFormat,
960    ) -> ::connectrpc::dispatcher::codegen::StreamingResult {
961        let Some(method) = path.strip_prefix("chain.guard.v1.GuardSignerService/") else {
962            return ::connectrpc::dispatcher::codegen::unimplemented_streaming(path);
963        };
964        let _ = (&ctx, &requests, &format);
965        match method {
966            _ => ::connectrpc::dispatcher::codegen::unimplemented_streaming(path),
967        }
968    }
969}
970/// Client for this service.
971///
972/// Generic over `T: ClientTransport`. For **gRPC** (HTTP/2), use
973/// `Http2Connection` — it has honest `poll_ready` and composes with
974/// `tower::balance` for multi-connection load balancing. For **Connect
975/// over HTTP/1.1** (or unknown protocol), use `HttpClient`.
976///
977/// # Working with the response
978///
979/// Unary calls return [`UnaryResponse<OwnedView<FooView>>`](::connectrpc::client::UnaryResponse).
980/// [`view()`](::connectrpc::client::UnaryResponse::view) borrows the response
981/// message, so field access is zero-copy:
982///
983/// ```rust,ignore
984/// let resp = client.create_guard_signer_wallet(request).await?;
985/// let name: &str = resp.view().name;  // borrow into the response buffer
986/// ```
987///
988/// If you need the owned struct (e.g. to store or pass by value), use
989/// [`into_owned()`](::connectrpc::client::UnaryResponse::into_owned):
990///
991/// ```rust,ignore
992/// let owned = client.create_guard_signer_wallet(request).await?.into_owned();
993/// ```
994///
995/// [`into_view()`](::connectrpc::client::UnaryResponse::into_view) keeps the
996/// zero-copy decoded body (an `OwnedView`) without copying; field access on it
997/// goes through `.reborrow()`. Streaming responses yield one
998/// [`StreamMessage`](::connectrpc::StreamMessage) per received message from
999/// `.message().await` — read fields zero-copy through the generated accessor
1000/// methods (`msg.name()`) or `.view()`, or convert with `.to_owned_message()`.
1001#[derive(Clone)]
1002pub struct GuardSignerServiceClient<T> {
1003    transport: T,
1004    config: ::connectrpc::client::ClientConfig,
1005}
1006impl<T> GuardSignerServiceClient<T>
1007where
1008    T: ::connectrpc::client::ClientTransport,
1009    <T::ResponseBody as ::connectrpc::http_body::Body>::Error: ::std::fmt::Display,
1010{
1011    /// Create a new client with the given transport and configuration.
1012    pub fn new(transport: T, config: ::connectrpc::client::ClientConfig) -> Self {
1013        Self { transport, config }
1014    }
1015    /// Get the client configuration.
1016    pub fn config(&self) -> &::connectrpc::client::ClientConfig {
1017        &self.config
1018    }
1019    /// Get a mutable reference to the client configuration.
1020    pub fn config_mut(&mut self) -> &mut ::connectrpc::client::ClientConfig {
1021        &mut self.config
1022    }
1023    /// Call the CreateGuardSignerWallet RPC. Sends a request to /chain.guard.v1.GuardSignerService/CreateGuardSignerWallet.
1024    pub async fn create_guard_signer_wallet(
1025        &self,
1026        request: crate::proto::chain::guard::v1::CreateGuardSignerWalletRequest,
1027    ) -> Result<
1028        ::connectrpc::client::UnaryResponse<
1029            ::buffa::view::OwnedView<
1030                crate::proto::chain::guard::v1::__buffa::view::CreateGuardSignerWalletResponseView<
1031                    'static,
1032                >,
1033            >,
1034        >,
1035        ::connectrpc::ConnectError,
1036    > {
1037        self.create_guard_signer_wallet_with_options(
1038                request,
1039                ::connectrpc::client::CallOptions::default(),
1040            )
1041            .await
1042    }
1043    /// Call the CreateGuardSignerWallet RPC with explicit per-call options. Options override [`ClientConfig`](::connectrpc::client::ClientConfig) defaults.
1044    pub async fn create_guard_signer_wallet_with_options(
1045        &self,
1046        request: crate::proto::chain::guard::v1::CreateGuardSignerWalletRequest,
1047        options: ::connectrpc::client::CallOptions,
1048    ) -> Result<
1049        ::connectrpc::client::UnaryResponse<
1050            ::buffa::view::OwnedView<
1051                crate::proto::chain::guard::v1::__buffa::view::CreateGuardSignerWalletResponseView<
1052                    'static,
1053                >,
1054            >,
1055        >,
1056        ::connectrpc::ConnectError,
1057    > {
1058        ::connectrpc::client::call_unary(
1059                &self.transport,
1060                &self.config,
1061                GUARD_SIGNER_SERVICE_SERVICE_NAME,
1062                "CreateGuardSignerWallet",
1063                request,
1064                options,
1065            )
1066            .await
1067    }
1068    /// Call the GetGuardSignerStatus RPC. Sends a request to /chain.guard.v1.GuardSignerService/GetGuardSignerStatus.
1069    pub async fn get_guard_signer_status(
1070        &self,
1071        request: crate::proto::chain::guard::v1::GetGuardSignerStatusRequest,
1072    ) -> Result<
1073        ::connectrpc::client::UnaryResponse<
1074            ::buffa::view::OwnedView<
1075                crate::proto::chain::guard::v1::__buffa::view::GetGuardSignerStatusResponseView<
1076                    'static,
1077                >,
1078            >,
1079        >,
1080        ::connectrpc::ConnectError,
1081    > {
1082        self.get_guard_signer_status_with_options(
1083                request,
1084                ::connectrpc::client::CallOptions::default(),
1085            )
1086            .await
1087    }
1088    /// Call the GetGuardSignerStatus RPC with explicit per-call options. Options override [`ClientConfig`](::connectrpc::client::ClientConfig) defaults.
1089    pub async fn get_guard_signer_status_with_options(
1090        &self,
1091        request: crate::proto::chain::guard::v1::GetGuardSignerStatusRequest,
1092        options: ::connectrpc::client::CallOptions,
1093    ) -> Result<
1094        ::connectrpc::client::UnaryResponse<
1095            ::buffa::view::OwnedView<
1096                crate::proto::chain::guard::v1::__buffa::view::GetGuardSignerStatusResponseView<
1097                    'static,
1098                >,
1099            >,
1100        >,
1101        ::connectrpc::ConnectError,
1102    > {
1103        ::connectrpc::client::call_unary(
1104                &self.transport,
1105                &self.config,
1106                GUARD_SIGNER_SERVICE_SERVICE_NAME,
1107                "GetGuardSignerStatus",
1108                request,
1109                options,
1110            )
1111            .await
1112    }
1113    /// Call the SignProtectedAction RPC. Sends a request to /chain.guard.v1.GuardSignerService/SignProtectedAction.
1114    pub async fn sign_protected_action(
1115        &self,
1116        request: crate::proto::chain::guard::v1::SignProtectedActionRequest,
1117    ) -> Result<
1118        ::connectrpc::client::UnaryResponse<
1119            ::buffa::view::OwnedView<
1120                crate::proto::chain::guard::v1::__buffa::view::SignProtectedActionResponseView<
1121                    'static,
1122                >,
1123            >,
1124        >,
1125        ::connectrpc::ConnectError,
1126    > {
1127        self.sign_protected_action_with_options(
1128                request,
1129                ::connectrpc::client::CallOptions::default(),
1130            )
1131            .await
1132    }
1133    /// Call the SignProtectedAction RPC with explicit per-call options. Options override [`ClientConfig`](::connectrpc::client::ClientConfig) defaults.
1134    pub async fn sign_protected_action_with_options(
1135        &self,
1136        request: crate::proto::chain::guard::v1::SignProtectedActionRequest,
1137        options: ::connectrpc::client::CallOptions,
1138    ) -> Result<
1139        ::connectrpc::client::UnaryResponse<
1140            ::buffa::view::OwnedView<
1141                crate::proto::chain::guard::v1::__buffa::view::SignProtectedActionResponseView<
1142                    'static,
1143                >,
1144            >,
1145        >,
1146        ::connectrpc::ConnectError,
1147    > {
1148        ::connectrpc::client::call_unary(
1149                &self.transport,
1150                &self.config,
1151                GUARD_SIGNER_SERVICE_SERVICE_NAME,
1152                "SignProtectedAction",
1153                request,
1154                options,
1155            )
1156            .await
1157    }
1158    /// Call the BatchSignProtectedActions RPC. Sends a request to /chain.guard.v1.GuardSignerService/BatchSignProtectedActions.
1159    pub async fn batch_sign_protected_actions(
1160        &self,
1161        request: crate::proto::chain::guard::v1::BatchSignProtectedActionsRequest,
1162    ) -> Result<
1163        ::connectrpc::client::UnaryResponse<
1164            ::buffa::view::OwnedView<
1165                crate::proto::chain::guard::v1::__buffa::view::BatchSignProtectedActionsResponseView<
1166                    'static,
1167                >,
1168            >,
1169        >,
1170        ::connectrpc::ConnectError,
1171    > {
1172        self.batch_sign_protected_actions_with_options(
1173                request,
1174                ::connectrpc::client::CallOptions::default(),
1175            )
1176            .await
1177    }
1178    /// Call the BatchSignProtectedActions RPC with explicit per-call options. Options override [`ClientConfig`](::connectrpc::client::ClientConfig) defaults.
1179    pub async fn batch_sign_protected_actions_with_options(
1180        &self,
1181        request: crate::proto::chain::guard::v1::BatchSignProtectedActionsRequest,
1182        options: ::connectrpc::client::CallOptions,
1183    ) -> Result<
1184        ::connectrpc::client::UnaryResponse<
1185            ::buffa::view::OwnedView<
1186                crate::proto::chain::guard::v1::__buffa::view::BatchSignProtectedActionsResponseView<
1187                    'static,
1188                >,
1189            >,
1190        >,
1191        ::connectrpc::ConnectError,
1192    > {
1193        ::connectrpc::client::call_unary(
1194                &self.transport,
1195                &self.config,
1196                GUARD_SIGNER_SERVICE_SERVICE_NAME,
1197                "BatchSignProtectedActions",
1198                request,
1199                options,
1200            )
1201            .await
1202    }
1203    /// Call the RotateGuardSignerWallet RPC. Sends a request to /chain.guard.v1.GuardSignerService/RotateGuardSignerWallet.
1204    pub async fn rotate_guard_signer_wallet(
1205        &self,
1206        request: crate::proto::chain::guard::v1::RotateGuardSignerWalletRequest,
1207    ) -> Result<
1208        ::connectrpc::client::UnaryResponse<
1209            ::buffa::view::OwnedView<
1210                crate::proto::chain::guard::v1::__buffa::view::RotateGuardSignerWalletResponseView<
1211                    'static,
1212                >,
1213            >,
1214        >,
1215        ::connectrpc::ConnectError,
1216    > {
1217        self.rotate_guard_signer_wallet_with_options(
1218                request,
1219                ::connectrpc::client::CallOptions::default(),
1220            )
1221            .await
1222    }
1223    /// Call the RotateGuardSignerWallet RPC with explicit per-call options. Options override [`ClientConfig`](::connectrpc::client::ClientConfig) defaults.
1224    pub async fn rotate_guard_signer_wallet_with_options(
1225        &self,
1226        request: crate::proto::chain::guard::v1::RotateGuardSignerWalletRequest,
1227        options: ::connectrpc::client::CallOptions,
1228    ) -> Result<
1229        ::connectrpc::client::UnaryResponse<
1230            ::buffa::view::OwnedView<
1231                crate::proto::chain::guard::v1::__buffa::view::RotateGuardSignerWalletResponseView<
1232                    'static,
1233                >,
1234            >,
1235        >,
1236        ::connectrpc::ConnectError,
1237    > {
1238        ::connectrpc::client::call_unary(
1239                &self.transport,
1240                &self.config,
1241                GUARD_SIGNER_SERVICE_SERVICE_NAME,
1242                "RotateGuardSignerWallet",
1243                request,
1244                options,
1245            )
1246            .await
1247    }
1248    /// Call the ExportGuardSignerWallet RPC. Sends a request to /chain.guard.v1.GuardSignerService/ExportGuardSignerWallet.
1249    pub async fn export_guard_signer_wallet(
1250        &self,
1251        request: crate::proto::chain::guard::v1::ExportGuardSignerWalletRequest,
1252    ) -> Result<
1253        ::connectrpc::client::UnaryResponse<
1254            ::buffa::view::OwnedView<
1255                crate::proto::chain::guard::v1::__buffa::view::ExportGuardSignerWalletResponseView<
1256                    'static,
1257                >,
1258            >,
1259        >,
1260        ::connectrpc::ConnectError,
1261    > {
1262        self.export_guard_signer_wallet_with_options(
1263                request,
1264                ::connectrpc::client::CallOptions::default(),
1265            )
1266            .await
1267    }
1268    /// Call the ExportGuardSignerWallet RPC with explicit per-call options. Options override [`ClientConfig`](::connectrpc::client::ClientConfig) defaults.
1269    pub async fn export_guard_signer_wallet_with_options(
1270        &self,
1271        request: crate::proto::chain::guard::v1::ExportGuardSignerWalletRequest,
1272        options: ::connectrpc::client::CallOptions,
1273    ) -> Result<
1274        ::connectrpc::client::UnaryResponse<
1275            ::buffa::view::OwnedView<
1276                crate::proto::chain::guard::v1::__buffa::view::ExportGuardSignerWalletResponseView<
1277                    'static,
1278                >,
1279            >,
1280        >,
1281        ::connectrpc::ConnectError,
1282    > {
1283        ::connectrpc::client::call_unary(
1284                &self.transport,
1285                &self.config,
1286                GUARD_SIGNER_SERVICE_SERVICE_NAME,
1287                "ExportGuardSignerWallet",
1288                request,
1289                options,
1290            )
1291            .await
1292    }
1293}