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
// This file is @generated by prost-build.
#[derive(serde::Serialize)]
#[derive(serde::Deserialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoU64Antichain {
    #[prost(int64, repeated, tag = "1")]
    pub elements: ::prost::alloc::vec::Vec<i64>,
}
#[derive(serde::Serialize)]
#[derive(serde::Deserialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoU64Description {
    #[prost(message, optional, tag = "1")]
    pub lower: ::core::option::Option<ProtoU64Antichain>,
    #[prost(message, optional, tag = "2")]
    pub upper: ::core::option::Option<ProtoU64Antichain>,
    #[prost(message, optional, tag = "3")]
    pub since: ::core::option::Option<ProtoU64Antichain>,
}
#[derive(serde::Serialize)]
#[derive(serde::Deserialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoHollowBatchPart {
    #[prost(message, optional, tag = "4")]
    pub ts_rewrite: ::core::option::Option<ProtoU64Antichain>,
    /// Only set when Kind is Key
    #[prost(uint64, tag = "2")]
    pub encoded_size_bytes: u64,
    #[prost(bytes = "bytes", tag = "3")]
    pub key_lower: ::prost::bytes::Bytes,
    #[prost(int64, optional, tag = "6")]
    pub diffs_sum: ::core::option::Option<i64>,
    #[prost(uint64, optional, tag = "9")]
    pub schema_id: ::core::option::Option<u64>,
    #[prost(bytes = "bytes", optional, tag = "536870906")]
    pub key_stats: ::core::option::Option<::prost::bytes::Bytes>,
    #[prost(oneof = "proto_hollow_batch_part::Kind", tags = "1, 5")]
    pub kind: ::core::option::Option<proto_hollow_batch_part::Kind>,
    #[prost(oneof = "proto_hollow_batch_part::Format", tags = "7, 8")]
    pub format: ::core::option::Option<proto_hollow_batch_part::Format>,
}
/// Nested message and enum types in `ProtoHollowBatchPart`.
pub mod proto_hollow_batch_part {
    #[derive(serde::Serialize)]
    #[derive(serde::Deserialize)]
    #[allow(missing_docs)]
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(string, tag = "1")]
        Key(::prost::alloc::string::String),
        #[prost(bytes, tag = "5")]
        Inline(::prost::bytes::Bytes),
    }
    #[derive(serde::Serialize)]
    #[derive(serde::Deserialize)]
    #[allow(missing_docs)]
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum Format {
        #[prost(message, tag = "7")]
        Row(()),
        #[prost(uint64, tag = "8")]
        RowAndColumnar(u64),
    }
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoInlineBatchPart {
    #[prost(message, optional, tag = "1")]
    pub desc: ::core::option::Option<ProtoU64Description>,
    #[prost(uint64, tag = "2")]
    pub index: u64,
    #[prost(message, optional, tag = "3")]
    pub updates: ::core::option::Option<
        ::mz_persist::gen::persist::ProtoColumnarRecords,
    >,
}
#[derive(serde::Serialize)]
#[derive(serde::Deserialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoHollowBatch {
    #[prost(message, optional, tag = "1")]
    pub desc: ::core::option::Option<ProtoU64Description>,
    #[prost(message, repeated, tag = "4")]
    pub parts: ::prost::alloc::vec::Vec<ProtoHollowBatchPart>,
    #[prost(uint64, tag = "3")]
    pub len: u64,
    #[prost(uint64, repeated, tag = "5")]
    pub runs: ::prost::alloc::vec::Vec<u64>,
    #[prost(string, repeated, tag = "2")]
    pub deprecated_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtoSpineId {
    #[prost(uint64, tag = "1")]
    pub lo: u64,
    #[prost(uint64, tag = "2")]
    pub hi: u64,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoIdHollowBatch {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<ProtoSpineId>,
    #[prost(message, optional, tag = "2")]
    pub batch: ::core::option::Option<ProtoHollowBatch>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSpineBatch {
    #[prost(uint64, tag = "1")]
    pub level: u64,
    #[prost(message, optional, tag = "2")]
    pub desc: ::core::option::Option<ProtoU64Description>,
    #[prost(message, repeated, tag = "3")]
    pub parts: ::prost::alloc::vec::Vec<ProtoSpineId>,
    #[prost(message, repeated, tag = "4")]
    pub descs: ::prost::alloc::vec::Vec<ProtoU64Description>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoIdSpineBatch {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<ProtoSpineId>,
    #[prost(message, optional, tag = "2")]
    pub batch: ::core::option::Option<ProtoSpineBatch>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtoCompaction {
    #[prost(uint64, tag = "1")]
    pub start_ms: u64,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoMerge {
    #[prost(message, optional, tag = "1")]
    pub since: ::core::option::Option<ProtoU64Antichain>,
    #[prost(uint64, tag = "2")]
    pub remaining_work: u64,
    #[prost(message, optional, tag = "3")]
    pub active_compaction: ::core::option::Option<ProtoCompaction>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoIdMerge {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<ProtoSpineId>,
    #[prost(message, optional, tag = "2")]
    pub merge: ::core::option::Option<ProtoMerge>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoHollowRollup {
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    #[prost(uint64, optional, tag = "2")]
    pub encoded_size_bytes: ::core::option::Option<u64>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoTrace {
    #[prost(message, optional, tag = "1")]
    pub since: ::core::option::Option<ProtoU64Antichain>,
    #[prost(message, repeated, tag = "2")]
    pub legacy_batches: ::prost::alloc::vec::Vec<ProtoHollowBatch>,
    #[prost(message, repeated, tag = "3")]
    pub hollow_batches: ::prost::alloc::vec::Vec<ProtoIdHollowBatch>,
    #[prost(message, repeated, tag = "4")]
    pub spine_batches: ::prost::alloc::vec::Vec<ProtoIdSpineBatch>,
    #[prost(message, repeated, tag = "5")]
    pub merges: ::prost::alloc::vec::Vec<ProtoIdMerge>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoLeasedReaderState {
    #[prost(message, optional, tag = "1")]
    pub since: ::core::option::Option<ProtoU64Antichain>,
    #[prost(uint64, tag = "2")]
    pub seqno: u64,
    #[prost(uint64, tag = "3")]
    pub last_heartbeat_timestamp_ms: u64,
    #[prost(uint64, tag = "4")]
    pub lease_duration_ms: u64,
    #[prost(message, optional, tag = "5")]
    pub debug: ::core::option::Option<ProtoHandleDebugState>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoCriticalReaderState {
    #[prost(message, optional, tag = "1")]
    pub since: ::core::option::Option<ProtoU64Antichain>,
    #[prost(int64, tag = "2")]
    pub opaque: i64,
    #[prost(string, tag = "3")]
    pub opaque_codec: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub debug: ::core::option::Option<ProtoHandleDebugState>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoWriterState {
    #[prost(uint64, tag = "1")]
    pub last_heartbeat_timestamp_ms: u64,
    #[prost(uint64, tag = "2")]
    pub lease_duration_ms: u64,
    #[prost(string, tag = "3")]
    pub most_recent_write_token: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub most_recent_write_upper: ::core::option::Option<ProtoU64Antichain>,
    #[prost(message, optional, tag = "5")]
    pub debug: ::core::option::Option<ProtoHandleDebugState>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoHandleDebugState {
    #[prost(string, tag = "1")]
    pub hostname: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub purpose: ::prost::alloc::string::String,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoVersionedData {
    #[prost(uint64, tag = "1")]
    pub seqno: u64,
    #[prost(bytes = "bytes", tag = "2")]
    pub data: ::prost::bytes::Bytes,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoInlinedDiffs {
    #[prost(uint64, tag = "1")]
    pub lower: u64,
    #[prost(uint64, tag = "2")]
    pub upper: u64,
    #[prost(message, repeated, tag = "3")]
    pub diffs: ::prost::alloc::vec::Vec<ProtoVersionedData>,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoEncodedSchemas {
    #[prost(bytes = "bytes", tag = "1")]
    pub key: ::prost::bytes::Bytes,
    #[prost(bytes = "bytes", tag = "3")]
    pub key_data_type: ::prost::bytes::Bytes,
    #[prost(bytes = "bytes", tag = "2")]
    pub val: ::prost::bytes::Bytes,
    #[prost(bytes = "bytes", tag = "4")]
    pub val_data_type: ::prost::bytes::Bytes,
}
#[derive(serde::Serialize)]
#[allow(missing_docs)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoRollup {
    #[prost(string, tag = "11")]
    pub applier_version: ::prost::alloc::string::String,
    #[prost(string, tag = "1")]
    pub shard_id: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub key_codec: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub val_codec: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub ts_codec: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub diff_codec: ::prost::alloc::string::String,
    #[prost(uint64, tag = "6")]
    pub seqno: u64,
    #[prost(uint64, tag = "15")]
    pub walltime_ms: u64,
    #[prost(string, tag = "14")]
    pub hostname: ::prost::alloc::string::String,
    #[prost(uint64, tag = "10")]
    pub last_gc_req: u64,
    #[prost(btree_map = "uint64, message", tag = "16")]
    pub rollups: ::prost::alloc::collections::BTreeMap<u64, ProtoHollowRollup>,
    #[prost(message, optional, tag = "7")]
    pub trace: ::core::option::Option<ProtoTrace>,
    #[prost(btree_map = "string, message", tag = "8")]
    pub leased_readers: ::prost::alloc::collections::BTreeMap<
        ::prost::alloc::string::String,
        ProtoLeasedReaderState,
    >,
    #[prost(btree_map = "string, message", tag = "13")]
    pub critical_readers: ::prost::alloc::collections::BTreeMap<
        ::prost::alloc::string::String,
        ProtoCriticalReaderState,
    >,
    #[prost(btree_map = "string, message", tag = "9")]
    pub writers: ::prost::alloc::collections::BTreeMap<
        ::prost::alloc::string::String,
        ProtoWriterState,
    >,
    #[prost(btree_map = "uint64, message", tag = "18")]
    pub schemas: ::prost::alloc::collections::BTreeMap<u64, ProtoEncodedSchemas>,
    #[prost(message, optional, tag = "17")]
    pub diffs: ::core::option::Option<ProtoInlinedDiffs>,
    /// MIGRATION: We previously stored rollups as a `SeqNo -> string Key` map,
    /// but now the value is a `struct HollowRollup`.
    #[prost(btree_map = "uint64, string", tag = "12")]
    pub deprecated_rollups: ::prost::alloc::collections::BTreeMap<
        u64,
        ::prost::alloc::string::String,
    >,
}