Skip to main content

nominal_api_proto/proto/
nominal.ingest_transform.v1.rs

1// This file is @generated by prost-build.
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct ExecuteIngestTransformRequest {
4    #[prost(string, tag = "1")]
5    pub transform_uuid: ::prost::alloc::string::String,
6    #[prost(string, optional, tag = "2")]
7    pub workspace_rid: ::core::option::Option<::prost::alloc::string::String>,
8}
9#[derive(Clone, Copy, PartialEq, ::prost::Message)]
10pub struct ExecuteIngestTransformResponse {}
11#[derive(Clone, PartialEq, ::prost::Message)]
12pub struct LoadRunnableTransformRequest {
13    #[prost(string, tag = "1")]
14    pub transform_uuid: ::prost::alloc::string::String,
15}
16#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct LoadRunnableTransformResponse {
18    #[prost(string, tag = "1")]
19    pub transform_uuid: ::prost::alloc::string::String,
20    #[prost(string, tag = "2")]
21    pub ingest_job_uuid: ::prost::alloc::string::String,
22    #[prost(string, tag = "3")]
23    pub org_uuid: ::prost::alloc::string::String,
24    #[prost(enumeration = "IngestTransformType", tag = "4")]
25    pub transform_type: i32,
26    #[prost(map = "string, string", tag = "6")]
27    pub arguments: ::std::collections::HashMap<
28        ::prost::alloc::string::String,
29        ::prost::alloc::string::String,
30    >,
31    #[prost(string, optional, tag = "7")]
32    pub extractor_rid: ::core::option::Option<::prost::alloc::string::String>,
33    #[prost(string, tag = "13")]
34    pub ingest_job_rid: ::prost::alloc::string::String,
35    #[prost(message, optional, tag = "9")]
36    pub timestamp_metadata: ::core::option::Option<
37        super::super::ingest::v2::TimestampMetadata,
38    >,
39    #[prost(
40        oneof = "load_runnable_transform_response::Payload",
41        tags = "10, 11, 12, 14, 15"
42    )]
43    pub payload: ::core::option::Option<load_runnable_transform_response::Payload>,
44}
45/// Nested message and enum types in `LoadRunnableTransformResponse`.
46pub mod load_runnable_transform_response {
47    #[derive(Clone, PartialEq, ::prost::Oneof)]
48    pub enum Payload {
49        #[prost(message, tag = "10")]
50        Containerized(super::ContainerizedTransformPayload),
51        #[prost(message, tag = "11")]
52        Mcap(super::McapTransformPayload),
53        #[prost(message, tag = "12")]
54        Dataflash(super::DataflashTransformPayload),
55        #[prost(message, tag = "14")]
56        ParquetArchive(super::ParquetArchiveTransformPayload),
57        #[prost(message, tag = "15")]
58        FileCopy(super::FileCopyTransformPayload),
59    }
60}
61#[derive(Clone, PartialEq, ::prost::Message)]
62pub struct McapTransformPayload {
63    #[prost(message, optional, tag = "1")]
64    pub source: ::core::option::Option<super::super::ingest::v2::IngestSource>,
65    #[prost(map = "string, string", tag = "2")]
66    pub tags: ::std::collections::HashMap<
67        ::prost::alloc::string::String,
68        ::prost::alloc::string::String,
69    >,
70    #[prost(message, optional, tag = "3")]
71    pub channels: ::core::option::Option<McapChannelFilter>,
72    #[prost(bool, tag = "4")]
73    pub ignore_invalid_topics: bool,
74    #[prost(int32, repeated, tag = "5")]
75    pub channel_ids: ::prost::alloc::vec::Vec<i32>,
76}
77#[derive(Clone, PartialEq, ::prost::Message)]
78pub struct McapChannelFilter {
79    #[prost(oneof = "mcap_channel_filter::Filter", tags = "1, 2")]
80    pub filter: ::core::option::Option<mcap_channel_filter::Filter>,
81}
82/// Nested message and enum types in `McapChannelFilter`.
83pub mod mcap_channel_filter {
84    #[derive(Clone, PartialEq, ::prost::Oneof)]
85    pub enum Filter {
86        #[prost(message, tag = "1")]
87        IncludeTopics(super::McapTopics),
88        #[prost(message, tag = "2")]
89        ExcludeTopics(super::McapTopics),
90    }
91}
92#[derive(Clone, PartialEq, ::prost::Message)]
93pub struct McapTopics {
94    #[prost(string, repeated, tag = "1")]
95    pub topics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
96}
97#[derive(Clone, PartialEq, ::prost::Message)]
98pub struct DataflashTransformPayload {
99    #[prost(message, optional, tag = "1")]
100    pub source: ::core::option::Option<super::super::ingest::v2::IngestSource>,
101    #[prost(map = "string, string", tag = "2")]
102    pub tags: ::std::collections::HashMap<
103        ::prost::alloc::string::String,
104        ::prost::alloc::string::String,
105    >,
106}
107#[derive(Clone, PartialEq, ::prost::Message)]
108pub struct ParquetArchiveTransformPayload {
109    #[prost(message, optional, tag = "1")]
110    pub source: ::core::option::Option<super::super::ingest::v2::IngestSource>,
111    #[prost(message, optional, tag = "2")]
112    pub timestamp_metadata: ::core::option::Option<
113        super::super::ingest::v2::TimestampMetadata,
114    >,
115    #[prost(message, optional, tag = "3")]
116    pub format: ::core::option::Option<super::super::ingest::v2::ParquetFormat>,
117    #[prost(map = "string, string", tag = "4")]
118    pub units: ::std::collections::HashMap<
119        ::prost::alloc::string::String,
120        ::prost::alloc::string::String,
121    >,
122    #[prost(map = "string, string", tag = "5")]
123    pub tags: ::std::collections::HashMap<
124        ::prost::alloc::string::String,
125        ::prost::alloc::string::String,
126    >,
127    #[prost(string, optional, tag = "6")]
128    pub channel_prefix: ::core::option::Option<::prost::alloc::string::String>,
129    #[prost(map = "string, string", tag = "7")]
130    pub channel_name_overrides: ::std::collections::HashMap<
131        ::prost::alloc::string::String,
132        ::prost::alloc::string::String,
133    >,
134}
135#[derive(Clone, PartialEq, ::prost::Message)]
136pub struct FileCopyTransformPayload {
137    #[prost(message, optional, tag = "1")]
138    pub file: ::core::option::Option<super::super::ingest::v2::FileIngestItem>,
139    #[prost(map = "string, string", tag = "2")]
140    pub tags: ::std::collections::HashMap<
141        ::prost::alloc::string::String,
142        ::prost::alloc::string::String,
143    >,
144}
145#[derive(Clone, PartialEq, ::prost::Message)]
146pub struct ContainerizedTransformPayload {
147    #[prost(map = "string, message", tag = "1")]
148    pub sources: ::std::collections::HashMap<
149        ::prost::alloc::string::String,
150        super::super::ingest::v2::IngestSource,
151    >,
152    #[prost(map = "string, string", tag = "2")]
153    pub tags: ::std::collections::HashMap<
154        ::prost::alloc::string::String,
155        ::prost::alloc::string::String,
156    >,
157    #[prost(string, repeated, tag = "3")]
158    pub runs_to_expand: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
159    #[prost(string, optional, tag = "4")]
160    pub image_tag: ::core::option::Option<::prost::alloc::string::String>,
161}
162#[derive(Clone, PartialEq, ::prost::Message)]
163pub struct MarkTransformSucceededRequest {
164    #[prost(string, tag = "1")]
165    pub transform_uuid: ::prost::alloc::string::String,
166}
167#[derive(Clone, PartialEq, ::prost::Message)]
168pub struct MarkTransformFailedRequest {
169    #[prost(string, tag = "1")]
170    pub transform_uuid: ::prost::alloc::string::String,
171    #[prost(string, tag = "2")]
172    pub safe_error_message: ::prost::alloc::string::String,
173    #[prost(enumeration = "TransformFailureKind", tag = "3")]
174    pub failure_kind: i32,
175}
176#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
177#[repr(i32)]
178pub enum TransformFailureKind {
179    Unspecified = 0,
180    User = 1,
181    System = 2,
182}
183impl TransformFailureKind {
184    /// String value of the enum field names used in the ProtoBuf definition.
185    ///
186    /// The values are not transformed in any way and thus are considered stable
187    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
188    pub fn as_str_name(&self) -> &'static str {
189        match self {
190            Self::Unspecified => "TRANSFORM_FAILURE_KIND_UNSPECIFIED",
191            Self::User => "TRANSFORM_FAILURE_KIND_USER",
192            Self::System => "TRANSFORM_FAILURE_KIND_SYSTEM",
193        }
194    }
195    /// Creates an enum from field names used in the ProtoBuf definition.
196    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
197        match value {
198            "TRANSFORM_FAILURE_KIND_UNSPECIFIED" => Some(Self::Unspecified),
199            "TRANSFORM_FAILURE_KIND_USER" => Some(Self::User),
200            "TRANSFORM_FAILURE_KIND_SYSTEM" => Some(Self::System),
201            _ => None,
202        }
203    }
204}
205#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
206#[repr(i32)]
207pub enum IngestTransformType {
208    Unspecified = 0,
209    Containerized = 1,
210    Mcap = 2,
211    Dataflash = 3,
212    ParquetArchive = 4,
213    FileCopy = 5,
214}
215impl IngestTransformType {
216    /// String value of the enum field names used in the ProtoBuf definition.
217    ///
218    /// The values are not transformed in any way and thus are considered stable
219    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
220    pub fn as_str_name(&self) -> &'static str {
221        match self {
222            Self::Unspecified => "INGEST_TRANSFORM_TYPE_UNSPECIFIED",
223            Self::Containerized => "INGEST_TRANSFORM_TYPE_CONTAINERIZED",
224            Self::Mcap => "INGEST_TRANSFORM_TYPE_MCAP",
225            Self::Dataflash => "INGEST_TRANSFORM_TYPE_DATAFLASH",
226            Self::ParquetArchive => "INGEST_TRANSFORM_TYPE_PARQUET_ARCHIVE",
227            Self::FileCopy => "INGEST_TRANSFORM_TYPE_FILE_COPY",
228        }
229    }
230    /// Creates an enum from field names used in the ProtoBuf definition.
231    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
232        match value {
233            "INGEST_TRANSFORM_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
234            "INGEST_TRANSFORM_TYPE_CONTAINERIZED" => Some(Self::Containerized),
235            "INGEST_TRANSFORM_TYPE_MCAP" => Some(Self::Mcap),
236            "INGEST_TRANSFORM_TYPE_DATAFLASH" => Some(Self::Dataflash),
237            "INGEST_TRANSFORM_TYPE_PARQUET_ARCHIVE" => Some(Self::ParquetArchive),
238            "INGEST_TRANSFORM_TYPE_FILE_COPY" => Some(Self::FileCopy),
239            _ => None,
240        }
241    }
242}