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