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
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoLoadGeneratorSourceConnection {
    #[prost(uint64, optional, tag = "2")]
    pub tick_micros: ::core::option::Option<u64>,
    #[prost(uint64, tag = "9")]
    pub as_of: u64,
    #[prost(uint64, tag = "10")]
    pub up_to: u64,
    #[prost(
        oneof = "proto_load_generator_source_connection::Kind",
        tags = "6, 11, 3, 4, 5, 7, 8"
    )]
    pub kind: ::core::option::Option<proto_load_generator_source_connection::Kind>,
}
/// Nested message and enum types in `ProtoLoadGeneratorSourceConnection`.
pub mod proto_load_generator_source_connection {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "6")]
        Counter(super::ProtoCounterLoadGenerator),
        #[prost(message, tag = "11")]
        Clock(()),
        #[prost(message, tag = "3")]
        Auction(()),
        #[prost(message, tag = "4")]
        Tpch(super::ProtoTpchLoadGenerator),
        #[prost(message, tag = "5")]
        Datums(()),
        #[prost(message, tag = "7")]
        Marketing(()),
        #[prost(message, tag = "8")]
        KeyValue(super::ProtoKeyValueLoadGenerator),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtoCounterLoadGenerator {
    #[prost(uint64, optional, tag = "1")]
    pub max_cardinality: ::core::option::Option<u64>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, 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,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoKeyValueLoadGenerator {
    #[prost(uint64, tag = "1")]
    pub keys: u64,
    #[prost(uint64, tag = "2")]
    pub snapshot_rounds: u64,
    #[prost(bool, tag = "3")]
    pub transactional_snapshot: bool,
    #[prost(uint64, tag = "4")]
    pub value_size: u64,
    #[prost(uint64, tag = "5")]
    pub partitions: u64,
    #[prost(message, optional, tag = "6")]
    pub tick_interval: ::core::option::Option<::mz_proto::ProtoDuration>,
    #[prost(uint64, tag = "7")]
    pub batch_size: u64,
    #[prost(uint64, tag = "8")]
    pub seed: u64,
    #[prost(string, optional, tag = "9")]
    pub include_offset: ::core::option::Option<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtoLoadGeneratorSourceExportDetails {
    #[prost(message, optional, tag = "1")]
    pub output: ::core::option::Option<ProtoLoadGeneratorOutput>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtoLoadGeneratorOutput {
    #[prost(oneof = "proto_load_generator_output::Kind", tags = "1, 2, 3, 4")]
    pub kind: ::core::option::Option<proto_load_generator_output::Kind>,
}
/// Nested message and enum types in `ProtoLoadGeneratorOutput`.
pub mod proto_load_generator_output {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        Default(()),
        #[prost(enumeration = "super::ProtoLoadGeneratorAuctionOutput", tag = "2")]
        Auction(i32),
        #[prost(enumeration = "super::ProtoLoadGeneratorMarketingOutput", tag = "3")]
        Marketing(i32),
        #[prost(enumeration = "super::ProtoLoadGeneratorTpchOutput", tag = "4")]
        Tpch(i32),
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProtoLoadGeneratorAuctionOutput {
    Organizations = 0,
    Users = 1,
    Accounts = 2,
    Auctions = 3,
    Bids = 4,
}
impl ProtoLoadGeneratorAuctionOutput {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            ProtoLoadGeneratorAuctionOutput::Organizations => "Organizations",
            ProtoLoadGeneratorAuctionOutput::Users => "Users",
            ProtoLoadGeneratorAuctionOutput::Accounts => "Accounts",
            ProtoLoadGeneratorAuctionOutput::Auctions => "Auctions",
            ProtoLoadGeneratorAuctionOutput::Bids => "Bids",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Organizations" => Some(Self::Organizations),
            "Users" => Some(Self::Users),
            "Accounts" => Some(Self::Accounts),
            "Auctions" => Some(Self::Auctions),
            "Bids" => Some(Self::Bids),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProtoLoadGeneratorMarketingOutput {
    Customers = 0,
    Impressions = 1,
    Clicks = 2,
    Leads = 3,
    Coupons = 4,
    ConversionPredictions = 5,
}
impl ProtoLoadGeneratorMarketingOutput {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            ProtoLoadGeneratorMarketingOutput::Customers => "Customers",
            ProtoLoadGeneratorMarketingOutput::Impressions => "Impressions",
            ProtoLoadGeneratorMarketingOutput::Clicks => "Clicks",
            ProtoLoadGeneratorMarketingOutput::Leads => "Leads",
            ProtoLoadGeneratorMarketingOutput::Coupons => "Coupons",
            ProtoLoadGeneratorMarketingOutput::ConversionPredictions => {
                "ConversionPredictions"
            }
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Customers" => Some(Self::Customers),
            "Impressions" => Some(Self::Impressions),
            "Clicks" => Some(Self::Clicks),
            "Leads" => Some(Self::Leads),
            "Coupons" => Some(Self::Coupons),
            "ConversionPredictions" => Some(Self::ConversionPredictions),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProtoLoadGeneratorTpchOutput {
    Supplier = 0,
    Part = 1,
    Partsupp = 2,
    Customer = 3,
    Orders = 4,
    Lineitem = 5,
    Nation = 6,
    Region = 7,
}
impl ProtoLoadGeneratorTpchOutput {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            ProtoLoadGeneratorTpchOutput::Supplier => "Supplier",
            ProtoLoadGeneratorTpchOutput::Part => "Part",
            ProtoLoadGeneratorTpchOutput::Partsupp => "Partsupp",
            ProtoLoadGeneratorTpchOutput::Customer => "Customer",
            ProtoLoadGeneratorTpchOutput::Orders => "Orders",
            ProtoLoadGeneratorTpchOutput::Lineitem => "Lineitem",
            ProtoLoadGeneratorTpchOutput::Nation => "Nation",
            ProtoLoadGeneratorTpchOutput::Region => "Region",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "Supplier" => Some(Self::Supplier),
            "Part" => Some(Self::Part),
            "Partsupp" => Some(Self::Partsupp),
            "Customer" => Some(Self::Customer),
            "Orders" => Some(Self::Orders),
            "Lineitem" => Some(Self::Lineitem),
            "Nation" => Some(Self::Nation),
            "Region" => Some(Self::Region),
            _ => None,
        }
    }
}