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
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoComputeStartupEpoch {
    #[prost(int64, tag = "1")]
    pub envd: i64,
    #[prost(uint64, tag = "2")]
    pub replica: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoComputeCommand {
    #[prost(oneof = "proto_compute_command::Kind", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
    pub kind: ::core::option::Option<proto_compute_command::Kind>,
}
/// Nested message and enum types in `ProtoComputeCommand`.
pub mod proto_compute_command {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoCreateDataflows {
        #[prost(message, repeated, tag = "1")]
        pub dataflows: ::prost::alloc::vec::Vec<super::ProtoDataflowDescription>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoCancelPeeks {
        #[prost(message, repeated, tag = "1")]
        pub uuids: ::prost::alloc::vec::Vec<::mz_proto::ProtoU128>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoCreateTimely {
        #[prost(message, optional, tag = "1")]
        pub comm_config: ::core::option::Option<super::ProtoCommunicationConfig>,
        #[prost(message, optional, tag = "2")]
        pub epoch: ::core::option::Option<super::ProtoComputeStartupEpoch>,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Kind {
        #[prost(message, tag = "1")]
        CreateTimely(ProtoCreateTimely),
        #[prost(message, tag = "2")]
        CreateInstance(super::ProtoInstanceConfig),
        #[prost(message, tag = "3")]
        CreateDataflows(ProtoCreateDataflows),
        #[prost(message, tag = "4")]
        AllowCompaction(::mz_storage_client::client::ProtoAllowCompaction),
        #[prost(message, tag = "5")]
        Peek(super::ProtoPeek),
        #[prost(message, tag = "6")]
        CancelPeeks(ProtoCancelPeeks),
        #[prost(message, tag = "7")]
        InitializationComplete(()),
        #[prost(message, tag = "8")]
        UpdateMaxResultSize(super::ProtoUpdateMaxResultSize),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoInstanceConfig {
    #[prost(message, optional, tag = "1")]
    pub logging: ::core::option::Option<super::logging::ProtoLoggingConfig>,
    #[prost(uint32, tag = "2")]
    pub max_result_size: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoCommunicationConfig {
    #[prost(uint64, tag = "1")]
    pub workers: u64,
    #[prost(uint64, tag = "2")]
    pub process: u64,
    #[prost(string, repeated, tag = "3")]
    pub addresses: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoDataflowDescription {
    #[prost(message, repeated, tag = "1")]
    pub source_imports: ::prost::alloc::vec::Vec<
        proto_dataflow_description::ProtoSourceImport,
    >,
    #[prost(message, repeated, tag = "2")]
    pub index_imports: ::prost::alloc::vec::Vec<
        proto_dataflow_description::ProtoIndexImport,
    >,
    #[prost(message, repeated, tag = "3")]
    pub objects_to_build: ::prost::alloc::vec::Vec<ProtoBuildDesc>,
    #[prost(message, repeated, tag = "4")]
    pub index_exports: ::prost::alloc::vec::Vec<
        proto_dataflow_description::ProtoIndexExport,
    >,
    #[prost(message, repeated, tag = "5")]
    pub sink_exports: ::prost::alloc::vec::Vec<
        proto_dataflow_description::ProtoSinkExport,
    >,
    #[prost(message, optional, tag = "6")]
    pub as_of: ::core::option::Option<::mz_repr::antichain::ProtoU64Antichain>,
    #[prost(message, optional, tag = "9")]
    pub until: ::core::option::Option<::mz_repr::antichain::ProtoU64Antichain>,
    #[prost(string, tag = "7")]
    pub debug_name: ::prost::alloc::string::String,
}
/// Nested message and enum types in `ProtoDataflowDescription`.
pub mod proto_dataflow_description {
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoSourceImport {
        #[prost(message, optional, tag = "1")]
        pub id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
        #[prost(message, optional, tag = "2")]
        pub source_instance_desc: ::core::option::Option<super::ProtoSourceInstanceDesc>,
        #[prost(bool, tag = "3")]
        pub monotonic: bool,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoIndexImport {
        #[prost(message, optional, tag = "1")]
        pub id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
        #[prost(message, optional, tag = "2")]
        pub index_desc: ::core::option::Option<super::ProtoIndexDesc>,
        #[prost(message, optional, tag = "3")]
        pub typ: ::core::option::Option<::mz_repr::ProtoRelationType>,
        #[prost(bool, tag = "4")]
        pub monotonic: bool,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoIndexExport {
        #[prost(message, optional, tag = "1")]
        pub id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
        #[prost(message, optional, tag = "2")]
        pub index_desc: ::core::option::Option<super::ProtoIndexDesc>,
        #[prost(message, optional, tag = "3")]
        pub typ: ::core::option::Option<::mz_repr::ProtoRelationType>,
    }
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ProtoSinkExport {
        #[prost(message, optional, tag = "1")]
        pub id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
        #[prost(message, optional, tag = "2")]
        pub sink_desc: ::core::option::Option<super::super::sinks::ProtoComputeSinkDesc>,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoIndexDesc {
    #[prost(message, optional, tag = "1")]
    pub on_id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
    #[prost(message, repeated, tag = "3")]
    pub key: ::prost::alloc::vec::Vec<::mz_expr::ProtoMirScalarExpr>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoBuildDesc {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
    #[prost(message, optional, tag = "2")]
    pub plan: ::core::option::Option<super::plan::ProtoPlan>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSourceInstanceDesc {
    #[prost(message, optional, tag = "1")]
    pub arguments: ::core::option::Option<ProtoSourceInstanceArguments>,
    #[prost(message, optional, tag = "2")]
    pub storage_metadata: ::core::option::Option<
        ::mz_storage_client::controller::ProtoCollectionMetadata,
    >,
    #[prost(message, optional, tag = "3")]
    pub typ: ::core::option::Option<::mz_repr::ProtoRelationType>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSourceInstanceArguments {
    #[prost(message, optional, tag = "2")]
    pub operators: ::core::option::Option<::mz_expr::ProtoMapFilterProject>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoPeek {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<::mz_repr::global_id::ProtoGlobalId>,
    #[prost(message, repeated, tag = "2")]
    pub key: ::prost::alloc::vec::Vec<::mz_repr::ProtoRow>,
    #[prost(message, optional, tag = "3")]
    pub uuid: ::core::option::Option<::mz_proto::ProtoU128>,
    #[prost(uint64, tag = "4")]
    pub timestamp: u64,
    #[prost(message, optional, tag = "5")]
    pub finishing: ::core::option::Option<::mz_expr::ProtoRowSetFinishing>,
    #[prost(message, optional, tag = "6")]
    pub map_filter_project: ::core::option::Option<::mz_expr::ProtoSafeMfpPlan>,
    #[prost(map = "string, string", tag = "7")]
    pub otel_ctx: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoUpdateMaxResultSize {
    #[prost(uint32, tag = "1")]
    pub max_result_size: u32,
}