1#[derive(prost_helpers::AnyPB)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Field {
6 #[prost(message, optional, tag = "1")]
7 pub data_type: ::core::option::Option<super::data::DataType>,
8 #[prost(string, tag = "2")]
9 pub name: ::prost::alloc::string::String,
10}
11#[derive(prost_helpers::AnyPB)]
12#[derive(Eq, Hash)]
13#[derive(Clone, PartialEq, ::prost::Message)]
14#[prost(skip_debug)]
15pub struct ColumnDesc {
16 #[prost(message, optional, tag = "1")]
17 pub column_type: ::core::option::Option<super::data::DataType>,
18 #[prost(int32, tag = "2")]
19 pub column_id: i32,
20 #[prost(string, tag = "3")]
23 pub name: ::prost::alloc::string::String,
24 #[prost(string, optional, tag = "8")]
26 pub description: ::core::option::Option<::prost::alloc::string::String>,
27 #[prost(enumeration = "AdditionalColumnType", tag = "9")]
29 pub additional_column_type: i32,
30 #[prost(enumeration = "ColumnDescVersion", tag = "10")]
31 pub version: i32,
32 #[prost(message, optional, tag = "11")]
33 pub additional_column: ::core::option::Option<AdditionalColumn>,
34 #[prost(bool, optional, tag = "12")]
35 pub nullable: ::core::option::Option<bool>,
36 #[prost(oneof = "column_desc::GeneratedOrDefaultColumn", tags = "6, 7")]
38 pub generated_or_default_column: ::core::option::Option<
39 column_desc::GeneratedOrDefaultColumn,
40 >,
41}
42pub mod column_desc {
44 #[derive(prost_helpers::AnyPB)]
46 #[derive(Eq, Hash)]
47 #[derive(Clone, PartialEq, ::prost::Oneof)]
48 #[prost(skip_debug)]
49 pub enum GeneratedOrDefaultColumn {
50 #[prost(message, tag = "6")]
51 GeneratedColumn(super::GeneratedColumnDesc),
52 #[prost(message, tag = "7")]
53 DefaultColumn(super::DefaultColumnDesc),
54 }
55}
56#[derive(prost_helpers::AnyPB)]
57#[derive(Clone, PartialEq, ::prost::Message)]
58pub struct ColumnCatalog {
59 #[prost(message, optional, tag = "1")]
60 pub column_desc: ::core::option::Option<ColumnDesc>,
61 #[prost(bool, tag = "2")]
62 pub is_hidden: bool,
63}
64#[derive(prost_helpers::AnyPB)]
65#[derive(Eq, Hash)]
66#[derive(Clone, PartialEq, ::prost::Message)]
67pub struct GeneratedColumnDesc {
68 #[prost(message, optional, tag = "1")]
69 pub expr: ::core::option::Option<super::expr::ExprNode>,
70}
71#[derive(prost_helpers::AnyPB)]
72#[derive(Eq, Hash)]
73#[derive(Clone, PartialEq, ::prost::Message)]
74pub struct DefaultColumnDesc {
75 #[prost(message, optional, tag = "1")]
77 pub expr: ::core::option::Option<super::expr::ExprNode>,
78 #[prost(message, optional, tag = "2")]
82 pub snapshot_value: ::core::option::Option<super::data::Datum>,
83}
84#[derive(prost_helpers::AnyPB)]
85#[derive(Clone, PartialEq, ::prost::Message)]
86pub struct StorageTableDesc {
87 #[prost(uint32, tag = "1", wrapper = "crate::id::TableId")]
88 pub table_id: crate::id::TableId,
89 #[prost(message, repeated, tag = "2")]
90 pub columns: ::prost::alloc::vec::Vec<ColumnDesc>,
91 #[prost(message, repeated, tag = "3")]
93 pub pk: ::prost::alloc::vec::Vec<super::common::ColumnOrder>,
94 #[prost(uint32, repeated, tag = "4")]
95 pub dist_key_in_pk_indices: ::prost::alloc::vec::Vec<u32>,
96 #[prost(uint32, repeated, tag = "6")]
97 pub value_indices: ::prost::alloc::vec::Vec<u32>,
98 #[prost(uint32, tag = "7")]
99 pub read_prefix_len_hint: u32,
100 #[prost(bool, tag = "8")]
103 pub versioned: bool,
104 #[prost(uint32, repeated, tag = "9")]
105 pub stream_key: ::prost::alloc::vec::Vec<u32>,
106 #[prost(uint32, optional, tag = "10")]
107 pub vnode_col_idx_in_pk: ::core::option::Option<u32>,
108 #[prost(uint32, optional, tag = "11")]
109 pub retention_seconds: ::core::option::Option<u32>,
110 #[prost(uint32, optional, tag = "12")]
116 pub maybe_vnode_count: ::core::option::Option<u32>,
117}
118#[derive(prost_helpers::AnyPB)]
119#[derive(Clone, PartialEq, ::prost::Message)]
120pub struct VectorIndexReaderDesc {
121 #[prost(uint32, tag = "1", wrapper = "crate::id::TableId")]
123 pub table_id: crate::id::TableId,
124 #[prost(message, repeated, tag = "2")]
126 pub info_column_desc: ::prost::alloc::vec::Vec<ColumnDesc>,
127 #[prost(uint32, repeated, tag = "3")]
128 pub info_output_indices: ::prost::alloc::vec::Vec<u32>,
129 #[prost(bool, tag = "4")]
131 pub include_distance: bool,
132 #[prost(uint32, tag = "5")]
134 pub top_n: u32,
135 #[prost(enumeration = "super::common::DistanceType", tag = "6")]
137 pub distance_type: i32,
138 #[prost(uint32, tag = "7")]
140 pub hnsw_ef_search: u32,
141}
142#[derive(prost_helpers::AnyPB)]
143#[derive(Eq, Hash)]
144#[derive(Clone, PartialEq, ::prost::Message)]
145pub struct CdcKeyOrdering {
146 #[prost(message, repeated, tag = "1")]
147 pub columns: ::prost::alloc::vec::Vec<cdc_key_ordering::Column>,
148}
149pub mod cdc_key_ordering {
151 #[derive(prost_helpers::AnyPB)]
152 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
153 pub struct Column {
154 #[prost(uint32, tag = "1")]
155 pub pk_col_idx: u32,
156 #[prost(enumeration = "Comparison", tag = "2")]
157 pub comparison: i32,
158 }
159 #[derive(prost_helpers::AnyPB)]
160 #[derive(
161 Clone,
162 Copy,
163 Debug,
164 PartialEq,
165 Eq,
166 Hash,
167 PartialOrd,
168 Ord,
169 ::prost::Enumeration
170 )]
171 #[repr(i32)]
172 pub enum Comparison {
173 Unspecified = 0,
174 Native = 1,
175 UnsignedInt64 = 2,
176 }
177 impl Comparison {
178 pub fn as_str_name(&self) -> &'static str {
183 match self {
184 Self::Unspecified => "COMPARISON_UNSPECIFIED",
185 Self::Native => "COMPARISON_NATIVE",
186 Self::UnsignedInt64 => "COMPARISON_UNSIGNED_INT64",
187 }
188 }
189 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
191 match value {
192 "COMPARISON_UNSPECIFIED" => Some(Self::Unspecified),
193 "COMPARISON_NATIVE" => Some(Self::Native),
194 "COMPARISON_UNSIGNED_INT64" => Some(Self::UnsignedInt64),
195 _ => None,
196 }
197 }
198 }
199}
200#[derive(prost_helpers::AnyPB)]
202#[derive(Eq, Hash)]
203#[derive(Clone, PartialEq, ::prost::Message)]
204pub struct ExternalTableDesc {
205 #[prost(uint32, tag = "1", wrapper = "crate::id::TableId")]
206 pub table_id: crate::id::TableId,
207 #[prost(message, repeated, tag = "2")]
208 pub columns: ::prost::alloc::vec::Vec<ColumnDesc>,
209 #[prost(message, repeated, tag = "3")]
211 pub pk: ::prost::alloc::vec::Vec<super::common::ColumnOrder>,
212 #[prost(string, tag = "4")]
213 pub table_name: ::prost::alloc::string::String,
214 #[prost(uint32, repeated, tag = "5")]
215 pub stream_key: ::prost::alloc::vec::Vec<u32>,
216 #[prost(btree_map = "string, string", tag = "6")]
217 pub connect_properties: ::prost::alloc::collections::BTreeMap<
218 ::prost::alloc::string::String,
219 ::prost::alloc::string::String,
220 >,
221 #[prost(uint32, tag = "7", wrapper = "crate::id::SourceId")]
223 pub source_id: crate::id::SourceId,
224 #[prost(btree_map = "string, message", tag = "8")]
225 pub secret_refs: ::prost::alloc::collections::BTreeMap<
226 ::prost::alloc::string::String,
227 super::secret::SecretRef,
228 >,
229 #[prost(message, optional, tag = "9")]
230 pub pk_ordering: ::core::option::Option<CdcKeyOrdering>,
231}
232#[derive(prost_helpers::AnyPB)]
233#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
234pub struct AsOfJoinDesc {
235 #[prost(uint32, tag = "1")]
237 pub right_idx: u32,
238 #[prost(uint32, tag = "2")]
240 pub left_idx: u32,
241 #[prost(enumeration = "AsOfJoinInequalityType", tag = "3")]
243 pub inequality_type: i32,
244}
245#[derive(prost_helpers::AnyPB)]
246#[derive(Clone, PartialEq, ::prost::Message)]
247pub struct IndexAndExpr {
248 #[prost(uint32, tag = "1")]
249 pub index: u32,
250 #[prost(message, optional, tag = "2")]
251 pub expr: ::core::option::Option<super::expr::ExprNode>,
252}
253#[derive(prost_helpers::AnyPB)]
254#[derive(Clone, PartialEq, ::prost::Message)]
255pub struct DefaultColumns {
256 #[prost(message, repeated, tag = "1")]
257 pub default_columns: ::prost::alloc::vec::Vec<IndexAndExpr>,
258}
259#[derive(prost_helpers::AnyPB)]
261#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
262pub struct Cardinality {
263 #[prost(uint64, tag = "1")]
264 pub lo: u64,
265 #[prost(uint64, optional, tag = "2")]
267 pub hi: ::core::option::Option<u64>,
268}
269#[derive(prost_helpers::AnyPB)]
271#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
272pub struct ExprContext {
273 #[prost(string, tag = "1")]
274 pub time_zone: ::prost::alloc::string::String,
275 #[prost(bool, tag = "2")]
276 pub strict_mode: bool,
277}
278#[derive(prost_helpers::AnyPB)]
279#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
280pub struct AdditionalColumnKey {}
281#[derive(prost_helpers::AnyPB)]
282#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
283pub struct AdditionalColumnTimestamp {}
284#[derive(prost_helpers::AnyPB)]
285#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
286pub struct AdditionalColumnPartition {}
287#[derive(prost_helpers::AnyPB)]
288#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
289pub struct AdditionalColumnOffset {}
290#[derive(prost_helpers::AnyPB)]
291#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
292pub struct AdditionalColumnFilename {}
293#[derive(prost_helpers::AnyPB)]
294#[derive(Eq, Hash)]
295#[derive(Clone, PartialEq, ::prost::Message)]
296pub struct AdditionalColumnHeader {
297 #[prost(string, tag = "1")]
298 pub inner_field: ::prost::alloc::string::String,
299 #[prost(message, optional, tag = "2")]
300 pub data_type: ::core::option::Option<super::data::DataType>,
301}
302#[derive(prost_helpers::AnyPB)]
304#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
305pub struct AdditionalDatabaseName {}
306#[derive(prost_helpers::AnyPB)]
307#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
308pub struct AdditionalSchemaName {}
309#[derive(prost_helpers::AnyPB)]
310#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
311pub struct AdditionalTableName {}
312#[derive(prost_helpers::AnyPB)]
313#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
314pub struct AdditionalCollectionName {}
315#[derive(prost_helpers::AnyPB)]
316#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
317pub struct AdditionalColumnPayload {}
318#[derive(prost_helpers::AnyPB)]
320#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
321pub struct AdditionalColumnHeaders {}
322#[derive(prost_helpers::AnyPB)]
323#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
324pub struct AdditionalSubject {}
325#[derive(prost_helpers::AnyPB)]
326#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
327pub struct AdditionalColumnPulsarMessageIdData {}
328#[derive(prost_helpers::AnyPB)]
329#[derive(Eq, Hash)]
330#[derive(Clone, PartialEq, ::prost::Message)]
331pub struct AdditionalColumn {
332 #[prost(
333 oneof = "additional_column::ColumnType",
334 tags = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14"
335 )]
336 pub column_type: ::core::option::Option<additional_column::ColumnType>,
337}
338pub mod additional_column {
340 #[derive(prost_helpers::AnyPB)]
341 #[derive(Eq, Hash)]
342 #[derive(Clone, PartialEq, ::prost::Oneof)]
343 pub enum ColumnType {
344 #[prost(message, tag = "1")]
345 Key(super::AdditionalColumnKey),
346 #[prost(message, tag = "2")]
347 Timestamp(super::AdditionalColumnTimestamp),
348 #[prost(message, tag = "3")]
349 Partition(super::AdditionalColumnPartition),
350 #[prost(message, tag = "4")]
351 Offset(super::AdditionalColumnOffset),
352 #[prost(message, tag = "5")]
353 HeaderInner(super::AdditionalColumnHeader),
354 #[prost(message, tag = "6")]
355 Filename(super::AdditionalColumnFilename),
356 #[prost(message, tag = "7")]
357 Headers(super::AdditionalColumnHeaders),
358 #[prost(message, tag = "8")]
359 DatabaseName(super::AdditionalDatabaseName),
360 #[prost(message, tag = "9")]
361 SchemaName(super::AdditionalSchemaName),
362 #[prost(message, tag = "10")]
363 TableName(super::AdditionalTableName),
364 #[prost(message, tag = "11")]
365 CollectionName(super::AdditionalCollectionName),
366 #[prost(message, tag = "12")]
367 Payload(super::AdditionalColumnPayload),
368 #[prost(message, tag = "13")]
369 Subject(super::AdditionalSubject),
370 #[prost(message, tag = "14")]
371 PulsarMessageIdData(super::AdditionalColumnPulsarMessageIdData),
372 }
373}
374#[derive(prost_helpers::AnyPB)]
375#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
376pub struct IcebergBoundedScan {
377 #[prost(oneof = "iceberg_bounded_scan::Scan", tags = "1")]
378 pub scan: ::core::option::Option<iceberg_bounded_scan::Scan>,
379}
380pub mod iceberg_bounded_scan {
382 #[derive(prost_helpers::AnyPB)]
383 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
384 pub struct Snapshot {
385 #[prost(int64, tag = "1")]
386 pub snapshot_id: i64,
387 }
388 #[derive(prost_helpers::AnyPB)]
389 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
390 pub enum Scan {
391 #[prost(message, tag = "1")]
392 Snapshot(Snapshot),
393 }
394}
395#[derive(prost_helpers::AnyPB)]
397#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
398pub struct SourceIngestMode {
399 #[prost(oneof = "source_ingest_mode::IngestMode", tags = "1, 2, 3")]
400 pub ingest_mode: ::core::option::Option<source_ingest_mode::IngestMode>,
401}
402pub mod source_ingest_mode {
404 #[derive(prost_helpers::AnyPB)]
406 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
407 pub struct SourceIngestModeStreaming {}
408 #[derive(prost_helpers::AnyPB)]
410 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
411 pub struct SourceIngestModeFullReload {
412 #[prost(int64, optional, tag = "1")]
413 pub refresh_interval_sec: ::core::option::Option<i64>,
414 }
415 #[derive(prost_helpers::AnyPB)]
417 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
418 pub struct SourceIngestModeBounded {
419 #[prost(oneof = "source_ingest_mode_bounded::Input", tags = "1")]
420 pub input: ::core::option::Option<source_ingest_mode_bounded::Input>,
421 }
422 pub mod source_ingest_mode_bounded {
424 #[derive(prost_helpers::AnyPB)]
425 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
426 pub enum Input {
427 #[prost(message, tag = "1")]
428 Iceberg(super::super::IcebergBoundedScan),
429 }
430 }
431 #[derive(prost_helpers::AnyPB)]
432 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
433 pub enum IngestMode {
434 #[prost(message, tag = "1")]
435 Streaming(SourceIngestModeStreaming),
436 #[prost(message, tag = "2")]
437 FullReload(SourceIngestModeFullReload),
438 #[prost(message, tag = "3")]
439 Bounded(SourceIngestModeBounded),
440 }
441}
442#[derive(prost_helpers::AnyPB)]
443#[derive(prost_helpers::Version)]
444#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
445#[repr(i32)]
446pub enum ColumnDescVersion {
447 Unspecified = 0,
448 Pr13707 = 1,
451}
452impl ColumnDescVersion {
453 pub fn as_str_name(&self) -> &'static str {
458 match self {
459 Self::Unspecified => "COLUMN_DESC_VERSION_UNSPECIFIED",
460 Self::Pr13707 => "COLUMN_DESC_VERSION_PR_13707",
461 }
462 }
463 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
465 match value {
466 "COLUMN_DESC_VERSION_UNSPECIFIED" => Some(Self::Unspecified),
467 "COLUMN_DESC_VERSION_PR_13707" => Some(Self::Pr13707),
468 _ => None,
469 }
470 }
471}
472#[derive(prost_helpers::AnyPB)]
473#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
474#[repr(i32)]
475pub enum JoinType {
476 Unspecified = 0,
479 Inner = 1,
480 LeftOuter = 2,
481 RightOuter = 3,
482 FullOuter = 4,
483 LeftSemi = 5,
484 LeftAnti = 6,
485 RightSemi = 7,
486 RightAnti = 8,
487 AsofInner = 9,
488 AsofLeftOuter = 10,
489}
490impl JoinType {
491 pub fn as_str_name(&self) -> &'static str {
496 match self {
497 Self::Unspecified => "JOIN_TYPE_UNSPECIFIED",
498 Self::Inner => "JOIN_TYPE_INNER",
499 Self::LeftOuter => "JOIN_TYPE_LEFT_OUTER",
500 Self::RightOuter => "JOIN_TYPE_RIGHT_OUTER",
501 Self::FullOuter => "JOIN_TYPE_FULL_OUTER",
502 Self::LeftSemi => "JOIN_TYPE_LEFT_SEMI",
503 Self::LeftAnti => "JOIN_TYPE_LEFT_ANTI",
504 Self::RightSemi => "JOIN_TYPE_RIGHT_SEMI",
505 Self::RightAnti => "JOIN_TYPE_RIGHT_ANTI",
506 Self::AsofInner => "JOIN_TYPE_ASOF_INNER",
507 Self::AsofLeftOuter => "JOIN_TYPE_ASOF_LEFT_OUTER",
508 }
509 }
510 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
512 match value {
513 "JOIN_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
514 "JOIN_TYPE_INNER" => Some(Self::Inner),
515 "JOIN_TYPE_LEFT_OUTER" => Some(Self::LeftOuter),
516 "JOIN_TYPE_RIGHT_OUTER" => Some(Self::RightOuter),
517 "JOIN_TYPE_FULL_OUTER" => Some(Self::FullOuter),
518 "JOIN_TYPE_LEFT_SEMI" => Some(Self::LeftSemi),
519 "JOIN_TYPE_LEFT_ANTI" => Some(Self::LeftAnti),
520 "JOIN_TYPE_RIGHT_SEMI" => Some(Self::RightSemi),
521 "JOIN_TYPE_RIGHT_ANTI" => Some(Self::RightAnti),
522 "JOIN_TYPE_ASOF_INNER" => Some(Self::AsofInner),
523 "JOIN_TYPE_ASOF_LEFT_OUTER" => Some(Self::AsofLeftOuter),
524 _ => None,
525 }
526 }
527}
528#[derive(prost_helpers::AnyPB)]
529#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
530#[repr(i32)]
531pub enum AsOfJoinType {
532 Unspecified = 0,
533 Inner = 1,
534 LeftOuter = 2,
535}
536impl AsOfJoinType {
537 pub fn as_str_name(&self) -> &'static str {
542 match self {
543 Self::Unspecified => "AS_OF_JOIN_TYPE_UNSPECIFIED",
544 Self::Inner => "AS_OF_JOIN_TYPE_INNER",
545 Self::LeftOuter => "AS_OF_JOIN_TYPE_LEFT_OUTER",
546 }
547 }
548 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
550 match value {
551 "AS_OF_JOIN_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
552 "AS_OF_JOIN_TYPE_INNER" => Some(Self::Inner),
553 "AS_OF_JOIN_TYPE_LEFT_OUTER" => Some(Self::LeftOuter),
554 _ => None,
555 }
556 }
557}
558#[derive(prost_helpers::AnyPB)]
559#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
560#[repr(i32)]
561pub enum AsOfJoinInequalityType {
562 AsOfInequalityTypeUnspecified = 0,
563 AsOfInequalityTypeGt = 1,
564 AsOfInequalityTypeGe = 2,
565 AsOfInequalityTypeLt = 3,
566 AsOfInequalityTypeLe = 4,
567}
568impl AsOfJoinInequalityType {
569 pub fn as_str_name(&self) -> &'static str {
574 match self {
575 Self::AsOfInequalityTypeUnspecified => "AS_OF_INEQUALITY_TYPE_UNSPECIFIED",
576 Self::AsOfInequalityTypeGt => "AS_OF_INEQUALITY_TYPE_GT",
577 Self::AsOfInequalityTypeGe => "AS_OF_INEQUALITY_TYPE_GE",
578 Self::AsOfInequalityTypeLt => "AS_OF_INEQUALITY_TYPE_LT",
579 Self::AsOfInequalityTypeLe => "AS_OF_INEQUALITY_TYPE_LE",
580 }
581 }
582 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
584 match value {
585 "AS_OF_INEQUALITY_TYPE_UNSPECIFIED" => {
586 Some(Self::AsOfInequalityTypeUnspecified)
587 }
588 "AS_OF_INEQUALITY_TYPE_GT" => Some(Self::AsOfInequalityTypeGt),
589 "AS_OF_INEQUALITY_TYPE_GE" => Some(Self::AsOfInequalityTypeGe),
590 "AS_OF_INEQUALITY_TYPE_LT" => Some(Self::AsOfInequalityTypeLt),
591 "AS_OF_INEQUALITY_TYPE_LE" => Some(Self::AsOfInequalityTypeLe),
592 _ => None,
593 }
594 }
595}
596#[derive(prost_helpers::AnyPB)]
598#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
599#[repr(i32)]
600pub enum FormatType {
601 Unspecified = 0,
602 Native = 1,
603 Debezium = 2,
604 DebeziumMongo = 3,
605 Maxwell = 4,
606 Canal = 5,
607 Upsert = 6,
608 Plain = 7,
609 None = 8,
610}
611impl FormatType {
612 pub fn as_str_name(&self) -> &'static str {
617 match self {
618 Self::Unspecified => "FORMAT_TYPE_UNSPECIFIED",
619 Self::Native => "FORMAT_TYPE_NATIVE",
620 Self::Debezium => "FORMAT_TYPE_DEBEZIUM",
621 Self::DebeziumMongo => "FORMAT_TYPE_DEBEZIUM_MONGO",
622 Self::Maxwell => "FORMAT_TYPE_MAXWELL",
623 Self::Canal => "FORMAT_TYPE_CANAL",
624 Self::Upsert => "FORMAT_TYPE_UPSERT",
625 Self::Plain => "FORMAT_TYPE_PLAIN",
626 Self::None => "FORMAT_TYPE_NONE",
627 }
628 }
629 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
631 match value {
632 "FORMAT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
633 "FORMAT_TYPE_NATIVE" => Some(Self::Native),
634 "FORMAT_TYPE_DEBEZIUM" => Some(Self::Debezium),
635 "FORMAT_TYPE_DEBEZIUM_MONGO" => Some(Self::DebeziumMongo),
636 "FORMAT_TYPE_MAXWELL" => Some(Self::Maxwell),
637 "FORMAT_TYPE_CANAL" => Some(Self::Canal),
638 "FORMAT_TYPE_UPSERT" => Some(Self::Upsert),
639 "FORMAT_TYPE_PLAIN" => Some(Self::Plain),
640 "FORMAT_TYPE_NONE" => Some(Self::None),
641 _ => None,
642 }
643 }
644}
645#[derive(prost_helpers::AnyPB)]
646#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
647#[repr(i32)]
648pub enum EncodeType {
649 Unspecified = 0,
650 Native = 1,
651 Avro = 2,
652 Csv = 3,
653 Protobuf = 4,
654 Json = 5,
655 Bytes = 6,
656 Template = 7,
657 None = 8,
658 Text = 9,
659 Parquet = 10,
660}
661impl EncodeType {
662 pub fn as_str_name(&self) -> &'static str {
667 match self {
668 Self::Unspecified => "ENCODE_TYPE_UNSPECIFIED",
669 Self::Native => "ENCODE_TYPE_NATIVE",
670 Self::Avro => "ENCODE_TYPE_AVRO",
671 Self::Csv => "ENCODE_TYPE_CSV",
672 Self::Protobuf => "ENCODE_TYPE_PROTOBUF",
673 Self::Json => "ENCODE_TYPE_JSON",
674 Self::Bytes => "ENCODE_TYPE_BYTES",
675 Self::Template => "ENCODE_TYPE_TEMPLATE",
676 Self::None => "ENCODE_TYPE_NONE",
677 Self::Text => "ENCODE_TYPE_TEXT",
678 Self::Parquet => "ENCODE_TYPE_PARQUET",
679 }
680 }
681 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
683 match value {
684 "ENCODE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
685 "ENCODE_TYPE_NATIVE" => Some(Self::Native),
686 "ENCODE_TYPE_AVRO" => Some(Self::Avro),
687 "ENCODE_TYPE_CSV" => Some(Self::Csv),
688 "ENCODE_TYPE_PROTOBUF" => Some(Self::Protobuf),
689 "ENCODE_TYPE_JSON" => Some(Self::Json),
690 "ENCODE_TYPE_BYTES" => Some(Self::Bytes),
691 "ENCODE_TYPE_TEMPLATE" => Some(Self::Template),
692 "ENCODE_TYPE_NONE" => Some(Self::None),
693 "ENCODE_TYPE_TEXT" => Some(Self::Text),
694 "ENCODE_TYPE_PARQUET" => Some(Self::Parquet),
695 _ => None,
696 }
697 }
698}
699#[derive(prost_helpers::AnyPB)]
700#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
701#[repr(i32)]
702pub enum RowFormatType {
703 RowUnspecified = 0,
704 Json = 1,
705 Protobuf = 2,
706 DebeziumJson = 3,
707 Avro = 4,
708 Maxwell = 5,
709 CanalJson = 6,
710 Csv = 7,
711 Native = 8,
712 DebeziumAvro = 9,
713 UpsertJson = 10,
714 UpsertAvro = 11,
715 DebeziumMongoJson = 12,
716 Bytes = 13,
717}
718impl RowFormatType {
719 pub fn as_str_name(&self) -> &'static str {
724 match self {
725 Self::RowUnspecified => "ROW_UNSPECIFIED",
726 Self::Json => "JSON",
727 Self::Protobuf => "PROTOBUF",
728 Self::DebeziumJson => "DEBEZIUM_JSON",
729 Self::Avro => "AVRO",
730 Self::Maxwell => "MAXWELL",
731 Self::CanalJson => "CANAL_JSON",
732 Self::Csv => "CSV",
733 Self::Native => "NATIVE",
734 Self::DebeziumAvro => "DEBEZIUM_AVRO",
735 Self::UpsertJson => "UPSERT_JSON",
736 Self::UpsertAvro => "UPSERT_AVRO",
737 Self::DebeziumMongoJson => "DEBEZIUM_MONGO_JSON",
738 Self::Bytes => "BYTES",
739 }
740 }
741 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
743 match value {
744 "ROW_UNSPECIFIED" => Some(Self::RowUnspecified),
745 "JSON" => Some(Self::Json),
746 "PROTOBUF" => Some(Self::Protobuf),
747 "DEBEZIUM_JSON" => Some(Self::DebeziumJson),
748 "AVRO" => Some(Self::Avro),
749 "MAXWELL" => Some(Self::Maxwell),
750 "CANAL_JSON" => Some(Self::CanalJson),
751 "CSV" => Some(Self::Csv),
752 "NATIVE" => Some(Self::Native),
753 "DEBEZIUM_AVRO" => Some(Self::DebeziumAvro),
754 "UPSERT_JSON" => Some(Self::UpsertJson),
755 "UPSERT_AVRO" => Some(Self::UpsertAvro),
756 "DEBEZIUM_MONGO_JSON" => Some(Self::DebeziumMongoJson),
757 "BYTES" => Some(Self::Bytes),
758 _ => None,
759 }
760 }
761}
762#[derive(prost_helpers::AnyPB)]
763#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
764#[repr(i32)]
765pub enum AdditionalColumnType {
766 Unspecified = 0,
767 Key = 1,
768 Timestamp = 2,
769 Partition = 3,
770 Offset = 4,
771 Header = 5,
772 Filename = 6,
773 Normal = 7,
774 Payload = 8,
775 PulsarMessageIdData = 9,
777}
778impl AdditionalColumnType {
779 pub fn as_str_name(&self) -> &'static str {
784 match self {
785 Self::Unspecified => "ADDITIONAL_COLUMN_TYPE_UNSPECIFIED",
786 Self::Key => "ADDITIONAL_COLUMN_TYPE_KEY",
787 Self::Timestamp => "ADDITIONAL_COLUMN_TYPE_TIMESTAMP",
788 Self::Partition => "ADDITIONAL_COLUMN_TYPE_PARTITION",
789 Self::Offset => "ADDITIONAL_COLUMN_TYPE_OFFSET",
790 Self::Header => "ADDITIONAL_COLUMN_TYPE_HEADER",
791 Self::Filename => "ADDITIONAL_COLUMN_TYPE_FILENAME",
792 Self::Normal => "ADDITIONAL_COLUMN_TYPE_NORMAL",
793 Self::Payload => "ADDITIONAL_COLUMN_TYPE_PAYLOAD",
794 Self::PulsarMessageIdData => "ADDITIONAL_COLUMN_TYPE_PULSAR_MESSAGE_ID_DATA",
795 }
796 }
797 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
799 match value {
800 "ADDITIONAL_COLUMN_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
801 "ADDITIONAL_COLUMN_TYPE_KEY" => Some(Self::Key),
802 "ADDITIONAL_COLUMN_TYPE_TIMESTAMP" => Some(Self::Timestamp),
803 "ADDITIONAL_COLUMN_TYPE_PARTITION" => Some(Self::Partition),
804 "ADDITIONAL_COLUMN_TYPE_OFFSET" => Some(Self::Offset),
805 "ADDITIONAL_COLUMN_TYPE_HEADER" => Some(Self::Header),
806 "ADDITIONAL_COLUMN_TYPE_FILENAME" => Some(Self::Filename),
807 "ADDITIONAL_COLUMN_TYPE_NORMAL" => Some(Self::Normal),
808 "ADDITIONAL_COLUMN_TYPE_PAYLOAD" => Some(Self::Payload),
809 "ADDITIONAL_COLUMN_TYPE_PULSAR_MESSAGE_ID_DATA" => {
810 Some(Self::PulsarMessageIdData)
811 }
812 _ => None,
813 }
814 }
815}