pub type OwnedGetLayoutsRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutsRequestView<'static>,
>;
pub type OwnedGetLayoutsResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutsResponseView<'static>,
>;
pub type OwnedGetLayoutRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutRequestView<'static>,
>;
pub type OwnedGetLayoutResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutResponseView<'static>,
>;
pub type OwnedUpsertLayoutRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UpsertLayoutRequestView<'static>,
>;
pub type OwnedUpsertLayoutResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UpsertLayoutResponseView<'static>,
>;
pub type OwnedDeleteLayoutRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutRequestView<'static>,
>;
pub type OwnedDeleteLayoutResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutResponseView<'static>,
>;
pub type OwnedResolveLayoutShareTokenRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ResolveLayoutShareTokenRequestView<'static>,
>;
pub type OwnedResolveLayoutShareTokenResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ResolveLayoutShareTokenResponseView<'static>,
>;
pub type OwnedCreateLayoutShareLinkRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::CreateLayoutShareLinkRequestView<'static>,
>;
pub type OwnedCreateLayoutShareLinkResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::CreateLayoutShareLinkResponseView<'static>,
>;
pub type OwnedRevokeLayoutShareLinkRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::RevokeLayoutShareLinkRequestView<'static>,
>;
pub type OwnedRevokeLayoutShareLinkResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::RevokeLayoutShareLinkResponseView<'static>,
>;
pub type OwnedListOwnerPublishedLayoutsRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListOwnerPublishedLayoutsRequestView<
'static,
>,
>;
pub type OwnedListOwnerPublishedLayoutsResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListOwnerPublishedLayoutsResponseView<
'static,
>,
>;
pub type OwnedPublishLayoutRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::PublishLayoutRequestView<'static>,
>;
pub type OwnedPublishLayoutResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::PublishLayoutResponseView<'static>,
>;
pub type OwnedUnpublishLayoutRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UnpublishLayoutRequestView<'static>,
>;
pub type OwnedUnpublishLayoutResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UnpublishLayoutResponseView<'static>,
>;
pub type OwnedListLayoutTemplateVersionsRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListLayoutTemplateVersionsRequestView<
'static,
>,
>;
pub type OwnedListLayoutTemplateVersionsResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListLayoutTemplateVersionsResponseView<
'static,
>,
>;
pub type OwnedGetLayoutTemplateVersionRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutTemplateVersionRequestView<'static>,
>;
pub type OwnedGetLayoutTemplateVersionResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutTemplateVersionResponseView<
'static,
>,
>;
pub type OwnedSetLayoutTemplateSubscriptionRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::SetLayoutTemplateSubscriptionRequestView<
'static,
>,
>;
pub type OwnedSetLayoutTemplateSubscriptionResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::SetLayoutTemplateSubscriptionResponseView<
'static,
>,
>;
pub type OwnedDeleteLayoutTemplateSubscriptionRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutTemplateSubscriptionRequestView<
'static,
>,
>;
pub type OwnedDeleteLayoutTemplateSubscriptionResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutTemplateSubscriptionResponseView<
'static,
>,
>;
pub type OwnedListMyLayoutTemplateSubscriptionsRequestView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListMyLayoutTemplateSubscriptionsRequestView<
'static,
>,
>;
pub type OwnedListMyLayoutTemplateSubscriptionsResponseView = ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListMyLayoutTemplateSubscriptionsResponseView<
'static,
>,
>;
impl ::connectrpc::Encodable<crate::proto::layout::v1::GetLayoutsResponse>
for crate::proto::layout::v1::__buffa::view::GetLayoutsResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::GetLayoutsResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutsResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::GetLayoutResponse>
for crate::proto::layout::v1::__buffa::view::GetLayoutResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::GetLayoutResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::UpsertLayoutResponse>
for crate::proto::layout::v1::__buffa::view::UpsertLayoutResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::UpsertLayoutResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UpsertLayoutResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::DeleteLayoutResponse>
for crate::proto::layout::v1::__buffa::view::DeleteLayoutResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::DeleteLayoutResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::ResolveLayoutShareTokenResponse>
for crate::proto::layout::v1::__buffa::view::ResolveLayoutShareTokenResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::ResolveLayoutShareTokenResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ResolveLayoutShareTokenResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::CreateLayoutShareLinkResponse>
for crate::proto::layout::v1::__buffa::view::CreateLayoutShareLinkResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::CreateLayoutShareLinkResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::CreateLayoutShareLinkResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::RevokeLayoutShareLinkResponse>
for crate::proto::layout::v1::__buffa::view::RevokeLayoutShareLinkResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::RevokeLayoutShareLinkResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::RevokeLayoutShareLinkResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::ListOwnerPublishedLayoutsResponse>
for crate::proto::layout::v1::__buffa::view::ListOwnerPublishedLayoutsResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::ListOwnerPublishedLayoutsResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListOwnerPublishedLayoutsResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::PublishLayoutResponse>
for crate::proto::layout::v1::__buffa::view::PublishLayoutResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::PublishLayoutResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::PublishLayoutResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::UnpublishLayoutResponse>
for crate::proto::layout::v1::__buffa::view::UnpublishLayoutResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::UnpublishLayoutResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UnpublishLayoutResponseView<'static>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::layout::v1::ListLayoutTemplateVersionsResponse,
>
for crate::proto::layout::v1::__buffa::view::ListLayoutTemplateVersionsResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::layout::v1::ListLayoutTemplateVersionsResponse,
>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListLayoutTemplateVersionsResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::GetLayoutTemplateVersionResponse>
for crate::proto::layout::v1::__buffa::view::GetLayoutTemplateVersionResponseView<'_> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<crate::proto::layout::v1::GetLayoutTemplateVersionResponse>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutTemplateVersionResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::layout::v1::SetLayoutTemplateSubscriptionResponse,
>
for crate::proto::layout::v1::__buffa::view::SetLayoutTemplateSubscriptionResponseView<
'_,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::layout::v1::SetLayoutTemplateSubscriptionResponse,
>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::SetLayoutTemplateSubscriptionResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionResponse,
>
for crate::proto::layout::v1::__buffa::view::DeleteLayoutTemplateSubscriptionResponseView<
'_,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionResponse,
>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutTemplateSubscriptionResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsResponse,
>
for crate::proto::layout::v1::__buffa::view::ListMyLayoutTemplateSubscriptionsResponseView<
'_,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self, codec)
}
}
impl ::connectrpc::Encodable<
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsResponse,
>
for ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListMyLayoutTemplateSubscriptionsResponseView<
'static,
>,
> {
fn encode(
&self,
codec: ::connectrpc::CodecFormat,
) -> ::std::result::Result<::buffa::bytes::Bytes, ::connectrpc::ConnectError> {
::connectrpc::__codegen::encode_view_body(self.reborrow(), codec)
}
}
pub const LAYOUT_SERVICE_SERVICE_NAME: &str = "layout.v1.LayoutService";
pub const LAYOUT_SERVICE_GET_LAYOUTS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/GetLayouts",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_GET_LAYOUT_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/GetLayout",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_UPSERT_LAYOUT_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/UpsertLayout",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_DELETE_LAYOUT_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/DeleteLayout",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_RESOLVE_LAYOUT_SHARE_TOKEN_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/ResolveLayoutShareToken",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_CREATE_LAYOUT_SHARE_LINK_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/CreateLayoutShareLink",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_REVOKE_LAYOUT_SHARE_LINK_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/RevokeLayoutShareLink",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_LIST_OWNER_PUBLISHED_LAYOUTS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/ListOwnerPublishedLayouts",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_PUBLISH_LAYOUT_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/PublishLayout",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_UNPUBLISH_LAYOUT_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/UnpublishLayout",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_LIST_LAYOUT_TEMPLATE_VERSIONS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/ListLayoutTemplateVersions",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_GET_LAYOUT_TEMPLATE_VERSION_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/GetLayoutTemplateVersion",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_SET_LAYOUT_TEMPLATE_SUBSCRIPTION_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/SetLayoutTemplateSubscription",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_DELETE_LAYOUT_TEMPLATE_SUBSCRIPTION_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/DeleteLayoutTemplateSubscription",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
pub const LAYOUT_SERVICE_LIST_MY_LAYOUT_TEMPLATE_SUBSCRIPTIONS_SPEC: ::connectrpc::Spec = ::connectrpc::Spec::server(
"/layout.v1.LayoutService/ListMyLayoutTemplateSubscriptions",
::connectrpc::StreamType::Unary,
)
.with_idempotency_level(::connectrpc::IdempotencyLevel::Unknown);
#[allow(clippy::type_complexity)]
pub trait LayoutService: Send + Sync + 'static {
fn get_layouts<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::GetLayoutsRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::GetLayoutsResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn get_layout<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::GetLayoutRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::GetLayoutResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn upsert_layout<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::UpsertLayoutRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::UpsertLayoutResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn delete_layout<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::DeleteLayoutRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::DeleteLayoutResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn resolve_layout_share_token<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::ResolveLayoutShareTokenRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::ResolveLayoutShareTokenResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn create_layout_share_link<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::CreateLayoutShareLinkRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::CreateLayoutShareLinkResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn revoke_layout_share_link<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::RevokeLayoutShareLinkRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::RevokeLayoutShareLinkResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn list_owner_published_layouts<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::ListOwnerPublishedLayoutsRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::ListOwnerPublishedLayoutsResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn publish_layout<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::PublishLayoutRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::PublishLayoutResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn unpublish_layout<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::UnpublishLayoutRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::UnpublishLayoutResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn list_layout_template_versions<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::ListLayoutTemplateVersionsRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::ListLayoutTemplateVersionsResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn get_layout_template_version<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::GetLayoutTemplateVersionRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::GetLayoutTemplateVersionResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn set_layout_template_subscription<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::SetLayoutTemplateSubscriptionRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::SetLayoutTemplateSubscriptionResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn delete_layout_template_subscription<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionResponse,
> + Send + use<'a, Self>,
>,
> + Send;
fn list_my_layout_template_subscriptions<'a>(
&'a self,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::ServiceRequest<
'_,
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsRequest,
>,
) -> impl ::std::future::Future<
Output = ::connectrpc::ServiceResult<
impl ::connectrpc::Encodable<
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsResponse,
> + Send + use<'a, Self>,
>,
> + Send;
}
pub trait LayoutServiceExt: LayoutService {
fn register(
self: ::std::sync::Arc<Self>,
router: ::connectrpc::Router,
) -> ::connectrpc::Router;
}
impl<S: LayoutService> LayoutServiceExt for S {
fn register(
self: ::std::sync::Arc<Self>,
router: ::connectrpc::Router,
) -> ::connectrpc::Router {
router
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"GetLayouts",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutsRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::GetLayoutsRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.get_layouts(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::GetLayoutsResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_GET_LAYOUTS_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"GetLayout",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::GetLayoutRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.get_layout(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::GetLayoutResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_GET_LAYOUT_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"UpsertLayout",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UpsertLayoutRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::UpsertLayoutRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.upsert_layout(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::UpsertLayoutResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_UPSERT_LAYOUT_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"DeleteLayout",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::DeleteLayoutRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.delete_layout(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::DeleteLayoutResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_DELETE_LAYOUT_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"ResolveLayoutShareToken",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ResolveLayoutShareTokenRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::ResolveLayoutShareTokenRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.resolve_layout_share_token(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::ResolveLayoutShareTokenResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_RESOLVE_LAYOUT_SHARE_TOKEN_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"CreateLayoutShareLink",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::CreateLayoutShareLinkRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::CreateLayoutShareLinkRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.create_layout_share_link(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::CreateLayoutShareLinkResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_CREATE_LAYOUT_SHARE_LINK_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"RevokeLayoutShareLink",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::RevokeLayoutShareLinkRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::RevokeLayoutShareLinkRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.revoke_layout_share_link(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::RevokeLayoutShareLinkResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_REVOKE_LAYOUT_SHARE_LINK_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"ListOwnerPublishedLayouts",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListOwnerPublishedLayoutsRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::ListOwnerPublishedLayoutsRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.list_owner_published_layouts(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::ListOwnerPublishedLayoutsResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_LIST_OWNER_PUBLISHED_LAYOUTS_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"PublishLayout",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::PublishLayoutRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::PublishLayoutRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.publish_layout(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::PublishLayoutResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_PUBLISH_LAYOUT_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"UnpublishLayout",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UnpublishLayoutRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::UnpublishLayoutRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.unpublish_layout(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::UnpublishLayoutResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_UNPUBLISH_LAYOUT_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"ListLayoutTemplateVersions",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListLayoutTemplateVersionsRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::ListLayoutTemplateVersionsRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.list_layout_template_versions(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::ListLayoutTemplateVersionsResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_LIST_LAYOUT_TEMPLATE_VERSIONS_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"GetLayoutTemplateVersion",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutTemplateVersionRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::GetLayoutTemplateVersionRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.get_layout_template_version(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::GetLayoutTemplateVersionResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_GET_LAYOUT_TEMPLATE_VERSION_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"SetLayoutTemplateSubscription",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::SetLayoutTemplateSubscriptionRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::SetLayoutTemplateSubscriptionRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.set_layout_template_subscription(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::SetLayoutTemplateSubscriptionResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_SET_LAYOUT_TEMPLATE_SUBSCRIPTION_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"DeleteLayoutTemplateSubscription",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutTemplateSubscriptionRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.delete_layout_template_subscription(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_DELETE_LAYOUT_TEMPLATE_SUBSCRIPTION_SPEC)
.route_view(
LAYOUT_SERVICE_SERVICE_NAME,
"ListMyLayoutTemplateSubscriptions",
{
let svc = ::std::sync::Arc::clone(&self);
::connectrpc::view_handler_fn(move |
ctx,
req: ::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListMyLayoutTemplateSubscriptionsRequestView<
'static,
>,
>,
format|
{
let svc = ::std::sync::Arc::clone(&svc);
async move {
let sreq = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsRequest,
>::from_parts(req.reborrow(), req.bytes());
svc.list_my_layout_template_subscriptions(ctx, sreq)
.await?
.encode::<
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsResponse,
>(format)
}
})
},
)
.with_spec(LAYOUT_SERVICE_LIST_MY_LAYOUT_TEMPLATE_SUBSCRIPTIONS_SPEC)
}
}
#[doc(hidden)]
pub struct LayoutServiceRegisterMarker;
impl<S: LayoutService> ::connectrpc::ServiceRegister<LayoutServiceRegisterMarker>
for ::std::sync::Arc<S> {
fn register_service(self, router: ::connectrpc::Router) -> ::connectrpc::Router {
<S as LayoutServiceExt>::register(self, router)
}
}
pub struct LayoutServiceServer<T> {
inner: ::std::sync::Arc<T>,
}
impl<T: LayoutService> LayoutServiceServer<T> {
pub fn new(service: T) -> Self {
Self {
inner: ::std::sync::Arc::new(service),
}
}
pub fn from_arc(inner: ::std::sync::Arc<T>) -> Self {
Self { inner }
}
}
impl<T> Clone for LayoutServiceServer<T> {
fn clone(&self) -> Self {
Self {
inner: ::std::sync::Arc::clone(&self.inner),
}
}
}
impl<T: LayoutService> ::connectrpc::Dispatcher for LayoutServiceServer<T> {
#[inline]
fn lookup(
&self,
path: &str,
) -> Option<::connectrpc::dispatcher::codegen::MethodDescriptor> {
let method = path.strip_prefix("layout.v1.LayoutService/")?;
match method {
"GetLayouts" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_GET_LAYOUTS_SPEC),
)
}
"GetLayout" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_GET_LAYOUT_SPEC),
)
}
"UpsertLayout" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_UPSERT_LAYOUT_SPEC),
)
}
"DeleteLayout" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_DELETE_LAYOUT_SPEC),
)
}
"ResolveLayoutShareToken" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_RESOLVE_LAYOUT_SHARE_TOKEN_SPEC),
)
}
"CreateLayoutShareLink" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_CREATE_LAYOUT_SHARE_LINK_SPEC),
)
}
"RevokeLayoutShareLink" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_REVOKE_LAYOUT_SHARE_LINK_SPEC),
)
}
"ListOwnerPublishedLayouts" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_LIST_OWNER_PUBLISHED_LAYOUTS_SPEC),
)
}
"PublishLayout" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_PUBLISH_LAYOUT_SPEC),
)
}
"UnpublishLayout" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_UNPUBLISH_LAYOUT_SPEC),
)
}
"ListLayoutTemplateVersions" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_LIST_LAYOUT_TEMPLATE_VERSIONS_SPEC),
)
}
"GetLayoutTemplateVersion" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_GET_LAYOUT_TEMPLATE_VERSION_SPEC),
)
}
"SetLayoutTemplateSubscription" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(LAYOUT_SERVICE_SET_LAYOUT_TEMPLATE_SUBSCRIPTION_SPEC),
)
}
"DeleteLayoutTemplateSubscription" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(
LAYOUT_SERVICE_DELETE_LAYOUT_TEMPLATE_SUBSCRIPTION_SPEC,
),
)
}
"ListMyLayoutTemplateSubscriptions" => {
Some(
::connectrpc::dispatcher::codegen::MethodDescriptor::unary(false)
.with_spec(
LAYOUT_SERVICE_LIST_MY_LAYOUT_TEMPLATE_SUBSCRIPTIONS_SPEC,
),
)
}
_ => None,
}
}
fn call_unary(
&self,
path: &str,
ctx: ::connectrpc::RequestContext,
request: ::connectrpc::Payload,
format: ::connectrpc::CodecFormat,
) -> ::connectrpc::dispatcher::codegen::UnaryResult {
let Some(method) = path.strip_prefix("layout.v1.LayoutService/") else {
return ::connectrpc::dispatcher::codegen::unimplemented_unary(path);
};
let _ = (&ctx, &request, &format);
match method {
"GetLayouts" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::GetLayoutsRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::GetLayoutsRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::GetLayoutsRequest,
>::from_parts(&req, &body);
svc.get_layouts(ctx, req)
.await?
.encode::<crate::proto::layout::v1::GetLayoutsResponse>(format)
})
}
"GetLayout" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::GetLayoutRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::GetLayoutRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::GetLayoutRequest,
>::from_parts(&req, &body);
svc.get_layout(ctx, req)
.await?
.encode::<crate::proto::layout::v1::GetLayoutResponse>(format)
})
}
"UpsertLayout" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::UpsertLayoutRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::UpsertLayoutRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::UpsertLayoutRequest,
>::from_parts(&req, &body);
svc.upsert_layout(ctx, req)
.await?
.encode::<crate::proto::layout::v1::UpsertLayoutResponse>(format)
})
}
"DeleteLayout" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::DeleteLayoutRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::DeleteLayoutRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::DeleteLayoutRequest,
>::from_parts(&req, &body);
svc.delete_layout(ctx, req)
.await?
.encode::<crate::proto::layout::v1::DeleteLayoutResponse>(format)
})
}
"ResolveLayoutShareToken" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::ResolveLayoutShareTokenRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::ResolveLayoutShareTokenRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::ResolveLayoutShareTokenRequest,
>::from_parts(&req, &body);
svc.resolve_layout_share_token(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::ResolveLayoutShareTokenResponse,
>(format)
})
}
"CreateLayoutShareLink" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::CreateLayoutShareLinkRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::CreateLayoutShareLinkRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::CreateLayoutShareLinkRequest,
>::from_parts(&req, &body);
svc.create_layout_share_link(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::CreateLayoutShareLinkResponse,
>(format)
})
}
"RevokeLayoutShareLink" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::RevokeLayoutShareLinkRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::RevokeLayoutShareLinkRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::RevokeLayoutShareLinkRequest,
>::from_parts(&req, &body);
svc.revoke_layout_share_link(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::RevokeLayoutShareLinkResponse,
>(format)
})
}
"ListOwnerPublishedLayouts" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::ListOwnerPublishedLayoutsRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::ListOwnerPublishedLayoutsRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::ListOwnerPublishedLayoutsRequest,
>::from_parts(&req, &body);
svc.list_owner_published_layouts(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::ListOwnerPublishedLayoutsResponse,
>(format)
})
}
"PublishLayout" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::PublishLayoutRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::PublishLayoutRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::PublishLayoutRequest,
>::from_parts(&req, &body);
svc.publish_layout(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::PublishLayoutResponse,
>(format)
})
}
"UnpublishLayout" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::UnpublishLayoutRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::UnpublishLayoutRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::UnpublishLayoutRequest,
>::from_parts(&req, &body);
svc.unpublish_layout(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::UnpublishLayoutResponse,
>(format)
})
}
"ListLayoutTemplateVersions" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::ListLayoutTemplateVersionsRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::ListLayoutTemplateVersionsRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::ListLayoutTemplateVersionsRequest,
>::from_parts(&req, &body);
svc.list_layout_template_versions(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::ListLayoutTemplateVersionsResponse,
>(format)
})
}
"GetLayoutTemplateVersion" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::GetLayoutTemplateVersionRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::GetLayoutTemplateVersionRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::GetLayoutTemplateVersionRequest,
>::from_parts(&req, &body);
svc.get_layout_template_version(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::GetLayoutTemplateVersionResponse,
>(format)
})
}
"SetLayoutTemplateSubscription" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::SetLayoutTemplateSubscriptionRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::SetLayoutTemplateSubscriptionRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::SetLayoutTemplateSubscriptionRequest,
>::from_parts(&req, &body);
svc.set_layout_template_subscription(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::SetLayoutTemplateSubscriptionResponse,
>(format)
})
}
"DeleteLayoutTemplateSubscription" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::DeleteLayoutTemplateSubscriptionRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionRequest,
>::from_parts(&req, &body);
svc.delete_layout_template_subscription(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionResponse,
>(format)
})
}
"ListMyLayoutTemplateSubscriptions" => {
let svc = ::std::sync::Arc::clone(&self.inner);
Box::pin(async move {
let body = ::connectrpc::dispatcher::codegen::request_proto_bytes::<
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsRequest,
>(request.encoded()?, format)?;
let req: crate::proto::layout::v1::__buffa::view::ListMyLayoutTemplateSubscriptionsRequestView<
'_,
> = ::connectrpc::dispatcher::codegen::decode_borrowed_request_view(
&body,
)?;
let req = ::connectrpc::ServiceRequest::<
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsRequest,
>::from_parts(&req, &body);
svc.list_my_layout_template_subscriptions(ctx, req)
.await?
.encode::<
crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsResponse,
>(format)
})
}
_ => ::connectrpc::dispatcher::codegen::unimplemented_unary(path),
}
}
fn call_server_streaming(
&self,
path: &str,
ctx: ::connectrpc::RequestContext,
request: ::buffa::bytes::Bytes,
format: ::connectrpc::CodecFormat,
) -> ::connectrpc::dispatcher::codegen::StreamingResult {
let Some(method) = path.strip_prefix("layout.v1.LayoutService/") else {
return ::connectrpc::dispatcher::codegen::unimplemented_streaming(path);
};
let _ = (&ctx, &request, &format);
match method {
_ => ::connectrpc::dispatcher::codegen::unimplemented_streaming(path),
}
}
fn call_client_streaming(
&self,
path: &str,
ctx: ::connectrpc::RequestContext,
requests: ::connectrpc::dispatcher::codegen::RequestStream,
format: ::connectrpc::CodecFormat,
) -> ::connectrpc::dispatcher::codegen::UnaryResult {
let Some(method) = path.strip_prefix("layout.v1.LayoutService/") else {
return ::connectrpc::dispatcher::codegen::unimplemented_unary(path);
};
let _ = (&ctx, &requests, &format);
match method {
_ => ::connectrpc::dispatcher::codegen::unimplemented_unary(path),
}
}
fn call_bidi_streaming(
&self,
path: &str,
ctx: ::connectrpc::RequestContext,
requests: ::connectrpc::dispatcher::codegen::RequestStream,
format: ::connectrpc::CodecFormat,
) -> ::connectrpc::dispatcher::codegen::StreamingResult {
let Some(method) = path.strip_prefix("layout.v1.LayoutService/") else {
return ::connectrpc::dispatcher::codegen::unimplemented_streaming(path);
};
let _ = (&ctx, &requests, &format);
match method {
_ => ::connectrpc::dispatcher::codegen::unimplemented_streaming(path),
}
}
}
#[derive(Clone)]
pub struct LayoutServiceClient<T> {
transport: T,
config: ::connectrpc::client::ClientConfig,
}
impl<T> LayoutServiceClient<T>
where
T: ::connectrpc::client::ClientTransport,
<T::ResponseBody as ::connectrpc::http_body::Body>::Error: ::std::fmt::Display,
{
pub fn new(transport: T, config: ::connectrpc::client::ClientConfig) -> Self {
Self { transport, config }
}
pub fn config(&self) -> &::connectrpc::client::ClientConfig {
&self.config
}
pub fn config_mut(&mut self) -> &mut ::connectrpc::client::ClientConfig {
&mut self.config
}
pub async fn get_layouts(
&self,
request: crate::proto::layout::v1::GetLayoutsRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutsResponseView<'static>,
>,
>,
::connectrpc::ConnectError,
> {
self.get_layouts_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn get_layouts_with_options(
&self,
request: crate::proto::layout::v1::GetLayoutsRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutsResponseView<'static>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"GetLayouts",
request,
options,
)
.await
}
pub async fn get_layout(
&self,
request: crate::proto::layout::v1::GetLayoutRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutResponseView<'static>,
>,
>,
::connectrpc::ConnectError,
> {
self.get_layout_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn get_layout_with_options(
&self,
request: crate::proto::layout::v1::GetLayoutRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutResponseView<'static>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"GetLayout",
request,
options,
)
.await
}
pub async fn upsert_layout(
&self,
request: crate::proto::layout::v1::UpsertLayoutRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UpsertLayoutResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.upsert_layout_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn upsert_layout_with_options(
&self,
request: crate::proto::layout::v1::UpsertLayoutRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UpsertLayoutResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"UpsertLayout",
request,
options,
)
.await
}
pub async fn delete_layout(
&self,
request: crate::proto::layout::v1::DeleteLayoutRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.delete_layout_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn delete_layout_with_options(
&self,
request: crate::proto::layout::v1::DeleteLayoutRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"DeleteLayout",
request,
options,
)
.await
}
pub async fn resolve_layout_share_token(
&self,
request: crate::proto::layout::v1::ResolveLayoutShareTokenRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ResolveLayoutShareTokenResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.resolve_layout_share_token_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn resolve_layout_share_token_with_options(
&self,
request: crate::proto::layout::v1::ResolveLayoutShareTokenRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ResolveLayoutShareTokenResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"ResolveLayoutShareToken",
request,
options,
)
.await
}
pub async fn create_layout_share_link(
&self,
request: crate::proto::layout::v1::CreateLayoutShareLinkRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::CreateLayoutShareLinkResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.create_layout_share_link_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn create_layout_share_link_with_options(
&self,
request: crate::proto::layout::v1::CreateLayoutShareLinkRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::CreateLayoutShareLinkResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"CreateLayoutShareLink",
request,
options,
)
.await
}
pub async fn revoke_layout_share_link(
&self,
request: crate::proto::layout::v1::RevokeLayoutShareLinkRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::RevokeLayoutShareLinkResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.revoke_layout_share_link_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn revoke_layout_share_link_with_options(
&self,
request: crate::proto::layout::v1::RevokeLayoutShareLinkRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::RevokeLayoutShareLinkResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"RevokeLayoutShareLink",
request,
options,
)
.await
}
pub async fn list_owner_published_layouts(
&self,
request: crate::proto::layout::v1::ListOwnerPublishedLayoutsRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListOwnerPublishedLayoutsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.list_owner_published_layouts_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn list_owner_published_layouts_with_options(
&self,
request: crate::proto::layout::v1::ListOwnerPublishedLayoutsRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListOwnerPublishedLayoutsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"ListOwnerPublishedLayouts",
request,
options,
)
.await
}
pub async fn publish_layout(
&self,
request: crate::proto::layout::v1::PublishLayoutRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::PublishLayoutResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.publish_layout_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn publish_layout_with_options(
&self,
request: crate::proto::layout::v1::PublishLayoutRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::PublishLayoutResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"PublishLayout",
request,
options,
)
.await
}
pub async fn unpublish_layout(
&self,
request: crate::proto::layout::v1::UnpublishLayoutRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UnpublishLayoutResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.unpublish_layout_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn unpublish_layout_with_options(
&self,
request: crate::proto::layout::v1::UnpublishLayoutRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::UnpublishLayoutResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"UnpublishLayout",
request,
options,
)
.await
}
pub async fn list_layout_template_versions(
&self,
request: crate::proto::layout::v1::ListLayoutTemplateVersionsRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListLayoutTemplateVersionsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.list_layout_template_versions_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn list_layout_template_versions_with_options(
&self,
request: crate::proto::layout::v1::ListLayoutTemplateVersionsRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListLayoutTemplateVersionsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"ListLayoutTemplateVersions",
request,
options,
)
.await
}
pub async fn get_layout_template_version(
&self,
request: crate::proto::layout::v1::GetLayoutTemplateVersionRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutTemplateVersionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.get_layout_template_version_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn get_layout_template_version_with_options(
&self,
request: crate::proto::layout::v1::GetLayoutTemplateVersionRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::GetLayoutTemplateVersionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"GetLayoutTemplateVersion",
request,
options,
)
.await
}
pub async fn set_layout_template_subscription(
&self,
request: crate::proto::layout::v1::SetLayoutTemplateSubscriptionRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::SetLayoutTemplateSubscriptionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.set_layout_template_subscription_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn set_layout_template_subscription_with_options(
&self,
request: crate::proto::layout::v1::SetLayoutTemplateSubscriptionRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::SetLayoutTemplateSubscriptionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"SetLayoutTemplateSubscription",
request,
options,
)
.await
}
pub async fn delete_layout_template_subscription(
&self,
request: crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutTemplateSubscriptionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.delete_layout_template_subscription_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn delete_layout_template_subscription_with_options(
&self,
request: crate::proto::layout::v1::DeleteLayoutTemplateSubscriptionRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::DeleteLayoutTemplateSubscriptionResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"DeleteLayoutTemplateSubscription",
request,
options,
)
.await
}
pub async fn list_my_layout_template_subscriptions(
&self,
request: crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsRequest,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListMyLayoutTemplateSubscriptionsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
self.list_my_layout_template_subscriptions_with_options(
request,
::connectrpc::client::CallOptions::default(),
)
.await
}
pub async fn list_my_layout_template_subscriptions_with_options(
&self,
request: crate::proto::layout::v1::ListMyLayoutTemplateSubscriptionsRequest,
options: ::connectrpc::client::CallOptions,
) -> Result<
::connectrpc::client::UnaryResponse<
::buffa::view::OwnedView<
crate::proto::layout::v1::__buffa::view::ListMyLayoutTemplateSubscriptionsResponseView<
'static,
>,
>,
>,
::connectrpc::ConnectError,
> {
::connectrpc::client::call_unary(
&self.transport,
&self.config,
LAYOUT_SERVICE_SERVICE_NAME,
"ListMyLayoutTemplateSubscriptions",
request,
options,
)
.await
}
}