// This file is @generated by prost-build.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IngestSource {
    #[prost(oneof = "ingest_source::Source", tags = "1, 2, 3")]
    pub source: ::core::option::Option<ingest_source::Source>,
}
/// Nested message and enum types in `IngestSource`.
pub mod ingest_source {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Source {
        #[prost(message, tag = "1")]
        S3(super::S3IngestSource),
        #[prost(message, tag = "2")]
        Gcs(super::GcsIngestSource),
        #[prost(message, tag = "3")]
        PresignedFile(super::PresignedFileIngestSource),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3IngestSource {
    #[prost(string, tag = "1")]
    pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GcsIngestSource {
    #[prost(string, tag = "1")]
    pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PresignedFileIngestSource {
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestampMetadata {
    #[prost(string, tag = "1")]
    pub column: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub r#type: ::core::option::Option<super::super::types::time::TimestampType>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContainerizedExtractor {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workspace_rid: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "4")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "5")]
    pub created_at: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    #[prost(bool, tag = "6")]
    pub is_archived: bool,
    #[prost(message, optional, tag = "7")]
    pub active_container_image: ::core::option::Option<
        super::super::registry::v1::ContainerImage,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateContainerizedExtractorRequest {
    #[prost(string, tag = "1")]
    pub workspace_rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateContainerizedExtractorResponse {
    #[prost(message, optional, tag = "1")]
    pub extractor: ::core::option::Option<ContainerizedExtractor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetContainerizedExtractorRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workspace_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetContainerizedExtractorResponse {
    #[prost(message, optional, tag = "1")]
    pub extractor: ::core::option::Option<ContainerizedExtractor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateContainerizedExtractorRequest {
    #[prost(string, tag = "1")]
    pub rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workspace_rid: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "3")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "4")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(bool, optional, tag = "5")]
    pub is_archived: ::core::option::Option<bool>,
    #[prost(string, optional, tag = "6")]
    pub active_container_image_rid: ::core::option::Option<
        ::prost::alloc::string::String,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateContainerizedExtractorResponse {
    #[prost(message, optional, tag = "1")]
    pub extractor: ::core::option::Option<ContainerizedExtractor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchContainerizedExtractorsRequest {
    #[prost(string, tag = "1")]
    pub workspace_rid: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub include_archived: bool,
    #[prost(int32, tag = "3")]
    pub page_size: i32,
    #[prost(string, optional, tag = "4")]
    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "5")]
    pub file_extension: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchContainerizedExtractorsResponse {
    #[prost(message, repeated, tag = "1")]
    pub extractors: ::prost::alloc::vec::Vec<ContainerizedExtractor>,
    #[prost(string, optional, tag = "2")]
    pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
/// Generated client implementations.
pub mod containerized_extractor_service_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    #[derive(Debug, Clone)]
    pub struct ContainerizedExtractorServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl ContainerizedExtractorServiceClient<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> ContainerizedExtractorServiceClient<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,
        ) -> ContainerizedExtractorServiceClient<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,
        {
            ContainerizedExtractorServiceClient::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
        }
        pub async fn create_containerized_extractor(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateContainerizedExtractorRequest>,
        ) -> std::result::Result<
            tonic::Response<super::CreateContainerizedExtractorResponse>,
            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.ingest.v2.ContainerizedExtractorService/CreateContainerizedExtractor",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.ingest.v2.ContainerizedExtractorService",
                        "CreateContainerizedExtractor",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        pub async fn get_containerized_extractor(
            &mut self,
            request: impl tonic::IntoRequest<super::GetContainerizedExtractorRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetContainerizedExtractorResponse>,
            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.ingest.v2.ContainerizedExtractorService/GetContainerizedExtractor",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.ingest.v2.ContainerizedExtractorService",
                        "GetContainerizedExtractor",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        pub async fn update_containerized_extractor(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateContainerizedExtractorRequest>,
        ) -> std::result::Result<
            tonic::Response<super::UpdateContainerizedExtractorResponse>,
            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.ingest.v2.ContainerizedExtractorService/UpdateContainerizedExtractor",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.ingest.v2.ContainerizedExtractorService",
                        "UpdateContainerizedExtractor",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        pub async fn search_containerized_extractors(
            &mut self,
            request: impl tonic::IntoRequest<super::SearchContainerizedExtractorsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::SearchContainerizedExtractorsResponse>,
            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.ingest.v2.ContainerizedExtractorService/SearchContainerizedExtractors",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.ingest.v2.ContainerizedExtractorService",
                        "SearchContainerizedExtractors",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContainerizedIngestItem {
    #[prost(string, tag = "1")]
    pub extractor_rid: ::prost::alloc::string::String,
    #[prost(map = "string, message", tag = "2")]
    pub sources: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        IngestSource,
    >,
    #[prost(map = "string, string", tag = "3")]
    pub arguments: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(message, optional, tag = "4")]
    pub timestamp_metadata: ::core::option::Option<TimestampMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileIngestItem {
    #[prost(message, optional, tag = "1")]
    pub source: ::core::option::Option<IngestSource>,
    #[prost(message, optional, tag = "2")]
    pub ingest: ::core::option::Option<FileIngestOptions>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileIngestOptions {
    #[prost(message, optional, tag = "1")]
    pub timestamp_metadata: ::core::option::Option<TimestampMetadata>,
    #[prost(map = "string, string", tag = "2")]
    pub units: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(string, optional, tag = "3")]
    pub channel_prefix: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(oneof = "file_ingest_options::Ingest", tags = "4, 5, 6")]
    pub ingest: ::core::option::Option<file_ingest_options::Ingest>,
}
/// Nested message and enum types in `FileIngestOptions`.
pub mod file_ingest_options {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Ingest {
        #[prost(message, tag = "4")]
        Csv(super::CsvIngestOptions),
        #[prost(message, tag = "5")]
        Parquet(super::ParquetIngestOptions),
        #[prost(message, tag = "6")]
        Avro(super::AvroIngestOptions),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CsvIngestOptions {
    #[prost(message, optional, tag = "1")]
    pub format: ::core::option::Option<CsvFormat>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParquetIngestOptions {
    #[prost(message, optional, tag = "1")]
    pub format: ::core::option::Option<ParquetFormat>,
    #[prost(bool, tag = "2")]
    pub is_archive: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AvroIngestOptions {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CsvFormat {
    #[prost(oneof = "csv_format::Format", tags = "1, 2")]
    pub format: ::core::option::Option<csv_format::Format>,
}
/// Nested message and enum types in `CsvFormat`.
pub mod csv_format {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Format {
        #[prost(message, tag = "1")]
        Wide(super::WideFormat),
        #[prost(message, tag = "2")]
        Long(super::LongFormat),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParquetFormat {
    #[prost(oneof = "parquet_format::Format", tags = "1, 2")]
    pub format: ::core::option::Option<parquet_format::Format>,
}
/// Nested message and enum types in `ParquetFormat`.
pub mod parquet_format {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Format {
        #[prost(message, tag = "1")]
        Wide(super::WideFormat),
        #[prost(message, tag = "2")]
        Long(super::LongFormat),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WideFormat {
    #[prost(map = "string, string", tag = "1")]
    pub tag_columns: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(string, repeated, tag = "2")]
    pub exclude_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LongFormat {
    #[prost(string, optional, tag = "1")]
    pub channel_column: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "2")]
    pub value_column: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub tags_column: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogIngestItem {
    #[prost(message, optional, tag = "1")]
    pub source: ::core::option::Option<IngestSource>,
    #[prost(string, optional, tag = "2")]
    pub channel: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub timestamp_metadata: ::core::option::Option<TimestampMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PointCloudIngestItem {
    #[prost(message, optional, tag = "1")]
    pub source: ::core::option::Option<IngestSource>,
    #[prost(message, optional, tag = "2")]
    pub ingest: ::core::option::Option<PointCloudIngestOptions>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PointCloudIngestOptions {
    #[prost(message, optional, tag = "1")]
    pub sensor_metadata: ::core::option::Option<PointCloudSensorMetadata>,
    #[prost(string, tag = "2")]
    pub channel: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PointCloudSensorMetadata {
    #[prost(map = "string, string", tag = "1")]
    pub properties: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoIngestItem {
    #[prost(message, optional, tag = "1")]
    pub source: ::core::option::Option<IngestSource>,
    #[prost(message, optional, tag = "2")]
    pub ingest: ::core::option::Option<VideoIngestOptions>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoIngestOptions {
    #[prost(message, optional, tag = "1")]
    pub timestamp_manifest: ::core::option::Option<VideoTimestampManifest>,
    #[prost(string, tag = "2")]
    pub channel: ::prost::alloc::string::String,
    #[prost(bool, optional, tag = "3")]
    pub overwrite_segments: ::core::option::Option<bool>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VideoTimestampManifest {
    #[prost(oneof = "video_timestamp_manifest::Manifest", tags = "1, 2")]
    pub manifest: ::core::option::Option<video_timestamp_manifest::Manifest>,
}
/// Nested message and enum types in `VideoTimestampManifest`.
pub mod video_timestamp_manifest {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Manifest {
        #[prost(message, tag = "1")]
        NoManifest(super::NoTimestampManifest),
        #[prost(message, tag = "2")]
        TimestampManifestFiles(super::TimestampManifestFiles),
    }
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NoTimestampManifest {
    #[prost(message, optional, tag = "1")]
    pub starting_timestamp: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
    #[prost(message, optional, tag = "2")]
    pub scale_parameter: ::core::option::Option<ScaleParameter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestampManifestFiles {
    #[prost(message, repeated, tag = "1")]
    pub sources: ::prost::alloc::vec::Vec<IngestSource>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ScaleParameter {
    #[prost(oneof = "scale_parameter::ScaleParameter", tags = "1, 2, 3")]
    pub scale_parameter: ::core::option::Option<scale_parameter::ScaleParameter>,
}
/// Nested message and enum types in `ScaleParameter`.
pub mod scale_parameter {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum ScaleParameter {
        #[prost(double, tag = "1")]
        TrueFrameRate(f64),
        #[prost(message, tag = "2")]
        EndingTimestamp(super::super::super::super::google::protobuf::Timestamp),
        #[prost(double, tag = "3")]
        ScaleFactor(f64),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IngestRequest {
    #[prost(string, tag = "1")]
    pub dataset_rid: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub runs_to_expand: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(message, repeated, tag = "3")]
    pub items: ::prost::alloc::vec::Vec<IngestItem>,
    #[prost(map = "string, string", tag = "4")]
    pub tags: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IngestResponse {
    #[prost(string, tag = "1")]
    pub ingest_job_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IngestItem {
    #[prost(map = "string, string", tag = "1")]
    pub tags: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(oneof = "ingest_item::Item", tags = "2, 3, 4, 5, 6")]
    pub item: ::core::option::Option<ingest_item::Item>,
}
/// Nested message and enum types in `IngestItem`.
pub mod ingest_item {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Item {
        #[prost(message, tag = "2")]
        File(super::FileIngestItem),
        #[prost(message, tag = "3")]
        Log(super::LogIngestItem),
        #[prost(message, tag = "4")]
        Containerized(super::ContainerizedIngestItem),
        #[prost(message, tag = "5")]
        Video(super::VideoIngestItem),
        #[prost(message, tag = "6")]
        PointCloud(super::PointCloudIngestItem),
    }
}
/// Generated client implementations.
pub mod ingest_service_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    #[derive(Debug, Clone)]
    pub struct IngestServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl IngestServiceClient<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> IngestServiceClient<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,
        ) -> IngestServiceClient<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,
        {
            IngestServiceClient::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
        }
        pub async fn ingest(
            &mut self,
            request: impl tonic::IntoRequest<super::IngestRequest>,
        ) -> std::result::Result<tonic::Response<super::IngestResponse>, 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.ingest.v2.IngestService/Ingest",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("nominal.ingest.v2.IngestService", "Ingest"));
            self.inner.unary(req, path, codec).await
        }
    }
}
