1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoMzOffset {
    #[prost(uint64, tag = "1")]
    pub offset: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoIncludedColumnSource {
    #[prost(oneof = "proto_included_column_source::Kind", tags = "1, 2, 3, 4, 5")]
    pub kind: ::core::option::Option<proto_included_column_source::Kind>,
}
/// Nested message and enum types in `ProtoIncludedColumnSource`.
pub mod proto_included_column_source {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Partition(()),
        #[prost(message, tag = "2")]
        Offset(()),
        #[prost(message, tag = "3")]
        Timestamp(()),
        #[prost(message, tag = "4")]
        Topic(()),
        #[prost(message, tag = "5")]
        Headers(()),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoKeyEnvelope {
    #[prost(oneof = "proto_key_envelope::Kind", tags = "1, 2, 3")]
    pub kind: ::core::option::Option<proto_key_envelope::Kind>,
}
/// Nested message and enum types in `ProtoKeyEnvelope`.
pub mod proto_key_envelope {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        None(()),
        #[prost(message, tag = "2")]
        Flattened(()),
        #[prost(string, tag = "3")]
        Named(::prost::alloc::string::String),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoTimeline {
    #[prost(oneof = "proto_timeline::Kind", tags = "1, 2, 3")]
    pub kind: ::core::option::Option<proto_timeline::Kind>,
}
/// Nested message and enum types in `ProtoTimeline`.
pub mod proto_timeline {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        EpochMilliseconds(()),
        #[prost(string, tag = "2")]
        External(::prost::alloc::string::String),
        #[prost(string, tag = "3")]
        User(::prost::alloc::string::String),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSourceEnvelope {
    #[prost(oneof = "proto_source_envelope::Kind", tags = "1, 2, 3, 4")]
    pub kind: ::core::option::Option<proto_source_envelope::Kind>,
}
/// Nested message and enum types in `ProtoSourceEnvelope`.
pub mod proto_source_envelope {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        None(super::ProtoNoneEnvelope),
        #[prost(message, tag = "2")]
        Debezium(super::ProtoDebeziumEnvelope),
        #[prost(message, tag = "3")]
        Upsert(super::ProtoUpsertEnvelope),
        #[prost(message, tag = "4")]
        CdcV2(()),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoNoneEnvelope {
    #[prost(message, optional, tag = "1")]
    pub key_envelope: ::core::option::Option<ProtoKeyEnvelope>,
    #[prost(uint64, tag = "2")]
    pub key_arity: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoUpsertEnvelope {
    #[prost(message, optional, tag = "1")]
    pub style: ::core::option::Option<ProtoUpsertStyle>,
    #[prost(uint64, repeated, tag = "2")]
    pub key_indices: ::prost::alloc::vec::Vec<u64>,
    #[prost(uint64, tag = "3")]
    pub source_arity: u64,
    #[prost(bool, tag = "4")]
    pub disk: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoUpsertStyle {
    #[prost(oneof = "proto_upsert_style::Kind", tags = "1, 2")]
    pub kind: ::core::option::Option<proto_upsert_style::Kind>,
}
/// Nested message and enum types in `ProtoUpsertStyle`.
pub mod proto_upsert_style {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoDebezium {
        #[prost(uint64, tag = "1")]
        pub after_idx: u64,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Default(super::ProtoKeyEnvelope),
        #[prost(message, tag = "2")]
        Debezium(ProtoDebezium),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoIncludedColumnPos {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(uint64, tag = "2")]
    pub pos: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDebeziumEnvelope {
    #[prost(uint64, tag = "1")]
    pub before_idx: u64,
    #[prost(uint64, tag = "2")]
    pub after_idx: u64,
    #[prost(message, optional, tag = "3")]
    pub dedup: ::core::option::Option<ProtoDebeziumDedupProjection>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDebeziumTransactionMetadata {
    #[prost(message, optional, tag = "1")]
    pub tx_metadata_global_id: ::core::option::Option<
        ::mz_repr::global_id::ProtoGlobalId,
    >,
    #[prost(uint64, tag = "2")]
    pub tx_status_idx: u64,
    #[prost(uint64, tag = "3")]
    pub tx_transaction_id_idx: u64,
    #[prost(uint64, tag = "4")]
    pub tx_data_collections_idx: u64,
    #[prost(uint64, tag = "5")]
    pub tx_data_collections_data_collection_idx: u64,
    #[prost(uint64, tag = "6")]
    pub tx_data_collections_event_count_idx: u64,
    #[prost(string, tag = "7")]
    pub tx_data_collection_name: ::prost::alloc::string::String,
    #[prost(uint64, tag = "8")]
    pub data_transaction_idx: u64,
    #[prost(uint64, tag = "9")]
    pub data_transaction_id_idx: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDebeziumDedupProjection {
    #[prost(uint64, tag = "1")]
    pub op_idx: u64,
    #[prost(uint64, tag = "2")]
    pub source_idx: u64,
    #[prost(uint64, tag = "3")]
    pub snapshot_idx: u64,
    #[prost(message, optional, tag = "4")]
    pub source_projection: ::core::option::Option<ProtoDebeziumSourceProjection>,
    #[prost(message, optional, tag = "6")]
    pub tx_metadata: ::core::option::Option<ProtoDebeziumTransactionMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDebeziumSourceProjection {
    #[prost(oneof = "proto_debezium_source_projection::Kind", tags = "1, 2, 3")]
    pub kind: ::core::option::Option<proto_debezium_source_projection::Kind>,
}
/// Nested message and enum types in `ProtoDebeziumSourceProjection`.
pub mod proto_debezium_source_projection {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoMySql {
        #[prost(uint64, tag = "1")]
        pub file: u64,
        #[prost(uint64, tag = "2")]
        pub pos: u64,
        #[prost(uint64, tag = "3")]
        pub row: u64,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPostgres {
        #[prost(uint64, tag = "1")]
        pub sequence: u64,
        #[prost(uint64, tag = "2")]
        pub lsn: u64,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoSqlServer {
        #[prost(uint64, tag = "1")]
        pub change_lsn: u64,
        #[prost(uint64, tag = "2")]
        pub event_serial_no: u64,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        MySql(ProtoMySql),
        #[prost(message, tag = "2")]
        Postgres(ProtoPostgres),
        #[prost(message, tag = "3")]
        SqlServer(ProtoSqlServer),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoKafkaSourceConnection {
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<super::connections::ProtoKafkaConnection>,
    #[prost(message, optional, tag = "13")]
    pub connection_id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
    #[prost(string, tag = "2")]
    pub topic: ::prost::alloc::string::String,
    #[prost(btree_map = "int32, int64", tag = "3")]
    pub start_offsets: ::prost::alloc::collections::BTreeMap<i32, i64>,
    #[prost(string, optional, tag = "4")]
    pub group_id_prefix: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "5")]
    pub environment_id: ::core::option::Option<::mz_proto::ProtoU128>,
    #[prost(string, optional, tag = "12")]
    pub environment_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "6")]
    pub include_timestamp: ::core::option::Option<ProtoIncludedColumnPos>,
    #[prost(message, optional, tag = "7")]
    pub include_partition: ::core::option::Option<ProtoIncludedColumnPos>,
    #[prost(message, optional, tag = "8")]
    pub include_topic: ::core::option::Option<ProtoIncludedColumnPos>,
    #[prost(message, optional, tag = "9")]
    pub include_offset: ::core::option::Option<ProtoIncludedColumnPos>,
    #[prost(message, optional, tag = "10")]
    pub include_headers: ::core::option::Option<ProtoIncludedColumnPos>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSourceDesc {
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<ProtoSourceConnection>,
    #[prost(message, optional, tag = "2")]
    pub encoding: ::core::option::Option<encoding::ProtoSourceDataEncoding>,
    #[prost(message, optional, tag = "3")]
    pub envelope: ::core::option::Option<ProtoSourceEnvelope>,
    #[prost(message, repeated, tag = "4")]
    pub metadata_columns: ::prost::alloc::vec::Vec<ProtoIncludedColumnSource>,
    #[prost(message, optional, tag = "5")]
    pub timestamp_interval: ::core::option::Option<::mz_proto::ProtoDuration>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSourceConnection {
    #[prost(oneof = "proto_source_connection::Kind", tags = "1, 4, 6, 7")]
    pub kind: ::core::option::Option<proto_source_connection::Kind>,
}
/// Nested message and enum types in `ProtoSourceConnection`.
pub mod proto_source_connection {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Kafka(super::ProtoKafkaSourceConnection),
        #[prost(message, tag = "4")]
        Postgres(super::ProtoPostgresSourceConnection),
        #[prost(message, tag = "6")]
        Loadgen(super::ProtoLoadGeneratorSourceConnection),
        #[prost(message, tag = "7")]
        Testscript(super::ProtoTestScriptSourceConnection),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSourceData {
    #[prost(oneof = "proto_source_data::Kind", tags = "1, 2")]
    pub kind: ::core::option::Option<proto_source_data::Kind>,
}
/// Nested message and enum types in `ProtoSourceData`.
pub mod proto_source_data {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Ok(::mz_repr::ProtoRow),
        #[prost(message, tag = "2")]
        Err(super::super::errors::ProtoDataflowError),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoPostgresSourceConnection {
    #[prost(message, optional, tag = "6")]
    pub connection_id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<super::connections::ProtoPostgresConnection>,
    #[prost(string, tag = "2")]
    pub publication: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub details: ::core::option::Option<ProtoPostgresSourcePublicationDetails>,
    #[prost(message, repeated, tag = "5")]
    pub table_casts: ::prost::alloc::vec::Vec<
        proto_postgres_source_connection::ProtoPostgresTableCast,
    >,
    /// Describes the position in the source's publication that the table cast
    /// correlates to; meant to be iterated over in tandem with table_casts
    #[prost(uint64, repeated, tag = "7")]
    pub table_cast_pos: ::prost::alloc::vec::Vec<u64>,
}
/// Nested message and enum types in `ProtoPostgresSourceConnection`.
pub mod proto_postgres_source_connection {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoPostgresTableCast {
        #[prost(message, repeated, tag = "1")]
        pub column_casts: ::prost::alloc::vec::Vec<::mz_expr::ProtoMirScalarExpr>,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoPostgresSourcePublicationDetails {
    #[prost(message, repeated, tag = "1")]
    pub tables: ::prost::alloc::vec::Vec<
        ::mz_postgres_util::desc::ProtoPostgresTableDesc,
    >,
    #[prost(string, tag = "2")]
    pub slot: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoLoadGeneratorSourceConnection {
    #[prost(uint64, optional, tag = "2")]
    pub tick_micros: ::core::option::Option<u64>,
    #[prost(
        oneof = "proto_load_generator_source_connection::Generator",
        tags = "6, 3, 4, 5"
    )]
    pub generator: ::core::option::Option<
        proto_load_generator_source_connection::Generator,
    >,
}
/// Nested message and enum types in `ProtoLoadGeneratorSourceConnection`.
pub mod proto_load_generator_source_connection {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Generator {
        #[prost(message, tag = "6")]
        Counter(super::ProtoCounterLoadGenerator),
        #[prost(message, tag = "3")]
        Auction(()),
        #[prost(message, tag = "4")]
        Tpch(super::ProtoTpchLoadGenerator),
        #[prost(message, tag = "5")]
        Datums(()),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoTestScriptSourceConnection {
    #[prost(string, tag = "1")]
    pub desc_json: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoCounterLoadGenerator {
    /// Must be non-negative,
    /// but kept as int64 to make downstream logic simpler
    #[prost(int64, optional, tag = "1")]
    pub max_cardinality: ::core::option::Option<i64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoTpchLoadGenerator {
    #[prost(int64, tag = "1")]
    pub count_supplier: i64,
    #[prost(int64, tag = "2")]
    pub count_part: i64,
    #[prost(int64, tag = "3")]
    pub count_customer: i64,
    #[prost(int64, tag = "4")]
    pub count_orders: i64,
    #[prost(int64, tag = "5")]
    pub count_clerk: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoCompression {
    #[prost(oneof = "proto_compression::Kind", tags = "1, 2")]
    pub kind: ::core::option::Option<proto_compression::Kind>,
}
/// Nested message and enum types in `ProtoCompression`.
pub mod proto_compression {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Gzip(()),
        #[prost(message, tag = "2")]
        None(()),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoIngestionDescription {
    #[prost(message, repeated, tag = "1")]
    pub source_imports: ::prost::alloc::vec::Vec<
        proto_ingestion_description::ProtoSourceImport,
    >,
    #[prost(message, repeated, tag = "2")]
    pub source_exports: ::prost::alloc::vec::Vec<
        proto_ingestion_description::ProtoSourceExport,
    >,
    #[prost(message, optional, tag = "3")]
    pub ingestion_metadata: ::core::option::Option<
        super::super::controller::ProtoCollectionMetadata,
    >,
    #[prost(message, optional, tag = "4")]
    pub desc: ::core::option::Option<ProtoSourceDesc>,
    #[prost(message, optional, tag = "6")]
    pub instance_id: ::core::option::Option<super::instances::ProtoStorageInstanceId>,
    #[prost(message, optional, tag = "7")]
    pub remap_collection_id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
}
/// Nested message and enum types in `ProtoIngestionDescription`.
pub mod proto_ingestion_description {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoSourceImport {
        #[prost(message, optional, tag = "1")]
        pub id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
        #[prost(message, optional, tag = "2")]
        pub storage_metadata: ::core::option::Option<
            super::super::super::controller::ProtoCollectionMetadata,
        >,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoSourceExport {
        #[prost(message, optional, tag = "1")]
        pub id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
        #[prost(uint64, tag = "2")]
        pub output_index: u64,
        #[prost(message, optional, tag = "3")]
        pub storage_metadata: ::core::option::Option<
            super::super::super::controller::ProtoCollectionMetadata,
        >,
    }
}