#[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>,
}
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>,
}
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 {
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",
}
}
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 {
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"
}
}
}
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 {
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",
}
}
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,
}
}
}