mz_dyncfg/mnt/build/debug/build/mz-dyncfg-036cdc8abd0bc719/out/
mz_dyncfg.rs

1// This file is @generated by prost-build.
2/// A batch of value updates to \[Config\]s in a \[ConfigSet\].
3///
4/// This may be sent across processes to apply the same value updates, but may
5/// not be durably written down.
6///
7/// Intentionally not named with the usual Proto prefix because we pass this
8/// around directly.
9#[derive(serde::Serialize, serde::Deserialize, proptest_derive::Arbitrary)]
10#[derive(Clone, PartialEq, ::prost::Message)]
11pub struct ConfigUpdates {
12    #[prost(btree_map = "string, message", tag = "2")]
13    pub updates: ::prost::alloc::collections::BTreeMap<
14        ::prost::alloc::string::String,
15        ProtoConfigVal,
16    >,
17}
18/// A single config value.
19///
20/// This may be sent across processes, but may not be durably written down.
21#[derive(serde::Serialize, serde::Deserialize, proptest_derive::Arbitrary)]
22#[derive(Clone, PartialEq, ::prost::Message)]
23pub struct ProtoConfigVal {
24    #[prost(oneof = "proto_config_val::Val", tags = "2, 6, 3, 7, 9, 4, 5, 8")]
25    pub val: ::core::option::Option<proto_config_val::Val>,
26}
27/// Nested message and enum types in `ProtoConfigVal`.
28pub mod proto_config_val {
29    #[derive(serde::Serialize, serde::Deserialize, proptest_derive::Arbitrary)]
30    #[derive(Clone, PartialEq, ::prost::Oneof)]
31    pub enum Val {
32        #[prost(bool, tag = "2")]
33        Bool(bool),
34        #[prost(uint32, tag = "6")]
35        U32(u32),
36        #[prost(uint64, tag = "3")]
37        Usize(u64),
38        #[prost(message, tag = "7")]
39        OptUsize(super::ProtoOptionU64),
40        #[prost(double, tag = "9")]
41        F64(f64),
42        #[prost(string, tag = "4")]
43        String(::prost::alloc::string::String),
44        #[prost(message, tag = "5")]
45        Duration(::mz_proto::ProtoDuration),
46        /// Switch to Protobuf's native JSON representation,
47        /// google.protobuf.Value, once prost supports it.
48        /// See: <https://github.com/tokio-rs/prost/issues/404>
49        #[prost(string, tag = "8")]
50        Json(::prost::alloc::string::String),
51    }
52}
53#[derive(serde::Serialize, serde::Deserialize, proptest_derive::Arbitrary)]
54#[derive(Clone, Copy, PartialEq, ::prost::Message)]
55pub struct ProtoOptionU64 {
56    #[prost(uint64, optional, tag = "1")]
57    pub val: ::core::option::Option<u64>,
58}