// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateConnectAppRequest {
    /// separate from the bundle title to allow for creating empty apps
    #[prost(string, tag = "1")]
    pub display_name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "3")]
    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, string", tag = "4")]
    pub properties: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(bool, optional, tag = "5")]
    pub is_published: ::core::option::Option<bool>,
    #[prost(string, tag = "6")]
    pub workspace: ::prost::alloc::string::String,
    /// optional to allow for creating "empty" in-progress connect apps
    #[prost(message, optional, tag = "7")]
    pub bundle: ::core::option::Option<ConnectAppBundle>,
    #[prost(string, tag = "8")]
    pub commit_message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateConnectAppResponse {
    #[prost(message, optional, tag = "1")]
    pub app: ::core::option::Option<ConnectApp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateConnectAppMetadataRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub display_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "4")]
    pub labels: ::core::option::Option<super::super::types::LabelUpdateWrapper>,
    #[prost(message, optional, tag = "5")]
    pub properties: ::core::option::Option<super::super::types::PropertyUpdateWrapper>,
    #[prost(bool, optional, tag = "6")]
    pub is_archived: ::core::option::Option<bool>,
    #[prost(bool, optional, tag = "7")]
    pub is_published: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectAppBundle {
    #[prost(message, optional, tag = "1")]
    pub s3_path: ::core::option::Option<super::super::types::Handle>,
    #[prost(message, optional, tag = "2")]
    pub metadata: ::core::option::Option<ConnectAppBundleMetadata>,
}
/// wrapper message for metadata that will probably be extended in the future
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectAppBundleMetadata {
    #[prost(string, tag = "1")]
    pub title: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub contains_experimental_features: bool,
    #[prost(string, tag = "3")]
    pub sha256_checksum: ::prost::alloc::string::String,
    /// name of the .connect file inside the bundle. Will default to app.connect
    #[prost(string, optional, tag = "4")]
    pub connect_file_path: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectAppSearchQuery {
    #[prost(oneof = "connect_app_search_query::Query", tags = "1, 2, 3, 4, 5, 6, 7")]
    pub query: ::core::option::Option<connect_app_search_query::Query>,
}
/// Nested message and enum types in `ConnectAppSearchQuery`.
pub mod connect_app_search_query {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ConnectAppSearchAndQuery {
        #[prost(message, repeated, tag = "1")]
        pub queries: ::prost::alloc::vec::Vec<super::ConnectAppSearchQuery>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ConnectAppSearchOrQuery {
        #[prost(message, repeated, tag = "1")]
        pub queries: ::prost::alloc::vec::Vec<super::ConnectAppSearchQuery>,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Query {
        #[prost(string, tag = "1")]
        SearchText(::prost::alloc::string::String),
        #[prost(string, tag = "2")]
        Label(::prost::alloc::string::String),
        #[prost(message, tag = "3")]
        Property(super::super::super::types::Property),
        #[prost(message, tag = "4")]
        And(ConnectAppSearchAndQuery),
        #[prost(message, tag = "5")]
        Or(ConnectAppSearchOrQuery),
        #[prost(string, tag = "6")]
        Workspace(::prost::alloc::string::String),
        #[prost(bool, tag = "7")]
        IsArchived(bool),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectAppMetadata {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub display_name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "4")]
    pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, string", tag = "5")]
    pub properties: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(bool, tag = "6")]
    pub is_archived: bool,
    #[prost(bool, tag = "7")]
    pub is_published: bool,
    #[prost(message, optional, tag = "8")]
    pub created_at: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    #[prost(string, tag = "9")]
    pub created_by: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "10")]
    pub updated_at: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    #[prost(string, tag = "11")]
    pub workspace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectApp {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub commit: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub metadata: ::core::option::Option<ConnectAppMetadata>,
    #[prost(message, optional, tag = "4")]
    pub bundle: ::core::option::Option<ConnectAppBundle>,
    #[prost(uint64, tag = "5")]
    pub version_number: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectAppRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub branch_or_commit: ::core::option::Option<
        super::super::versioning::v1::BranchOrCommit,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectAppBundleDownloadUrlRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub branch_or_commit: ::core::option::Option<
        super::super::versioning::v1::BranchOrCommit,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectAppBundleDownloadUrlResponse {
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectAppResponse {
    #[prost(message, optional, tag = "1")]
    pub app: ::core::option::Option<ConnectApp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateConnectAppMetadataResponse {
    #[prost(message, optional, tag = "1")]
    pub app_metadata: ::core::option::Option<ConnectAppMetadata>,
}
/// only allow commits to the main branch
/// no latest commit id field to bypass conflict detection
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub bundle: ::core::option::Option<ConnectAppBundle>,
    #[prost(string, tag = "3")]
    pub message: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitResponse {
    #[prost(message, optional, tag = "1")]
    pub app: ::core::option::Option<ConnectApp>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SearchConnectAppsOptions {
    /// default is true
    #[prost(bool, optional, tag = "1")]
    pub is_descending: ::core::option::Option<bool>,
    /// default is title
    #[prost(enumeration = "SearchConnectAppsSortField", optional, tag = "2")]
    pub sort_field: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchConnectAppsRequest {
    #[prost(message, optional, tag = "1")]
    pub query: ::core::option::Option<ConnectAppSearchQuery>,
    #[prost(message, optional, tag = "2")]
    pub options: ::core::option::Option<SearchConnectAppsOptions>,
    #[prost(int32, optional, tag = "3")]
    pub page_size: ::core::option::Option<i32>,
    #[prost(string, optional, tag = "4")]
    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchConnectAppsResponse {
    #[prost(message, repeated, tag = "1")]
    pub app_metadata: ::prost::alloc::vec::Vec<ConnectAppMetadata>,
    #[prost(string, optional, tag = "2")]
    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveConnectAppsRequest {
    #[prost(string, repeated, tag = "1")]
    pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnarchiveConnectAppsRequest {
    #[prost(string, repeated, tag = "1")]
    pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveConnectAppsResponse {
    #[prost(string, repeated, tag = "1")]
    pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnarchiveConnectAppsResponse {
    #[prost(string, repeated, tag = "1")]
    pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SearchConnectAppsSortField {
    Unspecified = 0,
    Title = 1,
    CreatedAt = 2,
    DisplayName = 3,
}
impl SearchConnectAppsSortField {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "SEARCH_CONNECT_APPS_SORT_FIELD_UNSPECIFIED",
            Self::Title => "SEARCH_CONNECT_APPS_SORT_FIELD_TITLE",
            Self::CreatedAt => "SEARCH_CONNECT_APPS_SORT_FIELD_CREATED_AT",
            Self::DisplayName => "SEARCH_CONNECT_APPS_SORT_FIELD_DISPLAY_NAME",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SEARCH_CONNECT_APPS_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
            "SEARCH_CONNECT_APPS_SORT_FIELD_TITLE" => Some(Self::Title),
            "SEARCH_CONNECT_APPS_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
            "SEARCH_CONNECT_APPS_SORT_FIELD_DISPLAY_NAME" => Some(Self::DisplayName),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ConnectAppsServiceError {
    Unspecified = 0,
    AppNotFound = 1,
    CommitNotFound = 2,
    CannotCommitToArchivedConnectApp = 3,
    InvalidSearchToken = 4,
    MissingBundle = 5,
}
impl ConnectAppsServiceError {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "CONNECT_APPS_SERVICE_ERROR_UNSPECIFIED",
            Self::AppNotFound => "CONNECT_APPS_SERVICE_ERROR_APP_NOT_FOUND",
            Self::CommitNotFound => "CONNECT_APPS_SERVICE_ERROR_COMMIT_NOT_FOUND",
            Self::CannotCommitToArchivedConnectApp => {
                "CONNECT_APPS_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_CONNECT_APP"
            }
            Self::InvalidSearchToken => "CONNECT_APPS_SERVICE_ERROR_INVALID_SEARCH_TOKEN",
            Self::MissingBundle => "CONNECT_APPS_SERVICE_ERROR_MISSING_BUNDLE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CONNECT_APPS_SERVICE_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
            "CONNECT_APPS_SERVICE_ERROR_APP_NOT_FOUND" => Some(Self::AppNotFound),
            "CONNECT_APPS_SERVICE_ERROR_COMMIT_NOT_FOUND" => Some(Self::CommitNotFound),
            "CONNECT_APPS_SERVICE_ERROR_CANNOT_COMMIT_TO_ARCHIVED_CONNECT_APP" => {
                Some(Self::CannotCommitToArchivedConnectApp)
            }
            "CONNECT_APPS_SERVICE_ERROR_INVALID_SEARCH_TOKEN" => {
                Some(Self::InvalidSearchToken)
            }
            "CONNECT_APPS_SERVICE_ERROR_MISSING_BUNDLE" => Some(Self::MissingBundle),
            _ => None,
        }
    }
}
/// Generated client implementations.
pub mod connect_apps_service_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Service for creating and managing Connect Apps
    #[derive(Debug, Clone)]
    pub struct ConnectAppsServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl ConnectAppsServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> ConnectAppsServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::Body>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> ConnectAppsServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::Body>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::Body>,
            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
        {
            ConnectAppsServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Create a new Connect App, either with a bundle file or as an empty app
        pub async fn create_connect_app(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateConnectAppRequest>,
        ) -> std::result::Result<
            tonic::Response<super::CreateConnectAppResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/CreateConnectApp",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "CreateConnectApp",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get a Connect App by its RID
        pub async fn get_connect_app(
            &mut self,
            request: impl tonic::IntoRequest<super::GetConnectAppRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetConnectAppResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/GetConnectApp",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "GetConnectApp",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Update metadata fields of a Connect App
        pub async fn update_connect_app_metadata(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateConnectAppMetadataRequest>,
        ) -> std::result::Result<
            tonic::Response<super::UpdateConnectAppMetadataResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/UpdateConnectAppMetadata",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "UpdateConnectAppMetadata",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Commit a bundle to the main branch
        pub async fn commit(
            &mut self,
            request: impl tonic::IntoRequest<super::CommitRequest>,
        ) -> std::result::Result<tonic::Response<super::CommitResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/Commit",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("nominal.connect.v1.ConnectAppsService", "Commit"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Searches for Connect Apps, returning paged results
        pub async fn search_connect_apps(
            &mut self,
            request: impl tonic::IntoRequest<super::SearchConnectAppsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::SearchConnectAppsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/SearchConnectApps",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "SearchConnectApps",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Archive Connect Apps
        pub async fn archive_connect_apps(
            &mut self,
            request: impl tonic::IntoRequest<super::ArchiveConnectAppsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ArchiveConnectAppsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/ArchiveConnectApps",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "ArchiveConnectApps",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Unarchive Connect Apps
        pub async fn unarchive_connect_apps(
            &mut self,
            request: impl tonic::IntoRequest<super::UnarchiveConnectAppsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::UnarchiveConnectAppsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/UnarchiveConnectApps",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "UnarchiveConnectApps",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get a pre-signed URL for downloading the bundle of a Connect App at a specific commit or the latest commit on the main branch
        pub async fn get_connect_app_bundle_download_url(
            &mut self,
            request: impl tonic::IntoRequest<
                super::GetConnectAppBundleDownloadUrlRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::GetConnectAppBundleDownloadUrlResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.connect.v1.ConnectAppsService/GetConnectAppBundleDownloadUrl",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.connect.v1.ConnectAppsService",
                        "GetConnectAppBundleDownloadUrl",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
