#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IngestSource {
#[prost(oneof = "ingest_source::Source", tags = "1, 2, 3, 4")]
pub source: ::core::option::Option<ingest_source::Source>,
}
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),
#[prost(message, tag = "4")]
FileStore(super::FileStoreIngestSource),
}
}
#[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 FileStoreIngestSource {
#[prost(string, tag = "1")]
pub file_revision_rid: ::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::v2::ContainerImage,
>,
#[prost(enumeration = "ExtractorOrigin", tag = "8")]
pub origin: i32,
#[prost(string, optional, tag = "9")]
pub catalog_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(map = "string, string", tag = "10")]
pub properties: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, repeated, tag = "11")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[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>,
#[prost(map = "string, string", tag = "4")]
pub properties: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, repeated, tag = "5")]
pub labels: ::prost::alloc::vec::Vec<::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,
>,
#[prost(message, optional, tag = "7")]
pub properties: ::core::option::Option<super::super::types::PropertyUpdateWrapper>,
#[prost(message, optional, tag = "8")]
pub labels: ::core::option::Option<super::super::types::LabelUpdateWrapper>,
}
#[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 ArchiveContainerizedExtractorRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub workspace_rid: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ArchiveContainerizedExtractorResponse {}
#[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>,
#[prost(map = "string, string", tag = "6")]
pub properties: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, repeated, tag = "7")]
pub labels: ::prost::alloc::vec::Vec<::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>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ExtractorOrigin {
Unspecified = 0,
Customer = 1,
FirstParty = 2,
}
impl ExtractorOrigin {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "EXTRACTOR_ORIGIN_UNSPECIFIED",
Self::Customer => "EXTRACTOR_ORIGIN_CUSTOMER",
Self::FirstParty => "EXTRACTOR_ORIGIN_FIRST_PARTY",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EXTRACTOR_ORIGIN_UNSPECIFIED" => Some(Self::Unspecified),
"EXTRACTOR_ORIGIN_CUSTOMER" => Some(Self::Customer),
"EXTRACTOR_ORIGIN_FIRST_PARTY" => Some(Self::FirstParty),
_ => None,
}
}
}
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> {
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),
)
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[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 archive_containerized_extractor(
&mut self,
request: impl tonic::IntoRequest<super::ArchiveContainerizedExtractorRequest>,
) -> std::result::Result<
tonic::Response<super::ArchiveContainerizedExtractorResponse>,
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/ArchiveContainerizedExtractor",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.ingest.v2.ContainerizedExtractorService",
"ArchiveContainerizedExtractor",
),
);
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(map = "string, string", tag = "7")]
pub channel_name_overrides: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(oneof = "file_ingest_options::Ingest", tags = "4, 5, 6")]
pub ingest: ::core::option::Option<file_ingest_options::Ingest>,
}
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>,
#[prost(int32, optional, tag = "4")]
pub header_row: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "5")]
pub data_row: ::core::option::Option<i32>,
#[prost(int32, optional, tag = "6")]
pub units_row: ::core::option::Option<i32>,
}
#[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>,
}
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>,
}
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>,
#[prost(string, optional, tag = "4")]
pub message_field: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct McapIngestItem {
#[prost(message, optional, tag = "1")]
pub source: ::core::option::Option<IngestSource>,
#[prost(message, optional, tag = "2")]
pub channels: ::core::option::Option<McapChannelSelection>,
#[prost(bool, tag = "3")]
pub ignore_invalid_topics: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct McapChannelSelection {
#[prost(oneof = "mcap_channel_selection::Selection", tags = "1, 2")]
pub selection: ::core::option::Option<mcap_channel_selection::Selection>,
}
pub mod mcap_channel_selection {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Selection {
#[prost(message, tag = "1")]
IncludeTopics(super::McapTopicNames),
#[prost(message, tag = "2")]
ExcludeTopics(super::McapTopicNames),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct McapTopicNames {
#[prost(string, repeated, tag = "1")]
pub topics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataflashIngestItem {
#[prost(message, optional, tag = "1")]
pub source: ::core::option::Option<IngestSource>,
}
#[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, 3")]
pub manifest: ::core::option::Option<video_timestamp_manifest::Manifest>,
}
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),
#[prost(message, tag = "3")]
Mcap(super::McapTimestampManifest),
}
}
#[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, PartialEq, ::prost::Message)]
pub struct McapTimestampManifest {
#[prost(message, optional, tag = "1")]
pub channel_locator: ::core::option::Option<McapChannelLocator>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct McapChannelLocator {
#[prost(oneof = "mcap_channel_locator::Locator", tags = "1, 2")]
pub locator: ::core::option::Option<mcap_channel_locator::Locator>,
}
pub mod mcap_channel_locator {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Locator {
#[prost(string, tag = "1")]
Topic(::prost::alloc::string::String),
#[prost(int32, tag = "2")]
Id(i32),
}
}
#[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>,
}
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, 7, 8")]
pub item: ::core::option::Option<ingest_item::Item>,
}
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),
#[prost(message, tag = "7")]
Mcap(super::McapIngestItem),
#[prost(message, tag = "8")]
Dataflash(super::DataflashIngestItem),
}
}
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> {
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))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[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
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NativeExtractor {
#[prost(string, tag = "1")]
pub catalog_id: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub available_versions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub installation: ::core::option::Option<ContainerizedExtractor>,
#[prost(string, optional, tag = "4")]
pub desired_version: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "5")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, optional, tag = "6")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNativeExtractorsRequest {
#[prost(string, tag = "1")]
pub workspace_rid: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, optional, tag = "3")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNativeExtractorsResponse {
#[prost(message, repeated, tag = "1")]
pub extractors: ::prost::alloc::vec::Vec<NativeExtractor>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EnableNativeExtractorRequest {
#[prost(string, tag = "1")]
pub workspace_rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub catalog_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EnableNativeExtractorResponse {
#[prost(message, optional, tag = "1")]
pub extractor: ::core::option::Option<NativeExtractor>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DisableNativeExtractorRequest {
#[prost(string, tag = "1")]
pub workspace_rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub catalog_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DisableNativeExtractorResponse {}
pub mod native_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 NativeExtractorServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl NativeExtractorServiceClient<tonic::transport::Channel> {
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> NativeExtractorServiceClient<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,
) -> NativeExtractorServiceClient<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,
{
NativeExtractorServiceClient::new(
InterceptedService::new(inner, interceptor),
)
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[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 list_native_extractors(
&mut self,
request: impl tonic::IntoRequest<super::ListNativeExtractorsRequest>,
) -> std::result::Result<
tonic::Response<super::ListNativeExtractorsResponse>,
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.NativeExtractorService/ListNativeExtractors",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.ingest.v2.NativeExtractorService",
"ListNativeExtractors",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn enable_native_extractor(
&mut self,
request: impl tonic::IntoRequest<super::EnableNativeExtractorRequest>,
) -> std::result::Result<
tonic::Response<super::EnableNativeExtractorResponse>,
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.NativeExtractorService/EnableNativeExtractor",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.ingest.v2.NativeExtractorService",
"EnableNativeExtractor",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn disable_native_extractor(
&mut self,
request: impl tonic::IntoRequest<super::DisableNativeExtractorRequest>,
) -> std::result::Result<
tonic::Response<super::DisableNativeExtractorResponse>,
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.NativeExtractorService/DisableNativeExtractor",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.ingest.v2.NativeExtractorService",
"DisableNativeExtractor",
),
);
self.inner.unary(req, path, codec).await
}
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeRange {
#[prost(message, optional, tag = "1")]
pub start: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
#[prost(message, optional, tag = "2")]
pub end: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomSourceAttribution {
#[prost(string, tag = "1")]
pub source_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataConnectorSourceAttribution {
#[prost(string, tag = "1")]
pub data_connector_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MeshSourceAttribution {
#[prost(string, tag = "1")]
pub source_dataset_rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub source_org_rid: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub origin_source_label: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSourceAttribution {
#[prost(oneof = "streaming_source_attribution::Source", tags = "1, 2, 3")]
pub source: ::core::option::Option<streaming_source_attribution::Source>,
}
pub mod streaming_source_attribution {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Source {
#[prost(message, tag = "1")]
Mesh(super::MeshSourceAttribution),
#[prost(message, tag = "2")]
DataConnector(super::DataConnectorSourceAttribution),
#[prost(message, tag = "3")]
Custom(super::CustomSourceAttribution),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSession {
#[prost(string, tag = "1")]
pub streaming_session_rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub dataset_rid: ::prost::alloc::string::String,
#[prost(enumeration = "StreamingSessionStatus", tag = "3")]
pub status: i32,
#[prost(message, optional, tag = "4")]
pub source: ::core::option::Option<StreamingSourceAttribution>,
#[prost(message, optional, tag = "5")]
pub data_bounds: ::core::option::Option<TimeRange>,
#[prost(int64, tag = "6")]
pub points_count: i64,
#[prost(message, optional, tag = "7")]
pub created_at: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
#[prost(message, optional, tag = "8")]
pub last_seen_at: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
#[prost(message, optional, tag = "9")]
pub completed_at: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingDatasetRidsFilter {
#[prost(string, repeated, tag = "1")]
pub dataset_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExactStreamingSourceFilter {
#[prost(string, tag = "1")]
pub dataset_rid: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub source: ::core::option::Option<StreamingSourceAttribution>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StreamingSessionDataBoundsFilter {
#[prost(message, optional, tag = "1")]
pub start: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
#[prost(message, optional, tag = "2")]
pub end: ::core::option::Option<super::super::super::google::protobuf::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingWorkspaceFilter {
#[prost(string, tag = "1")]
pub workspace_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSessionAndFilter {
#[prost(message, repeated, tag = "1")]
pub filters: ::prost::alloc::vec::Vec<StreamingSessionSearchFilter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSessionOrFilter {
#[prost(message, repeated, tag = "1")]
pub filters: ::prost::alloc::vec::Vec<StreamingSessionSearchFilter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSessionNotFilter {
#[prost(message, optional, boxed, tag = "1")]
pub filter: ::core::option::Option<
::prost::alloc::boxed::Box<StreamingSessionSearchFilter>,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSessionSearchFilter {
#[prost(
oneof = "streaming_session_search_filter::Filter",
tags = "1, 2, 3, 4, 5, 6, 7"
)]
pub filter: ::core::option::Option<streaming_session_search_filter::Filter>,
}
pub mod streaming_session_search_filter {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Filter {
#[prost(message, tag = "1")]
DatasetRids(super::StreamingDatasetRidsFilter),
#[prost(message, tag = "2")]
Source(super::ExactStreamingSourceFilter),
#[prost(message, tag = "3")]
DataBoundsOverlap(super::StreamingSessionDataBoundsFilter),
#[prost(message, tag = "4")]
Workspace(super::StreamingWorkspaceFilter),
#[prost(message, tag = "5")]
And(super::StreamingSessionAndFilter),
#[prost(message, tag = "6")]
Or(super::StreamingSessionOrFilter),
#[prost(message, tag = "7")]
Not(::prost::alloc::boxed::Box<super::StreamingSessionNotFilter>),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StreamingSessionSortOptions {
#[prost(enumeration = "StreamingSessionSortField", tag = "1")]
pub field: i32,
#[prost(bool, tag = "2")]
pub is_descending: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchStreamingSessionsRequest {
#[prost(int32, optional, tag = "1")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, optional, tag = "2")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub filter: ::core::option::Option<StreamingSessionSearchFilter>,
#[prost(message, optional, tag = "4")]
pub sort: ::core::option::Option<StreamingSessionSortOptions>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchStreamingSessionsResponse {
#[prost(message, repeated, tag = "1")]
pub streaming_sessions: ::prost::alloc::vec::Vec<StreamingSession>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSource {
#[prost(message, optional, tag = "1")]
pub source: ::core::option::Option<StreamingSourceAttribution>,
#[prost(string, tag = "2")]
pub dataset_rid: ::prost::alloc::string::String,
#[prost(int64, tag = "3")]
pub session_count: i64,
#[prost(int64, tag = "4")]
pub total_points_count: i64,
#[prost(message, optional, tag = "5")]
pub earliest_created_at: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
#[prost(message, optional, tag = "6")]
pub latest_last_seen_at: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
#[prost(message, optional, tag = "7")]
pub merged_data_bounds: ::core::option::Option<TimeRange>,
#[prost(bool, tag = "8")]
pub any_in_progress: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSourceAndFilter {
#[prost(message, repeated, tag = "1")]
pub filters: ::prost::alloc::vec::Vec<StreamingSourceSearchFilter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSourceOrFilter {
#[prost(message, repeated, tag = "1")]
pub filters: ::prost::alloc::vec::Vec<StreamingSourceSearchFilter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSourceNotFilter {
#[prost(message, optional, boxed, tag = "1")]
pub filter: ::core::option::Option<
::prost::alloc::boxed::Box<StreamingSourceSearchFilter>,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamingSourceSearchFilter {
#[prost(oneof = "streaming_source_search_filter::Filter", tags = "1, 2, 3, 4, 5, 6")]
pub filter: ::core::option::Option<streaming_source_search_filter::Filter>,
}
pub mod streaming_source_search_filter {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Filter {
#[prost(message, tag = "1")]
DatasetRids(super::StreamingDatasetRidsFilter),
#[prost(message, tag = "2")]
Source(super::ExactStreamingSourceFilter),
#[prost(message, tag = "3")]
Workspace(super::StreamingWorkspaceFilter),
#[prost(message, tag = "4")]
And(super::StreamingSourceAndFilter),
#[prost(message, tag = "5")]
Or(super::StreamingSourceOrFilter),
#[prost(message, tag = "6")]
Not(::prost::alloc::boxed::Box<super::StreamingSourceNotFilter>),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchStreamingSourcesRequest {
#[prost(int32, optional, tag = "1")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, optional, tag = "2")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub filter: ::core::option::Option<StreamingSourceSearchFilter>,
#[prost(message, optional, tag = "4")]
pub last_seen_after: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchStreamingSourcesResponse {
#[prost(message, repeated, tag = "1")]
pub streaming_sources: ::prost::alloc::vec::Vec<StreamingSource>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StreamingSessionError {
Unspecified = 0,
FilterTooComplex = 1,
}
impl StreamingSessionError {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STREAMING_SESSION_ERROR_UNSPECIFIED",
Self::FilterTooComplex => "STREAMING_SESSION_ERROR_FILTER_TOO_COMPLEX",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STREAMING_SESSION_ERROR_UNSPECIFIED" => Some(Self::Unspecified),
"STREAMING_SESSION_ERROR_FILTER_TOO_COMPLEX" => Some(Self::FilterTooComplex),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StreamingSessionStatus {
Unspecified = 0,
InProgress = 1,
Completed = 2,
}
impl StreamingSessionStatus {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STREAMING_SESSION_STATUS_UNSPECIFIED",
Self::InProgress => "STREAMING_SESSION_STATUS_IN_PROGRESS",
Self::Completed => "STREAMING_SESSION_STATUS_COMPLETED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STREAMING_SESSION_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"STREAMING_SESSION_STATUS_IN_PROGRESS" => Some(Self::InProgress),
"STREAMING_SESSION_STATUS_COMPLETED" => Some(Self::Completed),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StreamingSessionSortField {
Unspecified = 0,
CreatedAt = 1,
DataBoundsStart = 2,
}
impl StreamingSessionSortField {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STREAMING_SESSION_SORT_FIELD_UNSPECIFIED",
Self::CreatedAt => "STREAMING_SESSION_SORT_FIELD_CREATED_AT",
Self::DataBoundsStart => "STREAMING_SESSION_SORT_FIELD_DATA_BOUNDS_START",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STREAMING_SESSION_SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
"STREAMING_SESSION_SORT_FIELD_CREATED_AT" => Some(Self::CreatedAt),
"STREAMING_SESSION_SORT_FIELD_DATA_BOUNDS_START" => {
Some(Self::DataBoundsStart)
}
_ => None,
}
}
}
pub mod streaming_session_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 StreamingSessionServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl StreamingSessionServiceClient<tonic::transport::Channel> {
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> StreamingSessionServiceClient<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,
) -> StreamingSessionServiceClient<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,
{
StreamingSessionServiceClient::new(
InterceptedService::new(inner, interceptor),
)
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[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 search_streaming_sessions(
&mut self,
request: impl tonic::IntoRequest<super::SearchStreamingSessionsRequest>,
) -> std::result::Result<
tonic::Response<super::SearchStreamingSessionsResponse>,
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.StreamingSessionService/SearchStreamingSessions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.ingest.v2.StreamingSessionService",
"SearchStreamingSessions",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn search_streaming_sources(
&mut self,
request: impl tonic::IntoRequest<super::SearchStreamingSourcesRequest>,
) -> std::result::Result<
tonic::Response<super::SearchStreamingSourcesResponse>,
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.StreamingSessionService/SearchStreamingSources",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.ingest.v2.StreamingSessionService",
"SearchStreamingSources",
),
);
self.inner.unary(req, path, codec).await
}
}
}