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
#[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, 6")]
    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")]
        DefaultPosition(()),
        #[prost(message, tag="2")]
        Partition(()),
        #[prost(message, tag="3")]
        Offset(()),
        #[prost(message, tag="4")]
        Timestamp(()),
        #[prost(message, tag="5")]
        Topic(()),
        #[prost(message, tag="6")]
        Headers(()),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoKeyEnvelope {
    #[prost(oneof="proto_key_envelope::Kind", tags="1, 2, 3, 4")]
    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(message, tag="3")]
        LegacyUpsert(()),
        #[prost(string, tag="4")]
        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>,
}
#[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 mode: ::core::option::Option<ProtoDebeziumMode>,
}
#[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_id_idx: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDebeziumMode {
    #[prost(oneof="proto_debezium_mode::Kind", tags="1, 2, 3, 4")]
    pub kind: ::core::option::Option<proto_debezium_mode::Kind>,
}
/// Nested message and enum types in `ProtoDebeziumMode`.
pub mod proto_debezium_mode {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoFullInRange {
        #[prost(message, optional, tag="1")]
        pub projection: ::core::option::Option<super::ProtoDebeziumDedupProjection>,
        #[prost(message, optional, tag="2")]
        pub pad_start: ::core::option::Option<::mz_repr::chrono::ProtoNaiveDateTime>,
        #[prost(message, optional, tag="3")]
        pub start: ::core::option::Option<::mz_repr::chrono::ProtoNaiveDateTime>,
        #[prost(message, optional, tag="4")]
        pub end: ::core::option::Option<::mz_repr::chrono::ProtoNaiveDateTime>,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag="1")]
        None(()),
        #[prost(message, tag="2")]
        Ordered(super::ProtoDebeziumDedupProjection),
        #[prost(message, tag="3")]
        Full(super::ProtoDebeziumDedupProjection),
        #[prost(message, tag="4")]
        FullInRange(ProtoFullInRange),
    }
}
#[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(uint64, tag="5")]
    pub transaction_idx: u64,
    #[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(string, tag="2")]
    pub topic: ::prost::alloc::string::String,
    #[prost(map="int32, message", tag="3")]
    pub start_offsets: ::std::collections::HashMap<i32, ProtoMzOffset>,
    #[prost(string, optional, tag="4")]
    pub group_id_prefix: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag="5")]
    pub cluster_id: ::core::option::Option<::mz_proto::ProtoU128>,
    #[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>,
    #[prost(map="string, message", tag="11")]
    pub options: ::std::collections::HashMap<::prost::alloc::string::String, super::connections::ProtoStringOrSecret>,
}
#[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 ts_frequency: ::core::option::Option<::mz_proto::ProtoDuration>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSourceConnection {
    #[prost(oneof="proto_source_connection::Kind", tags="1, 2, 3, 4, 5")]
    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="2")]
        Kinesis(super::ProtoKinesisSourceConnection),
        #[prost(message, tag="3")]
        S3(super::ProtoS3SourceConnection),
        #[prost(message, tag="4")]
        Postgres(super::ProtoPostgresSourceConnection),
        #[prost(message, tag="5")]
        Pubnub(super::ProtoPubNubSourceConnection),
    }
}
#[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::super::errors::ProtoDataflowError),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoKinesisSourceConnection {
    #[prost(string, tag="1")]
    pub stream_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag="2")]
    pub aws: ::core::option::Option<super::connections::aws::ProtoAwsConfig>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoPostgresSourceConnection {
    #[prost(string, tag="1")]
    pub conn: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub publication: ::prost::alloc::string::String,
    #[prost(message, optional, tag="4")]
    pub details: ::core::option::Option<ProtoPostgresSourceDetails>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoPostgresSourceDetails {
    #[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 ProtoPubNubSourceConnection {
    #[prost(string, tag="1")]
    pub subscribe_key: ::prost::alloc::string::String,
    #[prost(string, tag="2")]
    pub channel: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoS3SourceConnection {
    #[prost(message, repeated, tag="1")]
    pub key_sources: ::prost::alloc::vec::Vec<ProtoS3KeySource>,
    #[prost(string, optional, tag="2")]
    pub pattern: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag="3")]
    pub aws: ::core::option::Option<super::connections::aws::ProtoAwsConfig>,
    #[prost(message, optional, tag="4")]
    pub compression: ::core::option::Option<ProtoCompression>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoS3KeySource {
    #[prost(oneof="proto_s3_key_source::Kind", tags="1, 2")]
    pub kind: ::core::option::Option<proto_s3_key_source::Kind>,
}
/// Nested message and enum types in `ProtoS3KeySource`.
pub mod proto_s3_key_source {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(string, tag="1")]
        Scan(::prost::alloc::string::String),
        #[prost(string, tag="2")]
        SqsNotifications(::prost::alloc::string::String),
    }
}
#[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::ProtoSourceMetadataImport>,
    #[prost(message, optional, tag="2")]
    pub desc: ::core::option::Option<ProtoSourceDesc>,
    #[prost(message, optional, tag="3")]
    pub storage_metadata: ::core::option::Option<super::super::client::controller::storage::ProtoCollectionMetadata>,
    #[prost(message, optional, tag="4")]
    pub typ: ::core::option::Option<::mz_repr::ProtoRelationType>,
}
/// Nested message and enum types in `ProtoIngestionDescription`.
pub mod proto_ingestion_description {
    /// ProtoSourceImport is taken by ProtoDataflowDescription
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoSourceMetadataImport {
        #[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::client::controller::storage::ProtoCollectionMetadata>,
    }
}